diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..09cb9fb --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: CI + +# Runs on PRs and pushes to the default branch. We use `pull_request` (never +# `pull_request_target`), so secrets are NOT exposed to pull requests from forks. +on: + pull_request: + push: + branches: [main, master] + +permissions: + contents: read + +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: '1.21' + - name: Build SDK + working-directory: client + run: go build ./... + - name: Sync test module dependencies + run: go mod tidy + - name: Run tests + run: go test ./tests/... -v + env: + FASTCOMMENTS_API_KEY: ${{ secrets.FASTCOMMENTS_API_KEY }} + FASTCOMMENTS_TENANT_ID: ${{ secrets.FASTCOMMENTS_TENANT_ID }} diff --git a/README.md b/README.md index c9c24c7..fb7cce3 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,43 @@ func main() { } ``` +#### Moderation API (Moderator Dashboard) + +The ModerationAPI powers the moderator dashboard. It provides methods for listing, +counting, searching, and exporting comments, moderation actions (remove/restore, +flag, set review/spam/approval status, votes, reopen/close threads), bans (ban from +comment, undo, pre-ban summaries, ban status and preferences, banned-user counts), +and badges & trust (award/remove badges, manual badges, get/set trust factor, user +internal profile). All Moderation methods accept an `sso` parameter for +SSO-authenticated moderators: + +```go +package main + +import ( + "context" + "fmt" + "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + config := client.NewConfiguration() + apiClient := client.NewAPIClient(config) + + // List comments for moderation using ModerationAPI + response, httpResp, err := apiClient.ModerationAPI.GetApiComments( + context.Background(), + ).Sso("your-sso-token").Execute() + + if err != nil { + panic(err) + } + + fmt.Printf("Status: %d\n", httpResp.StatusCode) + fmt.Printf("Comments: %+v\n", response) +} +``` + ## Usage ### Simple SSO diff --git a/client/.openapi-generator/FILES b/client/.openapi-generator/FILES index d52c35d..38230dd 100644 --- a/client/.openapi-generator/FILES +++ b/client/.openapi-generator/FILES @@ -4,13 +4,19 @@ README.md api/openapi.yaml api_default.go +api_moderation.go api_public.go client.go configuration.go docs/APIAuditLog.md +docs/APIBanUserChangeLog.md +docs/APIBanUserChangedValues.md +docs/APIBannedUser.md +docs/APIBannedUserWithMultiMatchInfo.md docs/APIComment.md docs/APICommentBase.md docs/APICommentBaseMeta.md +docs/APICommentCommonBannedUser.md docs/APICreateUserBadgeResponse.md docs/APIDomainConfiguration.md docs/APIEmptyResponse.md @@ -22,8 +28,11 @@ docs/APIGetUserBadgeProgressListResponse.md docs/APIGetUserBadgeProgressResponse.md docs/APIGetUserBadgeResponse.md docs/APIGetUserBadgesResponse.md +docs/APIModerateGetUserBanPreferencesResponse.md +docs/APIModerateUserBanPreferences.md docs/APIPage.md docs/APISSOUser.md +docs/APISaveCommentResponse.md docs/APIStatus.md docs/APITenant.md docs/APITenantDailyUsage.md @@ -31,16 +40,17 @@ docs/APITicket.md docs/APITicketDetail.md docs/APITicketFile.md docs/APIUserSubscription.md -docs/AddDomainConfig200Response.md -docs/AddDomainConfig200ResponseAnyOf.md docs/AddDomainConfigParams.md -docs/AddHashTag200Response.md -docs/AddHashTagsBulk200Response.md +docs/AddDomainConfigResponse.md +docs/AddDomainConfigResponseAnyOf.md docs/AddPageAPIResponse.md docs/AddSSOUserAPIResponse.md -docs/AggregateQuestionResults200Response.md +docs/AdjustCommentVotesParams.md +docs/AdjustVotesResponse.md docs/AggregateQuestionResultsResponse.md +docs/AggregateResponse.md docs/AggregateTimeBucket.md +docs/AggregationAPIError.md docs/AggregationItem.md docs/AggregationOpType.md docs/AggregationOperation.md @@ -49,24 +59,30 @@ docs/AggregationRequestSort.md docs/AggregationResponse.md docs/AggregationResponseStats.md docs/AggregationValue.md +docs/AwardUserBadgeResponse.md +docs/BanUserFromCommentResult.md +docs/BanUserUndoParams.md +docs/BannedUserMatch.md +docs/BannedUserMatchMatchedOnValue.md +docs/BannedUserMatchType.md docs/BillingInfo.md docs/BlockFromCommentParams.md -docs/BlockFromCommentPublic200Response.md docs/BlockSuccess.md +docs/BuildModerationFilterParams.md +docs/BuildModerationFilterResponse.md docs/BulkAggregateQuestionItem.md -docs/BulkAggregateQuestionResults200Response.md docs/BulkAggregateQuestionResultsRequest.md docs/BulkAggregateQuestionResultsResponse.md docs/BulkCreateHashTagsBody.md docs/BulkCreateHashTagsBodyTagsInner.md docs/BulkCreateHashTagsResponse.md +docs/BulkCreateHashTagsResponseResultsInner.md +docs/BulkPreBanParams.md +docs/BulkPreBanSummary.md docs/ChangeCommentPinStatusResponse.md -docs/ChangeTicketState200Response.md docs/ChangeTicketStateBody.md docs/ChangeTicketStateResponse.md docs/CheckBlockedCommentsResponse.md -docs/CheckedCommentsForBlocked200Response.md -docs/CombineCommentsWithQuestionResults200Response.md docs/CombineQuestionResultsWithCommentsResponse.md docs/CommentData.md docs/CommentHTMLRenderingMode.md @@ -81,57 +97,43 @@ docs/CommentUserBadgeInfo.md docs/CommentUserHashTagInfo.md docs/CommentUserMentionInfo.md docs/CommenterNameFormats.md +docs/CommentsByIdsParams.md docs/CreateAPIPageData.md docs/CreateAPISSOUserData.md docs/CreateAPIUserSubscriptionData.md docs/CreateCommentParams.md -docs/CreateCommentPublic200Response.md -docs/CreateEmailTemplate200Response.md docs/CreateEmailTemplateBody.md docs/CreateEmailTemplateResponse.md -docs/CreateFeedPost200Response.md docs/CreateFeedPostParams.md -docs/CreateFeedPostPublic200Response.md docs/CreateFeedPostResponse.md docs/CreateFeedPostsResponse.md docs/CreateHashTagBody.md docs/CreateHashTagResponse.md -docs/CreateModerator200Response.md docs/CreateModeratorBody.md docs/CreateModeratorResponse.md -docs/CreateQuestionConfig200Response.md docs/CreateQuestionConfigBody.md docs/CreateQuestionConfigResponse.md -docs/CreateQuestionResult200Response.md docs/CreateQuestionResultBody.md docs/CreateQuestionResultResponse.md docs/CreateSubscriptionAPIResponse.md -docs/CreateTenant200Response.md docs/CreateTenantBody.md -docs/CreateTenantPackage200Response.md docs/CreateTenantPackageBody.md docs/CreateTenantPackageResponse.md docs/CreateTenantResponse.md -docs/CreateTenantUser200Response.md docs/CreateTenantUserBody.md docs/CreateTenantUserResponse.md -docs/CreateTicket200Response.md docs/CreateTicketBody.md docs/CreateTicketResponse.md -docs/CreateUserBadge200Response.md docs/CreateUserBadgeParams.md +docs/CreateV1PageReact.md docs/CustomConfigParameters.md docs/CustomEmailTemplate.md docs/DefaultAPI.md -docs/DeleteComment200Response.md docs/DeleteCommentAction.md -docs/DeleteCommentPublic200Response.md docs/DeleteCommentResult.md -docs/DeleteCommentVote200Response.md -docs/DeleteDomainConfig200Response.md -docs/DeleteFeedPostPublic200Response.md -docs/DeleteFeedPostPublic200ResponseAnyOf.md -docs/DeleteHashTagRequest.md +docs/DeleteDomainConfigResponse.md +docs/DeleteFeedPostPublicResponse.md +docs/DeleteHashTagRequestBody.md docs/DeletePageAPIResponse.md docs/DeleteSSOUserAPIResponse.md docs/DeleteSubscriptionAPIResponse.md @@ -150,126 +152,125 @@ docs/FeedPostStats.md docs/FeedPostsStatsResponse.md docs/FindCommentsByRangeItem.md docs/FindCommentsByRangeResponse.md -docs/FlagComment200Response.md -docs/FlagCommentPublic200Response.md docs/FlagCommentResponse.md -docs/GetAuditLogs200Response.md docs/GetAuditLogsResponse.md -docs/GetCachedNotificationCount200Response.md +docs/GetBannedUsersCountResponse.md +docs/GetBannedUsersFromCommentResponse.md docs/GetCachedNotificationCountResponse.md -docs/GetComment200Response.md -docs/GetCommentText200Response.md -docs/GetCommentVoteUserNames200Response.md +docs/GetCommentBanStatusResponse.md +docs/GetCommentTextResponse.md docs/GetCommentVoteUserNamesSuccessResponse.md -docs/GetComments200Response.md -docs/GetCommentsPublic200Response.md +docs/GetCommentsForUserResponse.md docs/GetCommentsResponsePublicComment.md docs/GetCommentsResponseWithPresencePublicComment.md -docs/GetDomainConfig200Response.md -docs/GetDomainConfigs200Response.md -docs/GetDomainConfigs200ResponseAnyOf.md -docs/GetDomainConfigs200ResponseAnyOf1.md -docs/GetEmailTemplate200Response.md -docs/GetEmailTemplateDefinitions200Response.md +docs/GetDomainConfigResponse.md +docs/GetDomainConfigsResponse.md +docs/GetDomainConfigsResponseAnyOf.md +docs/GetDomainConfigsResponseAnyOf1.md docs/GetEmailTemplateDefinitionsResponse.md -docs/GetEmailTemplateRenderErrors200Response.md docs/GetEmailTemplateRenderErrorsResponse.md docs/GetEmailTemplateResponse.md -docs/GetEmailTemplates200Response.md docs/GetEmailTemplatesResponse.md -docs/GetEventLog200Response.md docs/GetEventLogResponse.md -docs/GetFeedPosts200Response.md -docs/GetFeedPostsPublic200Response.md docs/GetFeedPostsResponse.md -docs/GetFeedPostsStats200Response.md -docs/GetHashTags200Response.md +docs/GetGifsSearchResponse.md +docs/GetGifsTrendingResponse.md docs/GetHashTagsResponse.md -docs/GetModerator200Response.md docs/GetModeratorResponse.md -docs/GetModerators200Response.md docs/GetModeratorsResponse.md docs/GetMyNotificationsResponse.md -docs/GetNotificationCount200Response.md docs/GetNotificationCountResponse.md -docs/GetNotifications200Response.md docs/GetNotificationsResponse.md docs/GetPageByURLIdAPIResponse.md docs/GetPagesAPIResponse.md -docs/GetPendingWebhookEventCount200Response.md docs/GetPendingWebhookEventCountResponse.md -docs/GetPendingWebhookEvents200Response.md docs/GetPendingWebhookEventsResponse.md docs/GetPublicFeedPostsResponse.md -docs/GetQuestionConfig200Response.md +docs/GetPublicPagesResponse.md docs/GetQuestionConfigResponse.md -docs/GetQuestionConfigs200Response.md docs/GetQuestionConfigsResponse.md -docs/GetQuestionResult200Response.md docs/GetQuestionResultResponse.md -docs/GetQuestionResults200Response.md docs/GetQuestionResultsResponse.md docs/GetSSOUserByEmailAPIResponse.md docs/GetSSOUserByIdAPIResponse.md -docs/GetSSOUsers200Response.md +docs/GetSSOUsersResponse.md docs/GetSubscriptionsAPIResponse.md -docs/GetTenant200Response.md -docs/GetTenantDailyUsages200Response.md docs/GetTenantDailyUsagesResponse.md -docs/GetTenantPackage200Response.md +docs/GetTenantManualBadgesResponse.md docs/GetTenantPackageResponse.md -docs/GetTenantPackages200Response.md docs/GetTenantPackagesResponse.md docs/GetTenantResponse.md -docs/GetTenantUser200Response.md docs/GetTenantUserResponse.md -docs/GetTenantUsers200Response.md docs/GetTenantUsersResponse.md -docs/GetTenants200Response.md docs/GetTenantsResponse.md -docs/GetTicket200Response.md docs/GetTicketResponse.md -docs/GetTickets200Response.md docs/GetTicketsResponse.md -docs/GetUser200Response.md -docs/GetUserBadge200Response.md -docs/GetUserBadgeProgressById200Response.md -docs/GetUserBadgeProgressList200Response.md -docs/GetUserBadges200Response.md -docs/GetUserNotificationCount200Response.md +docs/GetTranslationsResponse.md +docs/GetUserInternalProfileResponse.md +docs/GetUserInternalProfileResponseProfile.md +docs/GetUserManualBadgesResponse.md docs/GetUserNotificationCountResponse.md -docs/GetUserNotifications200Response.md -docs/GetUserPresenceStatuses200Response.md docs/GetUserPresenceStatusesResponse.md -docs/GetUserReactsPublic200Response.md docs/GetUserResponse.md -docs/GetVotes200Response.md -docs/GetVotesForUser200Response.md +docs/GetUserTrustFactorResponse.md +docs/GetV1PageLikes.md +docs/GetV2PageReactUsersResponse.md +docs/GetV2PageReacts.md docs/GetVotesForUserResponse.md docs/GetVotesResponse.md +docs/GifGetLargeResponse.md docs/GifRating.md +docs/GifSearchInternalError.md +docs/GifSearchResponse.md +docs/GifSearchResponseImagesInnerInner.md docs/HeaderAccountNotification.md docs/HeaderState.md docs/IgnoredResponse.md docs/ImageContentProfanityLevel.md +docs/ImportedAgentApprovalNotificationFrequency.md docs/ImportedSiteType.md docs/LiveEvent.md docs/LiveEventExtraInfo.md docs/LiveEventType.md -docs/LockComment200Response.md docs/MediaAsset.md docs/MentionAutoCompleteMode.md docs/MetaItem.md +docs/ModerationAPI.md +docs/ModerationAPIChildCommentsResponse.md +docs/ModerationAPIComment.md +docs/ModerationAPICommentLog.md +docs/ModerationAPICommentResponse.md +docs/ModerationAPICountCommentsResponse.md +docs/ModerationAPIGetCommentIdsResponse.md +docs/ModerationAPIGetCommentsResponse.md +docs/ModerationAPIGetLogsResponse.md +docs/ModerationCommentSearchResponse.md +docs/ModerationExportResponse.md +docs/ModerationExportStatusResponse.md +docs/ModerationFilter.md +docs/ModerationPageSearchProjected.md +docs/ModerationPageSearchResponse.md +docs/ModerationSiteSearchProjected.md +docs/ModerationSiteSearchResponse.md +docs/ModerationSuggestResponse.md +docs/ModerationUserSearchProjected.md +docs/ModerationUserSearchResponse.md docs/Moderator.md docs/NotificationAndCount.md docs/NotificationObjectType.md docs/NotificationType.md +docs/PageUserEntry.md +docs/PageUsersInfoResponse.md +docs/PageUsersOfflineResponse.md +docs/PageUsersOnlineResponse.md +docs/PagesSortBy.md docs/PatchDomainConfigParams.md -docs/PatchHashTag200Response.md +docs/PatchDomainConfigResponse.md docs/PatchPageAPIResponse.md docs/PatchSSOUserAPIResponse.md docs/PendingCommentToSyncOutbound.md -docs/PinComment200Response.md +docs/PostRemoveCommentResponse.md +docs/PreBanSummary.md docs/PubSubComment.md docs/PubSubCommentBase.md docs/PubSubVote.md @@ -281,7 +282,9 @@ docs/PublicBlockFromCommentParams.md docs/PublicComment.md docs/PublicCommentBase.md docs/PublicFeedPostsResponse.md +docs/PublicPage.md docs/PublicVote.md +docs/PutDomainConfigResponse.md docs/PutSSOUserAPIResponse.md docs/QueryPredicate.md docs/QueryPredicateValue.md @@ -294,11 +297,10 @@ docs/QuestionResultAggregationOverall.md docs/QuestionSubQuestionVisibility.md docs/QuestionWhenSave.md docs/ReactBodyParams.md -docs/ReactFeedPostPublic200Response.md docs/ReactFeedPostResponse.md docs/RecordStringBeforeStringOrNullAfterStringOrNullValue.md -docs/RecordStringStringOrNumberValue.md -docs/RenderEmailTemplate200Response.md +docs/RemoveCommentActionResponse.md +docs/RemoveUserBadgeResponse.md docs/RenderEmailTemplateBody.md docs/RenderEmailTemplateResponse.md docs/RenderableUserNotification.md @@ -306,26 +308,27 @@ docs/RepeatCommentCheckIgnoredReason.md docs/RepeatCommentHandlingAction.md docs/ReplaceTenantPackageBody.md docs/ReplaceTenantUserBody.md -docs/ResetUserNotifications200Response.md docs/ResetUserNotificationsResponse.md docs/SORTDIR.md docs/SSOSecurityLevel.md -docs/SaveComment200Response.md -docs/SaveCommentResponse.md docs/SaveCommentResponseOptimized.md +docs/SaveCommentsBulkResponse.md docs/SaveCommentsResponseWithPresence.md -docs/SearchUsers200Response.md docs/SearchUsersResponse.md +docs/SearchUsersResult.md docs/SearchUsersSectionedResponse.md -docs/SetCommentText200Response.md +docs/SetCommentApprovedResponse.md +docs/SetCommentTextParams.md +docs/SetCommentTextResponse.md docs/SetCommentTextResult.md +docs/SetUserTrustFactorResponse.md docs/SizePreset.md docs/SortDirections.md docs/SpamRule.md docs/TOSConfig.md +docs/TenantBadge.md docs/TenantHashTag.md docs/TenantPackage.md -docs/UnBlockCommentPublic200Response.md docs/UnBlockFromCommentParams.md docs/UnblockSuccess.md docs/UpdatableCommentParams.md @@ -345,9 +348,10 @@ docs/UpdateSubscriptionAPIResponse.md docs/UpdateTenantBody.md docs/UpdateTenantPackageBody.md docs/UpdateTenantUserBody.md -docs/UpdateUserBadge200Response.md docs/UpdateUserBadgeParams.md -docs/UpdateUserNotificationStatus200Response.md +docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md +docs/UpdateUserNotificationPageSubscriptionStatusResponse.md +docs/UpdateUserNotificationStatusResponse.md docs/UploadImageResponse.md docs/User.md docs/UserBadge.md @@ -361,8 +365,8 @@ docs/UserSearchResult.md docs/UserSearchSection.md docs/UserSearchSectionResult.md docs/UserSessionInfo.md +docs/UsersListLocation.md docs/VoteBodyParams.md -docs/VoteComment200Response.md docs/VoteDeleteResponse.md docs/VoteResponse.md docs/VoteResponseStatus.md @@ -371,16 +375,17 @@ docs/VoteStyle.md git_push.sh go.mod go.sum -model_add_domain_config_200_response.go -model_add_domain_config_200_response_any_of.go model_add_domain_config_params.go -model_add_hash_tag_200_response.go -model_add_hash_tags_bulk_200_response.go +model_add_domain_config_response.go +model_add_domain_config_response_any_of.go model_add_page_api_response.go model_add_sso_user_api_response.go -model_aggregate_question_results_200_response.go +model_adjust_comment_votes_params.go +model_adjust_votes_response.go model_aggregate_question_results_response.go +model_aggregate_response.go model_aggregate_time_bucket.go +model_aggregation_api_error.go model_aggregation_item.go model_aggregation_op_type.go model_aggregation_operation.go @@ -390,9 +395,14 @@ model_aggregation_response.go model_aggregation_response_stats.go model_aggregation_value.go model_api_audit_log.go +model_api_ban_user_change_log.go +model_api_ban_user_changed_values.go +model_api_banned_user.go +model_api_banned_user_with_multi_match_info.go model_api_comment.go model_api_comment_base.go model_api_comment_base_meta.go +model_api_comment_common_banned_user.go model_api_create_user_badge_response.go model_api_domain_configuration.go model_api_empty_response.go @@ -404,7 +414,10 @@ model_api_get_user_badge_progress_list_response.go model_api_get_user_badge_progress_response.go model_api_get_user_badge_response.go model_api_get_user_badges_response.go +model_api_moderate_get_user_ban_preferences_response.go +model_api_moderate_user_ban_preferences.go model_api_page.go +model_api_save_comment_response.go model_api_status.go model_api_tenant.go model_api_tenant_daily_usage.go @@ -413,24 +426,30 @@ model_api_ticket_detail.go model_api_ticket_file.go model_api_user_subscription.go model_apisso_user.go +model_award_user_badge_response.go +model_ban_user_from_comment_result.go +model_ban_user_undo_params.go +model_banned_user_match.go +model_banned_user_match_matched_on_value.go +model_banned_user_match_type.go model_billing_info.go model_block_from_comment_params.go -model_block_from_comment_public_200_response.go model_block_success.go +model_build_moderation_filter_params.go +model_build_moderation_filter_response.go model_bulk_aggregate_question_item.go -model_bulk_aggregate_question_results_200_response.go model_bulk_aggregate_question_results_request.go model_bulk_aggregate_question_results_response.go model_bulk_create_hash_tags_body.go model_bulk_create_hash_tags_body_tags_inner.go model_bulk_create_hash_tags_response.go +model_bulk_create_hash_tags_response_results_inner.go +model_bulk_pre_ban_params.go +model_bulk_pre_ban_summary.go model_change_comment_pin_status_response.go -model_change_ticket_state_200_response.go model_change_ticket_state_body.go model_change_ticket_state_response.go model_check_blocked_comments_response.go -model_checked_comments_for_blocked_200_response.go -model_combine_comments_with_question_results_200_response.go model_combine_question_results_with_comments_response.go model_comment_data.go model_comment_html_rendering_mode.go @@ -445,56 +464,42 @@ model_comment_user_badge_info.go model_comment_user_hash_tag_info.go model_comment_user_mention_info.go model_commenter_name_formats.go +model_comments_by_ids_params.go model_create_api_page_data.go model_create_api_user_subscription_data.go model_create_apisso_user_data.go model_create_comment_params.go -model_create_comment_public_200_response.go -model_create_email_template_200_response.go model_create_email_template_body.go model_create_email_template_response.go -model_create_feed_post_200_response.go model_create_feed_post_params.go -model_create_feed_post_public_200_response.go model_create_feed_post_response.go model_create_feed_posts_response.go model_create_hash_tag_body.go model_create_hash_tag_response.go -model_create_moderator_200_response.go model_create_moderator_body.go model_create_moderator_response.go -model_create_question_config_200_response.go model_create_question_config_body.go model_create_question_config_response.go -model_create_question_result_200_response.go model_create_question_result_body.go model_create_question_result_response.go model_create_subscription_api_response.go -model_create_tenant_200_response.go model_create_tenant_body.go -model_create_tenant_package_200_response.go model_create_tenant_package_body.go model_create_tenant_package_response.go model_create_tenant_response.go -model_create_tenant_user_200_response.go model_create_tenant_user_body.go model_create_tenant_user_response.go -model_create_ticket_200_response.go model_create_ticket_body.go model_create_ticket_response.go -model_create_user_badge_200_response.go model_create_user_badge_params.go +model_create_v1_page_react.go model_custom_config_parameters.go model_custom_email_template.go -model_delete_comment_200_response.go model_delete_comment_action.go -model_delete_comment_public_200_response.go model_delete_comment_result.go -model_delete_comment_vote_200_response.go -model_delete_domain_config_200_response.go -model_delete_feed_post_public_200_response.go -model_delete_feed_post_public_200_response_any_of.go -model_delete_hash_tag_request.go +model_delete_domain_config_response.go +model_delete_feed_post_public_response.go +model_delete_hash_tag_request_body.go model_delete_page_api_response.go model_delete_sso_user_api_response.go model_delete_subscription_api_response.go @@ -513,126 +518,124 @@ model_feed_post_stats.go model_feed_posts_stats_response.go model_find_comments_by_range_item.go model_find_comments_by_range_response.go -model_flag_comment_200_response.go -model_flag_comment_public_200_response.go model_flag_comment_response.go -model_get_audit_logs_200_response.go model_get_audit_logs_response.go -model_get_cached_notification_count_200_response.go +model_get_banned_users_count_response.go +model_get_banned_users_from_comment_response.go model_get_cached_notification_count_response.go -model_get_comment_200_response.go -model_get_comment_text_200_response.go -model_get_comment_vote_user_names_200_response.go +model_get_comment_ban_status_response.go +model_get_comment_text_response.go model_get_comment_vote_user_names_success_response.go -model_get_comments_200_response.go -model_get_comments_public_200_response.go +model_get_comments_for_user_response.go model_get_comments_response_public_comment_.go model_get_comments_response_with_presence_public_comment_.go -model_get_domain_config_200_response.go -model_get_domain_configs_200_response.go -model_get_domain_configs_200_response_any_of.go -model_get_domain_configs_200_response_any_of_1.go -model_get_email_template_200_response.go -model_get_email_template_definitions_200_response.go +model_get_domain_config_response.go +model_get_domain_configs_response.go +model_get_domain_configs_response_any_of.go +model_get_domain_configs_response_any_of_1.go model_get_email_template_definitions_response.go -model_get_email_template_render_errors_200_response.go model_get_email_template_render_errors_response.go model_get_email_template_response.go -model_get_email_templates_200_response.go model_get_email_templates_response.go -model_get_event_log_200_response.go model_get_event_log_response.go -model_get_feed_posts_200_response.go -model_get_feed_posts_public_200_response.go model_get_feed_posts_response.go -model_get_feed_posts_stats_200_response.go -model_get_hash_tags_200_response.go +model_get_gifs_search_response.go +model_get_gifs_trending_response.go model_get_hash_tags_response.go -model_get_moderator_200_response.go model_get_moderator_response.go -model_get_moderators_200_response.go model_get_moderators_response.go model_get_my_notifications_response.go -model_get_notification_count_200_response.go model_get_notification_count_response.go -model_get_notifications_200_response.go model_get_notifications_response.go model_get_page_by_urlid_api_response.go model_get_pages_api_response.go -model_get_pending_webhook_event_count_200_response.go model_get_pending_webhook_event_count_response.go -model_get_pending_webhook_events_200_response.go model_get_pending_webhook_events_response.go model_get_public_feed_posts_response.go -model_get_question_config_200_response.go +model_get_public_pages_response.go model_get_question_config_response.go -model_get_question_configs_200_response.go model_get_question_configs_response.go -model_get_question_result_200_response.go model_get_question_result_response.go -model_get_question_results_200_response.go model_get_question_results_response.go model_get_sso_user_by_email_api_response.go model_get_sso_user_by_id_api_response.go -model_get_sso_users_200_response.go +model_get_sso_users_response.go model_get_subscriptions_api_response.go -model_get_tenant_200_response.go -model_get_tenant_daily_usages_200_response.go model_get_tenant_daily_usages_response.go -model_get_tenant_package_200_response.go +model_get_tenant_manual_badges_response.go model_get_tenant_package_response.go -model_get_tenant_packages_200_response.go model_get_tenant_packages_response.go model_get_tenant_response.go -model_get_tenant_user_200_response.go model_get_tenant_user_response.go -model_get_tenant_users_200_response.go model_get_tenant_users_response.go -model_get_tenants_200_response.go model_get_tenants_response.go -model_get_ticket_200_response.go model_get_ticket_response.go -model_get_tickets_200_response.go model_get_tickets_response.go -model_get_user_200_response.go -model_get_user_badge_200_response.go -model_get_user_badge_progress_by_id_200_response.go -model_get_user_badge_progress_list_200_response.go -model_get_user_badges_200_response.go -model_get_user_notification_count_200_response.go +model_get_translations_response.go +model_get_user_internal_profile_response.go +model_get_user_internal_profile_response_profile.go +model_get_user_manual_badges_response.go model_get_user_notification_count_response.go -model_get_user_notifications_200_response.go -model_get_user_presence_statuses_200_response.go model_get_user_presence_statuses_response.go -model_get_user_reacts_public_200_response.go model_get_user_response.go -model_get_votes_200_response.go -model_get_votes_for_user_200_response.go +model_get_user_trust_factor_response.go +model_get_v1_page_likes.go +model_get_v2_page_react_users_response.go +model_get_v2_page_reacts.go model_get_votes_for_user_response.go model_get_votes_response.go +model_gif_get_large_response.go model_gif_rating.go +model_gif_search_internal_error.go +model_gif_search_response.go +model_gif_search_response_images_inner_inner.go model_header_account_notification.go model_header_state.go model_ignored_response.go model_image_content_profanity_level.go +model_imported_agent_approval_notification_frequency.go model_imported_site_type.go model_live_event.go model_live_event_extra_info.go model_live_event_type.go -model_lock_comment_200_response.go model_media_asset.go model_mention_auto_complete_mode.go model_meta_item.go +model_moderation_api_child_comments_response.go +model_moderation_api_comment.go +model_moderation_api_comment_log.go +model_moderation_api_comment_response.go +model_moderation_api_count_comments_response.go +model_moderation_api_get_comment_ids_response.go +model_moderation_api_get_comments_response.go +model_moderation_api_get_logs_response.go +model_moderation_comment_search_response.go +model_moderation_export_response.go +model_moderation_export_status_response.go +model_moderation_filter.go +model_moderation_page_search_projected.go +model_moderation_page_search_response.go +model_moderation_site_search_projected.go +model_moderation_site_search_response.go +model_moderation_suggest_response.go +model_moderation_user_search_projected.go +model_moderation_user_search_response.go model_moderator.go model_notification_and_count.go model_notification_object_type.go model_notification_type.go +model_page_user_entry.go +model_page_users_info_response.go +model_page_users_offline_response.go +model_page_users_online_response.go +model_pages_sort_by.go model_patch_domain_config_params.go -model_patch_hash_tag_200_response.go +model_patch_domain_config_response.go model_patch_page_api_response.go model_patch_sso_user_api_response.go model_pending_comment_to_sync_outbound.go -model_pin_comment_200_response.go +model_post_remove_comment_response.go +model_pre_ban_summary.go model_pub_sub_comment.go model_pub_sub_comment_base.go model_pub_sub_vote.go @@ -643,7 +646,9 @@ model_public_block_from_comment_params.go model_public_comment.go model_public_comment_base.go model_public_feed_posts_response.go +model_public_page.go model_public_vote.go +model_put_domain_config_response.go model_put_sso_user_api_response.go model_query_predicate.go model_query_predicate_value.go @@ -656,11 +661,10 @@ model_question_result_aggregation_overall.go model_question_sub_question_visibility.go model_question_when_save.go model_react_body_params.go -model_react_feed_post_public_200_response.go model_react_feed_post_response.go model_record_string__before_string_or_null__after_string_or_null___value.go -model_record_string_string_or_number__value.go -model_render_email_template_200_response.go +model_remove_comment_action_response.go +model_remove_user_badge_response.go model_render_email_template_body.go model_render_email_template_response.go model_renderable_user_notification.go @@ -668,26 +672,27 @@ model_repeat_comment_check_ignored_reason.go model_repeat_comment_handling_action.go model_replace_tenant_package_body.go model_replace_tenant_user_body.go -model_reset_user_notifications_200_response.go model_reset_user_notifications_response.go -model_save_comment_200_response.go -model_save_comment_response.go model_save_comment_response_optimized.go +model_save_comments_bulk_response.go model_save_comments_response_with_presence.go -model_search_users_200_response.go model_search_users_response.go +model_search_users_result.go model_search_users_sectioned_response.go -model_set_comment_text_200_response.go +model_set_comment_approved_response.go +model_set_comment_text_params.go +model_set_comment_text_response.go model_set_comment_text_result.go +model_set_user_trust_factor_response.go model_size_preset.go model_sort_dir.go model_sort_directions.go model_spam_rule.go model_sso_security_level.go +model_tenant_badge.go model_tenant_hash_tag.go model_tenant_package.go model_tos_config.go -model_un_block_comment_public_200_response.go model_un_block_from_comment_params.go model_unblock_success.go model_updatable_comment_params.go @@ -707,9 +712,10 @@ model_update_subscription_api_response.go model_update_tenant_body.go model_update_tenant_package_body.go model_update_tenant_user_body.go -model_update_user_badge_200_response.go model_update_user_badge_params.go -model_update_user_notification_status_200_response.go +model_update_user_notification_comment_subscription_status_response.go +model_update_user_notification_page_subscription_status_response.go +model_update_user_notification_status_response.go model_upload_image_response.go model_user.go model_user_badge.go @@ -723,8 +729,8 @@ model_user_search_result.go model_user_search_section.go model_user_search_section_result.go model_user_session_info.go +model_users_list_location.go model_vote_body_params.go -model_vote_comment_200_response.go model_vote_delete_response.go model_vote_response.go model_vote_response_status.go @@ -732,5 +738,6 @@ model_vote_response_user.go model_vote_style.go response.go test/api_default_test.go +test/api_moderation_test.go test/api_public_test.go utils.go diff --git a/client/README.md b/client/README.md index 4ac5aef..354d2a9 100644 --- a/client/README.md +++ b/client/README.md @@ -6,7 +6,7 @@ No description provided (generated by Openapi Generator https://github.com/opena This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 0.0.0 -- Package version: 1.2.0 +- Package version: 1.2.1 - Generator version: 7.14.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen @@ -192,26 +192,86 @@ Class | Method | HTTP request | Description *DefaultAPI* | [**UpdateTenantPackage**](docs/DefaultAPI.md#updatetenantpackage) | **Patch** /api/v1/tenant-packages/{id} | *DefaultAPI* | [**UpdateTenantUser**](docs/DefaultAPI.md#updatetenantuser) | **Patch** /api/v1/tenant-users/{id} | *DefaultAPI* | [**UpdateUserBadge**](docs/DefaultAPI.md#updateuserbadge) | **Put** /api/v1/user-badges/{id} | +*ModerationAPI* | [**DeleteModerationVote**](docs/ModerationAPI.md#deletemoderationvote) | **Delete** /auth/my-account/moderate-comments/vote/{commentId}/{voteId} | +*ModerationAPI* | [**GetApiComments**](docs/ModerationAPI.md#getapicomments) | **Get** /auth/my-account/moderate-comments/api/comments | +*ModerationAPI* | [**GetApiExportStatus**](docs/ModerationAPI.md#getapiexportstatus) | **Get** /auth/my-account/moderate-comments/api/export/status | +*ModerationAPI* | [**GetApiIds**](docs/ModerationAPI.md#getapiids) | **Get** /auth/my-account/moderate-comments/api/ids | +*ModerationAPI* | [**GetBanUsersFromComment**](docs/ModerationAPI.md#getbanusersfromcomment) | **Get** /auth/my-account/moderate-comments/ban-users/from-comment/{commentId} | +*ModerationAPI* | [**GetCommentBanStatus**](docs/ModerationAPI.md#getcommentbanstatus) | **Get** /auth/my-account/moderate-comments/get-comment-ban-status/{commentId} | +*ModerationAPI* | [**GetCommentChildren**](docs/ModerationAPI.md#getcommentchildren) | **Get** /auth/my-account/moderate-comments/comment-children/{commentId} | +*ModerationAPI* | [**GetCount**](docs/ModerationAPI.md#getcount) | **Get** /auth/my-account/moderate-comments/count | +*ModerationAPI* | [**GetCounts**](docs/ModerationAPI.md#getcounts) | **Get** /auth/my-account/moderate-comments/banned-users/counts | +*ModerationAPI* | [**GetLogs**](docs/ModerationAPI.md#getlogs) | **Get** /auth/my-account/moderate-comments/logs/{commentId} | +*ModerationAPI* | [**GetManualBadges**](docs/ModerationAPI.md#getmanualbadges) | **Get** /auth/my-account/moderate-comments/get-manual-badges | +*ModerationAPI* | [**GetManualBadgesForUser**](docs/ModerationAPI.md#getmanualbadgesforuser) | **Get** /auth/my-account/moderate-comments/get-manual-badges-for-user | +*ModerationAPI* | [**GetModerationComment**](docs/ModerationAPI.md#getmoderationcomment) | **Get** /auth/my-account/moderate-comments/comment/{commentId} | +*ModerationAPI* | [**GetModerationCommentText**](docs/ModerationAPI.md#getmoderationcommenttext) | **Get** /auth/my-account/moderate-comments/get-comment-text/{commentId} | +*ModerationAPI* | [**GetPreBanSummary**](docs/ModerationAPI.md#getprebansummary) | **Get** /auth/my-account/moderate-comments/pre-ban-summary/{commentId} | +*ModerationAPI* | [**GetSearchCommentsSummary**](docs/ModerationAPI.md#getsearchcommentssummary) | **Get** /auth/my-account/moderate-comments/search/comments/summary | +*ModerationAPI* | [**GetSearchPages**](docs/ModerationAPI.md#getsearchpages) | **Get** /auth/my-account/moderate-comments/search/pages | +*ModerationAPI* | [**GetSearchSites**](docs/ModerationAPI.md#getsearchsites) | **Get** /auth/my-account/moderate-comments/search/sites | +*ModerationAPI* | [**GetSearchSuggest**](docs/ModerationAPI.md#getsearchsuggest) | **Get** /auth/my-account/moderate-comments/search/suggest | +*ModerationAPI* | [**GetSearchUsers**](docs/ModerationAPI.md#getsearchusers) | **Get** /auth/my-account/moderate-comments/search/users | +*ModerationAPI* | [**GetTrustFactor**](docs/ModerationAPI.md#gettrustfactor) | **Get** /auth/my-account/moderate-comments/get-trust-factor | +*ModerationAPI* | [**GetUserBanPreference**](docs/ModerationAPI.md#getuserbanpreference) | **Get** /auth/my-account/moderate-comments/user-ban-preference | +*ModerationAPI* | [**GetUserInternalProfile**](docs/ModerationAPI.md#getuserinternalprofile) | **Get** /auth/my-account/moderate-comments/get-user-internal-profile | +*ModerationAPI* | [**PostAdjustCommentVotes**](docs/ModerationAPI.md#postadjustcommentvotes) | **Post** /auth/my-account/moderate-comments/adjust-comment-votes/{commentId} | +*ModerationAPI* | [**PostApiExport**](docs/ModerationAPI.md#postapiexport) | **Post** /auth/my-account/moderate-comments/api/export | +*ModerationAPI* | [**PostBanUserFromComment**](docs/ModerationAPI.md#postbanuserfromcomment) | **Post** /auth/my-account/moderate-comments/ban-user/from-comment/{commentId} | +*ModerationAPI* | [**PostBanUserUndo**](docs/ModerationAPI.md#postbanuserundo) | **Post** /auth/my-account/moderate-comments/ban-user/undo | +*ModerationAPI* | [**PostBulkPreBanSummary**](docs/ModerationAPI.md#postbulkprebansummary) | **Post** /auth/my-account/moderate-comments/bulk-pre-ban-summary | +*ModerationAPI* | [**PostCommentsByIds**](docs/ModerationAPI.md#postcommentsbyids) | **Post** /auth/my-account/moderate-comments/comments-by-ids | +*ModerationAPI* | [**PostFlagComment**](docs/ModerationAPI.md#postflagcomment) | **Post** /auth/my-account/moderate-comments/flag-comment/{commentId} | +*ModerationAPI* | [**PostRemoveComment**](docs/ModerationAPI.md#postremovecomment) | **Post** /auth/my-account/moderate-comments/remove-comment/{commentId} | +*ModerationAPI* | [**PostRestoreDeletedComment**](docs/ModerationAPI.md#postrestoredeletedcomment) | **Post** /auth/my-account/moderate-comments/restore-deleted-comment/{commentId} | +*ModerationAPI* | [**PostSetCommentApprovalStatus**](docs/ModerationAPI.md#postsetcommentapprovalstatus) | **Post** /auth/my-account/moderate-comments/set-comment-approval-status/{commentId} | +*ModerationAPI* | [**PostSetCommentReviewStatus**](docs/ModerationAPI.md#postsetcommentreviewstatus) | **Post** /auth/my-account/moderate-comments/set-comment-review-status/{commentId} | +*ModerationAPI* | [**PostSetCommentSpamStatus**](docs/ModerationAPI.md#postsetcommentspamstatus) | **Post** /auth/my-account/moderate-comments/set-comment-spam-status/{commentId} | +*ModerationAPI* | [**PostSetCommentText**](docs/ModerationAPI.md#postsetcommenttext) | **Post** /auth/my-account/moderate-comments/set-comment-text/{commentId} | +*ModerationAPI* | [**PostUnFlagComment**](docs/ModerationAPI.md#postunflagcomment) | **Post** /auth/my-account/moderate-comments/un-flag-comment/{commentId} | +*ModerationAPI* | [**PostVote**](docs/ModerationAPI.md#postvote) | **Post** /auth/my-account/moderate-comments/vote/{commentId} | +*ModerationAPI* | [**PutAwardBadge**](docs/ModerationAPI.md#putawardbadge) | **Put** /auth/my-account/moderate-comments/award-badge | +*ModerationAPI* | [**PutCloseThread**](docs/ModerationAPI.md#putclosethread) | **Put** /auth/my-account/moderate-comments/close-thread | +*ModerationAPI* | [**PutRemoveBadge**](docs/ModerationAPI.md#putremovebadge) | **Put** /auth/my-account/moderate-comments/remove-badge | +*ModerationAPI* | [**PutReopenThread**](docs/ModerationAPI.md#putreopenthread) | **Put** /auth/my-account/moderate-comments/reopen-thread | +*ModerationAPI* | [**SetTrustFactor**](docs/ModerationAPI.md#settrustfactor) | **Put** /auth/my-account/moderate-comments/set-trust-factor | *PublicAPI* | [**BlockFromCommentPublic**](docs/PublicAPI.md#blockfromcommentpublic) | **Post** /block-from-comment/{commentId} | *PublicAPI* | [**CheckedCommentsForBlocked**](docs/PublicAPI.md#checkedcommentsforblocked) | **Get** /check-blocked-comments | *PublicAPI* | [**CreateCommentPublic**](docs/PublicAPI.md#createcommentpublic) | **Post** /comments/{tenantId} | *PublicAPI* | [**CreateFeedPostPublic**](docs/PublicAPI.md#createfeedpostpublic) | **Post** /feed-posts/{tenantId} | +*PublicAPI* | [**CreateV1PageReact**](docs/PublicAPI.md#createv1pagereact) | **Post** /page-reacts/v1/likes/{tenantId} | +*PublicAPI* | [**CreateV2PageReact**](docs/PublicAPI.md#createv2pagereact) | **Post** /page-reacts/v2/{tenantId} | *PublicAPI* | [**DeleteCommentPublic**](docs/PublicAPI.md#deletecommentpublic) | **Delete** /comments/{tenantId}/{commentId} | *PublicAPI* | [**DeleteCommentVote**](docs/PublicAPI.md#deletecommentvote) | **Delete** /comments/{tenantId}/{commentId}/vote/{voteId} | *PublicAPI* | [**DeleteFeedPostPublic**](docs/PublicAPI.md#deletefeedpostpublic) | **Delete** /feed-posts/{tenantId}/{postId} | +*PublicAPI* | [**DeleteV1PageReact**](docs/PublicAPI.md#deletev1pagereact) | **Delete** /page-reacts/v1/likes/{tenantId} | +*PublicAPI* | [**DeleteV2PageReact**](docs/PublicAPI.md#deletev2pagereact) | **Delete** /page-reacts/v2/{tenantId} | *PublicAPI* | [**FlagCommentPublic**](docs/PublicAPI.md#flagcommentpublic) | **Post** /flag-comment/{commentId} | *PublicAPI* | [**GetCommentText**](docs/PublicAPI.md#getcommenttext) | **Get** /comments/{tenantId}/{commentId}/text | *PublicAPI* | [**GetCommentVoteUserNames**](docs/PublicAPI.md#getcommentvoteusernames) | **Get** /comments/{tenantId}/{commentId}/votes | +*PublicAPI* | [**GetCommentsForUser**](docs/PublicAPI.md#getcommentsforuser) | **Get** /comments-for-user | *PublicAPI* | [**GetCommentsPublic**](docs/PublicAPI.md#getcommentspublic) | **Get** /comments/{tenantId} | *PublicAPI* | [**GetEventLog**](docs/PublicAPI.md#geteventlog) | **Get** /event-log/{tenantId} | *PublicAPI* | [**GetFeedPostsPublic**](docs/PublicAPI.md#getfeedpostspublic) | **Get** /feed-posts/{tenantId} | *PublicAPI* | [**GetFeedPostsStats**](docs/PublicAPI.md#getfeedpostsstats) | **Get** /feed-posts/{tenantId}/stats | +*PublicAPI* | [**GetGifLarge**](docs/PublicAPI.md#getgiflarge) | **Get** /gifs/get-large/{tenantId} | +*PublicAPI* | [**GetGifsSearch**](docs/PublicAPI.md#getgifssearch) | **Get** /gifs/search/{tenantId} | +*PublicAPI* | [**GetGifsTrending**](docs/PublicAPI.md#getgifstrending) | **Get** /gifs/trending/{tenantId} | *PublicAPI* | [**GetGlobalEventLog**](docs/PublicAPI.md#getglobaleventlog) | **Get** /event-log/global/{tenantId} | +*PublicAPI* | [**GetOfflineUsers**](docs/PublicAPI.md#getofflineusers) | **Get** /pages/{tenantId}/users/offline | +*PublicAPI* | [**GetOnlineUsers**](docs/PublicAPI.md#getonlineusers) | **Get** /pages/{tenantId}/users/online | +*PublicAPI* | [**GetPagesPublic**](docs/PublicAPI.md#getpagespublic) | **Get** /pages/{tenantId} | +*PublicAPI* | [**GetTranslations**](docs/PublicAPI.md#gettranslations) | **Get** /translations/{namespace}/{component} | *PublicAPI* | [**GetUserNotificationCount**](docs/PublicAPI.md#getusernotificationcount) | **Get** /user-notifications/get-count | *PublicAPI* | [**GetUserNotifications**](docs/PublicAPI.md#getusernotifications) | **Get** /user-notifications | *PublicAPI* | [**GetUserPresenceStatuses**](docs/PublicAPI.md#getuserpresencestatuses) | **Get** /user-presence-status | *PublicAPI* | [**GetUserReactsPublic**](docs/PublicAPI.md#getuserreactspublic) | **Get** /feed-posts/{tenantId}/user-reacts | +*PublicAPI* | [**GetUsersInfo**](docs/PublicAPI.md#getusersinfo) | **Get** /pages/{tenantId}/users/info | +*PublicAPI* | [**GetV1PageLikes**](docs/PublicAPI.md#getv1pagelikes) | **Get** /page-reacts/v1/likes/{tenantId} | +*PublicAPI* | [**GetV2PageReactUsers**](docs/PublicAPI.md#getv2pagereactusers) | **Get** /page-reacts/v2/{tenantId}/list | +*PublicAPI* | [**GetV2PageReacts**](docs/PublicAPI.md#getv2pagereacts) | **Get** /page-reacts/v2/{tenantId} | *PublicAPI* | [**LockComment**](docs/PublicAPI.md#lockcomment) | **Post** /comments/{tenantId}/{commentId}/lock | +*PublicAPI* | [**LogoutPublic**](docs/PublicAPI.md#logoutpublic) | **Put** /auth/logout | *PublicAPI* | [**PinComment**](docs/PublicAPI.md#pincomment) | **Post** /comments/{tenantId}/{commentId}/pin | *PublicAPI* | [**ReactFeedPostPublic**](docs/PublicAPI.md#reactfeedpostpublic) | **Post** /feed-posts/{tenantId}/react/{postId} | *PublicAPI* | [**ResetUserNotificationCount**](docs/PublicAPI.md#resetusernotificationcount) | **Post** /user-notifications/reset-count | @@ -232,9 +292,14 @@ Class | Method | HTTP request | Description ## Documentation For Models - [APIAuditLog](docs/APIAuditLog.md) + - [APIBanUserChangeLog](docs/APIBanUserChangeLog.md) + - [APIBanUserChangedValues](docs/APIBanUserChangedValues.md) + - [APIBannedUser](docs/APIBannedUser.md) + - [APIBannedUserWithMultiMatchInfo](docs/APIBannedUserWithMultiMatchInfo.md) - [APIComment](docs/APIComment.md) - [APICommentBase](docs/APICommentBase.md) - [APICommentBaseMeta](docs/APICommentBaseMeta.md) + - [APICommentCommonBannedUser](docs/APICommentCommonBannedUser.md) - [APICreateUserBadgeResponse](docs/APICreateUserBadgeResponse.md) - [APIDomainConfiguration](docs/APIDomainConfiguration.md) - [APIEmptyResponse](docs/APIEmptyResponse.md) @@ -246,8 +311,11 @@ Class | Method | HTTP request | Description - [APIGetUserBadgeProgressResponse](docs/APIGetUserBadgeProgressResponse.md) - [APIGetUserBadgeResponse](docs/APIGetUserBadgeResponse.md) - [APIGetUserBadgesResponse](docs/APIGetUserBadgesResponse.md) + - [APIModerateGetUserBanPreferencesResponse](docs/APIModerateGetUserBanPreferencesResponse.md) + - [APIModerateUserBanPreferences](docs/APIModerateUserBanPreferences.md) - [APIPage](docs/APIPage.md) - [APISSOUser](docs/APISSOUser.md) + - [APISaveCommentResponse](docs/APISaveCommentResponse.md) - [APIStatus](docs/APIStatus.md) - [APITenant](docs/APITenant.md) - [APITenantDailyUsage](docs/APITenantDailyUsage.md) @@ -255,16 +323,17 @@ Class | Method | HTTP request | Description - [APITicketDetail](docs/APITicketDetail.md) - [APITicketFile](docs/APITicketFile.md) - [APIUserSubscription](docs/APIUserSubscription.md) - - [AddDomainConfig200Response](docs/AddDomainConfig200Response.md) - - [AddDomainConfig200ResponseAnyOf](docs/AddDomainConfig200ResponseAnyOf.md) - [AddDomainConfigParams](docs/AddDomainConfigParams.md) - - [AddHashTag200Response](docs/AddHashTag200Response.md) - - [AddHashTagsBulk200Response](docs/AddHashTagsBulk200Response.md) + - [AddDomainConfigResponse](docs/AddDomainConfigResponse.md) + - [AddDomainConfigResponseAnyOf](docs/AddDomainConfigResponseAnyOf.md) - [AddPageAPIResponse](docs/AddPageAPIResponse.md) - [AddSSOUserAPIResponse](docs/AddSSOUserAPIResponse.md) - - [AggregateQuestionResults200Response](docs/AggregateQuestionResults200Response.md) + - [AdjustCommentVotesParams](docs/AdjustCommentVotesParams.md) + - [AdjustVotesResponse](docs/AdjustVotesResponse.md) - [AggregateQuestionResultsResponse](docs/AggregateQuestionResultsResponse.md) + - [AggregateResponse](docs/AggregateResponse.md) - [AggregateTimeBucket](docs/AggregateTimeBucket.md) + - [AggregationAPIError](docs/AggregationAPIError.md) - [AggregationItem](docs/AggregationItem.md) - [AggregationOpType](docs/AggregationOpType.md) - [AggregationOperation](docs/AggregationOperation.md) @@ -273,24 +342,30 @@ Class | Method | HTTP request | Description - [AggregationResponse](docs/AggregationResponse.md) - [AggregationResponseStats](docs/AggregationResponseStats.md) - [AggregationValue](docs/AggregationValue.md) + - [AwardUserBadgeResponse](docs/AwardUserBadgeResponse.md) + - [BanUserFromCommentResult](docs/BanUserFromCommentResult.md) + - [BanUserUndoParams](docs/BanUserUndoParams.md) + - [BannedUserMatch](docs/BannedUserMatch.md) + - [BannedUserMatchMatchedOnValue](docs/BannedUserMatchMatchedOnValue.md) + - [BannedUserMatchType](docs/BannedUserMatchType.md) - [BillingInfo](docs/BillingInfo.md) - [BlockFromCommentParams](docs/BlockFromCommentParams.md) - - [BlockFromCommentPublic200Response](docs/BlockFromCommentPublic200Response.md) - [BlockSuccess](docs/BlockSuccess.md) + - [BuildModerationFilterParams](docs/BuildModerationFilterParams.md) + - [BuildModerationFilterResponse](docs/BuildModerationFilterResponse.md) - [BulkAggregateQuestionItem](docs/BulkAggregateQuestionItem.md) - - [BulkAggregateQuestionResults200Response](docs/BulkAggregateQuestionResults200Response.md) - [BulkAggregateQuestionResultsRequest](docs/BulkAggregateQuestionResultsRequest.md) - [BulkAggregateQuestionResultsResponse](docs/BulkAggregateQuestionResultsResponse.md) - [BulkCreateHashTagsBody](docs/BulkCreateHashTagsBody.md) - [BulkCreateHashTagsBodyTagsInner](docs/BulkCreateHashTagsBodyTagsInner.md) - [BulkCreateHashTagsResponse](docs/BulkCreateHashTagsResponse.md) + - [BulkCreateHashTagsResponseResultsInner](docs/BulkCreateHashTagsResponseResultsInner.md) + - [BulkPreBanParams](docs/BulkPreBanParams.md) + - [BulkPreBanSummary](docs/BulkPreBanSummary.md) - [ChangeCommentPinStatusResponse](docs/ChangeCommentPinStatusResponse.md) - - [ChangeTicketState200Response](docs/ChangeTicketState200Response.md) - [ChangeTicketStateBody](docs/ChangeTicketStateBody.md) - [ChangeTicketStateResponse](docs/ChangeTicketStateResponse.md) - [CheckBlockedCommentsResponse](docs/CheckBlockedCommentsResponse.md) - - [CheckedCommentsForBlocked200Response](docs/CheckedCommentsForBlocked200Response.md) - - [CombineCommentsWithQuestionResults200Response](docs/CombineCommentsWithQuestionResults200Response.md) - [CombineQuestionResultsWithCommentsResponse](docs/CombineQuestionResultsWithCommentsResponse.md) - [CommentData](docs/CommentData.md) - [CommentHTMLRenderingMode](docs/CommentHTMLRenderingMode.md) @@ -305,56 +380,42 @@ Class | Method | HTTP request | Description - [CommentUserHashTagInfo](docs/CommentUserHashTagInfo.md) - [CommentUserMentionInfo](docs/CommentUserMentionInfo.md) - [CommenterNameFormats](docs/CommenterNameFormats.md) + - [CommentsByIdsParams](docs/CommentsByIdsParams.md) - [CreateAPIPageData](docs/CreateAPIPageData.md) - [CreateAPISSOUserData](docs/CreateAPISSOUserData.md) - [CreateAPIUserSubscriptionData](docs/CreateAPIUserSubscriptionData.md) - [CreateCommentParams](docs/CreateCommentParams.md) - - [CreateCommentPublic200Response](docs/CreateCommentPublic200Response.md) - - [CreateEmailTemplate200Response](docs/CreateEmailTemplate200Response.md) - [CreateEmailTemplateBody](docs/CreateEmailTemplateBody.md) - [CreateEmailTemplateResponse](docs/CreateEmailTemplateResponse.md) - - [CreateFeedPost200Response](docs/CreateFeedPost200Response.md) - [CreateFeedPostParams](docs/CreateFeedPostParams.md) - - [CreateFeedPostPublic200Response](docs/CreateFeedPostPublic200Response.md) - [CreateFeedPostResponse](docs/CreateFeedPostResponse.md) - [CreateFeedPostsResponse](docs/CreateFeedPostsResponse.md) - [CreateHashTagBody](docs/CreateHashTagBody.md) - [CreateHashTagResponse](docs/CreateHashTagResponse.md) - - [CreateModerator200Response](docs/CreateModerator200Response.md) - [CreateModeratorBody](docs/CreateModeratorBody.md) - [CreateModeratorResponse](docs/CreateModeratorResponse.md) - - [CreateQuestionConfig200Response](docs/CreateQuestionConfig200Response.md) - [CreateQuestionConfigBody](docs/CreateQuestionConfigBody.md) - [CreateQuestionConfigResponse](docs/CreateQuestionConfigResponse.md) - - [CreateQuestionResult200Response](docs/CreateQuestionResult200Response.md) - [CreateQuestionResultBody](docs/CreateQuestionResultBody.md) - [CreateQuestionResultResponse](docs/CreateQuestionResultResponse.md) - [CreateSubscriptionAPIResponse](docs/CreateSubscriptionAPIResponse.md) - - [CreateTenant200Response](docs/CreateTenant200Response.md) - [CreateTenantBody](docs/CreateTenantBody.md) - - [CreateTenantPackage200Response](docs/CreateTenantPackage200Response.md) - [CreateTenantPackageBody](docs/CreateTenantPackageBody.md) - [CreateTenantPackageResponse](docs/CreateTenantPackageResponse.md) - [CreateTenantResponse](docs/CreateTenantResponse.md) - - [CreateTenantUser200Response](docs/CreateTenantUser200Response.md) - [CreateTenantUserBody](docs/CreateTenantUserBody.md) - [CreateTenantUserResponse](docs/CreateTenantUserResponse.md) - - [CreateTicket200Response](docs/CreateTicket200Response.md) - [CreateTicketBody](docs/CreateTicketBody.md) - [CreateTicketResponse](docs/CreateTicketResponse.md) - - [CreateUserBadge200Response](docs/CreateUserBadge200Response.md) - [CreateUserBadgeParams](docs/CreateUserBadgeParams.md) + - [CreateV1PageReact](docs/CreateV1PageReact.md) - [CustomConfigParameters](docs/CustomConfigParameters.md) - [CustomEmailTemplate](docs/CustomEmailTemplate.md) - - [DeleteComment200Response](docs/DeleteComment200Response.md) - [DeleteCommentAction](docs/DeleteCommentAction.md) - - [DeleteCommentPublic200Response](docs/DeleteCommentPublic200Response.md) - [DeleteCommentResult](docs/DeleteCommentResult.md) - - [DeleteCommentVote200Response](docs/DeleteCommentVote200Response.md) - - [DeleteDomainConfig200Response](docs/DeleteDomainConfig200Response.md) - - [DeleteFeedPostPublic200Response](docs/DeleteFeedPostPublic200Response.md) - - [DeleteFeedPostPublic200ResponseAnyOf](docs/DeleteFeedPostPublic200ResponseAnyOf.md) - - [DeleteHashTagRequest](docs/DeleteHashTagRequest.md) + - [DeleteDomainConfigResponse](docs/DeleteDomainConfigResponse.md) + - [DeleteFeedPostPublicResponse](docs/DeleteFeedPostPublicResponse.md) + - [DeleteHashTagRequestBody](docs/DeleteHashTagRequestBody.md) - [DeletePageAPIResponse](docs/DeletePageAPIResponse.md) - [DeleteSSOUserAPIResponse](docs/DeleteSSOUserAPIResponse.md) - [DeleteSubscriptionAPIResponse](docs/DeleteSubscriptionAPIResponse.md) @@ -373,126 +434,124 @@ Class | Method | HTTP request | Description - [FeedPostsStatsResponse](docs/FeedPostsStatsResponse.md) - [FindCommentsByRangeItem](docs/FindCommentsByRangeItem.md) - [FindCommentsByRangeResponse](docs/FindCommentsByRangeResponse.md) - - [FlagComment200Response](docs/FlagComment200Response.md) - - [FlagCommentPublic200Response](docs/FlagCommentPublic200Response.md) - [FlagCommentResponse](docs/FlagCommentResponse.md) - - [GetAuditLogs200Response](docs/GetAuditLogs200Response.md) - [GetAuditLogsResponse](docs/GetAuditLogsResponse.md) - - [GetCachedNotificationCount200Response](docs/GetCachedNotificationCount200Response.md) + - [GetBannedUsersCountResponse](docs/GetBannedUsersCountResponse.md) + - [GetBannedUsersFromCommentResponse](docs/GetBannedUsersFromCommentResponse.md) - [GetCachedNotificationCountResponse](docs/GetCachedNotificationCountResponse.md) - - [GetComment200Response](docs/GetComment200Response.md) - - [GetCommentText200Response](docs/GetCommentText200Response.md) - - [GetCommentVoteUserNames200Response](docs/GetCommentVoteUserNames200Response.md) + - [GetCommentBanStatusResponse](docs/GetCommentBanStatusResponse.md) + - [GetCommentTextResponse](docs/GetCommentTextResponse.md) - [GetCommentVoteUserNamesSuccessResponse](docs/GetCommentVoteUserNamesSuccessResponse.md) - - [GetComments200Response](docs/GetComments200Response.md) - - [GetCommentsPublic200Response](docs/GetCommentsPublic200Response.md) + - [GetCommentsForUserResponse](docs/GetCommentsForUserResponse.md) - [GetCommentsResponsePublicComment](docs/GetCommentsResponsePublicComment.md) - [GetCommentsResponseWithPresencePublicComment](docs/GetCommentsResponseWithPresencePublicComment.md) - - [GetDomainConfig200Response](docs/GetDomainConfig200Response.md) - - [GetDomainConfigs200Response](docs/GetDomainConfigs200Response.md) - - [GetDomainConfigs200ResponseAnyOf](docs/GetDomainConfigs200ResponseAnyOf.md) - - [GetDomainConfigs200ResponseAnyOf1](docs/GetDomainConfigs200ResponseAnyOf1.md) - - [GetEmailTemplate200Response](docs/GetEmailTemplate200Response.md) - - [GetEmailTemplateDefinitions200Response](docs/GetEmailTemplateDefinitions200Response.md) + - [GetDomainConfigResponse](docs/GetDomainConfigResponse.md) + - [GetDomainConfigsResponse](docs/GetDomainConfigsResponse.md) + - [GetDomainConfigsResponseAnyOf](docs/GetDomainConfigsResponseAnyOf.md) + - [GetDomainConfigsResponseAnyOf1](docs/GetDomainConfigsResponseAnyOf1.md) - [GetEmailTemplateDefinitionsResponse](docs/GetEmailTemplateDefinitionsResponse.md) - - [GetEmailTemplateRenderErrors200Response](docs/GetEmailTemplateRenderErrors200Response.md) - [GetEmailTemplateRenderErrorsResponse](docs/GetEmailTemplateRenderErrorsResponse.md) - [GetEmailTemplateResponse](docs/GetEmailTemplateResponse.md) - - [GetEmailTemplates200Response](docs/GetEmailTemplates200Response.md) - [GetEmailTemplatesResponse](docs/GetEmailTemplatesResponse.md) - - [GetEventLog200Response](docs/GetEventLog200Response.md) - [GetEventLogResponse](docs/GetEventLogResponse.md) - - [GetFeedPosts200Response](docs/GetFeedPosts200Response.md) - - [GetFeedPostsPublic200Response](docs/GetFeedPostsPublic200Response.md) - [GetFeedPostsResponse](docs/GetFeedPostsResponse.md) - - [GetFeedPostsStats200Response](docs/GetFeedPostsStats200Response.md) - - [GetHashTags200Response](docs/GetHashTags200Response.md) + - [GetGifsSearchResponse](docs/GetGifsSearchResponse.md) + - [GetGifsTrendingResponse](docs/GetGifsTrendingResponse.md) - [GetHashTagsResponse](docs/GetHashTagsResponse.md) - - [GetModerator200Response](docs/GetModerator200Response.md) - [GetModeratorResponse](docs/GetModeratorResponse.md) - - [GetModerators200Response](docs/GetModerators200Response.md) - [GetModeratorsResponse](docs/GetModeratorsResponse.md) - [GetMyNotificationsResponse](docs/GetMyNotificationsResponse.md) - - [GetNotificationCount200Response](docs/GetNotificationCount200Response.md) - [GetNotificationCountResponse](docs/GetNotificationCountResponse.md) - - [GetNotifications200Response](docs/GetNotifications200Response.md) - [GetNotificationsResponse](docs/GetNotificationsResponse.md) - [GetPageByURLIdAPIResponse](docs/GetPageByURLIdAPIResponse.md) - [GetPagesAPIResponse](docs/GetPagesAPIResponse.md) - - [GetPendingWebhookEventCount200Response](docs/GetPendingWebhookEventCount200Response.md) - [GetPendingWebhookEventCountResponse](docs/GetPendingWebhookEventCountResponse.md) - - [GetPendingWebhookEvents200Response](docs/GetPendingWebhookEvents200Response.md) - [GetPendingWebhookEventsResponse](docs/GetPendingWebhookEventsResponse.md) - [GetPublicFeedPostsResponse](docs/GetPublicFeedPostsResponse.md) - - [GetQuestionConfig200Response](docs/GetQuestionConfig200Response.md) + - [GetPublicPagesResponse](docs/GetPublicPagesResponse.md) - [GetQuestionConfigResponse](docs/GetQuestionConfigResponse.md) - - [GetQuestionConfigs200Response](docs/GetQuestionConfigs200Response.md) - [GetQuestionConfigsResponse](docs/GetQuestionConfigsResponse.md) - - [GetQuestionResult200Response](docs/GetQuestionResult200Response.md) - [GetQuestionResultResponse](docs/GetQuestionResultResponse.md) - - [GetQuestionResults200Response](docs/GetQuestionResults200Response.md) - [GetQuestionResultsResponse](docs/GetQuestionResultsResponse.md) - [GetSSOUserByEmailAPIResponse](docs/GetSSOUserByEmailAPIResponse.md) - [GetSSOUserByIdAPIResponse](docs/GetSSOUserByIdAPIResponse.md) - - [GetSSOUsers200Response](docs/GetSSOUsers200Response.md) + - [GetSSOUsersResponse](docs/GetSSOUsersResponse.md) - [GetSubscriptionsAPIResponse](docs/GetSubscriptionsAPIResponse.md) - - [GetTenant200Response](docs/GetTenant200Response.md) - - [GetTenantDailyUsages200Response](docs/GetTenantDailyUsages200Response.md) - [GetTenantDailyUsagesResponse](docs/GetTenantDailyUsagesResponse.md) - - [GetTenantPackage200Response](docs/GetTenantPackage200Response.md) + - [GetTenantManualBadgesResponse](docs/GetTenantManualBadgesResponse.md) - [GetTenantPackageResponse](docs/GetTenantPackageResponse.md) - - [GetTenantPackages200Response](docs/GetTenantPackages200Response.md) - [GetTenantPackagesResponse](docs/GetTenantPackagesResponse.md) - [GetTenantResponse](docs/GetTenantResponse.md) - - [GetTenantUser200Response](docs/GetTenantUser200Response.md) - [GetTenantUserResponse](docs/GetTenantUserResponse.md) - - [GetTenantUsers200Response](docs/GetTenantUsers200Response.md) - [GetTenantUsersResponse](docs/GetTenantUsersResponse.md) - - [GetTenants200Response](docs/GetTenants200Response.md) - [GetTenantsResponse](docs/GetTenantsResponse.md) - - [GetTicket200Response](docs/GetTicket200Response.md) - [GetTicketResponse](docs/GetTicketResponse.md) - - [GetTickets200Response](docs/GetTickets200Response.md) - [GetTicketsResponse](docs/GetTicketsResponse.md) - - [GetUser200Response](docs/GetUser200Response.md) - - [GetUserBadge200Response](docs/GetUserBadge200Response.md) - - [GetUserBadgeProgressById200Response](docs/GetUserBadgeProgressById200Response.md) - - [GetUserBadgeProgressList200Response](docs/GetUserBadgeProgressList200Response.md) - - [GetUserBadges200Response](docs/GetUserBadges200Response.md) - - [GetUserNotificationCount200Response](docs/GetUserNotificationCount200Response.md) + - [GetTranslationsResponse](docs/GetTranslationsResponse.md) + - [GetUserInternalProfileResponse](docs/GetUserInternalProfileResponse.md) + - [GetUserInternalProfileResponseProfile](docs/GetUserInternalProfileResponseProfile.md) + - [GetUserManualBadgesResponse](docs/GetUserManualBadgesResponse.md) - [GetUserNotificationCountResponse](docs/GetUserNotificationCountResponse.md) - - [GetUserNotifications200Response](docs/GetUserNotifications200Response.md) - - [GetUserPresenceStatuses200Response](docs/GetUserPresenceStatuses200Response.md) - [GetUserPresenceStatusesResponse](docs/GetUserPresenceStatusesResponse.md) - - [GetUserReactsPublic200Response](docs/GetUserReactsPublic200Response.md) - [GetUserResponse](docs/GetUserResponse.md) - - [GetVotes200Response](docs/GetVotes200Response.md) - - [GetVotesForUser200Response](docs/GetVotesForUser200Response.md) + - [GetUserTrustFactorResponse](docs/GetUserTrustFactorResponse.md) + - [GetV1PageLikes](docs/GetV1PageLikes.md) + - [GetV2PageReactUsersResponse](docs/GetV2PageReactUsersResponse.md) + - [GetV2PageReacts](docs/GetV2PageReacts.md) - [GetVotesForUserResponse](docs/GetVotesForUserResponse.md) - [GetVotesResponse](docs/GetVotesResponse.md) + - [GifGetLargeResponse](docs/GifGetLargeResponse.md) - [GifRating](docs/GifRating.md) + - [GifSearchInternalError](docs/GifSearchInternalError.md) + - [GifSearchResponse](docs/GifSearchResponse.md) + - [GifSearchResponseImagesInnerInner](docs/GifSearchResponseImagesInnerInner.md) - [HeaderAccountNotification](docs/HeaderAccountNotification.md) - [HeaderState](docs/HeaderState.md) - [IgnoredResponse](docs/IgnoredResponse.md) - [ImageContentProfanityLevel](docs/ImageContentProfanityLevel.md) + - [ImportedAgentApprovalNotificationFrequency](docs/ImportedAgentApprovalNotificationFrequency.md) - [ImportedSiteType](docs/ImportedSiteType.md) - [LiveEvent](docs/LiveEvent.md) - [LiveEventExtraInfo](docs/LiveEventExtraInfo.md) - [LiveEventType](docs/LiveEventType.md) - - [LockComment200Response](docs/LockComment200Response.md) - [MediaAsset](docs/MediaAsset.md) - [MentionAutoCompleteMode](docs/MentionAutoCompleteMode.md) - [MetaItem](docs/MetaItem.md) + - [ModerationAPIChildCommentsResponse](docs/ModerationAPIChildCommentsResponse.md) + - [ModerationAPIComment](docs/ModerationAPIComment.md) + - [ModerationAPICommentLog](docs/ModerationAPICommentLog.md) + - [ModerationAPICommentResponse](docs/ModerationAPICommentResponse.md) + - [ModerationAPICountCommentsResponse](docs/ModerationAPICountCommentsResponse.md) + - [ModerationAPIGetCommentIdsResponse](docs/ModerationAPIGetCommentIdsResponse.md) + - [ModerationAPIGetCommentsResponse](docs/ModerationAPIGetCommentsResponse.md) + - [ModerationAPIGetLogsResponse](docs/ModerationAPIGetLogsResponse.md) + - [ModerationCommentSearchResponse](docs/ModerationCommentSearchResponse.md) + - [ModerationExportResponse](docs/ModerationExportResponse.md) + - [ModerationExportStatusResponse](docs/ModerationExportStatusResponse.md) + - [ModerationFilter](docs/ModerationFilter.md) + - [ModerationPageSearchProjected](docs/ModerationPageSearchProjected.md) + - [ModerationPageSearchResponse](docs/ModerationPageSearchResponse.md) + - [ModerationSiteSearchProjected](docs/ModerationSiteSearchProjected.md) + - [ModerationSiteSearchResponse](docs/ModerationSiteSearchResponse.md) + - [ModerationSuggestResponse](docs/ModerationSuggestResponse.md) + - [ModerationUserSearchProjected](docs/ModerationUserSearchProjected.md) + - [ModerationUserSearchResponse](docs/ModerationUserSearchResponse.md) - [Moderator](docs/Moderator.md) - [NotificationAndCount](docs/NotificationAndCount.md) - [NotificationObjectType](docs/NotificationObjectType.md) - [NotificationType](docs/NotificationType.md) + - [PageUserEntry](docs/PageUserEntry.md) + - [PageUsersInfoResponse](docs/PageUsersInfoResponse.md) + - [PageUsersOfflineResponse](docs/PageUsersOfflineResponse.md) + - [PageUsersOnlineResponse](docs/PageUsersOnlineResponse.md) + - [PagesSortBy](docs/PagesSortBy.md) - [PatchDomainConfigParams](docs/PatchDomainConfigParams.md) - - [PatchHashTag200Response](docs/PatchHashTag200Response.md) + - [PatchDomainConfigResponse](docs/PatchDomainConfigResponse.md) - [PatchPageAPIResponse](docs/PatchPageAPIResponse.md) - [PatchSSOUserAPIResponse](docs/PatchSSOUserAPIResponse.md) - [PendingCommentToSyncOutbound](docs/PendingCommentToSyncOutbound.md) - - [PinComment200Response](docs/PinComment200Response.md) + - [PostRemoveCommentResponse](docs/PostRemoveCommentResponse.md) + - [PreBanSummary](docs/PreBanSummary.md) - [PubSubComment](docs/PubSubComment.md) - [PubSubCommentBase](docs/PubSubCommentBase.md) - [PubSubVote](docs/PubSubVote.md) @@ -503,7 +562,9 @@ Class | Method | HTTP request | Description - [PublicComment](docs/PublicComment.md) - [PublicCommentBase](docs/PublicCommentBase.md) - [PublicFeedPostsResponse](docs/PublicFeedPostsResponse.md) + - [PublicPage](docs/PublicPage.md) - [PublicVote](docs/PublicVote.md) + - [PutDomainConfigResponse](docs/PutDomainConfigResponse.md) - [PutSSOUserAPIResponse](docs/PutSSOUserAPIResponse.md) - [QueryPredicate](docs/QueryPredicate.md) - [QueryPredicateValue](docs/QueryPredicateValue.md) @@ -516,11 +577,10 @@ Class | Method | HTTP request | Description - [QuestionSubQuestionVisibility](docs/QuestionSubQuestionVisibility.md) - [QuestionWhenSave](docs/QuestionWhenSave.md) - [ReactBodyParams](docs/ReactBodyParams.md) - - [ReactFeedPostPublic200Response](docs/ReactFeedPostPublic200Response.md) - [ReactFeedPostResponse](docs/ReactFeedPostResponse.md) - [RecordStringBeforeStringOrNullAfterStringOrNullValue](docs/RecordStringBeforeStringOrNullAfterStringOrNullValue.md) - - [RecordStringStringOrNumberValue](docs/RecordStringStringOrNumberValue.md) - - [RenderEmailTemplate200Response](docs/RenderEmailTemplate200Response.md) + - [RemoveCommentActionResponse](docs/RemoveCommentActionResponse.md) + - [RemoveUserBadgeResponse](docs/RemoveUserBadgeResponse.md) - [RenderEmailTemplateBody](docs/RenderEmailTemplateBody.md) - [RenderEmailTemplateResponse](docs/RenderEmailTemplateResponse.md) - [RenderableUserNotification](docs/RenderableUserNotification.md) @@ -528,26 +588,27 @@ Class | Method | HTTP request | Description - [RepeatCommentHandlingAction](docs/RepeatCommentHandlingAction.md) - [ReplaceTenantPackageBody](docs/ReplaceTenantPackageBody.md) - [ReplaceTenantUserBody](docs/ReplaceTenantUserBody.md) - - [ResetUserNotifications200Response](docs/ResetUserNotifications200Response.md) - [ResetUserNotificationsResponse](docs/ResetUserNotificationsResponse.md) - [SORTDIR](docs/SORTDIR.md) - [SSOSecurityLevel](docs/SSOSecurityLevel.md) - - [SaveComment200Response](docs/SaveComment200Response.md) - - [SaveCommentResponse](docs/SaveCommentResponse.md) - [SaveCommentResponseOptimized](docs/SaveCommentResponseOptimized.md) + - [SaveCommentsBulkResponse](docs/SaveCommentsBulkResponse.md) - [SaveCommentsResponseWithPresence](docs/SaveCommentsResponseWithPresence.md) - - [SearchUsers200Response](docs/SearchUsers200Response.md) - [SearchUsersResponse](docs/SearchUsersResponse.md) + - [SearchUsersResult](docs/SearchUsersResult.md) - [SearchUsersSectionedResponse](docs/SearchUsersSectionedResponse.md) - - [SetCommentText200Response](docs/SetCommentText200Response.md) + - [SetCommentApprovedResponse](docs/SetCommentApprovedResponse.md) + - [SetCommentTextParams](docs/SetCommentTextParams.md) + - [SetCommentTextResponse](docs/SetCommentTextResponse.md) - [SetCommentTextResult](docs/SetCommentTextResult.md) + - [SetUserTrustFactorResponse](docs/SetUserTrustFactorResponse.md) - [SizePreset](docs/SizePreset.md) - [SortDirections](docs/SortDirections.md) - [SpamRule](docs/SpamRule.md) - [TOSConfig](docs/TOSConfig.md) + - [TenantBadge](docs/TenantBadge.md) - [TenantHashTag](docs/TenantHashTag.md) - [TenantPackage](docs/TenantPackage.md) - - [UnBlockCommentPublic200Response](docs/UnBlockCommentPublic200Response.md) - [UnBlockFromCommentParams](docs/UnBlockFromCommentParams.md) - [UnblockSuccess](docs/UnblockSuccess.md) - [UpdatableCommentParams](docs/UpdatableCommentParams.md) @@ -567,9 +628,10 @@ Class | Method | HTTP request | Description - [UpdateTenantBody](docs/UpdateTenantBody.md) - [UpdateTenantPackageBody](docs/UpdateTenantPackageBody.md) - [UpdateTenantUserBody](docs/UpdateTenantUserBody.md) - - [UpdateUserBadge200Response](docs/UpdateUserBadge200Response.md) - [UpdateUserBadgeParams](docs/UpdateUserBadgeParams.md) - - [UpdateUserNotificationStatus200Response](docs/UpdateUserNotificationStatus200Response.md) + - [UpdateUserNotificationCommentSubscriptionStatusResponse](docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md) + - [UpdateUserNotificationPageSubscriptionStatusResponse](docs/UpdateUserNotificationPageSubscriptionStatusResponse.md) + - [UpdateUserNotificationStatusResponse](docs/UpdateUserNotificationStatusResponse.md) - [UploadImageResponse](docs/UploadImageResponse.md) - [User](docs/User.md) - [UserBadge](docs/UserBadge.md) @@ -583,8 +645,8 @@ Class | Method | HTTP request | Description - [UserSearchSection](docs/UserSearchSection.md) - [UserSearchSectionResult](docs/UserSearchSectionResult.md) - [UserSessionInfo](docs/UserSessionInfo.md) + - [UsersListLocation](docs/UsersListLocation.md) - [VoteBodyParams](docs/VoteBodyParams.md) - - [VoteComment200Response](docs/VoteComment200Response.md) - [VoteDeleteResponse](docs/VoteDeleteResponse.md) - [VoteResponse](docs/VoteResponse.md) - [VoteResponseStatus](docs/VoteResponseStatus.md) diff --git a/client/api/openapi.yaml b/client/api/openapi.yaml index 3dac0f6..485fc30 100644 --- a/client/api/openapi.yaml +++ b/client/api/openapi.yaml @@ -63,8 +63,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/SearchUsers_200_response" + $ref: "#/components/schemas/SearchUsersResult" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -98,7 +104,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetUserPresenceStatuses_200_response" + $ref: "#/components/schemas/GetUserPresenceStatusesResponse" description: Ok "422": content: @@ -106,6 +112,12 @@ paths: schema: $ref: "#/components/schemas/APIError" description: Validation Failed + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -120,6 +132,14 @@ paths: schema: type: string style: form + - description: Used to determine whether the current page is subscribed. + explode: true + in: query + name: urlId + required: false + schema: + type: string + style: form - explode: true in: query name: pageSize @@ -178,6 +198,13 @@ paths: schema: type: boolean style: form + - explode: true + in: query + name: includeTenantNotifications + required: false + schema: + type: boolean + style: form - explode: true in: query name: sso @@ -190,8 +217,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetUserNotifications_200_response" + $ref: "#/components/schemas/GetMyNotificationsResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -254,8 +287,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ResetUserNotifications_200_response" + $ref: "#/components/schemas/ResetUserNotificationsResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -282,8 +321,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetUserNotificationCount_200_response" + $ref: "#/components/schemas/GetUserNotificationCountResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -310,8 +355,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ResetUserNotifications_200_response" + $ref: "#/components/schemas/ResetUserNotificationsResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -355,8 +406,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpdateUserNotificationStatus_200_response" + $ref: "#/components/schemas/UpdateUserNotificationStatusResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -408,8 +465,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpdateUserNotificationStatus_200_response" + $ref: "#/components/schemas/UpdateUserNotificationCommentSubscriptionStatusResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -470,8 +533,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpdateUserNotificationStatus_200_response" + $ref: "#/components/schemas/UpdateUserNotificationPageSubscriptionStatusResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public @@ -520,56 +589,73 @@ paths: security: [] tags: - Public - /flag-comment/{commentId}: - post: - operationId: FlagCommentPublic + /translations/{namespace}/{component}: + get: + operationId: GetTranslations parameters: - - explode: true - in: query - name: tenantId + - explode: false + in: path + name: namespace required: true schema: type: string - style: form + style: simple - explode: false in: path - name: commentId + name: component required: true schema: type: string style: simple - explode: true in: query - name: isFlagged - required: true + name: locale + required: false schema: - type: boolean + type: string style: form - explode: true in: query - name: sso + name: useFullTranslationIds required: false schema: - type: string + type: boolean style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" + $ref: "#/components/schemas/GetTranslationsResponse" description: Ok + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Validation Failed + "500": + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Internal + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public - /feed-posts/{tenantId}: + /pages/{tenantId}: get: - description: |2- - - req - tenantId - afterId - operationId: GetFeedPostsPublic + description: |- + List pages for a tenant. Used by the FChat desktop client to populate its room list. + Requires `enableFChat` to be true on the resolved custom config for each page. + Pages that require SSO are filtered against the requesting user's group access. + operationId: GetPagesPublic parameters: - explode: false in: path @@ -578,14 +664,17 @@ paths: schema: type: string style: simple - - explode: true + - description: Opaque pagination cursor returned as `nextCursor` from a prior + request. Tied to the same `sortBy`. + explode: true in: query - name: afterId + name: cursor required: false schema: type: string style: form - - explode: true + - description: "1..200, default 50" + explode: true in: query name: limit required: false @@ -593,32 +682,27 @@ paths: format: int32 type: integer style: form - - explode: true - in: query - name: tags - required: false - schema: - items: - type: string - type: array - style: form - - explode: true + - description: Optional case-insensitive title prefix filter. + explode: true in: query - name: sso + name: q required: false schema: type: string style: form - - explode: true + - description: "Sort order. `updatedAt` (default, newest first), `commentCount`\ + \ (most comments first), or `title` (alphabetical)." + explode: true in: query - name: isCrawler + name: sortBy required: false schema: - type: boolean + $ref: "#/components/schemas/PagesSortBy" style: form - - explode: true + - description: "If true, only return pages with at least one comment." + explode: true in: query - name: includeUserInfo + name: hasComments required: false schema: type: boolean @@ -628,13 +712,23 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetFeedPostsPublic_200_response" + $ref: "#/components/schemas/GetPublicPagesResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public - post: - operationId: CreateFeedPostPublic + /pages/{tenantId}/users/online: + get: + description: |- + Currently-online viewers of a page: people whose websocket session is subscribed to the page right now. + Returns anonCount + totalCount (room-wide subscribers, including anon viewers we don't enumerate). + operationId: GetOnlineUsers parameters: - explode: false in: path @@ -643,39 +737,67 @@ paths: schema: type: string style: simple - - explode: true + - description: Page URL identifier (cleaned server-side). + explode: true in: query - name: broadcastId + name: urlId + required: true + schema: + type: string + style: form + - description: "Cursor: pass nextAfterName from the previous response." + explode: true + in: query + name: afterName required: false schema: type: string style: form - - explode: true + - description: "Cursor tiebreaker: pass nextAfterUserId from the previous response.\ + \ Required when afterName is set so name-ties don't drop entries." + explode: true in: query - name: sso + name: afterUserId required: false schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateFeedPostParams" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/CreateFeedPostPublic_200_response" + $ref: "#/components/schemas/PageUsersOnlineResponse" description: Ok + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Forbidden + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Validation Failed + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public - /feed-posts/{tenantId}/react/{postId}: - post: - operationId: ReactFeedPostPublic + /pages/{tenantId}/users/offline: + get: + description: |- + Past commenters on the page who are NOT currently online. Sorted by displayName. + Use this after exhausting /users/online to render a "Members" section. + Cursor pagination on commenterName: server walks the partial {tenantId, urlId, commenterName} + index from afterName forward via $gt, no $skip cost. + operationId: GetOfflineUsers parameters: - explode: false in: path @@ -684,53 +806,66 @@ paths: schema: type: string style: simple - - explode: false - in: path - name: postId + - description: Page URL identifier (cleaned server-side). + explode: true + in: query + name: urlId required: true schema: type: string - style: simple - - explode: true - in: query - name: isUndo - required: false - schema: - type: boolean style: form - - explode: true + - description: "Cursor: pass nextAfterName from the previous response." + explode: true in: query - name: broadcastId + name: afterName required: false schema: type: string style: form - - explode: true + - description: "Cursor tiebreaker: pass nextAfterUserId from the previous response.\ + \ Required when afterName is set so name-ties don't drop entries." + explode: true in: query - name: sso + name: afterUserId required: false schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ReactBodyParams" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/ReactFeedPostPublic_200_response" + $ref: "#/components/schemas/PageUsersOfflineResponse" description: Ok + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Forbidden + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Validation Failed + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public - /feed-posts/{tenantId}/user-reacts: + /pages/{tenantId}/users/info: get: - operationId: GetUserReactsPublic + description: |- + Bulk user info for a tenant. Given userIds, return display info from User / SSOUser. + Used by the comment widget to enrich users that just appeared via a presence event. + No page context: privacy is enforced uniformly (private profiles are masked). + operationId: GetUsersInfo parameters: - explode: false in: path @@ -739,19 +874,11 @@ paths: schema: type: string style: simple - - explode: true - in: query - name: postIds - required: false - schema: - items: - type: string - type: array - style: form - - explode: true + - description: Comma-delimited userIds. + explode: true in: query - name: sso - required: false + name: ids + required: true schema: type: string style: form @@ -760,14 +887,26 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetUserReactsPublic_200_response" + $ref: "#/components/schemas/PageUsersInfoResponse" description: Ok + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Validation Failed + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public - /feed-posts/{tenantId}/{postId}: + /page-reacts/v1/likes/{tenantId}: delete: - operationId: DeleteFeedPostPublic + operationId: DeleteV1PageReact parameters: - explode: false in: path @@ -776,24 +915,10 @@ paths: schema: type: string style: simple - - explode: false - in: path - name: postId - required: true - schema: - type: string - style: simple - - explode: true - in: query - name: broadcastId - required: false - schema: - type: string - style: form - explode: true in: query - name: sso - required: false + name: urlId + required: true schema: type: string style: form @@ -802,13 +927,19 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteFeedPostPublic_200_response" + $ref: "#/components/schemas/DeleteV1PageReact" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public - put: - operationId: UpdateFeedPostPublic + get: + operationId: GetV1PageLikes parameters: - explode: false in: path @@ -817,46 +948,31 @@ paths: schema: type: string style: simple - - explode: false - in: path - name: postId - required: true - schema: - type: string - style: simple - - explode: true - in: query - name: broadcastId - required: false - schema: - type: string - style: form - explode: true in: query - name: sso - required: false + name: urlId + required: true schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UpdateFeedPostParams" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/CreateFeedPostPublic_200_response" + $ref: "#/components/schemas/GetV1PageLikes" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public - /feed-posts/{tenantId}/stats: - get: - operationId: GetFeedPostsStats + post: + operationId: CreateV1PageReact parameters: - explode: false in: path @@ -867,16 +983,14 @@ paths: style: simple - explode: true in: query - name: postIds + name: urlId required: true schema: - items: - type: string - type: array + type: string style: form - explode: true in: query - name: sso + name: title required: false schema: type: string @@ -886,20 +1000,20 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetFeedPostsStats_200_response" + $ref: "#/components/schemas/CreateV1PageReact" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public - /event-log/{tenantId}: + /page-reacts/v2/{tenantId}/list: get: - description: |2- - - req - tenantId - urlId - userIdWS - operationId: GetEventLog + operationId: GetV2PageReactUsers parameters: - explode: false in: path @@ -917,46 +1031,30 @@ paths: style: form - explode: true in: query - name: userIdWS + name: id required: true schema: type: string style: form - - explode: true - in: query - name: startTime - required: true - schema: - format: int64 - type: integer - style: form - - explode: true - in: query - name: endTime - required: true - schema: - format: int64 - type: integer - style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetEventLog_200_response" + $ref: "#/components/schemas/GetV2PageReactUsersResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public - /event-log/global/{tenantId}: - get: - description: |2- - - req - tenantId - urlId - userIdWS - operationId: GetGlobalEventLog + /page-reacts/v2/{tenantId}: + delete: + operationId: DeleteV2PageReact parameters: - explode: false in: path @@ -974,40 +1072,29 @@ paths: style: form - explode: true in: query - name: userIdWS + name: id required: true schema: type: string style: form - - explode: true - in: query - name: startTime - required: true - schema: - format: int64 - type: integer - style: form - - explode: true - in: query - name: endTime - required: true - schema: - format: int64 - type: integer - style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetEventLog_200_response" + $ref: "#/components/schemas/DeleteV2PageReact" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public - /comments/{tenantId}/{commentId}/text: get: - operationId: GetCommentText + operationId: GetV2PageReacts parameters: - explode: false in: path @@ -1016,24 +1103,10 @@ paths: schema: type: string style: simple - - explode: false - in: path - name: commentId - required: true - schema: - type: string - style: simple - - explode: true - in: query - name: editKey - required: false - schema: - type: string - style: form - explode: true in: query - name: sso - required: false + name: urlId + required: true schema: type: string style: form @@ -1042,14 +1115,19 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetCommentText_200_response" + $ref: "#/components/schemas/GetV2PageReacts" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public - /comments/{tenantId}/{commentId}/update-text: post: - operationId: SetCommentText + operationId: CreateV2PageReact parameters: - explode: false in: path @@ -1058,259 +1136,301 @@ paths: schema: type: string style: simple - - explode: false - in: path - name: commentId - required: true - schema: - type: string - style: simple - explode: true in: query - name: broadcastId + name: urlId required: true schema: type: string style: form - explode: true in: query - name: editKey - required: false + name: id + required: true schema: type: string style: form - explode: true in: query - name: sso + name: title required: false schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CommentTextUpdateRequest" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/SetCommentText_200_response" + $ref: "#/components/schemas/CreateV2PageReact" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - Public - /comments/{tenantId}: + /auth/my-account/moderate-comments/count: get: - description: |2- - - req - tenantId - urlId - operationId: GetCommentsPublic + operationId: GetCount parameters: - - explode: false - in: path - name: tenantId - required: true - schema: - type: string - style: simple - explode: true in: query - name: urlId - required: true + name: text-search + required: false schema: type: string style: form - explode: true in: query - name: page + name: byIPFromComment required: false schema: - format: int32 - type: integer + type: string style: form - explode: true in: query - name: direction + name: filter required: false schema: - $ref: "#/components/schemas/SortDirections" + type: string style: form - explode: true in: query - name: sso + name: searchFilters required: false schema: type: string style: form - explode: true in: query - name: skip + name: demo required: false schema: - format: int32 - type: integer + type: boolean style: form - explode: true in: query - name: skipChildren + name: sso required: false schema: - format: int32 - type: integer + type: string style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ModerationAPICountCommentsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation + /auth/my-account/moderate-comments/api/ids: + get: + operationId: GetApiIds + parameters: - explode: true in: query - name: limit + name: text-search required: false schema: - format: int32 - type: integer + type: string style: form - explode: true in: query - name: limitChildren + name: byIPFromComment required: false schema: - format: int32 - type: integer + type: string style: form - explode: true in: query - name: countChildren + name: filters required: false schema: - type: boolean + type: string style: form - explode: true in: query - name: fetchPageForCommentId + name: searchFilters required: false schema: type: string style: form - explode: true in: query - name: includeConfig + name: afterId required: false schema: - type: boolean + type: string style: form - explode: true in: query - name: countAll + name: demo required: false schema: type: boolean style: form - explode: true in: query - name: includei10n + name: sso required: false schema: - type: boolean + type: string style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ModerationAPIGetCommentIdsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation + /auth/my-account/moderate-comments/api/comments: + get: + operationId: GetApiComments + parameters: - explode: true in: query - name: locale + name: page required: false schema: - type: string + format: double + type: number style: form - explode: true in: query - name: modules + name: count required: false schema: - type: string + format: double + type: number style: form - explode: true in: query - name: isCrawler + name: text-search required: false schema: - type: boolean + type: string style: form - explode: true in: query - name: includeNotificationCount + name: byIPFromComment required: false schema: - type: boolean + type: string style: form - explode: true in: query - name: asTree + name: filters required: false schema: - type: boolean + type: string style: form - explode: true in: query - name: maxTreeDepth + name: searchFilters required: false schema: - format: int32 - type: integer + type: string style: form - explode: true in: query - name: useFullTranslationIds + name: sorts + required: false + schema: + type: string + style: form + - explode: true + in: query + name: demo required: false schema: type: boolean style: form - explode: true in: query - name: parentId + name: sso required: false schema: type: string style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ModerationAPIGetCommentsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation + /auth/my-account/moderate-comments/api/export: + post: + operationId: PostApiExport + parameters: - explode: true in: query - name: searchText + name: text-search required: false schema: type: string style: form - explode: true in: query - name: hashTags + name: byIPFromComment required: false schema: - items: - type: string - type: array + type: string style: form - explode: true in: query - name: userId + name: filters required: false schema: type: string style: form - explode: true in: query - name: customConfigStr + name: searchFilters required: false schema: type: string style: form - explode: true in: query - name: afterCommentId + name: sorts required: false schema: type: string style: form - explode: true in: query - name: beforeCommentId + name: sso required: false schema: type: string @@ -1320,38 +1440,58 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetCommentsPublic_200_response" + $ref: "#/components/schemas/ModerationExportResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - - Public - post: - operationId: CreateCommentPublic + - Moderation + /auth/my-account/moderate-comments/api/export/status: + get: + operationId: GetApiExportStatus parameters: - - explode: false - in: path - name: tenantId - required: true - schema: - type: string - style: simple - explode: true in: query - name: urlId - required: true + name: batchJobId + required: false schema: type: string style: form - explode: true in: query - name: broadcastId - required: true + name: sso + required: false schema: type: string style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ModerationExportStatusResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation + /auth/my-account/moderate-comments/search/users: + get: + operationId: GetSearchUsers + parameters: - explode: true in: query - name: sessionId + name: value required: false schema: type: string @@ -1363,50 +1503,29 @@ paths: schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CommentData" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/CreateCommentPublic_200_response" + $ref: "#/components/schemas/ModerationUserSearchResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - - Public - /comments/{tenantId}/{commentId}: - delete: - operationId: DeleteCommentPublic + - Moderation + /auth/my-account/moderate-comments/search/pages: + get: + operationId: GetSearchPages parameters: - - explode: false - in: path - name: tenantId - required: true - schema: - type: string - style: simple - - explode: false - in: path - name: commentId - required: true - schema: - type: string - style: simple - explode: true in: query - name: broadcastId - required: true - schema: - type: string - style: form - - explode: true - in: query - name: editKey + name: value required: false schema: type: string @@ -1423,27 +1542,25 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteCommentPublic_200_response" + $ref: "#/components/schemas/ModerationPageSearchResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - - Public - /check-blocked-comments: + - Moderation + /auth/my-account/moderate-comments/search/sites: get: - operationId: CheckedCommentsForBlocked + operationId: GetSearchSites parameters: - explode: true in: query - name: tenantId - required: true - schema: - type: string - style: form - - description: A comma separated list of comment ids. - explode: true - in: query - name: commentIds - required: true + name: value + required: false schema: type: string style: form @@ -1459,46 +1576,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CheckedCommentsForBlocked_200_response" + $ref: "#/components/schemas/ModerationSiteSearchResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - - Public - /comments/{tenantId}/{commentId}/vote: - post: - operationId: VoteComment + - Moderation + /auth/my-account/moderate-comments/search/comments/summary: + get: + operationId: GetSearchCommentsSummary parameters: - - explode: false - in: path - name: tenantId - required: true - schema: - type: string - style: simple - - explode: false - in: path - name: commentId - required: true - schema: - type: string - style: simple - explode: true in: query - name: urlId - required: true + name: value + required: false schema: type: string style: form - explode: true in: query - name: broadcastId - required: true + name: filters + required: false schema: type: string style: form - explode: true in: query - name: sessionId + name: searchFilters required: false schema: type: string @@ -1510,64 +1619,29 @@ paths: schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/VoteBodyParams" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/VoteComment_200_response" + $ref: "#/components/schemas/ModerationCommentSearchResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - - Public - /comments/{tenantId}/{commentId}/vote/{voteId}: - delete: - operationId: DeleteCommentVote + - Moderation + /auth/my-account/moderate-comments/search/suggest: + get: + operationId: GetSearchSuggest parameters: - - explode: false - in: path - name: tenantId - required: true - schema: - type: string - style: simple - - explode: false - in: path - name: commentId - required: true - schema: - type: string - style: simple - - explode: false - in: path - name: voteId - required: true - schema: - type: string - style: simple - - explode: true - in: query - name: urlId - required: true - schema: - type: string - style: form - - explode: true - in: query - name: broadcastId - required: true - schema: - type: string - style: form - explode: true in: query - name: editKey + name: text-search required: false schema: type: string @@ -1584,22 +1658,21 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteCommentVote_200_response" + $ref: "#/components/schemas/ModerationSuggestResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - - Public - /comments/{tenantId}/{commentId}/votes: + - Moderation + /auth/my-account/moderate-comments/pre-ban-summary/{commentId}: get: - operationId: GetCommentVoteUserNames + operationId: GetPreBanSummary parameters: - - explode: false - in: path - name: tenantId - required: true - schema: - type: string - style: simple - explode: false in: path name: commentId @@ -1609,11 +1682,24 @@ paths: style: simple - explode: true in: query - name: dir - required: true + name: includeByUserIdAndEmail + required: false schema: - format: int32 - type: integer + type: boolean + style: form + - explode: true + in: query + name: includeByIP + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: includeByEmailDomain + required: false + schema: + type: boolean style: form - explode: true in: query @@ -1627,35 +1713,41 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetCommentVoteUserNames_200_response" + $ref: "#/components/schemas/PreBanSummary" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - - Public - /comments/{tenantId}/{commentId}/pin: + - Moderation + /auth/my-account/moderate-comments/bulk-pre-ban-summary: post: - operationId: PinComment + operationId: PostBulkPreBanSummary parameters: - - explode: false - in: path - name: tenantId - required: true - schema: - type: string - style: simple - - explode: false - in: path - name: commentId - required: true + - explode: true + in: query + name: includeByUserIdAndEmail + required: false schema: - type: string - style: simple + type: boolean + style: form - explode: true in: query - name: broadcastId - required: true + name: includeByIP + required: false schema: - type: string + type: boolean + style: form + - explode: true + in: query + name: includeByEmailDomain + required: false + schema: + type: boolean style: form - explode: true in: query @@ -1664,38 +1756,92 @@ paths: schema: type: string style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/BulkPreBanParams" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/PinComment_200_response" + $ref: "#/components/schemas/BulkPreBanSummary" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - - Public - /comments/{tenantId}/{commentId}/unpin: + - Moderation + /auth/my-account/moderate-comments/ban-user/from-comment/{commentId}: post: - operationId: UnPinComment + operationId: PostBanUserFromComment parameters: - explode: false in: path - name: tenantId + name: commentId required: true schema: type: string style: simple - - explode: false - in: path - name: commentId - required: true + - explode: true + in: query + name: banEmail + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: banEmailDomain + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: banIP + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: deleteAllUsersComments + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: bannedUntil + required: false schema: type: string - style: simple + style: form - explode: true in: query - name: broadcastId - required: true + name: isShadowBan + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: updateId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: banReason + required: false schema: type: string style: form @@ -1711,22 +1857,21 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PinComment_200_response" + $ref: "#/components/schemas/BanUserFromCommentResult" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - - Public - /comments/{tenantId}/{commentId}/lock: - post: - operationId: LockComment + - Moderation + /auth/my-account/moderate-comments/ban-users/from-comment/{commentId}: + get: + operationId: GetBanUsersFromComment parameters: - - explode: false - in: path - name: tenantId - required: true - schema: - type: string - style: simple - explode: false in: path name: commentId @@ -1736,11 +1881,31 @@ paths: style: simple - explode: true in: query - name: broadcastId - required: true + name: sso + required: false schema: type: string style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetBannedUsersFromCommentResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation + /auth/my-account/moderate-comments/ban-user/undo: + post: + operationId: PostBanUserUndo + parameters: - explode: true in: query name: sso @@ -1748,27 +1913,32 @@ paths: schema: type: string style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/BanUserUndoParams" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/LockComment_200_response" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - - Public - /comments/{tenantId}/{commentId}/unlock: + - Moderation + /auth/my-account/moderate-comments/remove-comment/{commentId}: post: - operationId: UnLockComment + operationId: PostRemoveComment parameters: - - explode: false - in: path - name: tenantId - required: true - schema: - type: string - style: simple - explode: false in: path name: commentId @@ -1776,13 +1946,6 @@ paths: schema: type: string style: simple - - explode: true - in: query - name: broadcastId - required: true - schema: - type: string - style: form - explode: true in: query name: sso @@ -1795,22 +1958,21 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/LockComment_200_response" + $ref: "#/components/schemas/PostRemoveCommentResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - - Public - /block-from-comment/{commentId}: - delete: - operationId: UnBlockCommentPublic + - Moderation + /auth/my-account/moderate-comments/restore-deleted-comment/{commentId}: + post: + operationId: PostRestoreDeletedComment parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string - style: form - explode: false in: path name: commentId @@ -1825,32 +1987,26 @@ paths: schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/PublicBlockFromCommentParams" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/UnBlockCommentPublic_200_response" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - - Public + - Moderation + /auth/my-account/moderate-comments/flag-comment/{commentId}: post: - operationId: BlockFromCommentPublic + operationId: PostFlagComment parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string - style: form - explode: false in: path name: commentId @@ -1865,36 +2021,36 @@ paths: schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/PublicBlockFromCommentParams" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/BlockFromCommentPublic_200_response" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: [] tags: - - Public - /api/v1/subscriptions: - get: - operationId: GetSubscriptions + - Moderation + /auth/my-account/moderate-comments/un-flag-comment/{commentId}: + post: + operationId: PostUnFlagComment parameters: - - explode: true - in: query - name: tenantId + - explode: false + in: path + name: commentId required: true schema: type: string - style: form + style: simple - explode: true in: query - name: userId + name: sso required: false schema: type: string @@ -1904,56 +2060,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetSubscriptionsAPIResponse" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok - security: - - api_key: [] - post: - operationId: CreateSubscription - parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string - style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateAPIUserSubscriptionData" - required: true - responses: - "200": + default: content: application/json: schema: - $ref: "#/components/schemas/CreateSubscriptionAPIResponse" - description: Ok - security: - - api_key: [] - /api/v1/subscriptions/{id}: - delete: - operationId: DeleteSubscription + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation + /auth/my-account/moderate-comments/set-comment-review-status/{commentId}: + post: + operationId: PostSetCommentReviewStatus parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string - style: form - explode: false in: path - name: id + name: commentId required: true schema: type: string style: simple - explode: true in: query - name: userId + name: reviewed + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: sso required: false schema: type: string @@ -1963,184 +2101,168 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteSubscriptionAPIResponse" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok - security: - - api_key: [] - patch: - operationId: UpdateSubscription + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation + /auth/my-account/moderate-comments/set-comment-spam-status/{commentId}: + post: + operationId: PostSetCommentSpamStatus parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string - style: form - explode: false in: path - name: id + name: commentId required: true schema: type: string style: simple - explode: true in: query - name: userId + name: spam required: false schema: - type: string + type: boolean style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UpdateAPIUserSubscriptionData" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/UpdateSubscriptionAPIResponse" - description: Ok - security: - - api_key: [] - /api/v1/sso-users: - get: - operationId: GetSSOUsers - parameters: - explode: true in: query - name: tenantId - required: true + name: permNotSpam + required: false schema: - type: string + type: boolean style: form - explode: true in: query - name: skip + name: sso required: false schema: - format: int32 - type: integer + type: string style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetSSOUsers_200_response" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation + /auth/my-account/moderate-comments/set-comment-approval-status/{commentId}: post: - operationId: AddSSOUser + operationId: PostSetCommentApprovalStatus parameters: + - explode: false + in: path + name: commentId + required: true + schema: + type: string + style: simple - explode: true in: query - name: tenantId - required: true + name: approved + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: sso + required: false schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateAPISSOUserData" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/AddSSOUserAPIResponse" + $ref: "#/components/schemas/SetCommentApprovedResponse" description: Ok - security: - - api_key: [] - /api/v1/sso-users/by-id/{id}: + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation + /auth/my-account/moderate-comments/logs/{commentId}: get: - operationId: GetSSOUserById + operationId: GetLogs parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string - style: form - explode: false in: path - name: id + name: commentId required: true schema: type: string style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetSSOUserByIdAPIResponse" - description: Ok - security: - - api_key: [] - /api/v1/sso-users/by-email/{email}: - get: - operationId: GetSSOUserByEmail - parameters: - explode: true in: query - name: tenantId - required: true + name: sso + required: false schema: type: string style: form - - explode: false - in: path - name: email - required: true - schema: - type: string - style: simple responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetSSOUserByEmailAPIResponse" + $ref: "#/components/schemas/ModerationAPIGetLogsResponse" description: Ok - security: - - api_key: [] - /api/v1/sso-users/{id}: - delete: - operationId: DeleteSSOUser + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation + /auth/my-account/moderate-comments/comment/{commentId}: + get: + operationId: GetModerationComment parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string - style: form - explode: false in: path - name: id + name: commentId required: true schema: type: string style: simple - explode: true in: query - name: deleteComments + name: includeEmail required: false schema: type: boolean style: form - explode: true in: query - name: commentDeleteMode + name: includeIP + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: sso required: false schema: type: string @@ -2150,115 +2272,173 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteSSOUserAPIResponse" + $ref: "#/components/schemas/ModerationAPICommentResponse" description: Ok - security: - - api_key: [] - patch: - operationId: PatchSSOUser + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation + /auth/my-account/moderate-comments/comments-by-ids: + post: + operationId: PostCommentsByIds parameters: - explode: true in: query - name: tenantId - required: true + name: sso + required: false schema: type: string style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CommentsByIdsParams" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ModerationAPIChildCommentsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation + /auth/my-account/moderate-comments/comment-children/{commentId}: + get: + operationId: GetCommentChildren + parameters: - explode: false in: path - name: id + name: commentId required: true schema: type: string style: simple - explode: true in: query - name: updateComments + name: sso required: false schema: - type: boolean + type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UpdateAPISSOUserData" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/PatchSSOUserAPIResponse" + $ref: "#/components/schemas/ModerationAPIChildCommentsResponse" description: Ok - security: - - api_key: [] - put: - operationId: PutSSOUser + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation + /auth/my-account/moderate-comments/get-comment-text/{commentId}: + get: + operationId: GetModerationCommentText parameters: + - explode: false + in: path + name: commentId + required: true + schema: + type: string + style: simple - explode: true in: query - name: tenantId - required: true + name: sso + required: false schema: type: string style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetCommentTextResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation + /auth/my-account/moderate-comments/set-comment-text/{commentId}: + post: + operationId: PostSetCommentText + parameters: - explode: false in: path - name: id + name: commentId required: true schema: type: string style: simple - explode: true in: query - name: updateComments + name: sso required: false schema: - type: boolean + type: string style: form requestBody: content: application/json: schema: - $ref: "#/components/schemas/UpdateAPISSOUserData" + $ref: "#/components/schemas/SetCommentTextParams" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/PutSSOUserAPIResponse" + $ref: "#/components/schemas/SetCommentTextResponse" description: Ok - security: - - api_key: [] - /api/v1/pages: - get: - operationId: GetPages - parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string - style: form - responses: - "200": + default: content: application/json: schema: - $ref: "#/components/schemas/GetPagesAPIResponse" - description: Ok - security: - - api_key: [] + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation + /auth/my-account/moderate-comments/adjust-comment-votes/{commentId}: post: - operationId: AddPage + operationId: PostAdjustCommentVotes parameters: + - explode: false + in: path + name: commentId + required: true + schema: + type: string + style: simple - explode: true in: query - name: tenantId - required: true + name: sso + required: false schema: type: string style: form @@ -2266,32 +2446,46 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateAPIPageData" + $ref: "#/components/schemas/AdjustCommentVotesParams" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/AddPageAPIResponse" + $ref: "#/components/schemas/AdjustVotesResponse" description: Ok - security: - - api_key: [] - /api/v1/pages/by-url-id: - get: - operationId: GetPageByURLId + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation + /auth/my-account/moderate-comments/vote/{commentId}: + post: + operationId: PostVote parameters: + - explode: false + in: path + name: commentId + required: true + schema: + type: string + style: simple - explode: true in: query - name: tenantId - required: true + name: direction + required: false schema: type: string style: form - explode: true in: query - name: urlId - required: true + name: sso + required: false schema: type: string style: form @@ -2300,84 +2494,127 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetPageByURLIdAPIResponse" + $ref: "#/components/schemas/VoteResponse" description: Ok - security: - - api_key: [] - /api/v1/pages/{id}: + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation + /auth/my-account/moderate-comments/vote/{commentId}/{voteId}: delete: - operationId: DeletePage + operationId: DeleteModerationVote parameters: - - explode: true - in: query - name: tenantId + - explode: false + in: path + name: commentId required: true schema: type: string - style: form + style: simple - explode: false in: path - name: id + name: voteId required: true schema: type: string style: simple + - explode: true + in: query + name: sso + required: false + schema: + type: string + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/DeletePageAPIResponse" + $ref: "#/components/schemas/VoteDeleteResponse" description: Ok - security: - - api_key: [] - patch: - operationId: PatchPage + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation + /auth/my-account/moderate-comments/get-comment-ban-status/{commentId}: + get: + operationId: GetCommentBanStatus parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string - style: form - explode: false in: path - name: id + name: commentId required: true schema: type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UpdateAPIPageData" - required: true + - explode: true + in: query + name: sso + required: false + schema: + type: string + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/PatchPageAPIResponse" + $ref: "#/components/schemas/GetCommentBanStatusResponse" description: Ok - security: - - api_key: [] - /api/v1/votes: + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation + /auth/my-account/moderate-comments/user-ban-preference: get: - operationId: GetVotes + operationId: GetUserBanPreference parameters: - explode: true in: query - name: tenantId - required: true + name: sso + required: false schema: type: string style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIModerateGetUserBanPreferencesResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation + /auth/my-account/moderate-comments/get-manual-badges: + get: + operationId: GetManualBadges + parameters: - explode: true in: query - name: urlId - required: true + name: sso + required: false schema: type: string style: form @@ -2386,47 +2623,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetVotes_200_response" + $ref: "#/components/schemas/GetTenantManualBadgesResponse" description: Ok - security: - - api_key: [] - post: - operationId: CreateVote + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation + /auth/my-account/moderate-comments/get-manual-badges-for-user: + get: + operationId: GetManualBadgesForUser parameters: - explode: true in: query - name: tenantId - required: true + name: badgesUserId + required: false schema: type: string style: form - explode: true in: query name: commentId - required: true - schema: - type: string - style: form - - explode: true - in: query - name: direction - required: true - schema: - enum: - - up - - down - type: string - style: form - - explode: true - in: query - name: userId required: false schema: type: string style: form - explode: true in: query - name: anonUserId + name: sso required: false schema: type: string @@ -2436,38 +2664,52 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/VoteComment_200_response" + $ref: "#/components/schemas/GetUserManualBadgesResponse" description: Ok - security: - - api_key: [] - /api/v1/votes/for-user: - get: - operationId: GetVotesForUser + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation + /auth/my-account/moderate-comments/award-badge: + put: + operationId: PutAwardBadge parameters: - explode: true in: query - name: tenantId + name: badgeId required: true schema: type: string style: form - explode: true in: query - name: urlId - required: true + name: userId + required: false schema: type: string style: form - explode: true in: query - name: userId + name: commentId required: false schema: type: string style: form - explode: true in: query - name: anonUserId + name: broadcastId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: sso required: false schema: type: string @@ -2477,31 +2719,52 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetVotesForUser_200_response" + $ref: "#/components/schemas/AwardUserBadgeResponse" description: Ok - security: - - api_key: [] - /api/v1/votes/{id}: - delete: - operationId: DeleteVote + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation + /auth/my-account/moderate-comments/remove-badge: + put: + operationId: PutRemoveBadge parameters: - explode: true in: query - name: tenantId + name: badgeId required: true schema: type: string style: form - - explode: false - in: path - name: id - required: true + - explode: true + in: query + name: userId + required: false schema: type: string - style: simple + style: form - explode: true in: query - name: editKey + name: commentId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: broadcastId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: sso required: false schema: type: string @@ -2511,268 +2774,249 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteCommentVote_200_response" + $ref: "#/components/schemas/RemoveUserBadgeResponse" description: Ok - security: - - api_key: [] - /api/v1/users/{id}: + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation + /auth/my-account/moderate-comments/get-trust-factor: get: - operationId: GetUser + operationId: GetTrustFactor parameters: - explode: true in: query - name: tenantId - required: true + name: userId + required: false schema: type: string style: form - - explode: false - in: path - name: id - required: true + - explode: true + in: query + name: sso + required: false schema: type: string - style: simple + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetUser_200_response" + $ref: "#/components/schemas/GetUserTrustFactorResponse" description: Ok - security: - - api_key: [] - /api/v1/user-badges/{id}: - delete: - operationId: DeleteUserBadge + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation + /auth/my-account/moderate-comments/set-trust-factor: + put: + operationId: SetTrustFactor parameters: - explode: true in: query - name: tenantId - required: true + name: userId + required: false schema: type: string style: form - - explode: false - in: path - name: id - required: true + - explode: true + in: query + name: trustFactor + required: false schema: type: string - style: simple + style: form + - explode: true + in: query + name: sso + required: false + schema: + type: string + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/UpdateUserBadge_200_response" + $ref: "#/components/schemas/SetUserTrustFactorResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation + /auth/my-account/moderate-comments/get-user-internal-profile: get: - operationId: GetUserBadge + operationId: GetUserInternalProfile parameters: - explode: true in: query - name: tenantId - required: true + name: commentId + required: false schema: type: string style: form - - explode: false - in: path - name: id - required: true + - explode: true + in: query + name: sso + required: false schema: type: string - style: simple + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetUserBadge_200_response" + $ref: "#/components/schemas/GetUserInternalProfileResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation + /auth/my-account/moderate-comments/reopen-thread: put: - operationId: UpdateUserBadge + operationId: PutReopenThread parameters: - explode: true in: query - name: tenantId + name: urlId required: true schema: type: string style: form - - explode: false - in: path - name: id - required: true + - explode: true + in: query + name: sso + required: false schema: type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UpdateUserBadgeParams" - required: true + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/UpdateUserBadge_200_response" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok - security: - - api_key: [] - /api/v1/user-badges: - get: - operationId: GetUserBadges + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation + /auth/my-account/moderate-comments/close-thread: + put: + operationId: PutCloseThread parameters: - explode: true in: query - name: tenantId + name: urlId required: true schema: type: string style: form - explode: true in: query - name: userId - required: false - schema: - type: string - style: form - - explode: true - in: query - name: badgeId + name: sso required: false schema: type: string style: form - - explode: true - in: query - name: type - required: false - schema: - format: double - type: number - style: form - - explode: true - in: query - name: displayedOnComments - required: false - schema: - type: boolean - style: form - - explode: true - in: query - name: limit - required: false - schema: - format: double - type: number - style: form - - explode: true - in: query - name: skip - required: false - schema: - format: double - type: number - style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetUserBadges_200_response" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok - security: - - api_key: [] - post: - operationId: CreateUserBadge - parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string - style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateUserBadgeParams" - required: true - responses: - "200": + default: content: application/json: schema: - $ref: "#/components/schemas/CreateUserBadge_200_response" - description: Ok - security: - - api_key: [] - /api/v1/user-badge-progress/{id}: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation + /auth/my-account/moderate-comments/banned-users/counts: get: - operationId: GetUserBadgeProgressById + operationId: GetCounts parameters: - explode: true in: query - name: tenantId - required: true + name: sso + required: false schema: type: string style: form - - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetUserBadgeProgressById_200_response" + $ref: "#/components/schemas/GetBannedUsersCountResponse" description: Ok - security: - - api_key: [] - /api/v1/user-badge-progress: + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Moderation + /gifs/trending/{tenantId}: get: - operationId: GetUserBadgeProgressList + operationId: GetGifsTrending parameters: - - explode: true - in: query + - explode: false + in: path name: tenantId required: true schema: type: string - style: form + style: simple - explode: true in: query - name: userId + name: locale required: false schema: type: string style: form - explode: true in: query - name: limit + name: rating required: false schema: - format: double - type: number + type: string style: form - explode: true in: query - name: skip + name: page required: false schema: format: double @@ -2783,74 +3027,46 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetUserBadgeProgressList_200_response" + $ref: "#/components/schemas/GetGifsTrendingResponse" description: Ok - security: - - api_key: [] - /api/v1/user-badge-progress/user/{userId}: + security: [] + tags: + - Public + /gifs/search/{tenantId}: get: - operationId: GetUserBadgeProgressByUserId + operationId: GetGifsSearch parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string - style: form - explode: false in: path - name: userId + name: tenantId required: true schema: type: string style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetUserBadgeProgressById_200_response" - description: Ok - security: - - api_key: [] - /api/v1/tickets: - get: - operationId: GetTickets - parameters: - explode: true in: query - name: tenantId + name: search required: true schema: type: string style: form - explode: true in: query - name: userId + name: locale required: false schema: type: string style: form - explode: true in: query - name: state + name: rating required: false schema: - format: double - type: number + type: string style: form - explode: true in: query - name: skip - required: false - schema: - format: double - type: number - style: form - - explode: true - in: query - name: limit + name: page required: false schema: format: double @@ -2861,45 +3077,66 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetTickets_200_response" + $ref: "#/components/schemas/GetGifsSearchResponse" description: Ok - security: - - api_key: [] - post: - operationId: CreateTicket + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Validation Failed + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public + /gifs/get-large/{tenantId}: + get: + operationId: GetGifLarge parameters: - - explode: true - in: query + - explode: false + in: path name: tenantId required: true schema: type: string - style: form + style: simple - explode: true in: query - name: userId + name: largeInternalURLSanitized required: true schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateTicketBody" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/CreateTicket_200_response" + $ref: "#/components/schemas/GifGetLargeResponse" description: Ok - security: - - api_key: [] - /api/v1/tickets/{id}: - get: - operationId: GetTicket + "422": + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Validation Failed + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public + /flag-comment/{commentId}: + post: + operationId: FlagCommentPublic parameters: - explode: true in: query @@ -2910,14 +3147,21 @@ paths: style: form - explode: false in: path - name: id + name: commentId required: true schema: type: string style: simple - explode: true in: query - name: userId + name: isFlagged + required: true + schema: + type: boolean + style: form + - explode: true + in: query + name: sso required: false schema: type: string @@ -2927,230 +3171,224 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetTicket_200_response" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok - security: - - api_key: [] - /api/v1/tickets/{id}/state: - patch: - operationId: ChangeTicketState + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public + /feed-posts/{tenantId}: + get: + description: |2- + + req + tenantId + afterId + operationId: GetFeedPostsPublic parameters: - - explode: true - in: query + - explode: false + in: path name: tenantId required: true schema: type: string - style: form + style: simple - explode: true in: query - name: userId - required: true + name: afterId + required: false schema: type: string style: form - - explode: false - in: path - name: id - required: true + - explode: true + in: query + name: limit + required: false schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ChangeTicketStateBody" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/ChangeTicketState_200_response" - description: Ok - security: - - api_key: [] - /api/v1/tenants/{id}: - delete: - operationId: DeleteTenant - parameters: + format: int32 + type: integer + style: form - explode: true in: query - name: tenantId - required: true + name: tags + required: false schema: - type: string + items: + type: string + type: array style: form - - explode: false - in: path - name: id - required: true + - explode: true + in: query + name: sso + required: false schema: type: string - style: simple + style: form - explode: true in: query - name: sure + name: isCrawler required: false schema: - type: string + type: boolean + style: form + - explode: true + in: query + name: includeUserInfo + required: false + schema: + type: boolean style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" + $ref: "#/components/schemas/PublicFeedPostsResponse" description: Ok - security: - - api_key: [] - get: - operationId: GetTenant + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public + post: + operationId: CreateFeedPostPublic parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string - style: form - explode: false in: path - name: id + name: tenantId required: true schema: type: string style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetTenant_200_response" - description: Ok - security: - - api_key: [] - patch: - operationId: UpdateTenant - parameters: - explode: true in: query - name: tenantId - required: true + name: broadcastId + required: false schema: type: string style: form - - explode: false - in: path - name: id - required: true + - explode: true + in: query + name: sso + required: false schema: type: string - style: simple + style: form requestBody: content: application/json: schema: - $ref: "#/components/schemas/UpdateTenantBody" + $ref: "#/components/schemas/CreateFeedPostParams" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" + $ref: "#/components/schemas/CreateFeedPostResponse" description: Ok - security: - - api_key: [] - /api/v1/tenants: - get: - operationId: GetTenants + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public + /feed-posts/{tenantId}/react/{postId}: + post: + operationId: ReactFeedPostPublic parameters: - - explode: true - in: query + - explode: false + in: path name: tenantId required: true schema: type: string + style: simple + - explode: false + in: path + name: postId + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: isUndo + required: false + schema: + type: boolean style: form - explode: true in: query - name: meta + name: broadcastId required: false schema: type: string style: form - explode: true in: query - name: skip + name: sso required: false schema: - format: double - type: number - style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetTenants_200_response" - description: Ok - security: - - api_key: [] - post: - operationId: CreateTenant - parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string + type: string style: form requestBody: content: application/json: schema: - $ref: "#/components/schemas/CreateTenantBody" + $ref: "#/components/schemas/ReactBodyParams" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/CreateTenant_200_response" + $ref: "#/components/schemas/ReactFeedPostResponse" description: Ok - security: - - api_key: [] - /api/v1/tenant-users/{id}: - delete: - operationId: DeleteTenantUser + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public + /feed-posts/{tenantId}/user-reacts: + get: + operationId: GetUserReactsPublic parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string - style: form - explode: false in: path - name: id + name: tenantId required: true schema: type: string style: simple - explode: true in: query - name: deleteComments + name: postIds required: false schema: - type: string + items: + type: string + type: array style: form - explode: true in: query - name: commentDeleteMode + name: sso required: false schema: type: string @@ -3160,95 +3398,92 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" + $ref: "#/components/schemas/UserReactsResponse" description: Ok - security: - - api_key: [] - get: - operationId: GetTenantUser + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public + /feed-posts/{tenantId}/{postId}: + delete: + operationId: DeleteFeedPostPublic parameters: - - explode: true - in: query + - explode: false + in: path name: tenantId required: true schema: type: string - style: form + style: simple - explode: false in: path - name: id + name: postId required: true schema: type: string style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetTenantUser_200_response" - description: Ok - security: - - api_key: [] - patch: - operationId: UpdateTenantUser - parameters: - explode: true in: query - name: tenantId - required: true + name: broadcastId + required: false schema: type: string style: form - - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - explode: true in: query - name: updateComments + name: sso required: false schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UpdateTenantUserBody" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" + $ref: "#/components/schemas/DeleteFeedPostPublicResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public put: - operationId: ReplaceTenantUser + operationId: UpdateFeedPostPublic parameters: - - explode: true - in: query + - explode: false + in: path name: tenantId required: true schema: type: string - style: form + style: simple - explode: false in: path - name: id + name: postId required: true schema: type: string style: simple - explode: true in: query - name: updateComments + name: broadcastId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: sso required: false schema: type: string @@ -3257,256 +3492,277 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ReplaceTenantUserBody" + $ref: "#/components/schemas/UpdateFeedPostParams" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" + $ref: "#/components/schemas/CreateFeedPostResponse" description: Ok - security: - - api_key: [] - /api/v1/tenant-users: + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public + /feed-posts/{tenantId}/stats: get: - operationId: GetTenantUsers + operationId: GetFeedPostsStats parameters: - - explode: true - in: query + - explode: false + in: path name: tenantId required: true schema: type: string + style: simple + - explode: true + in: query + name: postIds + required: true + schema: + items: + type: string + type: array style: form - explode: true in: query - name: skip + name: sso required: false schema: - format: double - type: number + type: string style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetTenantUsers_200_response" + $ref: "#/components/schemas/FeedPostsStatsResponse" description: Ok - security: - - api_key: [] - post: - operationId: CreateTenantUser + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public + /event-log/{tenantId}: + get: + description: |2- + + req + tenantId + urlId + userIdWS + operationId: GetEventLog parameters: + - explode: false + in: path + name: tenantId + required: true + schema: + type: string + style: simple - explode: true in: query - name: tenantId + name: urlId required: true schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateTenantUserBody" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/CreateTenantUser_200_response" - description: Ok - security: - - api_key: [] - /api/v1/tenant-users/{id}/send-login-link: - post: - operationId: SendLoginLink - parameters: - explode: true in: query - name: tenantId + name: userIdWS required: true schema: type: string style: form - - explode: false - in: path - name: id + - explode: true + in: query + name: startTime required: true schema: - type: string - style: simple + format: int64 + type: integer + style: form - explode: true in: query - name: redirectURL + name: endTime required: false schema: - type: string + format: int64 + type: integer style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" + $ref: "#/components/schemas/GetEventLogResponse" description: Ok - security: - - api_key: [] - /api/v1/tenant-packages/{id}: - delete: - operationId: DeleteTenantPackage + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public + /event-log/global/{tenantId}: + get: + description: |2- + + req + tenantId + urlId + userIdWS + operationId: GetGlobalEventLog parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string - style: form - explode: false in: path - name: id + name: tenantId required: true schema: type: string style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" - description: Ok - security: - - api_key: [] - get: - operationId: GetTenantPackage - parameters: - explode: true in: query - name: tenantId + name: urlId required: true schema: type: string style: form - - explode: false - in: path - name: id + - explode: true + in: query + name: userIdWS required: true schema: type: string - style: simple + style: form + - explode: true + in: query + name: startTime + required: true + schema: + format: int64 + type: integer + style: form + - explode: true + in: query + name: endTime + required: false + schema: + format: int64 + type: integer + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetTenantPackage_200_response" + $ref: "#/components/schemas/GetEventLogResponse" description: Ok - security: - - api_key: [] - patch: - operationId: UpdateTenantPackage + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public + /comments/{tenantId}/{commentId}/text: + get: + operationId: GetCommentText parameters: - - explode: true - in: query + - explode: false + in: path name: tenantId required: true schema: type: string - style: form + style: simple - explode: false in: path - name: id + name: commentId required: true schema: type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UpdateTenantPackageBody" - required: true + - explode: true + in: query + name: editKey + required: false + schema: + type: string + style: form + - explode: true + in: query + name: sso + required: false + schema: + type: string + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" + $ref: "#/components/schemas/PublicAPIGetCommentTextResponse" description: Ok - security: - - api_key: [] - put: - operationId: ReplaceTenantPackage + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public + /comments/{tenantId}/{commentId}/update-text: + post: + operationId: SetCommentText parameters: - - explode: true - in: query + - explode: false + in: path name: tenantId required: true schema: type: string - style: form + style: simple - explode: false in: path - name: id + name: commentId required: true schema: type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ReplaceTenantPackageBody" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" - description: Ok - security: - - api_key: [] - /api/v1/tenant-packages: - get: - operationId: GetTenantPackages - parameters: - explode: true in: query - name: tenantId + name: broadcastId required: true schema: type: string style: form - explode: true in: query - name: skip + name: editKey required: false schema: - format: double - type: number + type: string style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetTenantPackages_200_response" - description: Ok - security: - - api_key: [] - post: - operationId: CreateTenantPackage - parameters: - explode: true in: query - name: tenantId - required: true + name: sso + required: false schema: type: string style: form @@ -3514,47 +3770,52 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateTenantPackageBody" + $ref: "#/components/schemas/CommentTextUpdateRequest" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/CreateTenantPackage_200_response" + $ref: "#/components/schemas/PublicAPISetCommentTextResponse" description: Ok - security: - - api_key: [] - /api/v1/tenant-daily-usage: + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public + /comments-for-user: get: - operationId: GetTenantDailyUsages + operationId: GetCommentsForUser parameters: - explode: true in: query - name: tenantId - required: true + name: userId + required: false schema: type: string style: form - explode: true in: query - name: yearNumber + name: direction required: false schema: - format: double - type: number + $ref: "#/components/schemas/SortDirections" style: form - explode: true in: query - name: monthNumber + name: repliesToUserId required: false schema: - format: double - type: number + type: string style: form - explode: true in: query - name: dayNumber + name: page required: false schema: format: double @@ -3562,515 +3823,388 @@ paths: style: form - explode: true in: query - name: skip + name: includei10n required: false schema: - format: double - type: number + type: boolean style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetTenantDailyUsages_200_response" - description: Ok - security: - - api_key: [] - /api/v1/question-results/{id}: - delete: - operationId: DeleteQuestionResult - parameters: - explode: true in: query - name: tenantId - required: true + name: locale + required: false schema: type: string style: form - - explode: false - in: path - name: id - required: true + - explode: true + in: query + name: isCrawler + required: false schema: - type: string - style: simple + type: boolean + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" + $ref: "#/components/schemas/GetCommentsForUserResponse" description: Ok - security: - - api_key: [] + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public + /comments/{tenantId}: get: - operationId: GetQuestionResult + description: |2- + + req + tenantId + urlId + operationId: GetCommentsPublic parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string - style: form - explode: false in: path - name: id + name: tenantId required: true schema: type: string style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetQuestionResult_200_response" - description: Ok - security: - - api_key: [] - patch: - operationId: UpdateQuestionResult - parameters: - explode: true in: query - name: tenantId + name: urlId required: true schema: type: string style: form - - explode: false - in: path - name: id - required: true + - explode: true + in: query + name: page + required: false schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UpdateQuestionResultBody" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" - description: Ok - security: - - api_key: [] - /api/v1/question-results: - get: - operationId: GetQuestionResults - parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string + format: int32 + type: integer style: form - explode: true in: query - name: urlId + name: direction required: false schema: - type: string + $ref: "#/components/schemas/SortDirections" style: form - explode: true in: query - name: userId + name: sso required: false schema: type: string style: form - explode: true in: query - name: startDate + name: skip required: false schema: - type: string + format: int32 + type: integer style: form - explode: true in: query - name: questionId + name: skipChildren required: false schema: - type: string + format: int32 + type: integer style: form - explode: true in: query - name: questionIds + name: limit required: false schema: - type: string + format: int32 + type: integer style: form - explode: true in: query - name: skip + name: limitChildren required: false schema: - format: double - type: number + format: int32 + type: integer style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetQuestionResults_200_response" - description: Ok - security: - - api_key: [] - post: - operationId: CreateQuestionResult - parameters: - explode: true in: query - name: tenantId - required: true + name: countChildren + required: false schema: - type: string + type: boolean style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateQuestionResultBody" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/CreateQuestionResult_200_response" - description: Ok - security: - - api_key: [] - /api/v1/question-results-aggregation: - get: - operationId: AggregateQuestionResults - parameters: - explode: true in: query - name: tenantId - required: true + name: fetchPageForCommentId + required: false schema: type: string style: form - explode: true in: query - name: questionId + name: includeConfig required: false schema: - type: string + type: boolean style: form - explode: true in: query - name: questionIds + name: countAll required: false schema: - items: - type: string - type: array + type: boolean style: form - explode: true in: query - name: urlId + name: includei10n required: false schema: - type: string + type: boolean style: form - explode: true in: query - name: timeBucket + name: locale required: false schema: - $ref: "#/components/schemas/AggregateTimeBucket" + type: string style: form - explode: true in: query - name: startDate + name: modules required: false schema: - format: date-time type: string style: form - explode: true in: query - name: forceRecalculate + name: isCrawler required: false schema: type: boolean style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/AggregateQuestionResults_200_response" - description: Ok - security: - - api_key: [] - /api/v1/question-results-aggregation/bulk: - post: - operationId: BulkAggregateQuestionResults - parameters: - explode: true in: query - name: tenantId - required: true + name: includeNotificationCount + required: false schema: - type: string + type: boolean style: form - explode: true in: query - name: forceRecalculate + name: asTree required: false schema: type: boolean style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/BulkAggregateQuestionResultsRequest" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/BulkAggregateQuestionResults_200_response" - description: Ok - security: - - api_key: [] - /api/v1/question-results-aggregation/combine/comments: - get: - operationId: CombineCommentsWithQuestionResults - parameters: - explode: true in: query - name: tenantId - required: true + name: maxTreeDepth + required: false schema: - type: string + format: int32 + type: integer style: form - explode: true in: query - name: questionId + name: useFullTranslationIds required: false schema: - type: string + type: boolean style: form - explode: true in: query - name: questionIds + name: parentId required: false schema: - items: - type: string - type: array + type: string style: form - explode: true in: query - name: urlId + name: searchText required: false schema: type: string style: form - explode: true in: query - name: startDate + name: hashTags required: false schema: - format: date-time - type: string + items: + type: string + type: array style: form - explode: true in: query - name: forceRecalculate + name: userId required: false schema: - type: boolean + type: string style: form - explode: true in: query - name: minValue + name: customConfigStr required: false schema: - format: double - type: number + type: string style: form - explode: true in: query - name: maxValue + name: afterCommentId required: false schema: - format: double - type: number + type: string style: form - explode: true in: query - name: limit + name: beforeCommentId required: false schema: - format: double - type: number + type: string style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/CombineCommentsWithQuestionResults_200_response" + $ref: "#/components/schemas/GetCommentsResponseWithPresence_PublicComment_" description: Ok - security: - - api_key: [] - /api/v1/question-configs/{id}: - delete: - operationId: DeleteQuestionConfig + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public + post: + operationId: CreateCommentPublic parameters: + - explode: false + in: path + name: tenantId + required: true + schema: + type: string + style: simple - explode: true in: query - name: tenantId + name: urlId required: true schema: type: string style: form - - explode: false - in: path - name: id + - explode: true + in: query + name: broadcastId required: true schema: type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" - description: Ok - security: - - api_key: [] - get: - operationId: GetQuestionConfig - parameters: + style: form - explode: true in: query - name: tenantId - required: true + name: sessionId + required: false schema: type: string style: form - - explode: false - in: path - name: id - required: true + - explode: true + in: query + name: sso + required: false schema: type: string - style: simple + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CommentData" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetQuestionConfig_200_response" + $ref: "#/components/schemas/SaveCommentsResponseWithPresence" description: Ok - security: - - api_key: [] - patch: - operationId: UpdateQuestionConfig + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public + /comments/{tenantId}/{commentId}: + delete: + operationId: DeleteCommentPublic parameters: - - explode: true - in: query + - explode: false + in: path name: tenantId required: true schema: type: string - style: form + style: simple - explode: false in: path - name: id + name: commentId required: true schema: type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UpdateQuestionConfigBody" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" - description: Ok - security: - - api_key: [] - /api/v1/question-configs: - get: - operationId: GetQuestionConfigs - parameters: - explode: true in: query - name: tenantId + name: broadcastId required: true schema: type: string style: form - explode: true in: query - name: skip + name: editKey required: false schema: - format: double - type: number + type: string style: form - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/GetQuestionConfigs_200_response" - description: Ok - security: - - api_key: [] - post: - operationId: CreateQuestionConfig - parameters: - explode: true in: query - name: tenantId - required: true + name: sso + required: false schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateQuestionConfigBody" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/CreateQuestionConfig_200_response" + $ref: "#/components/schemas/PublicAPIDeleteCommentResponse" description: Ok - security: - - api_key: [] - /api/v1/pending-webhook-events: + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public + /check-blocked-comments: get: - operationId: GetPendingWebhookEvents + operationId: CheckedCommentsForBlocked parameters: - explode: true in: query @@ -4079,261 +4213,251 @@ paths: schema: type: string style: form - - explode: true + - description: A comma separated list of comment ids. + explode: true in: query - name: commentId - required: false + name: commentIds + required: true schema: type: string style: form - explode: true in: query - name: externalId + name: sso required: false schema: type: string style: form - - explode: true - in: query - name: eventType - required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/CheckBlockedCommentsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public + /comments/{tenantId}/{commentId}/vote: + post: + operationId: VoteComment + parameters: + - explode: false + in: path + name: tenantId + required: true schema: type: string - style: form + style: simple + - explode: false + in: path + name: commentId + required: true + schema: + type: string + style: simple - explode: true in: query - name: type - required: false + name: urlId + required: true schema: type: string style: form - explode: true in: query - name: domain - required: false + name: broadcastId + required: true schema: type: string style: form - explode: true in: query - name: attemptCountGT + name: sessionId required: false schema: - format: double - type: number + type: string style: form - explode: true in: query - name: skip + name: sso required: false schema: - format: double - type: number + type: string style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/VoteBodyParams" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetPendingWebhookEvents_200_response" + $ref: "#/components/schemas/VoteResponse" description: Ok - security: - - api_key: [] - /api/v1/pending-webhook-events/count: - get: - operationId: GetPendingWebhookEventCount + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public + /comments/{tenantId}/{commentId}/vote/{voteId}: + delete: + operationId: DeleteCommentVote parameters: - - explode: true - in: query + - explode: false + in: path name: tenantId required: true schema: type: string - style: form - - explode: true - in: query + style: simple + - explode: false + in: path name: commentId - required: false + required: true schema: type: string - style: form - - explode: true - in: query - name: externalId - required: false + style: simple + - explode: false + in: path + name: voteId + required: true schema: type: string - style: form + style: simple - explode: true in: query - name: eventType - required: false + name: urlId + required: true schema: type: string style: form - explode: true in: query - name: type - required: false + name: broadcastId + required: true schema: type: string style: form - explode: true in: query - name: domain + name: editKey required: false schema: type: string style: form - explode: true in: query - name: attemptCountGT + name: sso required: false schema: - format: double - type: number + type: string style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetPendingWebhookEventCount_200_response" + $ref: "#/components/schemas/VoteDeleteResponse" description: Ok - security: - - api_key: [] - /api/v1/pending-webhook-events/{id}: - delete: - operationId: DeletePendingWebhookEvent + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public + /comments/{tenantId}/{commentId}/votes: + get: + operationId: GetCommentVoteUserNames parameters: - - explode: true - in: query + - explode: false + in: path name: tenantId required: true schema: type: string - style: form + style: simple - explode: false in: path - name: id + name: commentId required: true schema: type: string style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" - description: Ok - security: - - api_key: [] - /api/v1/notifications: - get: - operationId: GetNotifications - parameters: - explode: true in: query - name: tenantId + name: dir required: true schema: - type: string - style: form - - explode: true - in: query - name: userId - required: false - schema: - type: string + format: int32 + type: integer style: form - explode: true in: query - name: urlId + name: sso required: false schema: type: string style: form - - explode: true - in: query - name: fromCommentId - required: false - schema: - type: string - style: form - - explode: true - in: query - name: viewed - required: false - schema: - type: boolean - style: form - - explode: true - in: query - name: type - required: false - schema: - type: string - style: form - - explode: true - in: query - name: skip - required: false - schema: - format: double - type: number - style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetNotifications_200_response" + $ref: "#/components/schemas/GetCommentVoteUserNamesSuccessResponse" description: Ok - security: - - api_key: [] - /api/v1/notifications/count: - get: - operationId: GetNotificationCount + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public + /comments/{tenantId}/{commentId}/pin: + post: + operationId: PinComment parameters: - - explode: true - in: query + - explode: false + in: path name: tenantId required: true schema: type: string - style: form - - explode: true - in: query - name: userId - required: false - schema: - type: string - style: form - - explode: true - in: query - name: urlId - required: false + style: simple + - explode: false + in: path + name: commentId + required: true schema: type: string - style: form + style: simple - explode: true in: query - name: fromCommentId - required: false + name: broadcastId + required: true schema: type: string style: form - explode: true in: query - name: viewed - required: false - schema: - type: boolean - style: form - - explode: true - in: query - name: type + name: sso required: false schema: type: string @@ -4343,124 +4467,141 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetNotificationCount_200_response" + $ref: "#/components/schemas/ChangeCommentPinStatusResponse" description: Ok - security: - - api_key: [] - /api/v1/notifications/{id}: - patch: - operationId: UpdateNotification + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public + /comments/{tenantId}/{commentId}/unpin: + post: + operationId: UnPinComment parameters: - - explode: true - in: query + - explode: false + in: path name: tenantId required: true schema: type: string - style: form + style: simple - explode: false in: path - name: id + name: commentId required: true schema: type: string style: simple - explode: true in: query - name: userId + name: broadcastId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: sso required: false schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UpdateNotificationBody" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" + $ref: "#/components/schemas/ChangeCommentPinStatusResponse" description: Ok - security: - - api_key: [] - /api/v1/notification-count/{id}: - delete: - operationId: DeleteNotificationCount + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public + /comments/{tenantId}/{commentId}/lock: + post: + operationId: LockComment parameters: - - explode: true - in: query + - explode: false + in: path name: tenantId required: true schema: type: string - style: form + style: simple - explode: false in: path - name: id + name: commentId required: true schema: type: string style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" - description: Ok - security: - - api_key: [] - get: - operationId: GetCachedNotificationCount - parameters: - explode: true in: query - name: tenantId + name: broadcastId required: true schema: type: string style: form - - explode: false - in: path - name: id - required: true + - explode: true + in: query + name: sso + required: false schema: type: string - style: simple + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetCachedNotificationCount_200_response" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok - security: - - api_key: [] - /api/v1/moderators/{id}: - delete: - operationId: DeleteModerator + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public + /comments/{tenantId}/{commentId}/unlock: + post: + operationId: UnLockComment parameters: - - explode: true - in: query + - explode: false + in: path name: tenantId required: true schema: type: string - style: form + style: simple - explode: false in: path - name: id + name: commentId required: true schema: type: string style: simple - explode: true in: query - name: sendEmail + name: broadcastId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: sso required: false schema: type: string @@ -4470,12 +4611,20 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok - security: - - api_key: [] - get: - operationId: GetModerator + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public + /block-from-comment/{commentId}: + delete: + operationId: UnBlockCommentPublic parameters: - explode: true in: query @@ -4486,22 +4635,42 @@ paths: style: form - explode: false in: path - name: id + name: commentId required: true schema: type: string style: simple + - explode: true + in: query + name: sso + required: false + schema: + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/PublicBlockFromCommentParams" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetModerator_200_response" + $ref: "#/components/schemas/UnblockSuccess" description: Ok - security: - - api_key: [] - patch: - operationId: UpdateModerator + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public + post: + operationId: BlockFromCommentPublic parameters: - explode: true in: query @@ -4512,56 +4681,83 @@ paths: style: form - explode: false in: path - name: id + name: commentId required: true schema: type: string style: simple + - explode: true + in: query + name: sso + required: false + schema: + type: string + style: form requestBody: content: application/json: schema: - $ref: "#/components/schemas/UpdateModeratorBody" + $ref: "#/components/schemas/PublicBlockFromCommentParams" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" + $ref: "#/components/schemas/BlockSuccess" description: Ok - security: - - api_key: [] - /api/v1/moderators: - get: - operationId: GetModerators - parameters: - - explode: true - in: query - name: tenantId - required: true - schema: - type: string - style: form + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: [] + tags: + - Public + /auth/logout: + put: + operationId: LogoutPublic + parameters: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + security: [] + tags: + - Public + /api/v1/subscriptions: + get: + operationId: GetSubscriptions + parameters: - explode: true in: query - name: skip + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: userId required: false schema: - format: double - type: number + type: string style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetModerators_200_response" + $ref: "#/components/schemas/GetSubscriptionsAPIResponse" description: Ok security: - api_key: [] post: - operationId: CreateModerator + operationId: CreateSubscription parameters: - explode: true in: query @@ -4574,20 +4770,20 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateModeratorBody" + $ref: "#/components/schemas/CreateAPIUserSubscriptionData" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/CreateModerator_200_response" + $ref: "#/components/schemas/CreateSubscriptionAPIResponse" description: Ok security: - api_key: [] - /api/v1/moderators/{id}/send-invite: - post: - operationId: SendInvite + /api/v1/subscriptions/{id}: + delete: + operationId: DeleteSubscription parameters: - explode: true in: query @@ -4605,8 +4801,8 @@ paths: style: simple - explode: true in: query - name: fromName - required: true + name: userId + required: false schema: type: string style: form @@ -4615,13 +4811,12 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" + $ref: "#/components/schemas/DeleteSubscriptionAPIResponse" description: Ok security: - api_key: [] - /api/v1/hash-tags: - get: - operationId: GetHashTags + patch: + operationId: UpdateSubscription parameters: - explode: true in: query @@ -4630,56 +4825,70 @@ paths: schema: type: string style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple - explode: true in: query - name: page + name: userId required: false schema: - format: double - type: number + type: string style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateAPIUserSubscriptionData" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetHashTags_200_response" + $ref: "#/components/schemas/UpdateSubscriptionAPIResponse" description: Ok security: - api_key: [] - post: - operationId: AddHashTag + /api/v1/sso-users: + get: + operationId: GetSSOUsers parameters: - explode: true in: query name: tenantId - required: false + required: true schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateHashTagBody" + - explode: true + in: query + name: skip required: false + schema: + format: int32 + type: integer + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/AddHashTag_200_response" + $ref: "#/components/schemas/GetSSOUsersResponse" description: Ok security: - api_key: [] - /api/v1/hash-tags/bulk: post: - operationId: AddHashTagsBulk + operationId: AddSSOUser parameters: - explode: true in: query name: tenantId - required: false + required: true schema: type: string style: form @@ -4687,90 +4896,74 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/BulkCreateHashTagsBody" - required: false + $ref: "#/components/schemas/CreateAPISSOUserData" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/AddHashTagsBulk_200_response" + $ref: "#/components/schemas/AddSSOUserAPIResponse" description: Ok security: - api_key: [] - /api/v1/hash-tags/{tag}: - delete: - operationId: DeleteHashTag + /api/v1/sso-users/by-id/{id}: + get: + operationId: GetSSOUserById parameters: - - explode: false - in: path - name: tag - required: true - schema: - type: string - style: simple - explode: true in: query name: tenantId - required: false + required: true schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/DeleteHashTag_request" - required: false + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple responses: "200": content: application/json: schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" + $ref: "#/components/schemas/GetSSOUserByIdAPIResponse" description: Ok security: - api_key: [] - patch: - operationId: PatchHashTag + /api/v1/sso-users/by-email/{email}: + get: + operationId: GetSSOUserByEmail parameters: - - explode: false - in: path - name: tag - required: true - schema: - type: string - style: simple - explode: true in: query name: tenantId - required: false + required: true schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UpdateHashTagBody" - required: false + - explode: false + in: path + name: email + required: true + schema: + type: string + style: simple responses: "200": content: application/json: schema: - $ref: "#/components/schemas/PatchHashTag_200_response" + $ref: "#/components/schemas/GetSSOUserByEmailAPIResponse" description: Ok security: - api_key: [] - /api/v1/feed-posts: - get: - description: |2- - - req - tenantId - afterId - operationId: GetFeedPosts + /api/v1/sso-users/{id}: + delete: + operationId: DeleteSSOUser parameters: - explode: true in: query @@ -4779,41 +4972,38 @@ paths: schema: type: string style: form - - explode: true - in: query - name: afterId - required: false + - explode: false + in: path + name: id + required: true schema: type: string - style: form + style: simple - explode: true in: query - name: limit + name: deleteComments required: false schema: - format: int32 - type: integer + type: boolean style: form - explode: true in: query - name: tags + name: commentDeleteMode required: false schema: - items: - type: string - type: array + type: string style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetFeedPosts_200_response" + $ref: "#/components/schemas/DeleteSSOUserAPIResponse" description: Ok security: - api_key: [] - post: - operationId: CreateFeedPost + patch: + operationId: PatchSSOUser parameters: - explode: true in: query @@ -4822,30 +5012,16 @@ paths: schema: type: string style: form - - explode: true - in: query - name: broadcastId - required: false + - explode: false + in: path + name: id + required: true schema: type: string - style: form - - explode: true - in: query - name: isLive - required: false - schema: - type: boolean - style: form - - explode: true - in: query - name: doSpamCheck - required: false - schema: - type: boolean - style: form + style: simple - explode: true in: query - name: skipDupCheck + name: updateComments required: false schema: type: boolean @@ -4854,20 +5030,19 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateFeedPostParams" + $ref: "#/components/schemas/UpdateAPISSOUserData" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/CreateFeedPost_200_response" + $ref: "#/components/schemas/PatchSSOUserAPIResponse" description: Ok security: - api_key: [] - /api/v1/feed-posts/{id}: - patch: - operationId: UpdateFeedPost + put: + operationId: PutSSOUser parameters: - explode: true in: query @@ -4883,24 +5058,31 @@ paths: schema: type: string style: simple + - explode: true + in: query + name: updateComments + required: false + schema: + type: boolean + style: form requestBody: content: application/json: schema: - $ref: "#/components/schemas/FeedPost" + $ref: "#/components/schemas/UpdateAPISSOUserData" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" + $ref: "#/components/schemas/PutSSOUserAPIResponse" description: Ok security: - api_key: [] - /api/v1/email-templates/definitions: + /api/v1/pages: get: - operationId: GetEmailTemplateDefinitions + operationId: GetPages parameters: - explode: true in: query @@ -4914,13 +5096,12 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetEmailTemplateDefinitions_200_response" + $ref: "#/components/schemas/GetPagesAPIResponse" description: Ok security: - api_key: [] - /api/v1/email-templates/{id}/render-errors: - get: - operationId: GetEmailTemplateRenderErrors + post: + operationId: AddPage parameters: - explode: true in: query @@ -4929,33 +5110,24 @@ paths: schema: type: string style: form - - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - - explode: true - in: query - name: skip - required: false - schema: - format: double - type: number - style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateAPIPageData" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetEmailTemplateRenderErrors_200_response" + $ref: "#/components/schemas/AddPageAPIResponse" description: Ok security: - api_key: [] - /api/v1/email-templates/{id}/render-errors/{errorId}: - delete: - operationId: DeleteEmailTemplateRenderError + /api/v1/pages/by-url-id: + get: + operationId: GetPageByURLId parameters: - explode: true in: query @@ -4964,58 +5136,25 @@ paths: schema: type: string style: form - - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - - explode: false - in: path - name: errorId - required: true - schema: - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" - description: Ok - security: - - api_key: [] - /api/v1/email-templates/{id}: - delete: - operationId: DeleteEmailTemplate - parameters: - explode: true in: query - name: tenantId + name: urlId required: true schema: type: string style: form - - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple responses: "200": content: application/json: schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" + $ref: "#/components/schemas/GetPageByURLIdAPIResponse" description: Ok security: - api_key: [] - get: - operationId: GetEmailTemplate + /api/v1/pages/{id}: + delete: + operationId: DeletePage parameters: - explode: true in: query @@ -5036,12 +5175,12 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetEmailTemplate_200_response" + $ref: "#/components/schemas/DeletePageAPIResponse" description: Ok security: - api_key: [] patch: - operationId: UpdateEmailTemplate + operationId: PatchPage parameters: - explode: true in: query @@ -5061,20 +5200,20 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpdateEmailTemplateBody" + $ref: "#/components/schemas/UpdateAPIPageData" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" + $ref: "#/components/schemas/PatchPageAPIResponse" description: Ok security: - api_key: [] - /api/v1/email-templates: + /api/v1/votes: get: - operationId: GetEmailTemplates + operationId: GetVotes parameters: - explode: true in: query @@ -5085,23 +5224,28 @@ paths: style: form - explode: true in: query - name: skip - required: false + name: urlId + required: true schema: - format: double - type: number + type: string style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetEmailTemplates_200_response" + $ref: "#/components/schemas/GetVotesResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] post: - operationId: CreateEmailTemplate + operationId: CreateVote parameters: - explode: true in: query @@ -5110,57 +5254,55 @@ paths: schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CreateEmailTemplateBody" + - explode: true + in: query + name: commentId required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/CreateEmailTemplate_200_response" - description: Ok - security: - - api_key: [] - /api/v1/email-templates/render: - post: - operationId: RenderEmailTemplate - parameters: + schema: + type: string + style: form - explode: true in: query - name: tenantId + name: direction required: true schema: + enum: + - up + - down type: string style: form - explode: true in: query - name: locale + name: userId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: anonUserId required: false schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/RenderEmailTemplateBody" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/RenderEmailTemplate_200_response" + $ref: "#/components/schemas/VoteResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] - /api/v1/domain-configs: + /api/v1/votes/for-user: get: - operationId: GetDomainConfigs + operationId: GetVotesForUser parameters: - explode: true in: query @@ -5169,17 +5311,45 @@ paths: schema: type: string style: form + - explode: true + in: query + name: urlId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: userId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: anonUserId + required: false + schema: + type: string + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetDomainConfigs_200_response" + $ref: "#/components/schemas/GetVotesForUserResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] - post: - operationId: AddDomainConfig + /api/v1/votes/{id}: + delete: + operationId: DeleteVote parameters: - explode: true in: query @@ -5188,24 +5358,38 @@ paths: schema: type: string style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/AddDomainConfigParams" + - explode: false + in: path + name: id required: true + schema: + type: string + style: simple + - explode: true + in: query + name: editKey + required: false + schema: + type: string + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/AddDomainConfig_200_response" + $ref: "#/components/schemas/VoteDeleteResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] - /api/v1/domain-configs/{domain}: - delete: - operationId: DeleteDomainConfig + /api/v1/users/{id}: + get: + operationId: GetUser parameters: - explode: true in: query @@ -5216,7 +5400,7 @@ paths: style: form - explode: false in: path - name: domain + name: id required: true schema: type: string @@ -5226,12 +5410,19 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteDomainConfig_200_response" + $ref: "#/components/schemas/GetUserResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] - get: - operationId: GetDomainConfig + /api/v1/user-badges/{id}: + delete: + operationId: DeleteUserBadge parameters: - explode: true in: query @@ -5242,7 +5433,7 @@ paths: style: form - explode: false in: path - name: domain + name: id required: true schema: type: string @@ -5252,13 +5443,18 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetDomainConfig_200_response" + $ref: "#/components/schemas/APIEmptySuccessResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] - /api/v1/domain-configs/{domainToUpdate}: - patch: - operationId: PatchDomainConfig + get: + operationId: GetUserBadge parameters: - explode: true in: query @@ -5269,28 +5465,28 @@ paths: style: form - explode: false in: path - name: domainToUpdate + name: id required: true schema: type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/PatchDomainConfigParams" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetDomainConfig_200_response" + $ref: "#/components/schemas/APIGetUserBadgeResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] put: - operationId: PutDomainConfig + operationId: UpdateUserBadge parameters: - explode: true in: query @@ -5301,7 +5497,7 @@ paths: style: form - explode: false in: path - name: domainToUpdate + name: id required: true schema: type: string @@ -5310,20 +5506,26 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpdateDomainConfigParams" + $ref: "#/components/schemas/UpdateUserBadgeParams" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetDomainConfig_200_response" + $ref: "#/components/schemas/APIEmptySuccessResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] - /api/v1/comments/{id}: - delete: - operationId: DeleteComment + /api/v1/user-badges: + get: + operationId: GetUserBadges parameters: - explode: true in: query @@ -5332,38 +5534,68 @@ paths: schema: type: string style: form - - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - explode: true in: query - name: contextUserId + name: userId required: false schema: type: string style: form - explode: true in: query - name: isLive + name: badgeId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: type + required: false + schema: + format: double + type: number + style: form + - explode: true + in: query + name: displayedOnComments required: false schema: type: boolean style: form + - explode: true + in: query + name: limit + required: false + schema: + format: double + type: number + style: form + - explode: true + in: query + name: skip + required: false + schema: + format: double + type: number + style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/DeleteComment_200_response" + $ref: "#/components/schemas/APIGetUserBadgesResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] - get: - operationId: GetComment + post: + operationId: CreateUserBadge parameters: - explode: true in: query @@ -5372,24 +5604,30 @@ paths: schema: type: string style: form - - explode: false - in: path - name: id + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateUserBadgeParams" required: true - schema: - type: string - style: simple responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetComment_200_response" + $ref: "#/components/schemas/APICreateUserBadgeResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] - patch: - operationId: UpdateComment + /api/v1/user-badge-progress/{id}: + get: + operationId: GetUserBadgeProgressById parameters: - explode: true in: query @@ -5405,45 +5643,24 @@ paths: schema: type: string style: simple - - explode: true - in: query - name: contextUserId - required: false - schema: - type: string - style: form - - explode: true - in: query - name: doSpamCheck - required: false - schema: - type: boolean - style: form - - explode: true - in: query - name: isLive - required: false - schema: - type: boolean - style: form - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UpdatableCommentParams" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/FlagCommentPublic_200_response" + $ref: "#/components/schemas/APIGetUserBadgeProgressResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] - /api/v1/comments: + /api/v1/user-badge-progress: get: - operationId: GetComments + operationId: GetUserBadgeProgressList parameters: - explode: true in: query @@ -5454,119 +5671,134 @@ paths: style: form - explode: true in: query - name: page + name: userId required: false schema: - format: int32 - type: integer + type: string style: form - explode: true in: query name: limit required: false schema: - format: int32 - type: integer + format: double + type: number style: form - explode: true in: query name: skip required: false schema: - format: int32 - type: integer - style: form - - explode: true - in: query - name: asTree - required: false - schema: - type: boolean - style: form - - explode: true - in: query - name: skipChildren - required: false - schema: - format: int32 - type: integer - style: form - - explode: true - in: query - name: limitChildren - required: false - schema: - format: int32 - type: integer - style: form - - explode: true - in: query - name: maxTreeDepth - required: false - schema: - format: int32 - type: integer + format: double + type: number style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIGetUserBadgeProgressListResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/user-badge-progress/user/{userId}: + get: + operationId: GetUserBadgeProgressByUserId + parameters: - explode: true in: query - name: urlId - required: false + name: tenantId + required: true schema: type: string style: form - - explode: true - in: query + - explode: false + in: path name: userId - required: false + required: true schema: type: string - style: form + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIGetUserBadgeProgressResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/tickets: + get: + operationId: GetTickets + parameters: - explode: true in: query - name: anonUserId - required: false + name: tenantId + required: true schema: type: string style: form - explode: true in: query - name: contextUserId + name: userId required: false schema: type: string style: form - explode: true in: query - name: hashTag + name: state required: false schema: - type: string + format: double + type: number style: form - explode: true in: query - name: parentId + name: skip required: false schema: - type: string + format: double + type: number style: form - explode: true in: query - name: direction + name: limit required: false schema: - $ref: "#/components/schemas/SortDirections" + format: double + type: number style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetComments_200_response" + $ref: "#/components/schemas/GetTicketsResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] post: - operationId: SaveComment + operationId: CreateTicket parameters: - explode: true in: query @@ -5577,50 +5809,35 @@ paths: style: form - explode: true in: query - name: isLive - required: false - schema: - type: boolean - style: form - - explode: true - in: query - name: doSpamCheck - required: false - schema: - type: boolean - style: form - - explode: true - in: query - name: sendEmails - required: false - schema: - type: boolean - style: form - - explode: true - in: query - name: populateNotifications - required: false + name: userId + required: true schema: - type: boolean + type: string style: form requestBody: content: application/json: schema: - $ref: "#/components/schemas/CreateCommentParams" + $ref: "#/components/schemas/CreateTicketBody" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/SaveComment_200_response" + $ref: "#/components/schemas/CreateTicketResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] - /api/v1/comments/bulk: - post: - operationId: SaveCommentsBulk + /api/v1/tickets/{id}: + get: + operationId: GetTicket parameters: - explode: true in: query @@ -5629,56 +5846,84 @@ paths: schema: type: string style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple - explode: true in: query - name: isLive + name: userId required: false schema: - type: boolean + type: string style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetTicketResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/tickets/{id}/state: + patch: + operationId: ChangeTicketState + parameters: - explode: true in: query - name: doSpamCheck - required: false + name: tenantId + required: true schema: - type: boolean + type: string style: form - explode: true in: query - name: sendEmails - required: false + name: userId + required: true schema: - type: boolean + type: string style: form - - explode: true - in: query - name: populateNotifications - required: false + - explode: false + in: path + name: id + required: true schema: - type: boolean - style: form + type: string + style: simple requestBody: content: application/json: schema: - items: - $ref: "#/components/schemas/CreateCommentParams" - type: array + $ref: "#/components/schemas/ChangeTicketStateBody" required: true responses: "200": content: application/json: schema: - items: - $ref: "#/components/schemas/SaveComment_200_response" - type: array + $ref: "#/components/schemas/ChangeTicketStateResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] - /api/v1/comments/{id}/flag: - post: - operationId: FlagComment + /api/v1/tenants/{id}: + delete: + operationId: DeleteTenant parameters: - explode: true in: query @@ -5696,14 +5941,7 @@ paths: style: simple - explode: true in: query - name: userId - required: false - schema: - type: string - style: form - - explode: true - in: query - name: anonUserId + name: sure required: false schema: type: string @@ -5713,13 +5951,18 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/FlagComment_200_response" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] - /api/v1/comments/{id}/un-flag: - post: - operationId: UnFlagComment + get: + operationId: GetTenant parameters: - explode: true in: query @@ -5735,32 +5978,23 @@ paths: schema: type: string style: simple - - explode: true - in: query - name: userId - required: false - schema: - type: string - style: form - - explode: true - in: query - name: anonUserId - required: false - schema: - type: string - style: form responses: "200": content: application/json: schema: - $ref: "#/components/schemas/FlagComment_200_response" + $ref: "#/components/schemas/GetTenantResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] - /api/v1/comments/{id}/block: - post: - operationId: BlockUserFromComment + patch: + operationId: UpdateTenant parameters: - explode: true in: query @@ -5776,38 +6010,30 @@ paths: schema: type: string style: simple - - explode: true - in: query - name: userId - required: false - schema: - type: string - style: form - - explode: true - in: query - name: anonUserId - required: false - schema: - type: string - style: form requestBody: content: application/json: schema: - $ref: "#/components/schemas/BlockFromCommentParams" + $ref: "#/components/schemas/UpdateTenantBody" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/BlockFromCommentPublic_200_response" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] - /api/v1/comments/{id}/un-block: - post: - operationId: UnBlockUserFromComment + /api/v1/tenants: + get: + operationId: GetTenants parameters: - explode: true in: query @@ -5816,24 +6042,43 @@ paths: schema: type: string style: form - - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - explode: true in: query - name: userId + name: meta required: false schema: type: string style: form - explode: true in: query - name: anonUserId + name: skip required: false + schema: + format: double + type: number + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetTenantsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + post: + operationId: CreateTenant + parameters: + - explode: true + in: query + name: tenantId + required: true schema: type: string style: form @@ -5841,20 +6086,26 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UnBlockFromCommentParams" + $ref: "#/components/schemas/CreateTenantBody" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/UnBlockCommentPublic_200_response" + $ref: "#/components/schemas/CreateTenantResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] - /api/v1/audit-logs: - get: - operationId: GetAuditLogs + /api/v1/tenant-users/{id}: + delete: + operationId: DeleteTenantUser parameters: - explode: true in: query @@ -5863,60 +6114,76 @@ paths: schema: type: string style: form - - explode: true - in: query - name: limit - required: false + - explode: false + in: path + name: id + required: true schema: - format: double - type: number - style: form + type: string + style: simple - explode: true in: query - name: skip + name: deleteComments required: false schema: - format: double - type: number + type: string style: form - explode: true in: query - name: order + name: commentDeleteMode required: false schema: - $ref: "#/components/schemas/SORT_DIR" + type: string style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + get: + operationId: GetTenantUser + parameters: - explode: true in: query - name: after - required: false + name: tenantId + required: true schema: - format: double - type: number + type: string style: form - - explode: true - in: query - name: before - required: false + - explode: false + in: path + name: id + required: true schema: - format: double - type: number - style: form + type: string + style: simple responses: "200": content: application/json: schema: - $ref: "#/components/schemas/GetAuditLogs_200_response" + $ref: "#/components/schemas/GetTenantUserResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] - /api/v1/aggregate: - post: - description: |- - Aggregates documents by grouping them (if groupBy is provided) and applying multiple operations. - Different operations (e.g. sum, countDistinct, avg, etc.) are supported. - operationId: Aggregate + patch: + operationId: UpdateTenantUser parameters: - explode: true in: query @@ -5925,1169 +6192,6841 @@ paths: schema: type: string style: form - - explode: true - in: query - name: parentTenantId - required: false + - explode: false + in: path + name: id + required: true schema: type: string - style: form + style: simple - explode: true in: query - name: includeStats + name: updateComments required: false schema: - type: boolean + type: string style: form requestBody: content: application/json: schema: - $ref: "#/components/schemas/AggregationRequest" + $ref: "#/components/schemas/UpdateTenantUserBody" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/AggregationResponse" + $ref: "#/components/schemas/APIEmptyResponse" description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error security: - api_key: [] -components: - examples: {} - headers: {} - parameters: {} - requestBodies: {} - responses: {} - schemas: - APIStatus: - enum: - - success - - failed - type: string - UserSearchSection: - enum: - - moderators - - onThisPage - - onThisSite - type: string - UserSearchResult: - additionalProperties: false - example: - displayName: displayName - name: name - avatarSrc: avatarSrc - id: id - type: user - properties: - id: + put: + operationId: ReplaceTenantUser + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: type: string - name: + style: form + - explode: false + in: path + name: id + required: true + schema: type: string - displayName: + style: simple + - explode: true + in: query + name: updateComments + required: false + schema: type: string - avatarSrc: - nullable: true + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ReplaceTenantUserBody" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/tenant-users: + get: + operationId: GetTenantUsers + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: type: string - type: - enum: - - user - - sso + style: form + - explode: true + in: query + name: skip + required: false + schema: + format: double + type: number + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetTenantUsersResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + post: + operationId: CreateTenantUser + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: type: string - required: - - id - - name - - type - type: object - UserSearchSectionResult: - additionalProperties: false - example: - section: moderators - users: - - displayName: displayName - name: name - avatarSrc: avatarSrc - id: id - type: user - - displayName: displayName - name: name - avatarSrc: avatarSrc - id: id - type: user - properties: - section: - $ref: "#/components/schemas/UserSearchSection" - users: - items: - $ref: "#/components/schemas/UserSearchResult" - type: array - required: - - section - - users - type: object - SearchUsersSectionedResponse: - example: - sections: - - section: moderators - users: - - displayName: displayName - name: name - avatarSrc: avatarSrc - id: id - type: user - - displayName: displayName - name: name - avatarSrc: avatarSrc - id: id - type: user - - section: moderators - users: - - displayName: displayName - name: name - avatarSrc: avatarSrc - id: id - type: user - - displayName: displayName - name: name - avatarSrc: avatarSrc - id: id - type: user - status: success - properties: - status: - $ref: "#/components/schemas/APIStatus" - sections: - items: - $ref: "#/components/schemas/UserSearchSectionResult" - type: array - required: - - sections - - status - type: object - SearchUsersResponse: - properties: - status: - $ref: "#/components/schemas/APIStatus" - users: - items: - $ref: "#/components/schemas/UserSearchResult" - type: array - required: - - status - - users - type: object - CommentHTMLRenderingMode: - enum: - - 0 - - 1 - type: integer - CommentThreadDeletionMode: - enum: - - 0 - - 1 - - 2 - - 3 - type: integer - CommenterNameFormats: - enum: - - 0 - - 1 - - 2 - - 3 - - 4 - type: integer - SortDirections: - enum: - - OF - - NF - - MR - type: string - GifRating: - enum: - - g - - pg - - pg-13 - - r - type: string - ImageContentProfanityLevel: - enum: - - "off" - - low - - medium - - high - type: string - MentionAutoCompleteMode: - enum: - - 0 - - 1 - - 2 - type: integer - SpamRule: - additionalProperties: false - example: - commentContains: commentContains - actions: - - spam - - spam - properties: - actions: - items: + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateTenantUserBody" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/CreateTenantUserResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/tenant-users/{id}/send-login-link: + post: + operationId: SendLoginLink + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: redirectURL + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/tenant-packages/{id}: + delete: + operationId: DeleteTenantPackage + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + get: + operationId: GetTenantPackage + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetTenantPackageResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + patch: + operationId: UpdateTenantPackage + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateTenantPackageBody" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + put: + operationId: ReplaceTenantPackage + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ReplaceTenantPackageBody" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/tenant-packages: + get: + operationId: GetTenantPackages + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: skip + required: false + schema: + format: double + type: number + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetTenantPackagesResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + post: + operationId: CreateTenantPackage + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateTenantPackageBody" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/CreateTenantPackageResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/tenant-daily-usage: + get: + operationId: GetTenantDailyUsages + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: yearNumber + required: false + schema: + format: double + type: number + style: form + - explode: true + in: query + name: monthNumber + required: false + schema: + format: double + type: number + style: form + - explode: true + in: query + name: dayNumber + required: false + schema: + format: double + type: number + style: form + - explode: true + in: query + name: skip + required: false + schema: + format: double + type: number + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetTenantDailyUsagesResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/question-results/{id}: + delete: + operationId: DeleteQuestionResult + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + get: + operationId: GetQuestionResult + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetQuestionResultResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + patch: + operationId: UpdateQuestionResult + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateQuestionResultBody" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/question-results: + get: + operationId: GetQuestionResults + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: urlId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: userId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: startDate + required: false + schema: + type: string + style: form + - explode: true + in: query + name: questionId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: questionIds + required: false + schema: + type: string + style: form + - explode: true + in: query + name: skip + required: false + schema: + format: double + type: number + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetQuestionResultsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + post: + operationId: CreateQuestionResult + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateQuestionResultBody" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/CreateQuestionResultResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/question-results-aggregation: + get: + operationId: AggregateQuestionResults + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: questionId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: questionIds + required: false + schema: + items: + type: string + type: array + style: form + - explode: true + in: query + name: urlId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: timeBucket + required: false + schema: + $ref: "#/components/schemas/AggregateTimeBucket" + style: form + - explode: true + in: query + name: startDate + required: false + schema: + format: date-time + type: string + style: form + - explode: true + in: query + name: forceRecalculate + required: false + schema: + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/AggregateQuestionResultsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/question-results-aggregation/bulk: + post: + operationId: BulkAggregateQuestionResults + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: forceRecalculate + required: false + schema: + type: boolean + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/BulkAggregateQuestionResultsRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/BulkAggregateQuestionResultsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/question-results-aggregation/combine/comments: + get: + operationId: CombineCommentsWithQuestionResults + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: questionId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: questionIds + required: false + schema: + items: + type: string + type: array + style: form + - explode: true + in: query + name: urlId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: startDate + required: false + schema: + format: date-time + type: string + style: form + - explode: true + in: query + name: forceRecalculate + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: minValue + required: false + schema: + format: double + type: number + style: form + - explode: true + in: query + name: maxValue + required: false + schema: + format: double + type: number + style: form + - explode: true + in: query + name: limit + required: false + schema: + format: double + type: number + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/CombineQuestionResultsWithCommentsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/question-configs/{id}: + delete: + operationId: DeleteQuestionConfig + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + get: + operationId: GetQuestionConfig + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetQuestionConfigResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + patch: + operationId: UpdateQuestionConfig + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateQuestionConfigBody" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/question-configs: + get: + operationId: GetQuestionConfigs + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: skip + required: false + schema: + format: double + type: number + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetQuestionConfigsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + post: + operationId: CreateQuestionConfig + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateQuestionConfigBody" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/CreateQuestionConfigResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/pending-webhook-events: + get: + operationId: GetPendingWebhookEvents + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: commentId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: externalId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: eventType + required: false + schema: + type: string + style: form + - explode: true + in: query + name: type + required: false + schema: + type: string + style: form + - explode: true + in: query + name: domain + required: false + schema: + type: string + style: form + - explode: true + in: query + name: attemptCountGT + required: false + schema: + format: double + type: number + style: form + - explode: true + in: query + name: skip + required: false + schema: + format: double + type: number + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetPendingWebhookEventsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/pending-webhook-events/count: + get: + operationId: GetPendingWebhookEventCount + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: commentId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: externalId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: eventType + required: false + schema: + type: string + style: form + - explode: true + in: query + name: type + required: false + schema: + type: string + style: form + - explode: true + in: query + name: domain + required: false + schema: + type: string + style: form + - explode: true + in: query + name: attemptCountGT + required: false + schema: + format: double + type: number + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetPendingWebhookEventCountResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/pending-webhook-events/{id}: + delete: + operationId: DeletePendingWebhookEvent + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/notifications: + get: + operationId: GetNotifications + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: userId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: urlId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: fromCommentId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: viewed + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: type + required: false + schema: + type: string + style: form + - explode: true + in: query + name: skip + required: false + schema: + format: double + type: number + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetNotificationsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/notifications/count: + get: + operationId: GetNotificationCount + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: userId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: urlId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: fromCommentId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: viewed + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: type + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetNotificationCountResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/notifications/{id}: + patch: + operationId: UpdateNotification + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: userId + required: false + schema: + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateNotificationBody" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/notification-count/{id}: + delete: + operationId: DeleteNotificationCount + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + get: + operationId: GetCachedNotificationCount + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetCachedNotificationCountResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/moderators/{id}: + delete: + operationId: DeleteModerator + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: sendEmail + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + get: + operationId: GetModerator + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetModeratorResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + patch: + operationId: UpdateModerator + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateModeratorBody" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/moderators: + get: + operationId: GetModerators + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: skip + required: false + schema: + format: double + type: number + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetModeratorsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + post: + operationId: CreateModerator + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateModeratorBody" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/CreateModeratorResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/moderators/{id}/send-invite: + post: + operationId: SendInvite + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: fromName + required: true + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/hash-tags: + get: + operationId: GetHashTags + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: page + required: false + schema: + format: double + type: number + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetHashTagsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + post: + operationId: AddHashTag + parameters: + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateHashTagBody" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/CreateHashTagResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/hash-tags/bulk: + post: + operationId: AddHashTagsBulk + parameters: + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/BulkCreateHashTagsBody" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/BulkCreateHashTagsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/hash-tags/{tag}: + delete: + operationId: DeleteHashTag + parameters: + - explode: false + in: path + name: tag + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/DeleteHashTagRequestBody" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + patch: + operationId: PatchHashTag + parameters: + - explode: false + in: path + name: tag + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: tenantId + required: false + schema: + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateHashTagBody" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateHashTagResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/feed-posts: + get: + description: |2- + + req + tenantId + afterId + operationId: GetFeedPosts + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: afterId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: limit + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: tags + required: false + schema: + items: + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetFeedPostsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + post: + operationId: CreateFeedPost + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: broadcastId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: isLive + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: doSpamCheck + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: skipDupCheck + required: false + schema: + type: boolean + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateFeedPostParams" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/CreateFeedPostsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/feed-posts/{id}: + patch: + operationId: UpdateFeedPost + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/FeedPost" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/email-templates/definitions: + get: + operationId: GetEmailTemplateDefinitions + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetEmailTemplateDefinitionsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/email-templates/{id}/render-errors: + get: + operationId: GetEmailTemplateRenderErrors + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: skip + required: false + schema: + format: double + type: number + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetEmailTemplateRenderErrorsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/email-templates/{id}/render-errors/{errorId}: + delete: + operationId: DeleteEmailTemplateRenderError + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: errorId + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/email-templates/{id}: + delete: + operationId: DeleteEmailTemplate + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + get: + operationId: GetEmailTemplate + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetEmailTemplateResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + patch: + operationId: UpdateEmailTemplate + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateEmailTemplateBody" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/email-templates: + get: + operationId: GetEmailTemplates + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: skip + required: false + schema: + format: double + type: number + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetEmailTemplatesResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + post: + operationId: CreateEmailTemplate + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateEmailTemplateBody" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/CreateEmailTemplateResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/email-templates/render: + post: + operationId: RenderEmailTemplate + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: locale + required: false + schema: + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/RenderEmailTemplateBody" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/RenderEmailTemplateResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/domain-configs: + get: + operationId: GetDomainConfigs + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetDomainConfigsResponse" + description: Ok + security: + - api_key: [] + post: + operationId: AddDomainConfig + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/AddDomainConfigParams" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/AddDomainConfigResponse" + description: Ok + security: + - api_key: [] + /api/v1/domain-configs/{domain}: + delete: + operationId: DeleteDomainConfig + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: domain + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/DeleteDomainConfigResponse" + description: Ok + security: + - api_key: [] + get: + operationId: GetDomainConfig + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: domain + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetDomainConfigResponse" + description: Ok + security: + - api_key: [] + /api/v1/domain-configs/{domainToUpdate}: + patch: + operationId: PatchDomainConfig + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: domainToUpdate + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/PatchDomainConfigParams" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PatchDomainConfigResponse" + description: Ok + security: + - api_key: [] + put: + operationId: PutDomainConfig + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: domainToUpdate + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateDomainConfigParams" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PutDomainConfigResponse" + description: Ok + security: + - api_key: [] + /api/v1/comments/{id}: + delete: + operationId: DeleteComment + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: contextUserId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: isLive + required: false + schema: + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/DeleteCommentResult" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + get: + operationId: GetComment + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIGetCommentResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + patch: + operationId: UpdateComment + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: contextUserId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: doSpamCheck + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: isLive + required: false + schema: + type: boolean + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdatableCommentParams" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIEmptyResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/comments: + get: + operationId: GetComments + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: page + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: limit + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: skip + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: asTree + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: skipChildren + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: limitChildren + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: maxTreeDepth + required: false + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: urlId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: userId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: anonUserId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: contextUserId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: hashTag + required: false + schema: + type: string + style: form + - explode: true + in: query + name: parentId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: direction + required: false + schema: + $ref: "#/components/schemas/SortDirections" + style: form + - explode: true + in: query + name: fromDate + required: false + schema: + format: int64 + type: integer + style: form + - explode: true + in: query + name: toDate + required: false + schema: + format: int64 + type: integer + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APIGetCommentsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + post: + operationId: SaveComment + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: isLive + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: doSpamCheck + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: sendEmails + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: populateNotifications + required: false + schema: + type: boolean + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateCommentParams" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/APISaveCommentResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/comments/bulk: + post: + operationId: SaveCommentsBulk + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: isLive + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: doSpamCheck + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: sendEmails + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: populateNotifications + required: false + schema: + type: boolean + style: form + requestBody: + content: + application/json: + schema: + items: + $ref: "#/components/schemas/CreateCommentParams" + type: array + required: true + responses: + "200": + content: + application/json: + schema: + items: + $ref: "#/components/schemas/SaveCommentsBulkResponse" + type: array + description: Ok + security: + - api_key: [] + /api/v1/comments/{id}/flag: + post: + operationId: FlagComment + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: userId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: anonUserId + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/FlagCommentResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/comments/{id}/un-flag: + post: + operationId: UnFlagComment + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: userId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: anonUserId + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/FlagCommentResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/comments/{id}/block: + post: + operationId: BlockUserFromComment + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: userId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: anonUserId + required: false + schema: + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/BlockFromCommentParams" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/BlockSuccess" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/comments/{id}/un-block: + post: + operationId: UnBlockUserFromComment + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: userId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: anonUserId + required: false + schema: + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UnBlockFromCommentParams" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/UnblockSuccess" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/audit-logs: + get: + operationId: GetAuditLogs + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: limit + required: false + schema: + format: double + type: number + style: form + - explode: true + in: query + name: skip + required: false + schema: + format: double + type: number + style: form + - explode: true + in: query + name: order + required: false + schema: + $ref: "#/components/schemas/SORT_DIR" + style: form + - explode: true + in: query + name: after + required: false + schema: + format: double + type: number + style: form + - explode: true + in: query + name: before + required: false + schema: + format: double + type: number + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GetAuditLogsResponse" + description: Ok + default: + content: + application/json: + schema: + $ref: "#/components/schemas/APIError" + description: Error + security: + - api_key: [] + /api/v1/aggregate: + post: + description: |- + Aggregates documents by grouping them (if groupBy is provided) and applying multiple operations. + Different operations (e.g. sum, countDistinct, avg, etc.) are supported. + operationId: Aggregate + parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form + - explode: true + in: query + name: parentTenantId + required: false + schema: + type: string + style: form + - explode: true + in: query + name: includeStats + required: false + schema: + type: boolean + style: form + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/AggregationRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/AggregateResponse" + description: Ok + security: + - api_key: [] +components: + examples: {} + headers: {} + parameters: {} + requestBodies: {} + responses: {} + schemas: + APIStatus: + enum: + - success + - failed + type: string + UserSearchSection: + enum: + - moderators + - onThisPage + - onThisSite + type: string + UserSearchResult: + additionalProperties: false + example: + displayName: displayName + name: name + avatarSrc: avatarSrc + id: id + type: user + properties: + id: + type: string + name: + type: string + displayName: + type: string + avatarSrc: + nullable: true + type: string + type: + enum: + - user + - sso + type: string + required: + - id + - name + - type + type: object + UserSearchSectionResult: + additionalProperties: false + example: + section: moderators + users: + - displayName: displayName + name: name + avatarSrc: avatarSrc + id: id + type: user + - displayName: displayName + name: name + avatarSrc: avatarSrc + id: id + type: user + properties: + section: + $ref: "#/components/schemas/UserSearchSection" + users: + items: + $ref: "#/components/schemas/UserSearchResult" + type: array + required: + - section + - users + type: object + SearchUsersSectionedResponse: + example: + sections: + - section: moderators + users: + - displayName: displayName + name: name + avatarSrc: avatarSrc + id: id + type: user + - displayName: displayName + name: name + avatarSrc: avatarSrc + id: id + type: user + - section: moderators + users: + - displayName: displayName + name: name + avatarSrc: avatarSrc + id: id + type: user + - displayName: displayName + name: name + avatarSrc: avatarSrc + id: id + type: user + status: success + properties: + status: + $ref: "#/components/schemas/APIStatus" + sections: + items: + $ref: "#/components/schemas/UserSearchSectionResult" + type: array + required: + - sections + - status + type: object + SearchUsersResponse: + properties: + status: + $ref: "#/components/schemas/APIStatus" + users: + items: + $ref: "#/components/schemas/UserSearchResult" + type: array + required: + - status + - users + type: object + SearchUsersResult: + anyOf: + - $ref: "#/components/schemas/SearchUsersSectionedResponse" + - $ref: "#/components/schemas/SearchUsersResponse" + CommentHTMLRenderingMode: + enum: + - 0 + - 1 + type: integer + CommentThreadDeletionMode: + enum: + - 0 + - 1 + - 2 + - 3 + type: integer + CommenterNameFormats: + enum: + - 0 + - 1 + - 2 + - 3 + - 4 + type: integer + SortDirections: + enum: + - OF + - NF + - MR + type: string + GifRating: + enum: + - g + - pg + - pg-13 + - r + type: string + ImageContentProfanityLevel: + enum: + - "off" + - low + - medium + - high + type: string + MentionAutoCompleteMode: + enum: + - 0 + - 1 + - 2 + type: integer + SpamRule: + additionalProperties: false + example: + commentContains: commentContains + actions: + - spam + - spam + properties: + actions: + items: enum: - spam - - not-spam - - ignore-repeat + - not-spam + - ignore-repeat + type: string + type: array + commentContains: + type: string + required: + - actions + type: object + SSOSecurityLevel: + enum: + - 0 + - 1 + type: integer + Record_string.string_: + additionalProperties: + type: string + description: Construct a type with a set of properties K of type T + example: {} + properties: {} + type: object + VoteStyle: + enum: + - 0 + - 1 + type: integer + CommentQuestionResultsRenderingType: + enum: + - 0 + - 1 + - 2 + type: integer + QuestionRenderingType: + enum: + - 0 + - 1 + type: integer + QuestionWhenSave: + enum: + - 0 + - 1 + type: integer + CommentQuestionsRequired: + enum: + - 0 + - 1 + type: integer + QuestionSubQuestionVisibility: + enum: + - 0 + - 1 + type: integer + UsersListLocation: + enum: + - 0 + - 1 + - 2 + - 3 + type: integer + TOSConfig: + additionalProperties: false + example: + lastUpdated: 2000-01-23T04:56:07.000+00:00 + textByLocale: + key: textByLocale + enabled: true + properties: + enabled: + type: boolean + textByLocale: + additionalProperties: + type: string + description: Construct a type with a set of properties K of type T + example: {} + properties: {} + type: object + lastUpdated: + format: date-time + type: string + type: object + CustomConfigParameters: + additionalProperties: false + example: + disableAutoHashTagCreation: true + disableCommenterCommentDelete: true + enableVoteList: true + pageSize: 7 + collapseReplies: true + disableProfiles: true + disableSuccessMessage: true + allowAnon: true + countAboveToggle: 5 + readonly: true + useShowCommentsToggle: true + usersListLocation: 1 + noImageUploads: true + spamRules: + - commentContains: commentContains + actions: + - spam + - spam + - commentContains: commentContains + actions: + - spam + - spam + translations: "" + widgetQuestionId: widgetQuestionId + disableLiveCommenting: true + ssoSecLvl: 9 + defaultSortDirection: "" + disableVoting: true + noCustomConfig: true + allowedEmbedDomains: + - allowedEmbedDomains + - allowedEmbedDomains + gifRating: g + ticketAutoAssignUserIds: + - ticketAutoAssignUserIds + - ticketAutoAssignUserIds + enableSearch: true + requireSSO: true + disableToolbar: true + hideCommentsUnderCountTextFormat: hideCommentsUnderCountTextFormat + maxCommentCreatedCountPUPM: 2 + disableProfileDirectMessages: true + disableBlocking: true + disableEmailInputs: true + widgetQuestionWhenToSave: 7 + allowAnonFlag: true + ticketKBSearchEndpoint: ticketKBSearchEndpoint + widgetSubQuestionVisibility: 1 + showBadgesInTopBar: true + widgetQuestionStyle: 4 + restrictedLinkDomains: + - restrictedLinkDomains + - restrictedLinkDomains + showQuestion: true + inputAfterComments: true + allowAnonVotes: true + commentThreadDeleteMode: "" + commentCountFormat: commentCountFormat + disableNotificationBell: true + enableFChat: true + voteStyle: 3 + disableAutoAdminMigration: true + disableProfileComments: true + absoluteAndRelativeDates: true + commenterNameFormat: "" + enableThirdPartyCookieBypass: true + ticketMaxFileSize: 6 + locale: locale + showCommentSaveSuccess: true + disableCommenterCommentEdit: true + enableCommenterLinks: true + imageContentProfanityLevel: "off" + enableSpoilers: true + disableUnverifiedLabel: true + noStyles: true + enableResizeHandle: true + absoluteDates: true + limitCommentsByGroups: true + enableWYSIWYG: true + tos: + lastUpdated: 2000-01-23T04:56:07.000+00:00 + textByLocale: + key: textByLocale + enabled: true + widgetQuestionShowBreakdown: true + mentionAutoCompleteMode: "" + customCSS: customCSS + enableViewCounts: true + headerHTML: headerHTML + hideAvatars: true + defaultAvatarSrc: defaultAvatarSrc + usersListIncludeOffline: true + commentHTMLRenderingMode: 1 + noNewRootComments: true + ticketFileUploadsEnabled: true + maxCommentCharacterLength: 5 + useSingleLineCommentInput: true + allowedLanguages: + - allowedLanguages + - allowedLanguages + allowEmbeds: true + defaultUsername: defaultUsername + widgetQuestionResultsStyle: 2 + showLiveRightAway: true + widgetQuestionsRequired: 1 + hasDarkBackground: true + wrap: true + ticketBaseUrl: ticketBaseUrl + properties: + absoluteAndRelativeDates: + type: boolean + absoluteDates: + type: boolean + allowAnon: + type: boolean + allowAnonFlag: + type: boolean + allowAnonVotes: + type: boolean + allowedLanguages: + items: + type: string + nullable: true + type: array + collapseReplies: + type: boolean + commentCountFormat: + nullable: true + type: string + commentHTMLRenderingMode: + $ref: "#/components/schemas/CommentHTMLRenderingMode" + commentThreadDeleteMode: + allOf: + - $ref: "#/components/schemas/CommentThreadDeletionMode" + nullable: true + commenterNameFormat: + allOf: + - $ref: "#/components/schemas/CommenterNameFormats" + nullable: true + countAboveToggle: + format: int32 + type: integer + customCSS: + nullable: true + type: string + defaultAvatarSrc: + nullable: true + type: string + defaultSortDirection: + allOf: + - $ref: "#/components/schemas/SortDirections" + nullable: true + defaultUsername: + nullable: true + type: string + disableAutoAdminMigration: + type: boolean + disableAutoHashTagCreation: + type: boolean + disableBlocking: + type: boolean + disableCommenterCommentDelete: + type: boolean + disableCommenterCommentEdit: + type: boolean + disableEmailInputs: + type: boolean + disableLiveCommenting: + type: boolean + disableNotificationBell: + type: boolean + disableProfileComments: + type: boolean + disableProfileDirectMessages: + type: boolean + disableProfiles: + type: boolean + disableSuccessMessage: + type: boolean + disableToolbar: + type: boolean + disableUnverifiedLabel: + type: boolean + disableVoting: + type: boolean + enableCommenterLinks: + type: boolean + enableSearch: + type: boolean + enableSpoilers: + type: boolean + enableThirdPartyCookieBypass: + type: boolean + enableViewCounts: + type: boolean + enableVoteList: + type: boolean + enableWYSIWYG: + type: boolean + gifRating: + $ref: "#/components/schemas/GifRating" + hasDarkBackground: + type: boolean + headerHTML: + nullable: true + type: string + hideAvatars: + type: boolean + hideCommentsUnderCountTextFormat: + nullable: true + type: string + imageContentProfanityLevel: + $ref: "#/components/schemas/ImageContentProfanityLevel" + inputAfterComments: + type: boolean + limitCommentsByGroups: + type: boolean + locale: + nullable: true + type: string + maxCommentCharacterLength: + format: int32 + nullable: true + type: integer + maxCommentCreatedCountPUPM: + format: int32 + nullable: true + type: integer + noCustomConfig: + type: boolean + mentionAutoCompleteMode: + allOf: + - $ref: "#/components/schemas/MentionAutoCompleteMode" + nullable: true + noImageUploads: + type: boolean + allowEmbeds: + type: boolean + allowedEmbedDomains: + items: + type: string + nullable: true + type: array + noStyles: + type: boolean + pageSize: + format: int32 + nullable: true + type: integer + readonly: + type: boolean + noNewRootComments: + type: boolean + requireSSO: + type: boolean + enableFChat: + type: boolean + enableResizeHandle: + type: boolean + restrictedLinkDomains: + items: + type: string + nullable: true + type: array + showBadgesInTopBar: + type: boolean + showCommentSaveSuccess: + type: boolean + showLiveRightAway: + type: boolean + showQuestion: + type: boolean + spamRules: + items: + $ref: "#/components/schemas/SpamRule" + type: array + ssoSecLvl: + $ref: "#/components/schemas/SSOSecurityLevel" + translations: + allOf: + - $ref: "#/components/schemas/Record_string.string_" + nullable: true + useShowCommentsToggle: + type: boolean + useSingleLineCommentInput: + type: boolean + voteStyle: + $ref: "#/components/schemas/VoteStyle" + widgetQuestionId: + type: string + widgetQuestionResultsStyle: + $ref: "#/components/schemas/CommentQuestionResultsRenderingType" + widgetQuestionShowBreakdown: + type: boolean + widgetQuestionStyle: + $ref: "#/components/schemas/QuestionRenderingType" + widgetQuestionWhenToSave: + $ref: "#/components/schemas/QuestionWhenSave" + widgetQuestionsRequired: + $ref: "#/components/schemas/CommentQuestionsRequired" + widgetSubQuestionVisibility: + $ref: "#/components/schemas/QuestionSubQuestionVisibility" + wrap: + type: boolean + usersListLocation: + $ref: "#/components/schemas/UsersListLocation" + usersListIncludeOffline: + type: boolean + ticketBaseUrl: + type: string + ticketKBSearchEndpoint: + type: string + ticketFileUploadsEnabled: + type: boolean + ticketMaxFileSize: + format: int32 + type: integer + ticketAutoAssignUserIds: + items: + type: string + type: array + tos: + $ref: "#/components/schemas/TOSConfig" + type: object + APIError: + additionalProperties: false + example: + reason: reason + code: code + bannedUntil: 0 + customConfig: + disableAutoHashTagCreation: true + disableCommenterCommentDelete: true + enableVoteList: true + pageSize: 7 + collapseReplies: true + disableProfiles: true + disableSuccessMessage: true + allowAnon: true + countAboveToggle: 5 + readonly: true + useShowCommentsToggle: true + usersListLocation: 1 + noImageUploads: true + spamRules: + - commentContains: commentContains + actions: + - spam + - spam + - commentContains: commentContains + actions: + - spam + - spam + translations: "" + widgetQuestionId: widgetQuestionId + disableLiveCommenting: true + ssoSecLvl: 9 + defaultSortDirection: "" + disableVoting: true + noCustomConfig: true + allowedEmbedDomains: + - allowedEmbedDomains + - allowedEmbedDomains + gifRating: g + ticketAutoAssignUserIds: + - ticketAutoAssignUserIds + - ticketAutoAssignUserIds + enableSearch: true + requireSSO: true + disableToolbar: true + hideCommentsUnderCountTextFormat: hideCommentsUnderCountTextFormat + maxCommentCreatedCountPUPM: 2 + disableProfileDirectMessages: true + disableBlocking: true + disableEmailInputs: true + widgetQuestionWhenToSave: 7 + allowAnonFlag: true + ticketKBSearchEndpoint: ticketKBSearchEndpoint + widgetSubQuestionVisibility: 1 + showBadgesInTopBar: true + widgetQuestionStyle: 4 + restrictedLinkDomains: + - restrictedLinkDomains + - restrictedLinkDomains + showQuestion: true + inputAfterComments: true + allowAnonVotes: true + commentThreadDeleteMode: "" + commentCountFormat: commentCountFormat + disableNotificationBell: true + enableFChat: true + voteStyle: 3 + disableAutoAdminMigration: true + disableProfileComments: true + absoluteAndRelativeDates: true + commenterNameFormat: "" + enableThirdPartyCookieBypass: true + ticketMaxFileSize: 6 + locale: locale + showCommentSaveSuccess: true + disableCommenterCommentEdit: true + enableCommenterLinks: true + imageContentProfanityLevel: "off" + enableSpoilers: true + disableUnverifiedLabel: true + noStyles: true + enableResizeHandle: true + absoluteDates: true + limitCommentsByGroups: true + enableWYSIWYG: true + tos: + lastUpdated: 2000-01-23T04:56:07.000+00:00 + textByLocale: + key: textByLocale + enabled: true + widgetQuestionShowBreakdown: true + mentionAutoCompleteMode: "" + customCSS: customCSS + enableViewCounts: true + headerHTML: headerHTML + hideAvatars: true + defaultAvatarSrc: defaultAvatarSrc + usersListIncludeOffline: true + commentHTMLRenderingMode: 1 + noNewRootComments: true + ticketFileUploadsEnabled: true + maxCommentCharacterLength: 5 + useSingleLineCommentInput: true + allowedLanguages: + - allowedLanguages + - allowedLanguages + allowEmbeds: true + defaultUsername: defaultUsername + widgetQuestionResultsStyle: 2 + showLiveRightAway: true + widgetQuestionsRequired: 1 + hasDarkBackground: true + wrap: true + ticketBaseUrl: ticketBaseUrl + translatedError: translatedError + secondaryCode: secondaryCode + maxCharacterLength: 6 + status: success + properties: + status: + $ref: "#/components/schemas/APIStatus" + reason: + type: string + code: + type: string + secondaryCode: + type: string + bannedUntil: + format: int64 + type: integer + maxCharacterLength: + format: int32 + type: integer + translatedError: + type: string + customConfig: + $ref: "#/components/schemas/CustomConfigParameters" + required: + - code + - reason + - status + type: object + Record_string.boolean_: + additionalProperties: + type: boolean + description: Construct a type with a set of properties K of type T + properties: {} + type: object + GetUserPresenceStatusesResponse: + example: + userIdsOnline: + key: true + status: success + properties: + status: + $ref: "#/components/schemas/APIStatus" + userIdsOnline: + additionalProperties: + type: boolean + description: Construct a type with a set of properties K of type T + properties: {} + type: object + required: + - status + - userIdsOnline + type: object + NotificationObjectType: + enum: + - 0 + - 1 + - 2 + type: integer + NotificationType: + enum: + - 0 + - 1 + - 2 + - 3 + - 4 + - 5 + - 6 + - 7 + - 8 + - 81 + - 82 + - 9 + - 10 + type: integer + RenderableUserNotification: + example: + fromUserAvatarSrc: fromUserAvatarSrc + contextHTML: contextHTML + fromCommentId: fromCommentId + relatedObjectId: relatedObjectId + conversationId: conversationId + fromUserNames: + - fromUserNames + - fromUserNames + fromUserId: fromUserId + pageTitle: pageTitle + count: 0 + type: 6 + urlId: urlId + sent: sent + url: url + fromUserIds: + - fromUserIds + - fromUserIds + optedOut: true + fromUserName: fromUserName + createdAt: createdAt + relatedIds: + - relatedIds + - relatedIds + viewed: viewed + relatedObjectType: 1 + _id: _id + properties: + conversationId: + type: string + contextHTML: + type: string + fromUserNames: + items: + type: string + type: array + fromUserIds: + items: + type: string + type: array + relatedIds: + items: + type: string + type: array + count: + format: int64 + type: integer + optedOut: + type: boolean + fromUserAvatarSrc: + nullable: true + type: string + fromUserId: + nullable: true + type: string + fromUserName: + nullable: true + type: string + fromCommentId: + nullable: true + type: string + type: + $ref: "#/components/schemas/NotificationType" + createdAt: + type: string + sent: + type: string + viewed: + type: string + relatedObjectId: + type: string + relatedObjectType: + $ref: "#/components/schemas/NotificationObjectType" + pageTitle: + nullable: true + type: string + url: + type: string + urlId: + type: string + _id: + type: string + required: + - _id + - createdAt + - optedOut + - relatedObjectId + - relatedObjectType + - sent + - type + - url + - urlId + - viewed + type: object + GetMyNotificationsResponse: + example: + isSubscribed: true + translations: + key: translations + hasMore: true + notifications: + - fromUserAvatarSrc: fromUserAvatarSrc + contextHTML: contextHTML + fromCommentId: fromCommentId + relatedObjectId: relatedObjectId + conversationId: conversationId + fromUserNames: + - fromUserNames + - fromUserNames + fromUserId: fromUserId + pageTitle: pageTitle + count: 0 + type: 6 + urlId: urlId + sent: sent + url: url + fromUserIds: + - fromUserIds + - fromUserIds + optedOut: true + fromUserName: fromUserName + createdAt: createdAt + relatedIds: + - relatedIds + - relatedIds + viewed: viewed + relatedObjectType: 1 + _id: _id + - fromUserAvatarSrc: fromUserAvatarSrc + contextHTML: contextHTML + fromCommentId: fromCommentId + relatedObjectId: relatedObjectId + conversationId: conversationId + fromUserNames: + - fromUserNames + - fromUserNames + fromUserId: fromUserId + pageTitle: pageTitle + count: 0 + type: 6 + urlId: urlId + sent: sent + url: url + fromUserIds: + - fromUserIds + - fromUserIds + optedOut: true + fromUserName: fromUserName + createdAt: createdAt + relatedIds: + - relatedIds + - relatedIds + viewed: viewed + relatedObjectType: 1 + _id: _id + status: success + properties: + translations: + additionalProperties: + type: string + description: Construct a type with a set of properties K of type T + example: {} + properties: {} + type: object + isSubscribed: + type: boolean + hasMore: + type: boolean + notifications: + items: + $ref: "#/components/schemas/RenderableUserNotification" + type: array + status: + $ref: "#/components/schemas/APIStatus" + required: + - hasMore + - isSubscribed + - notifications + - status + type: object + ResetUserNotificationsResponse: + additionalProperties: false + example: + code: ignored-since-impersonated + status: success + properties: + status: + $ref: "#/components/schemas/APIStatus" + code: + enum: + - ignored-since-impersonated + nullable: false + type: string + required: + - status + type: object + GetUserNotificationCountResponse: + additionalProperties: false + example: + count: 0 + status: success + properties: + status: + $ref: "#/components/schemas/APIStatus" + count: + format: int64 + type: integer + required: + - count + - status + type: object + EnumAsObject_typeofNotificationType_: + properties: {} + type: object + NotificationAndCount: + additionalProperties: false + properties: + type: + $ref: "#/components/schemas/NotificationType" + count: + format: int64 + type: integer + required: + - count + - type + type: object + HeaderAccountNotification: + additionalProperties: false + properties: + _id: + type: string + title: + type: string + message: + type: string + messagesByLocale: + allOf: + - $ref: "#/components/schemas/Record_string.string_" + nullable: true + dates: + allOf: + - $ref: "#/components/schemas/Record_string.string_" + nullable: true + severity: + type: string + linkUrl: + nullable: true + type: string + linkText: + nullable: true + type: string + createdAt: + format: date-time + type: string + type: + description: Discriminator for notifications with a special layout/click + handler (e.g. "feedback-offer"). + nullable: true + type: string + required: + - _id + - createdAt + - dates + - linkText + - linkUrl + - message + - messagesByLocale + - severity + - title + type: object + HeaderState: + additionalProperties: false + properties: + status: + $ref: "#/components/schemas/APIStatus" + NotificationType: + properties: {} + type: object + userId: + type: string + userIdWS: + type: string + notificationCounts: + items: + $ref: "#/components/schemas/NotificationAndCount" + type: array + accountNotifications: + items: + $ref: "#/components/schemas/HeaderAccountNotification" + type: array + required: + - NotificationType + - accountNotifications + - notificationCounts + - status + - userId + - userIdWS + type: object + UserNotificationWriteResponse: + additionalProperties: false + example: + modifiedCount: 6 + matchedCount: 0 + status: success + properties: + status: + $ref: "#/components/schemas/APIStatus" + matchedCount: + format: int64 + type: integer + modifiedCount: + format: int64 + type: integer + required: + - matchedCount + - modifiedCount + - status + type: object + IgnoredResponse: + additionalProperties: false + properties: + status: + $ref: "#/components/schemas/APIStatus" + note: + enum: + - ignored-since-impersonated + - demo-noop + type: string + required: + - note + - status + type: object + MediaAsset: + additionalProperties: false + example: + src: src + w: 0 + h: 6 + properties: + w: + format: int32 + type: integer + h: + format: int32 + type: integer + src: + type: string + required: + - h + - src + - w + type: object + UploadImageResponse: + additionalProperties: false + example: + reason: reason + code: code + media: + - src: src + w: 0 + h: 6 + - src: src + w: 0 + h: 6 + url: url + status: success + properties: + status: + $ref: "#/components/schemas/APIStatus" + url: + type: string + media: + items: + $ref: "#/components/schemas/MediaAsset" + type: array + reason: + type: string + code: + type: string + required: + - status + type: object + SizePreset: + enum: + - Default + - CrossPlatform + type: string + GetTranslationsResponse: + example: + translations: + key: translations + status: success + properties: + translations: + additionalProperties: + type: string + description: Construct a type with a set of properties K of type T + example: {} + properties: {} + type: object + status: + $ref: "#/components/schemas/APIStatus" + required: + - status + - translations + type: object + PublicPage: + example: + title: title + urlId: urlId + url: url + updatedAt: 0 + commentCount: 6 + properties: + updatedAt: + format: int64 + type: integer + commentCount: + format: int32 + type: integer + title: + type: string + url: + type: string + urlId: + type: string + required: + - commentCount + - title + - updatedAt + - url + - urlId + type: object + GetPublicPagesResponse: + example: + nextCursor: nextCursor + pages: + - title: title + urlId: urlId + url: url + updatedAt: 0 + commentCount: 6 + - title: title + urlId: urlId + url: url + updatedAt: 0 + commentCount: 6 + status: success + properties: + nextCursor: + nullable: true + type: string + pages: + items: + $ref: "#/components/schemas/PublicPage" + type: array + status: + $ref: "#/components/schemas/APIStatus" + required: + - nextCursor + - pages + - status + type: object + PagesSortBy: + enum: + - updatedAt + - commentCount + - title + type: string + PageUserEntry: + example: + displayName: displayName + avatarSrc: avatarSrc + isPrivate: true + id: id + properties: + isPrivate: + type: boolean + avatarSrc: + type: string + displayName: + type: string + id: + type: string + required: + - displayName + - id + type: object + PageUsersOnlineResponse: + example: + nextAfterUserId: nextAfterUserId + nextAfterName: nextAfterName + totalCount: 0.8008281904610115 + users: + - displayName: displayName + avatarSrc: avatarSrc + isPrivate: true + id: id + - displayName: displayName + avatarSrc: avatarSrc + isPrivate: true + id: id + anonCount: 6.027456183070403 + status: success + properties: + nextAfterUserId: + nullable: true + type: string + nextAfterName: + nullable: true + type: string + totalCount: + format: double + type: number + anonCount: + format: double + type: number + users: + items: + $ref: "#/components/schemas/PageUserEntry" + type: array + status: + $ref: "#/components/schemas/APIStatus" + required: + - anonCount + - nextAfterName + - nextAfterUserId + - status + - totalCount + - users + type: object + PageUsersOfflineResponse: + example: + nextAfterUserId: nextAfterUserId + nextAfterName: nextAfterName + users: + - displayName: displayName + avatarSrc: avatarSrc + isPrivate: true + id: id + - displayName: displayName + avatarSrc: avatarSrc + isPrivate: true + id: id + status: success + properties: + nextAfterUserId: + nullable: true + type: string + nextAfterName: + nullable: true + type: string + users: + items: + $ref: "#/components/schemas/PageUserEntry" + type: array + status: + $ref: "#/components/schemas/APIStatus" + required: + - nextAfterName + - nextAfterUserId + - status + - users + type: object + PageUsersInfoResponse: + example: + users: + - displayName: displayName + avatarSrc: avatarSrc + isPrivate: true + id: id + - displayName: displayName + avatarSrc: avatarSrc + isPrivate: true + id: id + status: success + properties: + users: + items: + $ref: "#/components/schemas/PageUserEntry" + type: array + status: + $ref: "#/components/schemas/APIStatus" + required: + - status + - users + type: object + GetV1PageLikes: + example: + urlIdWS: urlIdWS + didLike: true + likeCount: 6 + commentCount: 0 + status: success + properties: + urlIdWS: + type: string + didLike: + type: boolean + commentCount: + format: int32 + type: integer + likeCount: + format: int32 + type: integer + status: + $ref: "#/components/schemas/APIStatus" + required: + - commentCount + - didLike + - likeCount + - status + - urlIdWS + type: object + GetV2PageReactUsersResponse: + example: + userNames: + - userNames + - userNames + status: success + properties: + userNames: + items: + type: string + type: array + status: + $ref: "#/components/schemas/APIStatus" + required: + - status + - userNames + type: object + Record_string.number_: + additionalProperties: + format: double + type: number + description: Construct a type with a set of properties K of type T + properties: {} + type: object + GetV2PageReacts: + example: + reactedIds: + - reactedIds + - reactedIds + counts: + key: 0.8008281904610115 + status: success + properties: + reactedIds: + items: + type: string + type: array + counts: + additionalProperties: + format: double + type: number + description: Construct a type with a set of properties K of type T + properties: {} + type: object + status: + $ref: "#/components/schemas/APIStatus" + required: + - status + type: object + CreateV1PageReact: + example: + code: code + status: success + properties: + code: + type: string + status: + $ref: "#/components/schemas/APIStatus" + required: + - status + type: object + CreateV2PageReact: + $ref: "#/components/schemas/CreateV1PageReact" + DeleteV1PageReact: + $ref: "#/components/schemas/CreateV1PageReact" + DeleteV2PageReact: + $ref: "#/components/schemas/CreateV1PageReact" + ModerationFilter: + additionalProperties: false + example: + flagCountGt: 7.061401241503109 + approved: true + moderationGroupIds: + - moderationGroupIds + - moderationGroupIds + isLocked: true + domain: domain + exactCommentText: exactCommentText + reviewed: true + isSpam: true + isBannedUser: true + urlId: urlId + userId: userId + commentTextSearch: + - commentTextSearch + - commentTextSearch + properties: + reviewed: + type: boolean + approved: + type: boolean + isSpam: + type: boolean + isBannedUser: + type: boolean + isLocked: + type: boolean + flagCountGt: + format: double + type: number + userId: + type: string + urlId: + type: string + domain: + type: string + moderationGroupIds: + items: + type: string + type: array + commentTextSearch: + description: |- + Text search terms. Each term is matched case-insensitively against the comment text. + A term wrapped in quotes means exact phrase match. + items: + type: string + type: array + exactCommentText: + description: |- + Set by the `exact="..."` search syntax. The comment text must equal this value exactly + (case-sensitive, full-string), as opposed to the substring matching of commentTextSearch. + type: string + type: object + BuildModerationFilterResponse: + additionalProperties: false + properties: + status: + type: string + moderationFilter: + $ref: "#/components/schemas/ModerationFilter" + required: + - moderationFilter + - status + type: object + BuildModerationFilterParams: + additionalProperties: {} + properties: + userId: + type: string + tenantId: + type: string + filters: + type: string + searchFilters: + type: string + textSearch: + type: string + required: + - tenantId + - userId + type: object + ModerationAPICountCommentsResponse: + additionalProperties: false + example: + count: 0.8008281904610115 + status: success + properties: + status: + $ref: "#/components/schemas/APIStatus" + count: + format: double + type: number + required: + - count + - status + type: object + ModerationAPIGetCommentIdsResponse: + example: + hasMore: true + ids: + - ids + - ids + status: success + properties: + ids: + items: + type: string + type: array + hasMore: + type: boolean + status: + $ref: "#/components/schemas/APIStatus" + required: + - hasMore + - ids + - status + type: object + UserId: + type: string + CommentUserBadgeInfo: + additionalProperties: false + example: + displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 2 + textColor: textColor + displaySrc: displaySrc + properties: + id: + type: string + type: + format: int32 + type: integer + description: + type: string + displayLabel: + nullable: true + type: string + displaySrc: + nullable: true + type: string + backgroundColor: + nullable: true + type: string + borderColor: + nullable: true + type: string + textColor: + nullable: true + type: string + cssClass: + nullable: true + type: string + required: + - description + - id + - type + type: object + ModerationAPIComment: + additionalProperties: false + example: + date: 2000-01-23T04:56:07.000+00:00 + votesDown: 5.962133916683182 + pageTitle: pageTitle + commenterName: commenterName + isLocalDeleted: true + isByModerator: true + commenterLink: commenterLink + isVotedDown: true + urlId: urlId + locale: locale + commentHTML: commentHTML + approved: true + localDateString: localDateString + isDeleted: true + permNotSpam: true + isLocked: true + reviewed: true + votesUp: 1.4658129805029452 + displayLabel: displayLabel + flagCount: 5.637376656633329 + hasCode: true + isPinned: true + isVotedUp: true + verified: true + feedbackIds: + - feedbackIds + - feedbackIds + anonUserId: anonUserId + feedbackResults: + - feedbackResults + - feedbackResults + hasLinks: true + expireAt: 2000-01-23T04:56:07.000+00:00 + userId: "" + url: url + parentId: parentId + badges: + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 2 + textColor: textColor + displaySrc: displaySrc + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 2 + textColor: textColor + displaySrc: displaySrc + replyCount: 0.8008281904610115 + myVoteId: myVoteId + tenantId: tenantId + avatarSrc: avatarSrc + votes: 6.027456183070403 + _id: _id + isSpam: true + isBannedUser: true + isByAdmin: true + properties: + isLocalDeleted: + type: boolean + replyCount: + format: double + type: number + feedbackResults: + items: + type: string + type: array + isVotedUp: + type: boolean + isVotedDown: + type: boolean + myVoteId: + type: string + _id: + type: string + tenantId: + type: string + urlId: + type: string + url: + type: string + pageTitle: + nullable: true + type: string + userId: + allOf: + - $ref: "#/components/schemas/UserId" + nullable: true + anonUserId: + nullable: true + type: string + commenterName: + type: string + commenterLink: + nullable: true + type: string + commentHTML: + type: string + parentId: + nullable: true + type: string + date: + format: date-time + nullable: true + type: string + localDateString: + nullable: true + type: string + votes: + format: double + nullable: true + type: number + votesUp: + format: double + nullable: true + type: number + votesDown: + format: double + nullable: true + type: number + expireAt: + format: date-time + nullable: true + type: string + reviewed: + type: boolean + avatarSrc: + nullable: true + type: string + isSpam: + type: boolean + permNotSpam: + type: boolean + hasLinks: + type: boolean + hasCode: + type: boolean + approved: + type: boolean + locale: + nullable: true + type: string + isBannedUser: + type: boolean + isByAdmin: + type: boolean + isByModerator: + type: boolean + isPinned: + nullable: true + type: boolean + isLocked: + nullable: true + type: boolean + flagCount: + format: double + nullable: true + type: number + displayLabel: + nullable: true + type: string + badges: + items: + $ref: "#/components/schemas/CommentUserBadgeInfo" + nullable: true + type: array + verified: + type: boolean + feedbackIds: + items: + type: string + type: array + isDeleted: + type: boolean + required: + - _id + - approved + - commentHTML + - commenterName + - date + - locale + - tenantId + - url + - urlId + - verified + type: object + ModerationAPIGetCommentsResponse: + additionalProperties: false + example: + moderationFilter: + flagCountGt: 7.061401241503109 + approved: true + moderationGroupIds: + - moderationGroupIds + - moderationGroupIds + isLocked: true + domain: domain + exactCommentText: exactCommentText + reviewed: true + isSpam: true + isBannedUser: true + urlId: urlId + userId: userId + commentTextSearch: + - commentTextSearch + - commentTextSearch + comments: + - date: 2000-01-23T04:56:07.000+00:00 + votesDown: 5.962133916683182 + pageTitle: pageTitle + commenterName: commenterName + isLocalDeleted: true + isByModerator: true + commenterLink: commenterLink + isVotedDown: true + urlId: urlId + locale: locale + commentHTML: commentHTML + approved: true + localDateString: localDateString + isDeleted: true + permNotSpam: true + isLocked: true + reviewed: true + votesUp: 1.4658129805029452 + displayLabel: displayLabel + flagCount: 5.637376656633329 + hasCode: true + isPinned: true + isVotedUp: true + verified: true + feedbackIds: + - feedbackIds + - feedbackIds + anonUserId: anonUserId + feedbackResults: + - feedbackResults + - feedbackResults + hasLinks: true + expireAt: 2000-01-23T04:56:07.000+00:00 + userId: "" + url: url + parentId: parentId + badges: + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 2 + textColor: textColor + displaySrc: displaySrc + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 2 + textColor: textColor + displaySrc: displaySrc + replyCount: 0.8008281904610115 + myVoteId: myVoteId + tenantId: tenantId + avatarSrc: avatarSrc + votes: 6.027456183070403 + _id: _id + isSpam: true + isBannedUser: true + isByAdmin: true + - date: 2000-01-23T04:56:07.000+00:00 + votesDown: 5.962133916683182 + pageTitle: pageTitle + commenterName: commenterName + isLocalDeleted: true + isByModerator: true + commenterLink: commenterLink + isVotedDown: true + urlId: urlId + locale: locale + commentHTML: commentHTML + approved: true + localDateString: localDateString + isDeleted: true + permNotSpam: true + isLocked: true + reviewed: true + votesUp: 1.4658129805029452 + displayLabel: displayLabel + flagCount: 5.637376656633329 + hasCode: true + isPinned: true + isVotedUp: true + verified: true + feedbackIds: + - feedbackIds + - feedbackIds + anonUserId: anonUserId + feedbackResults: + - feedbackResults + - feedbackResults + hasLinks: true + expireAt: 2000-01-23T04:56:07.000+00:00 + userId: "" + url: url + parentId: parentId + badges: + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 2 + textColor: textColor + displaySrc: displaySrc + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 2 + textColor: textColor + displaySrc: displaySrc + replyCount: 0.8008281904610115 + myVoteId: myVoteId + tenantId: tenantId + avatarSrc: avatarSrc + votes: 6.027456183070403 + _id: _id + isSpam: true + isBannedUser: true + isByAdmin: true + translations: "{}" + status: success + properties: + status: + $ref: "#/components/schemas/APIStatus" + translations: + additionalProperties: false + type: object + comments: + items: + $ref: "#/components/schemas/ModerationAPIComment" + type: array + moderationFilter: + $ref: "#/components/schemas/ModerationFilter" + required: + - comments + - status + - translations + type: object + ModerationExportResponse: + additionalProperties: false + example: + batchJobId: batchJobId + status: status + properties: + status: + type: string + batchJobId: + type: string + required: + - batchJobId + - status + type: object + ModerationExportStatusResponse: + additionalProperties: false + example: + jobStatus: jobStatus + recordCount: 0 + downloadUrl: downloadUrl + status: status + properties: + status: + type: string + jobStatus: + type: string + recordCount: + format: int32 + type: integer + downloadUrl: + type: string + required: + - jobStatus + - recordCount + - status + type: object + ModerationUserSearchProjected: + additionalProperties: false + example: + displayName: displayName + avatarSrc: avatarSrc + _id: _id + username: username + properties: + _id: + type: string + username: + type: string + displayName: + nullable: true + type: string + avatarSrc: + nullable: true + type: string + required: + - _id + - username + type: object + ModerationUserSearchResponse: + example: + users: + - displayName: displayName + avatarSrc: avatarSrc + _id: _id + username: username + - displayName: displayName + avatarSrc: avatarSrc + _id: _id + username: username + status: success + properties: + users: + items: + $ref: "#/components/schemas/ModerationUserSearchProjected" + type: array + status: + $ref: "#/components/schemas/APIStatus" + required: + - status + - users + type: object + ModerationPageSearchProjected: + additionalProperties: false + example: + urlId: urlId + title: title + url: url + commentCount: 0.8008281904610115 + properties: + urlId: + type: string + url: + type: string + title: + type: string + commentCount: + format: double + type: number + required: + - commentCount + - title + - url + - urlId + type: object + ModerationPageSearchResponse: + example: + pages: + - urlId: urlId + title: title + url: url + commentCount: 0.8008281904610115 + - urlId: urlId + title: title + url: url + commentCount: 0.8008281904610115 + status: success + properties: + pages: + items: + $ref: "#/components/schemas/ModerationPageSearchProjected" + type: array + status: + $ref: "#/components/schemas/APIStatus" + required: + - pages + - status + type: object + ModerationSiteSearchProjected: + additionalProperties: false + example: + logoSrc100px: logoSrc100px + domain: domain + properties: + domain: + type: string + logoSrc100px: + nullable: true + type: string + required: + - domain + type: object + ModerationSiteSearchResponse: + example: + sites: + - logoSrc100px: logoSrc100px + domain: domain + - logoSrc100px: logoSrc100px + domain: domain + status: success + properties: + sites: + items: + $ref: "#/components/schemas/ModerationSiteSearchProjected" + type: array + status: + $ref: "#/components/schemas/APIStatus" + required: + - sites + - status + type: object + ModerationCommentSearchResponse: + example: + commentCount: 0 + status: success + properties: + commentCount: + format: int32 + type: integer + status: + $ref: "#/components/schemas/APIStatus" + required: + - commentCount + - status + type: object + ModerationSuggestResponse: + additionalProperties: false + example: + pages: + - urlId: urlId + title: title + url: url + commentCount: 0.8008281904610115 + - urlId: urlId + title: title + url: url + commentCount: 0.8008281904610115 + code: code + users: + - displayName: displayName + avatarSrc: avatarSrc + _id: _id + username: username + - displayName: displayName + avatarSrc: avatarSrc + _id: _id + username: username + status: status + properties: + status: + type: string + pages: + items: + $ref: "#/components/schemas/ModerationPageSearchProjected" + type: array + users: + items: + $ref: "#/components/schemas/ModerationUserSearchProjected" + type: array + code: + type: string + required: + - status + type: object + PreBanSummary: + additionalProperties: false + example: + count: 0.8008281904610115 + usernames: + - usernames + - usernames + status: success + properties: + status: + $ref: "#/components/schemas/APIStatus" + usernames: + items: + type: string + type: array + count: + format: double + type: number + required: + - count + - status + - usernames + type: object + BulkPreBanSummary: + additionalProperties: false + example: + emails: + - emails + - emails + totalRelatedCommentCount: 0 + userIds: + - userIds + - userIds + emailDomains: + - emailDomains + - emailDomains + ipHashes: + - ipHashes + - ipHashes + status: status + properties: + status: + type: string + totalRelatedCommentCount: + format: int32 + type: integer + emailDomains: + items: + type: string + type: array + emails: + items: + type: string + type: array + userIds: + items: + type: string + type: array + ipHashes: + items: + type: string + type: array + required: + - emailDomains + - emails + - ipHashes + - status + - totalRelatedCommentCount + - userIds + type: object + BulkPreBanParams: + additionalProperties: false + example: + commentIds: + - commentIds + - commentIds + properties: + commentIds: + items: type: string type: array - commentContains: + required: + - commentIds + type: object + APIBannedUser: + additionalProperties: false + example: + bannedUntil: 2000-01-23T04:56:07.000+00:00 + ipHash: ipHash + hasEmailWildcard: true + userId: userId + bannedCommentText: bannedCommentText + banReason: banReason + bannedByUserId: bannedByUserId + createdAt: 2000-01-23T04:56:07.000+00:00 + banType: banType + tenantId: tenantId + _id: _id + email: email + username: username + properties: + _id: + type: string + tenantId: + type: string + userId: + nullable: true + type: string + email: + nullable: true + type: string + username: + nullable: true + type: string + ipHash: + nullable: true + type: string + createdAt: + format: date-time + type: string + bannedByUserId: + type: string + bannedCommentText: + type: string + banType: + type: string + bannedUntil: + format: date-time + nullable: true + type: string + hasEmailWildcard: + type: boolean + banReason: + type: string + required: + - _id + - banType + - bannedByUserId + - bannedCommentText + - bannedUntil + - createdAt + - hasEmailWildcard + - tenantId + type: object + APIBanUserChangedValues: + additionalProperties: false + example: + bannedUntil: 2000-01-23T04:56:07.000+00:00 + ipHash: ipHash + hasEmailWildcard: true + userId: userId + bannedCommentText: bannedCommentText + banReason: banReason + bannedByUserId: bannedByUserId + createdAt: 2000-01-23T04:56:07.000+00:00 + banType: banType + tenantId: tenantId + _id: _id + email: email + username: username + properties: + _id: + type: string + tenantId: + type: string + userId: + nullable: true + type: string + email: + nullable: true + type: string + username: + nullable: true + type: string + ipHash: + nullable: true + type: string + createdAt: + format: date-time + type: string + bannedByUserId: + type: string + bannedCommentText: + type: string + banType: + type: string + bannedUntil: + format: date-time + nullable: true + type: string + hasEmailWildcard: + type: boolean + banReason: + type: string + type: object + APIBanUserChangeLog: + additionalProperties: false + example: + deletedBannedUsers: + - bannedUntil: 2000-01-23T04:56:07.000+00:00 + ipHash: ipHash + hasEmailWildcard: true + userId: userId + bannedCommentText: bannedCommentText + banReason: banReason + bannedByUserId: bannedByUserId + createdAt: 2000-01-23T04:56:07.000+00:00 + banType: banType + tenantId: tenantId + _id: _id + email: email + username: username + - bannedUntil: 2000-01-23T04:56:07.000+00:00 + ipHash: ipHash + hasEmailWildcard: true + userId: userId + bannedCommentText: bannedCommentText + banReason: banReason + bannedByUserId: bannedByUserId + createdAt: 2000-01-23T04:56:07.000+00:00 + banType: banType + tenantId: tenantId + _id: _id + email: email + username: username + updatedBannedUserId: updatedBannedUserId + changedValuesBefore: + bannedUntil: 2000-01-23T04:56:07.000+00:00 + ipHash: ipHash + hasEmailWildcard: true + userId: userId + bannedCommentText: bannedCommentText + banReason: banReason + bannedByUserId: bannedByUserId + createdAt: 2000-01-23T04:56:07.000+00:00 + banType: banType + tenantId: tenantId + _id: _id + email: email + username: username + createdBannedUserId: createdBannedUserId + properties: + createdBannedUserId: + type: string + updatedBannedUserId: + type: string + deletedBannedUsers: + items: + $ref: "#/components/schemas/APIBannedUser" + type: array + changedValuesBefore: + $ref: "#/components/schemas/APIBanUserChangedValues" + type: object + BanUserFromCommentResult: + additionalProperties: false + example: + reason: reason + code: code + changelog: + deletedBannedUsers: + - bannedUntil: 2000-01-23T04:56:07.000+00:00 + ipHash: ipHash + hasEmailWildcard: true + userId: userId + bannedCommentText: bannedCommentText + banReason: banReason + bannedByUserId: bannedByUserId + createdAt: 2000-01-23T04:56:07.000+00:00 + banType: banType + tenantId: tenantId + _id: _id + email: email + username: username + - bannedUntil: 2000-01-23T04:56:07.000+00:00 + ipHash: ipHash + hasEmailWildcard: true + userId: userId + bannedCommentText: bannedCommentText + banReason: banReason + bannedByUserId: bannedByUserId + createdAt: 2000-01-23T04:56:07.000+00:00 + banType: banType + tenantId: tenantId + _id: _id + email: email + username: username + updatedBannedUserId: updatedBannedUserId + changedValuesBefore: + bannedUntil: 2000-01-23T04:56:07.000+00:00 + ipHash: ipHash + hasEmailWildcard: true + userId: userId + bannedCommentText: bannedCommentText + banReason: banReason + bannedByUserId: bannedByUserId + createdAt: 2000-01-23T04:56:07.000+00:00 + banType: banType + tenantId: tenantId + _id: _id + email: email + username: username + createdBannedUserId: createdBannedUserId + status: status + properties: + status: + type: string + changelog: + $ref: "#/components/schemas/APIBanUserChangeLog" + code: + type: string + reason: type: string required: - - actions + - status type: object - SSOSecurityLevel: + BannedUserMatchType: enum: - - 0 - - 1 - type: integer - Record_string.string_: - additionalProperties: - type: string - description: Construct a type with a set of properties K of type T - example: {} - properties: {} + - userId + - email + - email-wildcard + - IP + type: string + BannedUserMatch: + additionalProperties: false + example: + matchedOn: userId + matchedOnValue: BannedUserMatch_matchedOnValue + properties: + matchedOn: + $ref: "#/components/schemas/BannedUserMatchType" + matchedOnValue: + $ref: "#/components/schemas/BannedUserMatch_matchedOnValue" + required: + - matchedOn + - matchedOnValue type: object - VoteStyle: - enum: - - 0 - - 1 - type: integer - CommentQuestionResultsRenderingType: - enum: - - 0 - - 1 - - 2 - type: integer - QuestionRenderingType: - enum: - - 0 - - 1 - type: integer - QuestionWhenSave: - enum: - - 0 - - 1 - type: integer - CommentQuestionsRequired: - enum: - - 0 - - 1 - type: integer - QuestionSubQuestionVisibility: + APICommentCommonBannedUser: + additionalProperties: false + properties: + _id: + type: string + userId: + nullable: true + type: string + banType: + type: string + email: + nullable: true + type: string + ipHash: + nullable: true + type: string + bannedUntil: + format: date-time + nullable: true + type: string + hasEmailWildcard: + type: boolean + banReason: + type: string + required: + - _id + - banType + - bannedUntil + - hasEmailWildcard + type: object + APIBannedUserWithMultiMatchInfo: + allOf: + - properties: + matches: + items: + $ref: "#/components/schemas/BannedUserMatch" + type: array + required: + - matches + type: object + - $ref: "#/components/schemas/APICommentCommonBannedUser" + example: + bannedUntil: 2000-01-23T04:56:07.000+00:00 + banType: banType + _id: _id + ipHash: ipHash + hasEmailWildcard: true + matches: + - matchedOn: userId + matchedOnValue: BannedUserMatch_matchedOnValue + - matchedOn: userId + matchedOnValue: BannedUserMatch_matchedOnValue + userId: userId + email: email + banReason: banReason + GetBannedUsersFromCommentResponse: + example: + code: not-found + bannedUsers: + - bannedUntil: 2000-01-23T04:56:07.000+00:00 + banType: banType + _id: _id + ipHash: ipHash + hasEmailWildcard: true + matches: + - matchedOn: userId + matchedOnValue: BannedUserMatch_matchedOnValue + - matchedOn: userId + matchedOnValue: BannedUserMatch_matchedOnValue + userId: userId + email: email + banReason: banReason + - bannedUntil: 2000-01-23T04:56:07.000+00:00 + banType: banType + _id: _id + ipHash: ipHash + hasEmailWildcard: true + matches: + - matchedOn: userId + matchedOnValue: BannedUserMatch_matchedOnValue + - matchedOn: userId + matchedOnValue: BannedUserMatch_matchedOnValue + userId: userId + email: email + banReason: banReason + status: success + properties: + bannedUsers: + items: + $ref: "#/components/schemas/APIBannedUserWithMultiMatchInfo" + type: array + code: + enum: + - not-found + - not-logged-in + type: string + status: + $ref: "#/components/schemas/APIStatus" + required: + - bannedUsers + - status + type: object + APIEmptyResponse: + example: + status: success + properties: + status: + $ref: "#/components/schemas/APIStatus" + required: + - status + type: object + BanUserUndoParams: + additionalProperties: false + example: + changelog: + deletedBannedUsers: + - bannedUntil: 2000-01-23T04:56:07.000+00:00 + ipHash: ipHash + hasEmailWildcard: true + userId: userId + bannedCommentText: bannedCommentText + banReason: banReason + bannedByUserId: bannedByUserId + createdAt: 2000-01-23T04:56:07.000+00:00 + banType: banType + tenantId: tenantId + _id: _id + email: email + username: username + - bannedUntil: 2000-01-23T04:56:07.000+00:00 + ipHash: ipHash + hasEmailWildcard: true + userId: userId + bannedCommentText: bannedCommentText + banReason: banReason + bannedByUserId: bannedByUserId + createdAt: 2000-01-23T04:56:07.000+00:00 + banType: banType + tenantId: tenantId + _id: _id + email: email + username: username + updatedBannedUserId: updatedBannedUserId + changedValuesBefore: + bannedUntil: 2000-01-23T04:56:07.000+00:00 + ipHash: ipHash + hasEmailWildcard: true + userId: userId + bannedCommentText: bannedCommentText + banReason: banReason + bannedByUserId: bannedByUserId + createdAt: 2000-01-23T04:56:07.000+00:00 + banType: banType + tenantId: tenantId + _id: _id + email: email + username: username + createdBannedUserId: createdBannedUserId + properties: + changelog: + $ref: "#/components/schemas/APIBanUserChangeLog" + required: + - changelog + type: object + DeleteCommentAction: enum: - - 0 - - 1 - type: integer - TOSConfig: + - already-deleted + - hard-removed + - anonymized + type: string + DeleteCommentResult: + example: + action: already-deleted + status: success + properties: + action: + $ref: "#/components/schemas/DeleteCommentAction" + status: + $ref: "#/components/schemas/APIStatus" + required: + - action + - status + type: object + RemoveCommentActionResponse: + additionalProperties: false + properties: + status: + type: string + action: + type: string + required: + - action + - status + type: object + SetCommentApprovedResponse: + example: + didResetFlaggedCount: true + status: success + properties: + didResetFlaggedCount: + type: boolean + status: + $ref: "#/components/schemas/APIStatus" + required: + - status + type: object + ModerationAPICommentLog: additionalProperties: false example: - lastUpdated: 2000-01-23T04:56:07.000+00:00 - textByLocale: - key: textByLocale - enabled: true + date: 2000-01-23T04:56:07.000+00:00 + messageHTML: messageHTML + username: username + actionName: actionName + properties: + date: + format: date-time + type: string + username: + type: string + actionName: + type: string + messageHTML: + type: string + required: + - actionName + - date + - messageHTML + type: object + ModerationAPIGetLogsResponse: + example: + logs: + - date: 2000-01-23T04:56:07.000+00:00 + messageHTML: messageHTML + username: username + actionName: actionName + - date: 2000-01-23T04:56:07.000+00:00 + messageHTML: messageHTML + username: username + actionName: actionName + status: success + properties: + logs: + items: + $ref: "#/components/schemas/ModerationAPICommentLog" + type: array + status: + $ref: "#/components/schemas/APIStatus" + required: + - logs + - status + type: object + ModerationAPICommentResponse: + example: + comment: + date: 2000-01-23T04:56:07.000+00:00 + votesDown: 5.962133916683182 + pageTitle: pageTitle + commenterName: commenterName + isLocalDeleted: true + isByModerator: true + commenterLink: commenterLink + isVotedDown: true + urlId: urlId + locale: locale + commentHTML: commentHTML + approved: true + localDateString: localDateString + isDeleted: true + permNotSpam: true + isLocked: true + reviewed: true + votesUp: 1.4658129805029452 + displayLabel: displayLabel + flagCount: 5.637376656633329 + hasCode: true + isPinned: true + isVotedUp: true + verified: true + feedbackIds: + - feedbackIds + - feedbackIds + anonUserId: anonUserId + feedbackResults: + - feedbackResults + - feedbackResults + hasLinks: true + expireAt: 2000-01-23T04:56:07.000+00:00 + userId: "" + url: url + parentId: parentId + badges: + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 2 + textColor: textColor + displaySrc: displaySrc + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 2 + textColor: textColor + displaySrc: displaySrc + replyCount: 0.8008281904610115 + myVoteId: myVoteId + tenantId: tenantId + avatarSrc: avatarSrc + votes: 6.027456183070403 + _id: _id + isSpam: true + isBannedUser: true + isByAdmin: true + status: success properties: - enabled: - type: boolean - textByLocale: - additionalProperties: - type: string - description: Construct a type with a set of properties K of type T - example: {} - properties: {} - type: object - lastUpdated: - format: date-time - type: string + comment: + $ref: "#/components/schemas/ModerationAPIComment" + status: + $ref: "#/components/schemas/APIStatus" + required: + - comment + - status type: object - CustomConfigParameters: - additionalProperties: false + ModerationAPIChildCommentsResponse: example: - disableAutoHashTagCreation: true - disableCommenterCommentDelete: true - enableVoteList: true - pageSize: 7 - collapseReplies: true - disableProfiles: true - disableSuccessMessage: true - allowAnon: true - countAboveToggle: 5 - readonly: true - useShowCommentsToggle: true - noImageUploads: true - spamRules: - - commentContains: commentContains - actions: - - spam - - spam - - commentContains: commentContains - actions: - - spam - - spam - translations: "" - widgetQuestionId: widgetQuestionId - disableLiveCommenting: true - ssoSecLvl: 9 - defaultSortDirection: "" - disableVoting: true - noCustomConfig: true - gifRating: g - ticketAutoAssignUserIds: - - ticketAutoAssignUserIds - - ticketAutoAssignUserIds - enableSearch: true - requireSSO: true - disableToolbar: true - hideCommentsUnderCountTextFormat: hideCommentsUnderCountTextFormat - maxCommentCreatedCountPUPM: 2 - disableProfileDirectMessages: true - disableBlocking: true - disableEmailInputs: true - widgetQuestionWhenToSave: 7 - allowAnonFlag: true - ticketKBSearchEndpoint: ticketKBSearchEndpoint - widgetSubQuestionVisibility: 1 - showBadgesInTopBar: true - widgetQuestionStyle: 4 - restrictedLinkDomains: - - restrictedLinkDomains - - restrictedLinkDomains - showQuestion: true - inputAfterComments: true - allowAnonVotes: true - commentThreadDeleteMode: "" - commentCountFormat: commentCountFormat - disableNotificationBell: true - voteStyle: 3 - disableAutoAdminMigration: true - disableProfileComments: true - absoluteAndRelativeDates: true - commenterNameFormat: "" - enableThirdPartyCookieBypass: true - ticketMaxFileSize: 1 - locale: locale - showCommentSaveSuccess: true - disableCommenterCommentEdit: true - enableCommenterLinks: true - imageContentProfanityLevel: "off" - enableSpoilers: true - disableUnverifiedLabel: true - noStyles: true - enableResizeHandle: true - absoluteDates: true - limitCommentsByGroups: true - enableWYSIWYG: true - tos: - lastUpdated: 2000-01-23T04:56:07.000+00:00 - textByLocale: - key: textByLocale - enabled: true - widgetQuestionShowBreakdown: true - mentionAutoCompleteMode: "" - customCSS: customCSS - enableViewCounts: true - headerHTML: headerHTML - hideAvatars: true - defaultAvatarSrc: defaultAvatarSrc - commentHTMLRenderingMode: 1 - noNewRootComments: true - ticketFileUploadsEnabled: true - maxCommentCharacterLength: 5 - useSingleLineCommentInput: true - allowedLanguages: - - allowedLanguages - - allowedLanguages - defaultUsername: defaultUsername - widgetQuestionResultsStyle: 2 - showLiveRightAway: true - widgetQuestionsRequired: 1 - hasDarkBackground: true - wrap: true - ticketBaseUrl: ticketBaseUrl + comments: + - date: 2000-01-23T04:56:07.000+00:00 + votesDown: 5.962133916683182 + pageTitle: pageTitle + commenterName: commenterName + isLocalDeleted: true + isByModerator: true + commenterLink: commenterLink + isVotedDown: true + urlId: urlId + locale: locale + commentHTML: commentHTML + approved: true + localDateString: localDateString + isDeleted: true + permNotSpam: true + isLocked: true + reviewed: true + votesUp: 1.4658129805029452 + displayLabel: displayLabel + flagCount: 5.637376656633329 + hasCode: true + isPinned: true + isVotedUp: true + verified: true + feedbackIds: + - feedbackIds + - feedbackIds + anonUserId: anonUserId + feedbackResults: + - feedbackResults + - feedbackResults + hasLinks: true + expireAt: 2000-01-23T04:56:07.000+00:00 + userId: "" + url: url + parentId: parentId + badges: + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 2 + textColor: textColor + displaySrc: displaySrc + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 2 + textColor: textColor + displaySrc: displaySrc + replyCount: 0.8008281904610115 + myVoteId: myVoteId + tenantId: tenantId + avatarSrc: avatarSrc + votes: 6.027456183070403 + _id: _id + isSpam: true + isBannedUser: true + isByAdmin: true + - date: 2000-01-23T04:56:07.000+00:00 + votesDown: 5.962133916683182 + pageTitle: pageTitle + commenterName: commenterName + isLocalDeleted: true + isByModerator: true + commenterLink: commenterLink + isVotedDown: true + urlId: urlId + locale: locale + commentHTML: commentHTML + approved: true + localDateString: localDateString + isDeleted: true + permNotSpam: true + isLocked: true + reviewed: true + votesUp: 1.4658129805029452 + displayLabel: displayLabel + flagCount: 5.637376656633329 + hasCode: true + isPinned: true + isVotedUp: true + verified: true + feedbackIds: + - feedbackIds + - feedbackIds + anonUserId: anonUserId + feedbackResults: + - feedbackResults + - feedbackResults + hasLinks: true + expireAt: 2000-01-23T04:56:07.000+00:00 + userId: "" + url: url + parentId: parentId + badges: + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 2 + textColor: textColor + displaySrc: displaySrc + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 2 + textColor: textColor + displaySrc: displaySrc + replyCount: 0.8008281904610115 + myVoteId: myVoteId + tenantId: tenantId + avatarSrc: avatarSrc + votes: 6.027456183070403 + _id: _id + isSpam: true + isBannedUser: true + isByAdmin: true + status: success properties: - absoluteAndRelativeDates: - type: boolean - absoluteDates: - type: boolean - allowAnon: - type: boolean - allowAnonFlag: - type: boolean - allowAnonVotes: - type: boolean - allowedLanguages: + comments: items: - type: string - nullable: true + $ref: "#/components/schemas/ModerationAPIComment" type: array - collapseReplies: - type: boolean - commentCountFormat: - nullable: true - type: string - commentHTMLRenderingMode: - $ref: "#/components/schemas/CommentHTMLRenderingMode" - commentThreadDeleteMode: - allOf: - - $ref: "#/components/schemas/CommentThreadDeletionMode" - nullable: true - commenterNameFormat: - allOf: - - $ref: "#/components/schemas/CommenterNameFormats" - nullable: true - countAboveToggle: - format: int32 - type: integer - customCSS: - nullable: true - type: string - defaultAvatarSrc: - nullable: true - type: string - defaultSortDirection: - allOf: - - $ref: "#/components/schemas/SortDirections" - nullable: true - defaultUsername: - nullable: true - type: string - disableAutoAdminMigration: - type: boolean - disableAutoHashTagCreation: - type: boolean - disableBlocking: - type: boolean - disableCommenterCommentDelete: - type: boolean - disableCommenterCommentEdit: - type: boolean - disableEmailInputs: - type: boolean - disableLiveCommenting: - type: boolean - disableNotificationBell: - type: boolean - disableProfileComments: - type: boolean - disableProfileDirectMessages: - type: boolean - disableProfiles: - type: boolean - disableSuccessMessage: - type: boolean - disableToolbar: - type: boolean - disableUnverifiedLabel: - type: boolean - disableVoting: - type: boolean - enableCommenterLinks: - type: boolean - enableSearch: - type: boolean - enableSpoilers: - type: boolean - enableThirdPartyCookieBypass: - type: boolean - enableViewCounts: - type: boolean - enableVoteList: - type: boolean - enableWYSIWYG: - type: boolean - gifRating: - $ref: "#/components/schemas/GifRating" - hasDarkBackground: - type: boolean - headerHTML: - nullable: true - type: string - hideAvatars: - type: boolean - hideCommentsUnderCountTextFormat: - nullable: true - type: string - imageContentProfanityLevel: - $ref: "#/components/schemas/ImageContentProfanityLevel" - inputAfterComments: - type: boolean - limitCommentsByGroups: - type: boolean - locale: - nullable: true - type: string - maxCommentCharacterLength: - format: int32 - nullable: true - type: integer - maxCommentCreatedCountPUPM: - format: int32 - nullable: true - type: integer - noCustomConfig: - type: boolean - mentionAutoCompleteMode: - allOf: - - $ref: "#/components/schemas/MentionAutoCompleteMode" - nullable: true - noImageUploads: - type: boolean - noStyles: - type: boolean - pageSize: - format: int32 - nullable: true - type: integer - readonly: - type: boolean - noNewRootComments: - type: boolean - requireSSO: - type: boolean - enableResizeHandle: - type: boolean - restrictedLinkDomains: + status: + $ref: "#/components/schemas/APIStatus" + required: + - comments + - status + type: object + CommentsByIdsParams: + additionalProperties: false + example: + ids: + - ids + - ids + properties: + ids: items: type: string - nullable: true - type: array - showBadgesInTopBar: - type: boolean - showCommentSaveSuccess: - type: boolean - showLiveRightAway: - type: boolean - showQuestion: - type: boolean - spamRules: - items: - $ref: "#/components/schemas/SpamRule" type: array - ssoSecLvl: - $ref: "#/components/schemas/SSOSecurityLevel" - translations: - allOf: - - $ref: "#/components/schemas/Record_string.string_" + required: + - ids + type: object + GetCommentTextResponse: + example: + comment: comment + status: success + properties: + comment: nullable: true - useShowCommentsToggle: - type: boolean - useSingleLineCommentInput: - type: boolean - voteStyle: - $ref: "#/components/schemas/VoteStyle" - widgetQuestionId: type: string - widgetQuestionResultsStyle: - $ref: "#/components/schemas/CommentQuestionResultsRenderingType" - widgetQuestionShowBreakdown: - type: boolean - widgetQuestionStyle: - $ref: "#/components/schemas/QuestionRenderingType" - widgetQuestionWhenToSave: - $ref: "#/components/schemas/QuestionWhenSave" - widgetQuestionsRequired: - $ref: "#/components/schemas/CommentQuestionsRequired" - widgetSubQuestionVisibility: - $ref: "#/components/schemas/QuestionSubQuestionVisibility" - wrap: - type: boolean - ticketBaseUrl: + status: + $ref: "#/components/schemas/APIStatus" + required: + - status + type: object + SetCommentTextResponse: + example: + newCommentTextHTML: newCommentTextHTML + status: success + properties: + newCommentTextHTML: type: string - ticketKBSearchEndpoint: + status: + $ref: "#/components/schemas/APIStatus" + required: + - newCommentTextHTML + - status + type: object + SetCommentTextParams: + additionalProperties: false + example: + comment: comment + properties: + comment: + type: string + required: + - comment + type: object + AdjustVotesResponse: + additionalProperties: false + example: + newCommentVotes: 0 + status: status + properties: + status: type: string - ticketFileUploadsEnabled: - type: boolean - ticketMaxFileSize: + newCommentVotes: format: int32 type: integer - ticketAutoAssignUserIds: - items: - type: string - type: array - tos: - $ref: "#/components/schemas/TOSConfig" + required: + - newCommentVotes + - status type: object - APIError: + AdjustCommentVotesParams: additionalProperties: false example: - reason: reason - code: code - bannedUntil: 0 - customConfig: - disableAutoHashTagCreation: true - disableCommenterCommentDelete: true - enableVoteList: true - pageSize: 7 - collapseReplies: true - disableProfiles: true - disableSuccessMessage: true - allowAnon: true - countAboveToggle: 5 - readonly: true - useShowCommentsToggle: true - noImageUploads: true - spamRules: - - commentContains: commentContains - actions: - - spam - - spam - - commentContains: commentContains - actions: - - spam - - spam - translations: "" - widgetQuestionId: widgetQuestionId - disableLiveCommenting: true - ssoSecLvl: 9 - defaultSortDirection: "" - disableVoting: true - noCustomConfig: true - gifRating: g - ticketAutoAssignUserIds: - - ticketAutoAssignUserIds - - ticketAutoAssignUserIds - enableSearch: true - requireSSO: true - disableToolbar: true - hideCommentsUnderCountTextFormat: hideCommentsUnderCountTextFormat - maxCommentCreatedCountPUPM: 2 - disableProfileDirectMessages: true - disableBlocking: true - disableEmailInputs: true - widgetQuestionWhenToSave: 7 - allowAnonFlag: true - ticketKBSearchEndpoint: ticketKBSearchEndpoint - widgetSubQuestionVisibility: 1 - showBadgesInTopBar: true - widgetQuestionStyle: 4 - restrictedLinkDomains: - - restrictedLinkDomains - - restrictedLinkDomains - showQuestion: true - inputAfterComments: true - allowAnonVotes: true - commentThreadDeleteMode: "" - commentCountFormat: commentCountFormat - disableNotificationBell: true - voteStyle: 3 - disableAutoAdminMigration: true - disableProfileComments: true - absoluteAndRelativeDates: true - commenterNameFormat: "" - enableThirdPartyCookieBypass: true - ticketMaxFileSize: 1 - locale: locale - showCommentSaveSuccess: true - disableCommenterCommentEdit: true - enableCommenterLinks: true - imageContentProfanityLevel: "off" - enableSpoilers: true - disableUnverifiedLabel: true - noStyles: true - enableResizeHandle: true - absoluteDates: true - limitCommentsByGroups: true - enableWYSIWYG: true - tos: - lastUpdated: 2000-01-23T04:56:07.000+00:00 - textByLocale: - key: textByLocale - enabled: true - widgetQuestionShowBreakdown: true - mentionAutoCompleteMode: "" - customCSS: customCSS - enableViewCounts: true - headerHTML: headerHTML - hideAvatars: true - defaultAvatarSrc: defaultAvatarSrc - commentHTMLRenderingMode: 1 - noNewRootComments: true - ticketFileUploadsEnabled: true - maxCommentCharacterLength: 5 - useSingleLineCommentInput: true - allowedLanguages: - - allowedLanguages - - allowedLanguages - defaultUsername: defaultUsername - widgetQuestionResultsStyle: 2 - showLiveRightAway: true - widgetQuestionsRequired: 1 - hasDarkBackground: true - wrap: true - ticketBaseUrl: ticketBaseUrl - translatedError: translatedError - secondaryCode: secondaryCode - maxCharacterLength: 6 + adjustVoteAmount: 0.8008281904610115 + properties: + adjustVoteAmount: + format: double + type: number + required: + - adjustVoteAmount + type: object + VoteResponseUser: + additionalProperties: false + example: + sessionId: sessionId + properties: + sessionId: + nullable: true + type: string + type: object + VoteResponse: + additionalProperties: false + example: + editKey: editKey + isVerified: true + voteId: voteId + user: + sessionId: sessionId status: success properties: status: - $ref: "#/components/schemas/APIStatus" - reason: + $ref: "#/components/schemas/VoteResponse_status" + voteId: type: string - code: + isVerified: + type: boolean + user: + $ref: "#/components/schemas/VoteResponseUser" + editKey: type: string - secondaryCode: + required: + - status + type: object + VoteDeleteResponse: + additionalProperties: false + example: + wasPendingVote: true + status: success + properties: + status: + $ref: "#/components/schemas/APIStatus" + wasPendingVote: + type: boolean + required: + - status + type: object + GetCommentBanStatusResponse: + additionalProperties: false + example: + emailDomain: emailDomain + canIPBan: true + status: status + properties: + status: type: string - bannedUntil: - format: int64 - type: integer - maxCharacterLength: - format: int32 - type: integer - translatedError: + emailDomain: + nullable: true type: string - customConfig: - $ref: "#/components/schemas/CustomConfigParameters" + canIPBan: + nullable: true + type: boolean required: - - code - - reason + - canIPBan + - emailDomain - status type: object - Record_string.boolean_: - additionalProperties: - type: boolean - description: Construct a type with a set of properties K of type T - properties: {} + APIModerateUserBanPreferences: + additionalProperties: false + properties: + shouldBanEmail: + type: boolean + shouldBanByIP: + type: boolean + lastBanType: + type: string + lastBanDuration: + type: string + required: + - lastBanDuration + - lastBanType + - shouldBanByIP + - shouldBanEmail type: object - GetUserPresenceStatusesResponse: + APIModerateGetUserBanPreferencesResponse: example: - userIdsOnline: - key: true + preferences: "" status: success properties: + preferences: + allOf: + - $ref: "#/components/schemas/APIModerateUserBanPreferences" + nullable: true status: $ref: "#/components/schemas/APIStatus" - userIdsOnline: - additionalProperties: - type: boolean - description: Construct a type with a set of properties K of type T - properties: {} - type: object required: + - preferences - status - - userIdsOnline type: object - NotificationObjectType: - enum: - - 0 - - 1 - - 2 - type: integer - NotificationType: - enum: - - 0 - - 1 - - 2 - - 3 - - 4 - - 5 - - 6 - - 7 - - 8 - - 81 - - 82 - - 9 - - 10 - type: integer - RenderableUserNotification: + TenantBadge: + additionalProperties: false example: - fromUserAvatarSrc: fromUserAvatarSrc - contextHTML: contextHTML - fromCommentId: fromCommentId - relatedObjectId: relatedObjectId - conversationId: conversationId - fromUserNames: - - fromUserNames - - fromUserNames - fromUserId: fromUserId - pageTitle: pageTitle - count: 0 - type: 6 + displayLabel: displayLabel + createdByUserId: createdByUserId + backgroundColor: backgroundColor + borderColor: borderColor + description: description + isAwaitingDeletion: true + threshold: 6.027456183070403 urlId: urlId - sent: sent - url: url - fromUserIds: - - fromUserIds - - fromUserIds - optedOut: true - fromUserName: fromUserName - createdAt: createdAt - relatedIds: - - relatedIds - - relatedIds - viewed: viewed - relatedObjectType: 1 + type: 0.8008281904610115 + textColor: textColor + enabled: true + createdAt: 2000-01-23T04:56:07.000+00:00 + veteranUserThresholdMillis: 5.962133916683182 + cssClass: cssClass + isAwaitingReprocess: true + tenantId: tenantId + name: name + uses: 1.4658129805029452 _id: _id + replacesBadgeId: replacesBadgeId + displaySrc: displaySrc properties: - conversationId: - type: string - contextHTML: + _id: type: string - fromUserNames: - items: - type: string - type: array - fromUserIds: - items: - type: string - type: array - relatedIds: - items: - type: string - type: array - count: - format: int64 - type: integer - optedOut: - type: boolean - fromUserAvatarSrc: - nullable: true + tenantId: type: string - fromUserId: - nullable: true + createdByUserId: type: string - fromUserName: - nullable: true + createdAt: + format: date-time type: string - fromCommentId: + enabled: + type: boolean + urlId: nullable: true type: string type: - $ref: "#/components/schemas/NotificationType" - createdAt: + format: double + type: number + threshold: + format: double + type: number + uses: + format: double + type: number + name: type: string - sent: + description: type: string - viewed: + displayLabel: type: string - relatedObjectId: + displaySrc: + nullable: true type: string - relatedObjectType: - $ref: "#/components/schemas/NotificationObjectType" - pageTitle: + backgroundColor: nullable: true type: string - url: + borderColor: + nullable: true type: string - urlId: + textColor: + nullable: true type: string - _id: + cssClass: + nullable: true + type: string + veteranUserThresholdMillis: + format: double + nullable: true + type: number + isAwaitingReprocess: + type: boolean + isAwaitingDeletion: + type: boolean + replacesBadgeId: + nullable: true type: string required: - _id + - backgroundColor + - borderColor - createdAt - - optedOut - - relatedObjectId - - relatedObjectType - - sent + - createdByUserId + - description + - displayLabel + - displaySrc + - enabled + - isAwaitingDeletion + - isAwaitingReprocess + - name + - tenantId + - textColor + - threshold - type - - url - - urlId - - viewed + - uses type: object - GetMyNotificationsResponse: + GetTenantManualBadgesResponse: example: - isSubscribed: true - translations: - key: translations - hasMore: true - notifications: - - fromUserAvatarSrc: fromUserAvatarSrc - contextHTML: contextHTML - fromCommentId: fromCommentId - relatedObjectId: relatedObjectId - conversationId: conversationId - fromUserNames: - - fromUserNames - - fromUserNames - fromUserId: fromUserId - pageTitle: pageTitle - count: 0 - type: 6 + badges: + - displayLabel: displayLabel + createdByUserId: createdByUserId + backgroundColor: backgroundColor + borderColor: borderColor + description: description + isAwaitingDeletion: true + threshold: 6.027456183070403 urlId: urlId - sent: sent - url: url - fromUserIds: - - fromUserIds - - fromUserIds - optedOut: true - fromUserName: fromUserName - createdAt: createdAt - relatedIds: - - relatedIds - - relatedIds - viewed: viewed - relatedObjectType: 1 + type: 0.8008281904610115 + textColor: textColor + enabled: true + createdAt: 2000-01-23T04:56:07.000+00:00 + veteranUserThresholdMillis: 5.962133916683182 + cssClass: cssClass + isAwaitingReprocess: true + tenantId: tenantId + name: name + uses: 1.4658129805029452 _id: _id - - fromUserAvatarSrc: fromUserAvatarSrc - contextHTML: contextHTML - fromCommentId: fromCommentId - relatedObjectId: relatedObjectId - conversationId: conversationId - fromUserNames: - - fromUserNames - - fromUserNames - fromUserId: fromUserId - pageTitle: pageTitle - count: 0 - type: 6 + replacesBadgeId: replacesBadgeId + displaySrc: displaySrc + - displayLabel: displayLabel + createdByUserId: createdByUserId + backgroundColor: backgroundColor + borderColor: borderColor + description: description + isAwaitingDeletion: true + threshold: 6.027456183070403 urlId: urlId - sent: sent - url: url - fromUserIds: - - fromUserIds - - fromUserIds - optedOut: true - fromUserName: fromUserName - createdAt: createdAt - relatedIds: - - relatedIds - - relatedIds - viewed: viewed - relatedObjectType: 1 + type: 0.8008281904610115 + textColor: textColor + enabled: true + createdAt: 2000-01-23T04:56:07.000+00:00 + veteranUserThresholdMillis: 5.962133916683182 + cssClass: cssClass + isAwaitingReprocess: true + tenantId: tenantId + name: name + uses: 1.4658129805029452 _id: _id + replacesBadgeId: replacesBadgeId + displaySrc: displaySrc status: success properties: - translations: - additionalProperties: - type: string - description: Construct a type with a set of properties K of type T - example: {} - properties: {} - type: object - isSubscribed: - type: boolean - hasMore: - type: boolean - notifications: + badges: items: - $ref: "#/components/schemas/RenderableUserNotification" + $ref: "#/components/schemas/TenantBadge" type: array status: $ref: "#/components/schemas/APIStatus" required: - - hasMore - - isSubscribed - - notifications + - badges - status type: object - ResetUserNotificationsResponse: + UserBadge: additionalProperties: false example: - code: ignored-since-impersonated - status: success + displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + badgeId: badgeId + description: description + threshold: 6 + type: 0 + receivedAt: 2000-01-23T04:56:07.000+00:00 + urlId: urlId + userId: userId + textColor: textColor + displayedOnComments: true + createdAt: 2000-01-23T04:56:07.000+00:00 + veteranUserThresholdMillis: 1 + cssClass: cssClass + _id: _id + fromTenantId: fromTenantId + displaySrc: displaySrc + order: 5 properties: - status: - $ref: "#/components/schemas/APIStatus" - code: - enum: - - ignored-since-impersonated - nullable: false + _id: + type: string + userId: + type: string + badgeId: + type: string + fromTenantId: + type: string + createdAt: + format: date-time type: string - required: - - status - type: object - GetUserNotificationCountResponse: - additionalProperties: false - example: - count: 0 - status: success - properties: - status: - $ref: "#/components/schemas/APIStatus" - count: - format: int64 - type: integer - required: - - count - - status - type: object - EnumAsObject_typeofNotificationType_: - properties: {} - type: object - NotificationAndCount: - additionalProperties: false - properties: type: - $ref: "#/components/schemas/NotificationType" - count: + format: int32 + type: integer + threshold: format: int64 type: integer - required: - - count - - type - type: object - HeaderAccountNotification: - additionalProperties: false - properties: - _id: + description: type: string - title: + displayLabel: type: string - message: + displaySrc: + nullable: true type: string - messagesByLocale: - allOf: - - $ref: "#/components/schemas/Record_string.string_" + backgroundColor: nullable: true - dates: - allOf: - - $ref: "#/components/schemas/Record_string.string_" + type: string + borderColor: nullable: true - severity: type: string - linkUrl: + textColor: nullable: true type: string - linkText: + cssClass: nullable: true type: string - createdAt: + veteranUserThresholdMillis: + format: int64 + type: integer + displayedOnComments: + type: boolean + receivedAt: format: date-time type: string + order: + format: int32 + type: integer + urlId: + nullable: true + type: string required: - _id + - badgeId - createdAt - - dates - - linkText - - linkUrl - - message - - messagesByLocale - - severity - - title + - description + - displayLabel + - displayedOnComments + - fromTenantId + - receivedAt + - threshold + - type + - userId + - veteranUserThresholdMillis type: object - HeaderState: - additionalProperties: false + GetUserManualBadgesResponse: + example: + badges: + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + badgeId: badgeId + description: description + threshold: 6 + type: 0 + receivedAt: 2000-01-23T04:56:07.000+00:00 + urlId: urlId + userId: userId + textColor: textColor + displayedOnComments: true + createdAt: 2000-01-23T04:56:07.000+00:00 + veteranUserThresholdMillis: 1 + cssClass: cssClass + _id: _id + fromTenantId: fromTenantId + displaySrc: displaySrc + order: 5 + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + badgeId: badgeId + description: description + threshold: 6 + type: 0 + receivedAt: 2000-01-23T04:56:07.000+00:00 + urlId: urlId + userId: userId + textColor: textColor + displayedOnComments: true + createdAt: 2000-01-23T04:56:07.000+00:00 + veteranUserThresholdMillis: 1 + cssClass: cssClass + _id: _id + fromTenantId: fromTenantId + displaySrc: displaySrc + order: 5 + status: success properties: + badges: + items: + $ref: "#/components/schemas/UserBadge" + type: array status: $ref: "#/components/schemas/APIStatus" - NotificationType: - properties: {} - type: object - userId: - type: string - userIdWS: - type: string - notificationCounts: + required: + - badges + - status + type: object + AwardUserBadgeResponse: + example: + badges: + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 2 + textColor: textColor + displaySrc: displaySrc + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 2 + textColor: textColor + displaySrc: displaySrc + notes: + - notes + - notes + status: success + properties: + notes: items: - $ref: "#/components/schemas/NotificationAndCount" + type: string type: array - accountNotifications: + badges: items: - $ref: "#/components/schemas/HeaderAccountNotification" + $ref: "#/components/schemas/CommentUserBadgeInfo" type: array + status: + $ref: "#/components/schemas/APIStatus" required: - - NotificationType - - accountNotifications - - notificationCounts - status - - userId - - userIdWS type: object - UserNotificationWriteResponse: - additionalProperties: false + RemoveUserBadgeResponse: example: - modifiedCount: 6 - matchedCount: 0 + badges: + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 2 + textColor: textColor + displaySrc: displaySrc + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 2 + textColor: textColor + displaySrc: displaySrc status: success properties: + badges: + items: + $ref: "#/components/schemas/CommentUserBadgeInfo" + type: array status: $ref: "#/components/schemas/APIStatus" - matchedCount: - format: int64 - type: integer - modifiedCount: - format: int64 - type: integer required: - - matchedCount - - modifiedCount - status type: object - IgnoredResponse: - additionalProperties: false + GetUserTrustFactorResponse: + example: + autoTrustFactor: 6.027456183070403 + manualTrustFactor: 0.8008281904610115 + status: success properties: + manualTrustFactor: + format: double + type: number + autoTrustFactor: + format: double + type: number status: $ref: "#/components/schemas/APIStatus" - note: - enum: - - ignored-since-impersonated - - demo-noop - type: string required: - - note - status type: object - MediaAsset: - additionalProperties: false + SetUserTrustFactorResponse: example: - src: src - w: 0 - h: 6 + previousManualTrustFactor: 0.8008281904610115 + status: success properties: - w: - format: int32 - type: integer - h: - format: int32 - type: integer - src: - type: string + previousManualTrustFactor: + format: double + type: number + status: + $ref: "#/components/schemas/APIStatus" + required: + - status + type: object + GetUserInternalProfileResponse: + example: + profile: + karma: 0.8008281904610115 + firstCommentDate: 2000-01-23T04:56:07.000+00:00 + displayName: displayName + commenterName: commenterName + verified: true + bio: bio + anonUserId: anonUserId + ipHash: ipHash + locale: locale + userId: userId + commenterEmail: commenterEmail + countryFlag: countryFlag + websiteUrl: websiteUrl + countryCode: countryCode + avatarSrc: avatarSrc + email: email + username: username + status: success + properties: + profile: + $ref: "#/components/schemas/GetUserInternalProfileResponse_profile" + status: + $ref: "#/components/schemas/APIStatus" required: - - h - - src - - w + - profile + - status type: object - UploadImageResponse: - additionalProperties: false + GetBannedUsersCountResponse: example: - reason: reason - code: code - media: - - src: src - w: 0 - h: 6 - - src: src - w: 0 - h: 6 - url: url - status: success + totalCount: 0.8008281904610115 + status: status properties: + totalCount: + format: double + type: number status: - $ref: "#/components/schemas/APIStatus" - url: type: string - media: + required: + - status + - totalCount + type: object + GifSearchResponse: + example: + images: + - - GifSearchResponse_images_inner_inner + - GifSearchResponse_images_inner_inner + - - GifSearchResponse_images_inner_inner + - GifSearchResponse_images_inner_inner + status: success + properties: + images: items: - $ref: "#/components/schemas/MediaAsset" + items: + $ref: "#/components/schemas/GifSearchResponse_images_inner_inner" + type: array type: array - reason: - type: string + status: + $ref: "#/components/schemas/APIStatus" + required: + - images + - status + type: object + GifSearchInternalError: + properties: code: type: string + status: + $ref: "#/components/schemas/APIStatus" required: + - code - status type: object - SizePreset: - enum: - - Default - - CrossPlatform - type: string - APIEmptyResponse: + GifGetLargeResponse: example: + src: src status: success properties: + src: + type: string status: $ref: "#/components/schemas/APIStatus" required: + - src - status type: object FeedPostMediaItemAsset: @@ -7265,49 +13204,6 @@ components: - createdAt - tenantId type: object - CommentUserBadgeInfo: - additionalProperties: false - example: - displayLabel: displayLabel - backgroundColor: backgroundColor - borderColor: borderColor - cssClass: cssClass - description: description - id: id - type: 9 - textColor: textColor - displaySrc: displaySrc - properties: - id: - type: string - type: - format: int32 - type: integer - description: - type: string - displayLabel: - nullable: true - type: string - displaySrc: - nullable: true - type: string - backgroundColor: - nullable: true - type: string - borderColor: - nullable: true - type: string - textColor: - nullable: true - type: string - cssClass: - nullable: true - type: string - required: - - description - - id - - type - type: object UserSessionInfo: additionalProperties: false properties: @@ -7850,6 +13746,12 @@ components: - new-feed-post - updated-feed-post - deleted-feed-post + - new-ticket + - updated-ticket-state + - updated-ticket-assignment + - deleted-ticket + - page-react + - question-result type: string TenantId: type: string @@ -8000,8 +13902,6 @@ components: - urlIdRaw - verificationId type: object - UserId: - type: string FDomain: type: string PubSubCommentBase: @@ -8197,6 +14097,9 @@ components: items: type: string type: array + sc: + format: int32 + type: integer changes: additionalProperties: format: int32 @@ -8338,6 +14241,26 @@ components: required: - comment type: object + Pick_GetCommentsResponse.Exclude_keyofGetCommentsResponse.lastGenDate-or-pageNumber__: + additionalProperties: {} + description: "From T, pick a set of properties whose keys are in the union K" + properties: {} + type: object + Omit_GetCommentsResponse.lastGenDate-or-pageNumber_: + $ref: "#/components/schemas/Pick_GetCommentsResponse.Exclude_keyofGetCommentsResponse.lastGenDate-or-pageNumber__" + GetCommentsForUserResponse: + allOf: + - $ref: "#/components/schemas/Omit_GetCommentsResponse.lastGenDate-or-pageNumber_" + - properties: + moderatingTenantIds: + items: + type: string + type: array + type: object + example: + moderatingTenantIds: + - moderatingTenantIds + - moderatingTenantIds PublicComment: allOf: - properties: @@ -8393,7 +14316,7 @@ components: - null nestedChildrenCount: 6 isLocked: true - viewCount: 3 + viewCount: 9 votesUp: 5 displayLabel: displayLabel requiresVerification: true @@ -8416,7 +14339,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc - displayLabel: displayLabel @@ -8425,7 +14348,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc myVoteId: myVoteId @@ -8617,7 +14540,7 @@ components: example: reason: reason code: code - pageNumber: 7 + pageNumber: 4 isProd: true urlIdClean: urlIdClean hasMore: true @@ -8635,6 +14558,7 @@ components: countAboveToggle: 5 readonly: true useShowCommentsToggle: true + usersListLocation: 1 noImageUploads: true spamRules: - commentContains: commentContains @@ -8652,6 +14576,9 @@ components: defaultSortDirection: "" disableVoting: true noCustomConfig: true + allowedEmbedDomains: + - allowedEmbedDomains + - allowedEmbedDomains gifRating: g ticketAutoAssignUserIds: - ticketAutoAssignUserIds @@ -8679,13 +14606,14 @@ components: commentThreadDeleteMode: "" commentCountFormat: commentCountFormat disableNotificationBell: true + enableFChat: true voteStyle: 3 disableAutoAdminMigration: true disableProfileComments: true absoluteAndRelativeDates: true commenterNameFormat: "" enableThirdPartyCookieBypass: true - ticketMaxFileSize: 1 + ticketMaxFileSize: 6 locale: locale showCommentSaveSuccess: true disableCommenterCommentEdit: true @@ -8710,6 +14638,7 @@ components: headerHTML: headerHTML hideAvatars: true defaultAvatarSrc: defaultAvatarSrc + usersListIncludeOffline: true commentHTMLRenderingMode: 1 noNewRootComments: true ticketFileUploadsEnabled: true @@ -8718,6 +14647,7 @@ components: allowedLanguages: - allowedLanguages - allowedLanguages + allowEmbeds: true defaultUsername: defaultUsername widgetQuestionResultsStyle: 2 showLiveRightAway: true @@ -8727,7 +14657,7 @@ components: ticketBaseUrl: ticketBaseUrl hasBillingIssue: true isCrawler: true - lastGenDate: 2 + lastGenDate: 3 comments: - date: 2000-01-23T04:56:07.000+00:00 editKey: editKey @@ -8747,7 +14677,7 @@ components: - null nestedChildrenCount: 6 isLocked: true - viewCount: 3 + viewCount: 9 votesUp: 5 displayLabel: displayLabel requiresVerification: true @@ -8770,7 +14700,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc - displayLabel: displayLabel @@ -8779,7 +14709,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc myVoteId: myVoteId @@ -8808,7 +14738,7 @@ components: - null nestedChildrenCount: 6 isLocked: true - viewCount: 3 + viewCount: 9 votesUp: 5 displayLabel: displayLabel requiresVerification: true @@ -8831,7 +14761,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc - displayLabel: displayLabel @@ -8840,7 +14770,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc myVoteId: myVoteId @@ -8851,12 +14781,12 @@ components: _id: _id isSpam: true isByAdmin: true - notificationCount: 1 + notificationCount: 7 translatedWarning: translatedWarning includesPastPages: true moduleData: key: "" - commentCount: 4 + commentCount: 2 isClosed: true presencePollState: 1 userIdWS: userIdWS @@ -8914,7 +14844,7 @@ components: - null nestedChildrenCount: 6 isLocked: true - viewCount: 3 + viewCount: 9 votesUp: 5 displayLabel: displayLabel requiresVerification: true @@ -8937,7 +14867,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc - displayLabel: displayLabel @@ -8946,7 +14876,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc myVoteId: myVoteId @@ -8964,7 +14894,7 @@ components: status: success Record_string.string-or-number_: additionalProperties: - $ref: "#/components/schemas/Record_string_string_or_number__value" + $ref: "#/components/schemas/GifSearchResponse_images_inner_inner" description: Construct a type with a set of properties K of type T properties: {} type: object @@ -8989,9 +14919,10 @@ components: localDateString: localDateString tos: true localDateHours: 6 + botId: botId productId: 1 questionValues: - key: Record_string_string_or_number__value + key: GifSearchResponse_images_inner_inner feedbackIds: - feedbackIds - feedbackIds @@ -9087,12 +15018,14 @@ components: type: array questionValues: additionalProperties: - $ref: "#/components/schemas/Record_string_string_or_number__value" + $ref: "#/components/schemas/GifSearchResponse_images_inner_inner" description: Construct a type with a set of properties K of type T properties: {} type: object tos: type: boolean + botId: + type: string required: - comment - commenterName @@ -9158,38 +15091,6 @@ components: - commentStatuses - status type: object - VoteResponseUser: - additionalProperties: false - example: - sessionId: sessionId - properties: - sessionId: - nullable: true - type: string - type: object - VoteResponse: - additionalProperties: false - example: - editKey: editKey - isVerified: true - voteId: voteId - user: - sessionId: sessionId - status: success - properties: - status: - $ref: "#/components/schemas/VoteResponse_status" - voteId: - type: string - isVerified: - type: boolean - user: - $ref: "#/components/schemas/VoteResponseUser" - editKey: - type: string - required: - - status - type: object VoteBodyParams: additionalProperties: false example: @@ -9218,19 +15119,6 @@ components: - url - voteDir type: object - VoteDeleteResponse: - additionalProperties: false - example: - wasPendingVote: true - status: success - properties: - status: - $ref: "#/components/schemas/APIStatus" - wasPendingVote: - type: boolean - required: - - status - type: object GetCommentVoteUserNamesSuccessResponse: additionalProperties: false example: @@ -10360,6 +16248,15 @@ components: - 1 - 2 type: integer + ImportedAgentApprovalNotificationFrequency: + enum: + - -1 + - 0 + - 1 + - 2 + type: integer + AgentApprovalNotificationFrequency: + $ref: "#/components/schemas/ImportedAgentApprovalNotificationFrequency" User: additionalProperties: false example: @@ -10390,6 +16287,7 @@ components: adminNotificationFrequency: 2.3021358869347655 notificationFrequency: 5.637376656633329 isHelpRequestAdmin: true + agentApprovalNotificationFrequency: 7 displayName: displayName isBillingAdmin: true isAdminAdmin: true @@ -10406,14 +16304,14 @@ components: email: email displayLabel: displayLabel lastReplyNotificationSentDate: 2000-01-23T04:56:07.000+00:00 - karma: 9.301444243932576 - averageTicketAckTimeMS: 3.616076749251911 + karma: 3.616076749251911 + averageTicketAckTimeMS: 2.027123023002322 verified: true isFastCommentsHelpRequestAdmin: true signUpDate: 0 loginIdDate: 6 loginCount: 1 - profileCommentApprovalMode: 7.061401241503109 + profileCommentApprovalMode: 9.301444243932576 optedInNotifications: true tenantId: tenantId createdFromIpHashed: createdFromIpHashed @@ -10518,6 +16416,8 @@ components: adminNotificationFrequency: format: double type: number + agentApprovalNotificationFrequency: + $ref: "#/components/schemas/ImportedAgentApprovalNotificationFrequency" lastTenantNotificationSentDate: format: date-time type: string @@ -10609,6 +16509,7 @@ components: adminNotificationFrequency: 2.3021358869347655 notificationFrequency: 5.637376656633329 isHelpRequestAdmin: true + agentApprovalNotificationFrequency: 7 displayName: displayName isBillingAdmin: true isAdminAdmin: true @@ -10625,14 +16526,14 @@ components: email: email displayLabel: displayLabel lastReplyNotificationSentDate: 2000-01-23T04:56:07.000+00:00 - karma: 9.301444243932576 - averageTicketAckTimeMS: 3.616076749251911 + karma: 3.616076749251911 + averageTicketAckTimeMS: 2.027123023002322 verified: true isFastCommentsHelpRequestAdmin: true signUpDate: 0 loginIdDate: 6 loginCount: 1 - profileCommentApprovalMode: 7.061401241503109 + profileCommentApprovalMode: 9.301444243932576 optedInNotifications: true tenantId: tenantId createdFromIpHashed: createdFromIpHashed @@ -10645,102 +16546,15 @@ components: username: username isCustomizationAdmin: true ignoredAddToMySiteMessages: true - status: success - properties: - status: - $ref: "#/components/schemas/APIStatus" - user: - $ref: "#/components/schemas/User" - required: - - status - - user - type: object - UserBadge: - additionalProperties: false - example: - displayLabel: displayLabel - backgroundColor: backgroundColor - borderColor: borderColor - badgeId: badgeId - description: description - threshold: 6 - type: 0 - receivedAt: 2000-01-23T04:56:07.000+00:00 - urlId: urlId - userId: userId - textColor: textColor - displayedOnComments: true - createdAt: 2000-01-23T04:56:07.000+00:00 - veteranUserThresholdMillis: 1 - cssClass: cssClass - _id: _id - fromTenantId: fromTenantId - displaySrc: displaySrc - order: 5 - properties: - _id: - type: string - userId: - type: string - badgeId: - type: string - fromTenantId: - type: string - createdAt: - format: date-time - type: string - type: - format: int32 - type: integer - threshold: - format: int64 - type: integer - description: - type: string - displayLabel: - type: string - displaySrc: - nullable: true - type: string - backgroundColor: - nullable: true - type: string - borderColor: - nullable: true - type: string - textColor: - nullable: true - type: string - cssClass: - nullable: true - type: string - veteranUserThresholdMillis: - format: int64 - type: integer - displayedOnComments: - type: boolean - receivedAt: - format: date-time - type: string - order: - format: int32 - type: integer - urlId: - nullable: true - type: string - required: - - _id - - badgeId - - createdAt - - description - - displayLabel - - displayedOnComments - - fromTenantId - - receivedAt - - threshold - - type - - userId - - veteranUserThresholdMillis + status: success + properties: + status: + $ref: "#/components/schemas/APIStatus" + user: + $ref: "#/components/schemas/User" + required: + - status + - user type: object APIGetUserBadgeResponse: additionalProperties: false @@ -10904,13 +16718,6 @@ components: displayedOnComments: type: boolean type: object - Record_string.number_: - additionalProperties: - format: double - type: number - description: Construct a type with a set of properties K of type T - properties: {} - type: object UserBadgeProgress: additionalProperties: false example: @@ -12246,6 +18053,7 @@ components: adminNotificationFrequency: 2.3021358869347655 notificationFrequency: 5.637376656633329 isHelpRequestAdmin: true + agentApprovalNotificationFrequency: 7 displayName: displayName isBillingAdmin: true isAdminAdmin: true @@ -12262,14 +18070,14 @@ components: email: email displayLabel: displayLabel lastReplyNotificationSentDate: 2000-01-23T04:56:07.000+00:00 - karma: 9.301444243932576 - averageTicketAckTimeMS: 3.616076749251911 + karma: 3.616076749251911 + averageTicketAckTimeMS: 2.027123023002322 verified: true isFastCommentsHelpRequestAdmin: true signUpDate: 0 loginIdDate: 6 loginCount: 1 - profileCommentApprovalMode: 7.061401241503109 + profileCommentApprovalMode: 9.301444243932576 optedInNotifications: true tenantId: tenantId createdFromIpHashed: createdFromIpHashed @@ -12323,6 +18131,7 @@ components: adminNotificationFrequency: 2.3021358869347655 notificationFrequency: 5.637376656633329 isHelpRequestAdmin: true + agentApprovalNotificationFrequency: 7 displayName: displayName isBillingAdmin: true isAdminAdmin: true @@ -12339,14 +18148,14 @@ components: email: email displayLabel: displayLabel lastReplyNotificationSentDate: 2000-01-23T04:56:07.000+00:00 - karma: 9.301444243932576 - averageTicketAckTimeMS: 3.616076749251911 + karma: 3.616076749251911 + averageTicketAckTimeMS: 2.027123023002322 verified: true isFastCommentsHelpRequestAdmin: true signUpDate: 0 loginIdDate: 6 loginCount: 1 - profileCommentApprovalMode: 7.061401241503109 + profileCommentApprovalMode: 9.301444243932576 optedInNotifications: true tenantId: tenantId createdFromIpHashed: createdFromIpHashed @@ -12386,6 +18195,7 @@ components: adminNotificationFrequency: 2.3021358869347655 notificationFrequency: 5.637376656633329 isHelpRequestAdmin: true + agentApprovalNotificationFrequency: 7 displayName: displayName isBillingAdmin: true isAdminAdmin: true @@ -12402,14 +18212,14 @@ components: email: email displayLabel: displayLabel lastReplyNotificationSentDate: 2000-01-23T04:56:07.000+00:00 - karma: 9.301444243932576 - averageTicketAckTimeMS: 3.616076749251911 + karma: 3.616076749251911 + averageTicketAckTimeMS: 2.027123023002322 verified: true isFastCommentsHelpRequestAdmin: true signUpDate: 0 loginIdDate: 6 loginCount: 1 - profileCommentApprovalMode: 7.061401241503109 + profileCommentApprovalMode: 9.301444243932576 optedInNotifications: true tenantId: tenantId createdFromIpHashed: createdFromIpHashed @@ -12465,6 +18275,7 @@ components: adminNotificationFrequency: 2.3021358869347655 notificationFrequency: 5.637376656633329 isHelpRequestAdmin: true + agentApprovalNotificationFrequency: 7 displayName: displayName isBillingAdmin: true isAdminAdmin: true @@ -12481,14 +18292,14 @@ components: email: email displayLabel: displayLabel lastReplyNotificationSentDate: 2000-01-23T04:56:07.000+00:00 - karma: 9.301444243932576 - averageTicketAckTimeMS: 3.616076749251911 + karma: 3.616076749251911 + averageTicketAckTimeMS: 2.027123023002322 verified: true isFastCommentsHelpRequestAdmin: true signUpDate: 0 loginIdDate: 6 loginCount: 1 - profileCommentApprovalMode: 7.061401241503109 + profileCommentApprovalMode: 9.301444243932576 optedInNotifications: true tenantId: tenantId createdFromIpHashed: createdFromIpHashed @@ -12788,16 +18599,18 @@ components: example: maxMonthlySmallWidgetsCredits: 5.637376656633329 flexAPICreditCostCents: 9.965781217890562 - flexMinimumCostCents: 5.944895607614016 + flexMinimumCostCents: 3.353193347011243 flexCommentUnit: 1.1730742509559433 maxMonthlyAPICredits: 5.962133916683182 + templateId: templateId createdAt: 2000-01-23T04:56:07.000+00:00 - flexManagedTenantCostCents: 6.704019297950036 + flexManagedTenantCostCents: 3.0937452626664474 flexSmallWidgetsCreditUnit: 8.762042012749001 yearlyStripePlanId: yearlyStripePlanId + aiAgentDailyBudgetCents: 4.652396432933246 maxSSOUsers: 3.616076749251911 hasFlexPricing: true - flexSSOModeratorCostCents: 7.143538047012306 + flexSSOModeratorCostCents: 7.058770351582356 monthlyCostUSD: 0.8008281904610115 maxTenantUsers: 9.301444243932576 maxCustomCollectionSize: 1.0246457001441578 @@ -12807,21 +18620,26 @@ components: flexAPICreditUnit: 9.369310271410669 flexAdminCostCents: 3.5571952270680973 maxConcurrentUsers: 7.061401241503109 + flexLLMCostCents: 5.944895607614016 name: name _id: _id + aiAgentMonthlyBudgetCents: 8.969578798196912 flexModeratorUnit: 6.438423552598547 flexChatGPTCostCents: 6.778324963048013 - flexSSOAdminCostCents: 3.353193347011243 + flexSSOAdminCostCents: 7.143538047012306 flexSSOUserCostCents: 4.965218492984954 - flexSSOModeratorUnit: 0.8851374739011653 + flexLLMUnit: 6.704019297950036 + flexSSOModeratorUnit: 6.519180951018382 maxDomains: 4.145608029883936 maxMonthlyEventLogRequests: 1.2315135367772556 + maxAIAgents: 0.10263654006109402 flexDomainUnit: 2.8841621266687802 hasWhiteLabeling: true flexChatGPTUnit: 6.878052220127876 maxMonthlyComments: 2.3021358869347655 maxModerators: 2.027123023002322 hasAuditing: true + hasAIAgents: true flexSSOUserUnit: 5.025004791520295 maxMonthlyPageLoads: 1.4658129805029452 flexDomainCostCents: 1.284659006116532 @@ -12841,7 +18659,7 @@ components: flexModeratorCostCents: 9.018348186070783 flexPageLoadUnit: 6.84685269835264 monthlyStripePlanId: monthlyStripePlanId - flexSSOAdminUnit: 3.0937452626664474 + flexSSOAdminUnit: 0.8851374739011653 properties: _id: type: string @@ -12852,6 +18670,8 @@ components: createdAt: format: date-time type: string + templateId: + type: string monthlyCostUSD: format: double nullable: true @@ -12976,6 +18796,12 @@ components: flexChatGPTUnit: format: double type: number + flexLLMCostCents: + format: double + type: number + flexLLMUnit: + format: double + type: number flexMinimumCostCents: format: double type: number @@ -12996,6 +18822,17 @@ components: type: number isSSOBillingMonthlyActiveUsers: type: boolean + hasAIAgents: + type: boolean + maxAIAgents: + format: double + type: number + aiAgentDailyBudgetCents: + format: double + type: number + aiAgentMonthlyBudgetCents: + format: double + type: number required: - _id - createdAt @@ -13031,16 +18868,18 @@ components: tenantPackage: maxMonthlySmallWidgetsCredits: 5.637376656633329 flexAPICreditCostCents: 9.965781217890562 - flexMinimumCostCents: 5.944895607614016 + flexMinimumCostCents: 3.353193347011243 flexCommentUnit: 1.1730742509559433 maxMonthlyAPICredits: 5.962133916683182 + templateId: templateId createdAt: 2000-01-23T04:56:07.000+00:00 - flexManagedTenantCostCents: 6.704019297950036 + flexManagedTenantCostCents: 3.0937452626664474 flexSmallWidgetsCreditUnit: 8.762042012749001 yearlyStripePlanId: yearlyStripePlanId + aiAgentDailyBudgetCents: 4.652396432933246 maxSSOUsers: 3.616076749251911 hasFlexPricing: true - flexSSOModeratorCostCents: 7.143538047012306 + flexSSOModeratorCostCents: 7.058770351582356 monthlyCostUSD: 0.8008281904610115 maxTenantUsers: 9.301444243932576 maxCustomCollectionSize: 1.0246457001441578 @@ -13050,21 +18889,26 @@ components: flexAPICreditUnit: 9.369310271410669 flexAdminCostCents: 3.5571952270680973 maxConcurrentUsers: 7.061401241503109 + flexLLMCostCents: 5.944895607614016 name: name _id: _id + aiAgentMonthlyBudgetCents: 8.969578798196912 flexModeratorUnit: 6.438423552598547 flexChatGPTCostCents: 6.778324963048013 - flexSSOAdminCostCents: 3.353193347011243 + flexSSOAdminCostCents: 7.143538047012306 flexSSOUserCostCents: 4.965218492984954 - flexSSOModeratorUnit: 0.8851374739011653 + flexLLMUnit: 6.704019297950036 + flexSSOModeratorUnit: 6.519180951018382 maxDomains: 4.145608029883936 maxMonthlyEventLogRequests: 1.2315135367772556 + maxAIAgents: 0.10263654006109402 flexDomainUnit: 2.8841621266687802 hasWhiteLabeling: true flexChatGPTUnit: 6.878052220127876 maxMonthlyComments: 2.3021358869347655 maxModerators: 2.027123023002322 hasAuditing: true + hasAIAgents: true flexSSOUserUnit: 5.025004791520295 maxMonthlyPageLoads: 1.4658129805029452 flexDomainCostCents: 1.284659006116532 @@ -13084,7 +18928,7 @@ components: flexModeratorCostCents: 9.018348186070783 flexPageLoadUnit: 6.84685269835264 monthlyStripePlanId: monthlyStripePlanId - flexSSOAdminUnit: 3.0937452626664474 + flexSSOAdminUnit: 0.8851374739011653 status: success properties: status: @@ -13101,16 +18945,18 @@ components: tenantPackages: - maxMonthlySmallWidgetsCredits: 5.637376656633329 flexAPICreditCostCents: 9.965781217890562 - flexMinimumCostCents: 5.944895607614016 + flexMinimumCostCents: 3.353193347011243 flexCommentUnit: 1.1730742509559433 maxMonthlyAPICredits: 5.962133916683182 + templateId: templateId createdAt: 2000-01-23T04:56:07.000+00:00 - flexManagedTenantCostCents: 6.704019297950036 + flexManagedTenantCostCents: 3.0937452626664474 flexSmallWidgetsCreditUnit: 8.762042012749001 yearlyStripePlanId: yearlyStripePlanId + aiAgentDailyBudgetCents: 4.652396432933246 maxSSOUsers: 3.616076749251911 hasFlexPricing: true - flexSSOModeratorCostCents: 7.143538047012306 + flexSSOModeratorCostCents: 7.058770351582356 monthlyCostUSD: 0.8008281904610115 maxTenantUsers: 9.301444243932576 maxCustomCollectionSize: 1.0246457001441578 @@ -13120,21 +18966,26 @@ components: flexAPICreditUnit: 9.369310271410669 flexAdminCostCents: 3.5571952270680973 maxConcurrentUsers: 7.061401241503109 + flexLLMCostCents: 5.944895607614016 name: name _id: _id + aiAgentMonthlyBudgetCents: 8.969578798196912 flexModeratorUnit: 6.438423552598547 flexChatGPTCostCents: 6.778324963048013 - flexSSOAdminCostCents: 3.353193347011243 + flexSSOAdminCostCents: 7.143538047012306 flexSSOUserCostCents: 4.965218492984954 - flexSSOModeratorUnit: 0.8851374739011653 + flexLLMUnit: 6.704019297950036 + flexSSOModeratorUnit: 6.519180951018382 maxDomains: 4.145608029883936 maxMonthlyEventLogRequests: 1.2315135367772556 + maxAIAgents: 0.10263654006109402 flexDomainUnit: 2.8841621266687802 hasWhiteLabeling: true flexChatGPTUnit: 6.878052220127876 maxMonthlyComments: 2.3021358869347655 maxModerators: 2.027123023002322 hasAuditing: true + hasAIAgents: true flexSSOUserUnit: 5.025004791520295 maxMonthlyPageLoads: 1.4658129805029452 flexDomainCostCents: 1.284659006116532 @@ -13154,19 +19005,21 @@ components: flexModeratorCostCents: 9.018348186070783 flexPageLoadUnit: 6.84685269835264 monthlyStripePlanId: monthlyStripePlanId - flexSSOAdminUnit: 3.0937452626664474 + flexSSOAdminUnit: 0.8851374739011653 - maxMonthlySmallWidgetsCredits: 5.637376656633329 flexAPICreditCostCents: 9.965781217890562 - flexMinimumCostCents: 5.944895607614016 + flexMinimumCostCents: 3.353193347011243 flexCommentUnit: 1.1730742509559433 maxMonthlyAPICredits: 5.962133916683182 + templateId: templateId createdAt: 2000-01-23T04:56:07.000+00:00 - flexManagedTenantCostCents: 6.704019297950036 + flexManagedTenantCostCents: 3.0937452626664474 flexSmallWidgetsCreditUnit: 8.762042012749001 yearlyStripePlanId: yearlyStripePlanId + aiAgentDailyBudgetCents: 4.652396432933246 maxSSOUsers: 3.616076749251911 hasFlexPricing: true - flexSSOModeratorCostCents: 7.143538047012306 + flexSSOModeratorCostCents: 7.058770351582356 monthlyCostUSD: 0.8008281904610115 maxTenantUsers: 9.301444243932576 maxCustomCollectionSize: 1.0246457001441578 @@ -13176,21 +19029,26 @@ components: flexAPICreditUnit: 9.369310271410669 flexAdminCostCents: 3.5571952270680973 maxConcurrentUsers: 7.061401241503109 + flexLLMCostCents: 5.944895607614016 name: name _id: _id + aiAgentMonthlyBudgetCents: 8.969578798196912 flexModeratorUnit: 6.438423552598547 flexChatGPTCostCents: 6.778324963048013 - flexSSOAdminCostCents: 3.353193347011243 + flexSSOAdminCostCents: 7.143538047012306 flexSSOUserCostCents: 4.965218492984954 - flexSSOModeratorUnit: 0.8851374739011653 + flexLLMUnit: 6.704019297950036 + flexSSOModeratorUnit: 6.519180951018382 maxDomains: 4.145608029883936 maxMonthlyEventLogRequests: 1.2315135367772556 + maxAIAgents: 0.10263654006109402 flexDomainUnit: 2.8841621266687802 hasWhiteLabeling: true flexChatGPTUnit: 6.878052220127876 maxMonthlyComments: 2.3021358869347655 maxModerators: 2.027123023002322 hasAuditing: true + hasAIAgents: true flexSSOUserUnit: 5.025004791520295 maxMonthlyPageLoads: 1.4658129805029452 flexDomainCostCents: 1.284659006116532 @@ -13210,7 +19068,7 @@ components: flexModeratorCostCents: 9.018348186070783 flexPageLoadUnit: 6.84685269835264 monthlyStripePlanId: monthlyStripePlanId - flexSSOAdminUnit: 3.0937452626664474 + flexSSOAdminUnit: 0.8851374739011653 status: success properties: status: @@ -13229,16 +19087,18 @@ components: tenantPackage: maxMonthlySmallWidgetsCredits: 5.637376656633329 flexAPICreditCostCents: 9.965781217890562 - flexMinimumCostCents: 5.944895607614016 + flexMinimumCostCents: 3.353193347011243 flexCommentUnit: 1.1730742509559433 maxMonthlyAPICredits: 5.962133916683182 + templateId: templateId createdAt: 2000-01-23T04:56:07.000+00:00 - flexManagedTenantCostCents: 6.704019297950036 + flexManagedTenantCostCents: 3.0937452626664474 flexSmallWidgetsCreditUnit: 8.762042012749001 yearlyStripePlanId: yearlyStripePlanId + aiAgentDailyBudgetCents: 4.652396432933246 maxSSOUsers: 3.616076749251911 hasFlexPricing: true - flexSSOModeratorCostCents: 7.143538047012306 + flexSSOModeratorCostCents: 7.058770351582356 monthlyCostUSD: 0.8008281904610115 maxTenantUsers: 9.301444243932576 maxCustomCollectionSize: 1.0246457001441578 @@ -13248,21 +19108,26 @@ components: flexAPICreditUnit: 9.369310271410669 flexAdminCostCents: 3.5571952270680973 maxConcurrentUsers: 7.061401241503109 + flexLLMCostCents: 5.944895607614016 name: name _id: _id + aiAgentMonthlyBudgetCents: 8.969578798196912 flexModeratorUnit: 6.438423552598547 flexChatGPTCostCents: 6.778324963048013 - flexSSOAdminCostCents: 3.353193347011243 + flexSSOAdminCostCents: 7.143538047012306 flexSSOUserCostCents: 4.965218492984954 - flexSSOModeratorUnit: 0.8851374739011653 + flexLLMUnit: 6.704019297950036 + flexSSOModeratorUnit: 6.519180951018382 maxDomains: 4.145608029883936 maxMonthlyEventLogRequests: 1.2315135367772556 + maxAIAgents: 0.10263654006109402 flexDomainUnit: 2.8841621266687802 hasWhiteLabeling: true flexChatGPTUnit: 6.878052220127876 maxMonthlyComments: 2.3021358869347655 maxModerators: 2.027123023002322 hasAuditing: true + hasAIAgents: true flexSSOUserUnit: 5.025004791520295 maxMonthlyPageLoads: 1.4658129805029452 flexDomainCostCents: 1.284659006116532 @@ -13282,7 +19147,7 @@ components: flexModeratorCostCents: 9.018348186070783 flexPageLoadUnit: 6.84685269835264 monthlyStripePlanId: monthlyStripePlanId - flexSSOAdminUnit: 3.0937452626664474 + flexSSOAdminUnit: 0.8851374739011653 status: success properties: status: @@ -13315,17 +19180,17 @@ components: flexAPICreditUnit: 9.369310271410669 flexAdminCostCents: 3.5571952270680973 maxConcurrentUsers: 7.061401241503109 + flexLLMCostCents: 6.778324963048013 name: name flexModeratorUnit: 6.438423552598547 - flexChatGPTCostCents: 6.778324963048013 flexSSOAdminCostCents: 3.353193347011243 flexSSOUserCostCents: 4.965218492984954 + flexLLMUnit: 6.878052220127876 flexSSOModeratorUnit: 0.8851374739011653 maxDomains: 4.145608029883936 maxMonthlyEventLogRequests: 1.2315135367772556 flexDomainUnit: 2.8841621266687802 hasWhiteLabeling: true - flexChatGPTUnit: 6.878052220127876 maxMonthlyComments: 2.3021358869347655 maxModerators: 2.027123023002322 hasAuditing: true @@ -13466,10 +19331,10 @@ components: flexDomainUnit: format: double type: number - flexChatGPTCostCents: + flexLLMCostCents: format: double type: number - flexChatGPTUnit: + flexLLMUnit: format: double type: number flexMinimumCostCents: @@ -14526,6 +20391,7 @@ components: - spam expireBefore: 2000-01-23T04:56:07.000+00:00 textBefore: textBefore + source: source detectedLocale: detectedLocale locale: locale spamBefore: true @@ -14589,6 +20455,8 @@ components: trustFactor: format: double type: number + source: + type: string rule: $ref: "#/components/schemas/SpamRule" userId: @@ -14702,6 +20570,7 @@ components: - spam expireBefore: 2000-01-23T04:56:07.000+00:00 textBefore: textBefore + source: source detectedLocale: detectedLocale locale: locale spamBefore: true @@ -14795,6 +20664,7 @@ components: - spam expireBefore: 2000-01-23T04:56:07.000+00:00 textBefore: textBefore + source: source detectedLocale: detectedLocale locale: locale spamBefore: true @@ -14848,6 +20718,7 @@ components: - spam expireBefore: 2000-01-23T04:56:07.000+00:00 textBefore: textBefore + source: source detectedLocale: detectedLocale locale: locale spamBefore: true @@ -14928,6 +20799,7 @@ components: pageNumberOF: 2 localDateHours: 0 viewCount: 6 + botId: botId votesUp: 1 displayLabel: displayLabel requiresVerification: true @@ -14950,7 +20822,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc - displayLabel: displayLabel @@ -14959,7 +20831,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc notificationSentForParent: true @@ -15179,6 +21051,8 @@ components: tosAcceptedAt: format: date-time type: string + botId: + type: string required: - _id - approved @@ -15795,6 +21669,7 @@ components: - spam expireBefore: 2000-01-23T04:56:07.000+00:00 textBefore: textBefore + source: source detectedLocale: detectedLocale locale: locale spamBefore: true @@ -15848,6 +21723,7 @@ components: - spam expireBefore: 2000-01-23T04:56:07.000+00:00 textBefore: textBefore + source: source detectedLocale: detectedLocale locale: locale spamBefore: true @@ -15928,6 +21804,7 @@ components: pageNumberOF: 2 localDateHours: 0 viewCount: 6 + botId: botId votesUp: 1 displayLabel: displayLabel requiresVerification: true @@ -15950,7 +21827,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc - displayLabel: displayLabel @@ -15959,7 +21836,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc notificationSentForParent: true @@ -16082,6 +21959,7 @@ components: - spam expireBefore: 2000-01-23T04:56:07.000+00:00 textBefore: textBefore + source: source detectedLocale: detectedLocale locale: locale spamBefore: true @@ -16135,6 +22013,7 @@ components: - spam expireBefore: 2000-01-23T04:56:07.000+00:00 textBefore: textBefore + source: source detectedLocale: detectedLocale locale: locale spamBefore: true @@ -16215,6 +22094,7 @@ components: pageNumberOF: 2 localDateHours: 0 viewCount: 6 + botId: botId votesUp: 1 displayLabel: displayLabel requiresVerification: true @@ -16237,7 +22117,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc - displayLabel: displayLabel @@ -16246,7 +22126,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc notificationSentForParent: true @@ -16318,6 +22198,7 @@ components: - spam expireBefore: 2000-01-23T04:56:07.000+00:00 textBefore: textBefore + source: source detectedLocale: detectedLocale locale: locale spamBefore: true @@ -16371,6 +22252,7 @@ components: - spam expireBefore: 2000-01-23T04:56:07.000+00:00 textBefore: textBefore + source: source detectedLocale: detectedLocale locale: locale spamBefore: true @@ -16451,6 +22333,7 @@ components: pageNumberOF: 2 localDateHours: 0 viewCount: 6 + botId: botId votesUp: 1 displayLabel: displayLabel requiresVerification: true @@ -16473,7 +22356,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc - displayLabel: displayLabel @@ -16482,7 +22365,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc notificationSentForParent: true @@ -17050,7 +22933,7 @@ components: $ref: "#/components/schemas/APIStatus" results: items: - $ref: "#/components/schemas/AddHashTag_200_response" + $ref: "#/components/schemas/BulkCreateHashTagsResponse_results_inner" type: array required: - results @@ -17774,7 +23657,7 @@ components: APICommentBase: additionalProperties: false properties: - _id: + id: type: string aiDeterminedSpam: type: boolean @@ -17928,12 +23811,12 @@ components: nullable: true type: integer required: - - _id - approved - comment - commentHTML - commenterName - date + - id - locale - tenantId - url @@ -17971,6 +23854,7 @@ components: isLocked: true aiDeterminedSpam: true reviewed: true + id: id fromProductId: 6 flagCount: 0 hasCode: true @@ -17998,7 +23882,6 @@ components: type: user sent: true avatarSrc: avatarSrc - _id: _id isSpam: true externalParentId: externalParentId votesDown: 2 @@ -18029,7 +23912,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc - displayLabel: displayLabel @@ -18038,7 +23921,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc notificationSentForParent: true @@ -18070,6 +23953,7 @@ components: isLocked: true aiDeterminedSpam: true reviewed: true + id: id fromProductId: 6 flagCount: 0 hasCode: true @@ -18097,7 +23981,6 @@ components: type: user sent: true avatarSrc: avatarSrc - _id: _id isSpam: true externalParentId: externalParentId votesDown: 2 @@ -18128,7 +24011,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc - displayLabel: displayLabel @@ -18137,7 +24020,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc notificationSentForParent: true @@ -18179,6 +24062,7 @@ components: isLocked: true aiDeterminedSpam: true reviewed: true + id: id fromProductId: 6 flagCount: 0 hasCode: true @@ -18206,7 +24090,6 @@ components: type: user sent: true avatarSrc: avatarSrc - _id: _id isSpam: true externalParentId: externalParentId votesDown: 2 @@ -18237,7 +24120,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc - displayLabel: displayLabel @@ -18246,7 +24129,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc notificationSentForParent: true @@ -18274,6 +24157,7 @@ components: isLocked: true aiDeterminedSpam: true reviewed: true + id: id fromProductId: 6 flagCount: 0 hasCode: true @@ -18301,7 +24185,6 @@ components: type: user sent: true avatarSrc: avatarSrc - _id: _id isSpam: true externalParentId: externalParentId votesDown: 2 @@ -18332,7 +24215,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc - displayLabel: displayLabel @@ -18341,7 +24224,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc notificationSentForParent: true @@ -18523,34 +24406,13 @@ components: type: string type: array type: object - DeleteCommentAction: - enum: - - already-deleted - - hard-removed - - anonymized - type: string - DeleteCommentResult: - example: - action: already-deleted - status: success - properties: - action: - $ref: "#/components/schemas/DeleteCommentAction" - status: - $ref: "#/components/schemas/APIStatus" - required: - - action - - status - type: object - SaveCommentResponse: + APISaveCommentResponse: additionalProperties: false example: comment: - date: 2000-01-23T04:56:07.000+00:00 - editKey: editKey - pageNumber: 5 + date: 9.301444243932576 pageTitle: pageTitle - rating: 3.616076749251911 + rating: 5.962133916683182 approved: true hashTags: - retain: true @@ -18565,138 +24427,24 @@ components: notificationSentForParentTenant: true verifiedDate: 2000-01-23T04:56:07.000+00:00 isLocked: true - groupIds: - - groupIds - - groupIds aiDeterminedSpam: true reviewed: true - logs: - - d: 2000-01-23T04:56:07.000+00:00 - t: 7 - da: - votesDownAfter: 9.369310271410669 - repeatAction: 6 - reason: 8 - votesUpBefore: 1.1730742509559433 - tenantBadgeId: tenantBadgeId - badgeId: badgeId - invalidLocale: invalidLocale - reviewedBefore: true - reviewedAfter: true - trustFactorBefore: 6.438423552598547 - trustFactor: 1.0246457001441578 - detectedLanguage: detectedLanguage - engineTokens: 1.2315135367772556 - rule: - commentContains: commentContains - actions: - - spam - - spam - expireBefore: 2000-01-23T04:56:07.000+00:00 - textBefore: textBefore - detectedLocale: detectedLocale - locale: locale - spamBefore: true - votesBefore: 7.457744773683766 - votesDownBefore: 4.965218492984954 - spamAfter: true - foundUser: true - textAfter: textAfter - engine: engine - engineResponse: engineResponse - trustFactorAfter: 3.5571952270680973 - approvedBefore: true - notificationCount: 6.84685269835264 - subscribers: 1.4894159098541704 - otherData: "" - clearContent: true - verified: true - expireAfter: 2000-01-23T04:56:07.000+00:00 - flagCountBefore: 9.018348186070783 - userId: userId - approvedAfter: true - phrase: phrase - isDeletedUser: true - votesAfter: 5.025004791520295 - votesUpAfter: 9.965781217890562 - permanentFlag: permanent - wasLoggedIn: true - badWord: badWord - word: word - referencedCommentId: referencedCommentId - - d: 2000-01-23T04:56:07.000+00:00 - t: 7 - da: - votesDownAfter: 9.369310271410669 - repeatAction: 6 - reason: 8 - votesUpBefore: 1.1730742509559433 - tenantBadgeId: tenantBadgeId - badgeId: badgeId - invalidLocale: invalidLocale - reviewedBefore: true - reviewedAfter: true - trustFactorBefore: 6.438423552598547 - trustFactor: 1.0246457001441578 - detectedLanguage: detectedLanguage - engineTokens: 1.2315135367772556 - rule: - commentContains: commentContains - actions: - - spam - - spam - expireBefore: 2000-01-23T04:56:07.000+00:00 - textBefore: textBefore - detectedLocale: detectedLocale - locale: locale - spamBefore: true - votesBefore: 7.457744773683766 - votesDownBefore: 4.965218492984954 - spamAfter: true - foundUser: true - textAfter: textAfter - engine: engine - engineResponse: engineResponse - trustFactorAfter: 3.5571952270680973 - approvedBefore: true - notificationCount: 6.84685269835264 - subscribers: 1.4894159098541704 - otherData: "" - clearContent: true - verified: true - expireAfter: 2000-01-23T04:56:07.000+00:00 - flagCountBefore: 9.018348186070783 - userId: userId - approvedAfter: true - phrase: phrase - isDeletedUser: true - votesAfter: 5.025004791520295 - votesUpAfter: 9.965781217890562 - permanentFlag: permanent - wasLoggedIn: true - badWord: badWord - word: word - referencedCommentId: referencedCommentId - fromProductId: 2 - flagCount: 9 - pageNumberNF: 7 + id: id + fromProductId: 6 + flagCount: 0 hasCode: true feedbackIds: - feedbackIds - feedbackIds - autoplayJobId: autoplayJobId - ipHash: ipHash - fromOfflineRestore: true urlIdRaw: urlIdRaw moderationGroupIds: - moderationGroupIds - moderationGroupIds - didProcessBadges: true isDeletedUser: true meta: - wpId: wpId wpUserId: wpUserId wpPostId: wpPostId + domain: "" mentions: - rawTag: rawTag id: id @@ -18708,39 +24456,29 @@ components: tag: tag type: user sent: true - domain: "" avatarSrc: avatarSrc - _id: _id isSpam: true - veteranBadgeProcessed: veteranBadgeProcessed externalParentId: externalParentId - votesDown: 5 + votesDown: 2 commenterName: commenterName isByModerator: true commenterLink: commenterLink - urlId: urlId locale: locale + urlId: urlId commentHTML: commentHTML isDeleted: true - imported: true - permNotSpam: true - pageNumberOF: 2 - localDateHours: 0 - viewCount: 6 - votesUp: 1 + localDateHours: 1 + votesUp: 7 displayLabel: displayLabel - requiresVerification: true isPinned: true verified: true anonUserId: anonUserId externalId: externalId hasLinks: true - autoplayDelayMS: 4 - tosAcceptedAt: 2000-01-23T04:56:07.000+00:00 expireAt: 2000-01-23T04:56:07.000+00:00 userId: "" - url: url parentId: parentId + url: url commenterEmail: commenterEmail badges: - displayLabel: displayLabel @@ -18749,7 +24487,7 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc - displayLabel: displayLabel @@ -18758,16 +24496,14 @@ components: cssClass: cssClass description: description id: id - type: 9 + type: 2 textColor: textColor displaySrc: displaySrc notificationSentForParent: true tenantId: tenantId hasImages: true comment: comment - votes: 6 - isBannedUser: true - verificationId: verificationId + votes: 5 isByAdmin: true moduleData: key: "" @@ -18777,7 +24513,7 @@ components: status: $ref: "#/components/schemas/APIStatus" comment: - $ref: "#/components/schemas/FComment" + $ref: "#/components/schemas/APIComment" user: allOf: - $ref: "#/components/schemas/UserSessionInfo" @@ -18817,10 +24553,11 @@ components: tos: true reviewed: true localDateHours: 6 + botId: botId votesUp: 9 productId: 1 questionValues: - key: Record_string_string_or_number__value + key: GifSearchResponse_images_inner_inner isPinned: true ip: ip feedbackIds: @@ -18921,12 +24658,14 @@ components: type: array questionValues: additionalProperties: - $ref: "#/components/schemas/Record_string_string_or_number__value" + $ref: "#/components/schemas/GifSearchResponse_images_inner_inner" description: Construct a type with a set of properties K of type T properties: {} type: object tos: type: boolean + botId: + type: string approved: type: boolean domain: @@ -19180,6 +24919,24 @@ components: - data - status type: object + AggregationAPIError: + additionalProperties: false + properties: + status: + $ref: "#/components/schemas/APIStatus" + reason: + type: string + code: + type: string + validResourceNames: + items: + type: string + type: array + required: + - code + - reason + - status + type: object QueryPredicate: additionalProperties: false example: @@ -19282,38 +25039,27 @@ components: items: $ref: "#/components/schemas/AggregationOperation" type: array - sort: - $ref: "#/components/schemas/AggregationRequest_sort" - required: - - operations - - resourceName - type: object - SearchUsers_200_response: - anyOf: - - $ref: "#/components/schemas/SearchUsersSectionedResponse" - - $ref: "#/components/schemas/SearchUsersResponse" - - $ref: "#/components/schemas/APIError" - GetUserPresenceStatuses_200_response: - anyOf: - - $ref: "#/components/schemas/GetUserPresenceStatusesResponse" - - $ref: "#/components/schemas/APIError" - GetUserNotifications_200_response: - anyOf: - - $ref: "#/components/schemas/GetMyNotificationsResponse" - - $ref: "#/components/schemas/APIError" - ResetUserNotifications_200_response: + sort: + $ref: "#/components/schemas/AggregationRequest_sort" + required: + - operations + - resourceName + type: object + UpdateUserNotificationStatusResponse: anyOf: - - $ref: "#/components/schemas/ResetUserNotificationsResponse" - - $ref: "#/components/schemas/APIError" - GetUserNotificationCount_200_response: + - $ref: "#/components/schemas/UserNotificationWriteResponse" + - $ref: "#/components/schemas/IgnoredResponse" + title: UpdateUserNotificationStatusResponse + UpdateUserNotificationCommentSubscriptionStatusResponse: anyOf: - - $ref: "#/components/schemas/GetUserNotificationCountResponse" - - $ref: "#/components/schemas/APIError" - UpdateUserNotificationStatus_200_response: + - $ref: "#/components/schemas/UserNotificationWriteResponse" + - $ref: "#/components/schemas/IgnoredResponse" + title: UpdateUserNotificationCommentSubscriptionStatusResponse + UpdateUserNotificationPageSubscriptionStatusResponse: anyOf: - $ref: "#/components/schemas/UserNotificationWriteResponse" - $ref: "#/components/schemas/IgnoredResponse" - - $ref: "#/components/schemas/APIError" + title: UpdateUserNotificationPageSubscriptionStatusResponse UploadImage_request: properties: file: @@ -19322,27 +25068,22 @@ components: required: - file type: object - FlagCommentPublic_200_response: - anyOf: - - $ref: "#/components/schemas/APIEmptyResponse" - - $ref: "#/components/schemas/APIError" - GetFeedPostsPublic_200_response: - anyOf: - - $ref: "#/components/schemas/PublicFeedPostsResponse" - - $ref: "#/components/schemas/APIError" - CreateFeedPostPublic_200_response: + PostRemoveCommentResponse: anyOf: - - $ref: "#/components/schemas/CreateFeedPostResponse" - - $ref: "#/components/schemas/APIError" - ReactFeedPostPublic_200_response: + - $ref: "#/components/schemas/DeleteCommentResult" + - $ref: "#/components/schemas/RemoveCommentActionResponse" + title: PostRemoveCommentResponse + GetGifsTrendingResponse: anyOf: - - $ref: "#/components/schemas/ReactFeedPostResponse" - - $ref: "#/components/schemas/APIError" - GetUserReactsPublic_200_response: + - $ref: "#/components/schemas/GifSearchResponse" + - $ref: "#/components/schemas/GifSearchInternalError" + title: GetGifsTrendingResponse + GetGifsSearchResponse: anyOf: - - $ref: "#/components/schemas/UserReactsResponse" - - $ref: "#/components/schemas/APIError" - DeleteFeedPostPublic_200_response_anyOf: + - $ref: "#/components/schemas/GifSearchResponse" + - $ref: "#/components/schemas/GifSearchInternalError" + title: GetGifsSearchResponse + DeleteFeedPostPublicResponse: example: status: success properties: @@ -19350,72 +25091,9 @@ components: $ref: "#/components/schemas/APIStatus" required: - status + title: DeleteFeedPostPublicResponse type: object - DeleteFeedPostPublic_200_response: - anyOf: - - $ref: "#/components/schemas/DeleteFeedPostPublic_200_response_anyOf" - - $ref: "#/components/schemas/APIError" - GetFeedPostsStats_200_response: - anyOf: - - $ref: "#/components/schemas/FeedPostsStatsResponse" - - $ref: "#/components/schemas/APIError" - GetEventLog_200_response: - anyOf: - - $ref: "#/components/schemas/GetEventLogResponse" - - $ref: "#/components/schemas/APIError" - GetCommentText_200_response: - anyOf: - - $ref: "#/components/schemas/PublicAPIGetCommentTextResponse" - - $ref: "#/components/schemas/APIError" - SetCommentText_200_response: - anyOf: - - $ref: "#/components/schemas/PublicAPISetCommentTextResponse" - - $ref: "#/components/schemas/APIError" - GetCommentsPublic_200_response: - anyOf: - - $ref: "#/components/schemas/GetCommentsResponseWithPresence_PublicComment_" - - $ref: "#/components/schemas/APIError" - CreateCommentPublic_200_response: - anyOf: - - $ref: "#/components/schemas/SaveCommentsResponseWithPresence" - - $ref: "#/components/schemas/APIError" - DeleteCommentPublic_200_response: - anyOf: - - $ref: "#/components/schemas/PublicAPIDeleteCommentResponse" - - $ref: "#/components/schemas/APIError" - CheckedCommentsForBlocked_200_response: - anyOf: - - $ref: "#/components/schemas/CheckBlockedCommentsResponse" - - $ref: "#/components/schemas/APIError" - VoteComment_200_response: - anyOf: - - $ref: "#/components/schemas/VoteResponse" - - $ref: "#/components/schemas/APIError" - DeleteCommentVote_200_response: - anyOf: - - $ref: "#/components/schemas/VoteDeleteResponse" - - $ref: "#/components/schemas/APIError" - GetCommentVoteUserNames_200_response: - anyOf: - - $ref: "#/components/schemas/GetCommentVoteUserNamesSuccessResponse" - - $ref: "#/components/schemas/APIError" - PinComment_200_response: - anyOf: - - $ref: "#/components/schemas/ChangeCommentPinStatusResponse" - - $ref: "#/components/schemas/APIError" - LockComment_200_response: - anyOf: - - $ref: "#/components/schemas/APIError" - - $ref: "#/components/schemas/APIEmptyResponse" - BlockFromCommentPublic_200_response: - anyOf: - - $ref: "#/components/schemas/BlockSuccess" - - $ref: "#/components/schemas/APIError" - UnBlockCommentPublic_200_response: - anyOf: - - $ref: "#/components/schemas/UnblockSuccess" - - $ref: "#/components/schemas/APIError" - GetSSOUsers_200_response: + GetSSOUsersResponse: example: users: - displayLabel: displayLabel @@ -19473,221 +25151,17 @@ components: required: - status - users + title: GetSSOUsersResponse type: object - GetVotes_200_response: - anyOf: - - $ref: "#/components/schemas/GetVotesResponse" - - $ref: "#/components/schemas/APIError" - GetVotesForUser_200_response: - anyOf: - - $ref: "#/components/schemas/GetVotesForUserResponse" - - $ref: "#/components/schemas/APIError" - GetUser_200_response: - anyOf: - - $ref: "#/components/schemas/GetUserResponse" - - $ref: "#/components/schemas/APIError" - GetUserBadge_200_response: - anyOf: - - $ref: "#/components/schemas/APIGetUserBadgeResponse" - - $ref: "#/components/schemas/APIError" - UpdateUserBadge_200_response: - anyOf: - - $ref: "#/components/schemas/APIEmptySuccessResponse" - - $ref: "#/components/schemas/APIError" - GetUserBadges_200_response: - anyOf: - - $ref: "#/components/schemas/APIGetUserBadgesResponse" - - $ref: "#/components/schemas/APIError" - CreateUserBadge_200_response: - anyOf: - - $ref: "#/components/schemas/APICreateUserBadgeResponse" - - $ref: "#/components/schemas/APIError" - GetUserBadgeProgressById_200_response: - anyOf: - - $ref: "#/components/schemas/APIGetUserBadgeProgressResponse" - - $ref: "#/components/schemas/APIError" - GetUserBadgeProgressList_200_response: - anyOf: - - $ref: "#/components/schemas/APIGetUserBadgeProgressListResponse" - - $ref: "#/components/schemas/APIError" - GetTickets_200_response: - anyOf: - - $ref: "#/components/schemas/GetTicketsResponse" - - $ref: "#/components/schemas/APIError" - CreateTicket_200_response: - anyOf: - - $ref: "#/components/schemas/CreateTicketResponse" - - $ref: "#/components/schemas/APIError" - GetTicket_200_response: - anyOf: - - $ref: "#/components/schemas/GetTicketResponse" - - $ref: "#/components/schemas/APIError" - ChangeTicketState_200_response: - anyOf: - - $ref: "#/components/schemas/ChangeTicketStateResponse" - - $ref: "#/components/schemas/APIError" - GetTenant_200_response: - anyOf: - - $ref: "#/components/schemas/GetTenantResponse" - - $ref: "#/components/schemas/APIError" - GetTenants_200_response: - anyOf: - - $ref: "#/components/schemas/GetTenantsResponse" - - $ref: "#/components/schemas/APIError" - CreateTenant_200_response: - anyOf: - - $ref: "#/components/schemas/CreateTenantResponse" - - $ref: "#/components/schemas/APIError" - GetTenantUser_200_response: - anyOf: - - $ref: "#/components/schemas/GetTenantUserResponse" - - $ref: "#/components/schemas/APIError" - GetTenantUsers_200_response: - anyOf: - - $ref: "#/components/schemas/GetTenantUsersResponse" - - $ref: "#/components/schemas/APIError" - CreateTenantUser_200_response: - anyOf: - - $ref: "#/components/schemas/CreateTenantUserResponse" - - $ref: "#/components/schemas/APIError" - GetTenantPackage_200_response: - anyOf: - - $ref: "#/components/schemas/GetTenantPackageResponse" - - $ref: "#/components/schemas/APIError" - GetTenantPackages_200_response: - anyOf: - - $ref: "#/components/schemas/GetTenantPackagesResponse" - - $ref: "#/components/schemas/APIError" - CreateTenantPackage_200_response: - anyOf: - - $ref: "#/components/schemas/CreateTenantPackageResponse" - - $ref: "#/components/schemas/APIError" - GetTenantDailyUsages_200_response: - anyOf: - - $ref: "#/components/schemas/GetTenantDailyUsagesResponse" - - $ref: "#/components/schemas/APIError" - GetQuestionResult_200_response: - anyOf: - - $ref: "#/components/schemas/GetQuestionResultResponse" - - $ref: "#/components/schemas/APIError" - GetQuestionResults_200_response: - anyOf: - - $ref: "#/components/schemas/GetQuestionResultsResponse" - - $ref: "#/components/schemas/APIError" - CreateQuestionResult_200_response: - anyOf: - - $ref: "#/components/schemas/CreateQuestionResultResponse" - - $ref: "#/components/schemas/APIError" - AggregateQuestionResults_200_response: - anyOf: - - $ref: "#/components/schemas/AggregateQuestionResultsResponse" - - $ref: "#/components/schemas/APIError" - BulkAggregateQuestionResults_200_response: - anyOf: - - $ref: "#/components/schemas/BulkAggregateQuestionResultsResponse" - - $ref: "#/components/schemas/APIError" - CombineCommentsWithQuestionResults_200_response: - anyOf: - - $ref: "#/components/schemas/CombineQuestionResultsWithCommentsResponse" - - $ref: "#/components/schemas/APIError" - GetQuestionConfig_200_response: - anyOf: - - $ref: "#/components/schemas/GetQuestionConfigResponse" - - $ref: "#/components/schemas/APIError" - GetQuestionConfigs_200_response: - anyOf: - - $ref: "#/components/schemas/GetQuestionConfigsResponse" - - $ref: "#/components/schemas/APIError" - CreateQuestionConfig_200_response: - anyOf: - - $ref: "#/components/schemas/CreateQuestionConfigResponse" - - $ref: "#/components/schemas/APIError" - GetPendingWebhookEvents_200_response: - anyOf: - - $ref: "#/components/schemas/GetPendingWebhookEventsResponse" - - $ref: "#/components/schemas/APIError" - GetPendingWebhookEventCount_200_response: - anyOf: - - $ref: "#/components/schemas/GetPendingWebhookEventCountResponse" - - $ref: "#/components/schemas/APIError" - GetNotifications_200_response: - anyOf: - - $ref: "#/components/schemas/GetNotificationsResponse" - - $ref: "#/components/schemas/APIError" - GetNotificationCount_200_response: - anyOf: - - $ref: "#/components/schemas/GetNotificationCountResponse" - - $ref: "#/components/schemas/APIError" - GetCachedNotificationCount_200_response: - anyOf: - - $ref: "#/components/schemas/GetCachedNotificationCountResponse" - - $ref: "#/components/schemas/APIError" - GetModerator_200_response: - anyOf: - - $ref: "#/components/schemas/GetModeratorResponse" - - $ref: "#/components/schemas/APIError" - GetModerators_200_response: - anyOf: - - $ref: "#/components/schemas/GetModeratorsResponse" - - $ref: "#/components/schemas/APIError" - CreateModerator_200_response: - anyOf: - - $ref: "#/components/schemas/CreateModeratorResponse" - - $ref: "#/components/schemas/APIError" - GetHashTags_200_response: - anyOf: - - $ref: "#/components/schemas/GetHashTagsResponse" - - $ref: "#/components/schemas/APIError" - AddHashTag_200_response: - anyOf: - - $ref: "#/components/schemas/CreateHashTagResponse" - - $ref: "#/components/schemas/APIError" - AddHashTagsBulk_200_response: - anyOf: - - $ref: "#/components/schemas/BulkCreateHashTagsResponse" - - $ref: "#/components/schemas/APIError" - DeleteHashTag_request: + DeleteHashTagRequestBody: + example: + tenantId: tenantId properties: tenantId: type: string + title: DeleteHashTagRequestBody type: object - PatchHashTag_200_response: - anyOf: - - $ref: "#/components/schemas/UpdateHashTagResponse" - - $ref: "#/components/schemas/APIError" - GetFeedPosts_200_response: - anyOf: - - $ref: "#/components/schemas/GetFeedPostsResponse" - - $ref: "#/components/schemas/APIError" - CreateFeedPost_200_response: - anyOf: - - $ref: "#/components/schemas/CreateFeedPostsResponse" - - $ref: "#/components/schemas/APIError" - GetEmailTemplateDefinitions_200_response: - anyOf: - - $ref: "#/components/schemas/GetEmailTemplateDefinitionsResponse" - - $ref: "#/components/schemas/APIError" - GetEmailTemplateRenderErrors_200_response: - anyOf: - - $ref: "#/components/schemas/GetEmailTemplateRenderErrorsResponse" - - $ref: "#/components/schemas/APIError" - GetEmailTemplate_200_response: - anyOf: - - $ref: "#/components/schemas/GetEmailTemplateResponse" - - $ref: "#/components/schemas/APIError" - GetEmailTemplates_200_response: - anyOf: - - $ref: "#/components/schemas/GetEmailTemplatesResponse" - - $ref: "#/components/schemas/APIError" - CreateEmailTemplate_200_response: - anyOf: - - $ref: "#/components/schemas/CreateEmailTemplateResponse" - - $ref: "#/components/schemas/APIError" - RenderEmailTemplate_200_response: - anyOf: - - $ref: "#/components/schemas/RenderEmailTemplateResponse" - - $ref: "#/components/schemas/APIError" - GetDomainConfigs_200_response_anyOf: + GetDomainConfigsResponse_anyOf: example: configurations: "" status: "" @@ -19698,7 +25172,7 @@ components: - configurations - status type: object - GetDomainConfigs_200_response_anyOf_1: + GetDomainConfigsResponse_anyOf_1: example: reason: reason code: code @@ -19714,11 +25188,12 @@ components: - reason - status type: object - GetDomainConfigs_200_response: + GetDomainConfigsResponse: anyOf: - - $ref: "#/components/schemas/GetDomainConfigs_200_response_anyOf" - - $ref: "#/components/schemas/GetDomainConfigs_200_response_anyOf_1" - AddDomainConfig_200_response_anyOf: + - $ref: "#/components/schemas/GetDomainConfigsResponse_anyOf" + - $ref: "#/components/schemas/GetDomainConfigsResponse_anyOf_1" + title: GetDomainConfigsResponse + AddDomainConfigResponse_anyOf: example: configuration: "" status: "" @@ -19729,54 +25204,136 @@ components: - configuration - status type: object - AddDomainConfig_200_response: + AddDomainConfigResponse: anyOf: - - $ref: "#/components/schemas/GetDomainConfigs_200_response_anyOf_1" - - $ref: "#/components/schemas/AddDomainConfig_200_response_anyOf" - GetDomainConfig_200_response: + - $ref: "#/components/schemas/GetDomainConfigsResponse_anyOf_1" + - $ref: "#/components/schemas/AddDomainConfigResponse_anyOf" + title: AddDomainConfigResponse + GetDomainConfigResponse: anyOf: - - $ref: "#/components/schemas/AddDomainConfig_200_response_anyOf" - - $ref: "#/components/schemas/GetDomainConfigs_200_response_anyOf_1" - DeleteDomainConfig_200_response: + - $ref: "#/components/schemas/AddDomainConfigResponse_anyOf" + - $ref: "#/components/schemas/GetDomainConfigsResponse_anyOf_1" + title: GetDomainConfigResponse + DeleteDomainConfigResponse: example: status: "" properties: status: {} required: - status + title: DeleteDomainConfigResponse type: object - GetComment_200_response: + PutDomainConfigResponse: anyOf: - - $ref: "#/components/schemas/APIGetCommentResponse" - - $ref: "#/components/schemas/APIError" - DeleteComment_200_response: + - $ref: "#/components/schemas/AddDomainConfigResponse_anyOf" + - $ref: "#/components/schemas/GetDomainConfigsResponse_anyOf_1" + title: PutDomainConfigResponse + PatchDomainConfigResponse: anyOf: - - $ref: "#/components/schemas/DeleteCommentResult" - - $ref: "#/components/schemas/APIError" - GetComments_200_response: + - $ref: "#/components/schemas/AddDomainConfigResponse_anyOf" + - $ref: "#/components/schemas/GetDomainConfigsResponse_anyOf_1" + title: PatchDomainConfigResponse + SaveCommentsBulkResponse: anyOf: - - $ref: "#/components/schemas/APIGetCommentsResponse" + - $ref: "#/components/schemas/APISaveCommentResponse" - $ref: "#/components/schemas/APIError" - SaveComment_200_response: + title: SaveCommentsBulkResponse + AggregateResponse: anyOf: - - $ref: "#/components/schemas/SaveCommentResponse" - - $ref: "#/components/schemas/APIError" - FlagComment_200_response: + - $ref: "#/components/schemas/AggregationResponse" + - $ref: "#/components/schemas/AggregationAPIError" + title: AggregateResponse + BannedUserMatch_matchedOnValue: anyOf: - - $ref: "#/components/schemas/FlagCommentResponse" - - $ref: "#/components/schemas/APIError" - GetAuditLogs_200_response: + - type: string + - format: double + type: number + nullable: true + VoteResponse_status: anyOf: - - $ref: "#/components/schemas/GetAuditLogsResponse" - - $ref: "#/components/schemas/APIError" + - $ref: "#/components/schemas/APIStatus" + - enum: + - pending-verification + type: string + GetUserInternalProfileResponse_profile: + example: + karma: 0.8008281904610115 + firstCommentDate: 2000-01-23T04:56:07.000+00:00 + displayName: displayName + commenterName: commenterName + verified: true + bio: bio + anonUserId: anonUserId + ipHash: ipHash + locale: locale + userId: userId + commenterEmail: commenterEmail + countryFlag: countryFlag + websiteUrl: websiteUrl + countryCode: countryCode + avatarSrc: avatarSrc + email: email + username: username + properties: + commenterName: + type: string + firstCommentDate: + format: date-time + nullable: true + type: string + ipHash: + type: string + countryFlag: + type: string + countryCode: + type: string + websiteUrl: + nullable: true + type: string + bio: + type: string + karma: + format: double + type: number + locale: + type: string + verified: + type: boolean + avatarSrc: + nullable: true + type: string + displayName: + type: string + username: + type: string + commenterEmail: + nullable: true + type: string + email: + nullable: true + type: string + anonUserId: + nullable: true + type: string + userId: + nullable: true + type: string + type: object + GifSearchResponse_images_inner_inner: + anyOf: + - type: string + - format: double + type: number Record_string__before_string_or_null__after_string_or_null___value: example: before: before after: after properties: after: + nullable: true type: string before: + nullable: true type: string required: - after @@ -19791,17 +25348,6 @@ components: properties: {} type: object type: object - Record_string_string_or_number__value: - anyOf: - - type: string - - format: double - type: number - VoteResponse_status: - anyOf: - - $ref: "#/components/schemas/APIStatus" - - enum: - - pending-verification - type: string FComment_meta: additionalProperties: {} example: @@ -19830,6 +25376,10 @@ components: - imageSrc - name type: object + BulkCreateHashTagsResponse_results_inner: + anyOf: + - $ref: "#/components/schemas/CreateHashTagResponse" + - $ref: "#/components/schemas/APIError" BulkCreateHashTagsBody_tags_inner: example: tag: tag diff --git a/client/api_default.go b/client/api_default.go index 5770ac0..9f91816 100644 --- a/client/api_default.go +++ b/client/api_default.go @@ -42,7 +42,7 @@ func (r ApiAddDomainConfigRequest) AddDomainConfigParams(addDomainConfigParams A return r } -func (r ApiAddDomainConfigRequest) Execute() (*AddDomainConfig200Response, *http.Response, error) { +func (r ApiAddDomainConfigRequest) Execute() (*AddDomainConfigResponse, *http.Response, error) { return r.ApiService.AddDomainConfigExecute(r) } @@ -60,13 +60,13 @@ func (a *DefaultAPIService) AddDomainConfig(ctx context.Context) ApiAddDomainCon } // Execute executes the request -// @return AddDomainConfig200Response -func (a *DefaultAPIService) AddDomainConfigExecute(r ApiAddDomainConfigRequest) (*AddDomainConfig200Response, *http.Response, error) { +// @return AddDomainConfigResponse +func (a *DefaultAPIService) AddDomainConfigExecute(r ApiAddDomainConfigRequest) (*AddDomainConfigResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *AddDomainConfig200Response + localVarReturnValue *AddDomainConfigResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AddDomainConfig") @@ -174,7 +174,7 @@ func (r ApiAddHashTagRequest) CreateHashTagBody(createHashTagBody CreateHashTagB return r } -func (r ApiAddHashTagRequest) Execute() (*AddHashTag200Response, *http.Response, error) { +func (r ApiAddHashTagRequest) Execute() (*CreateHashTagResponse, *http.Response, error) { return r.ApiService.AddHashTagExecute(r) } @@ -192,13 +192,13 @@ func (a *DefaultAPIService) AddHashTag(ctx context.Context) ApiAddHashTagRequest } // Execute executes the request -// @return AddHashTag200Response -func (a *DefaultAPIService) AddHashTagExecute(r ApiAddHashTagRequest) (*AddHashTag200Response, *http.Response, error) { +// @return CreateHashTagResponse +func (a *DefaultAPIService) AddHashTagExecute(r ApiAddHashTagRequest) (*CreateHashTagResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *AddHashTag200Response + localVarReturnValue *CreateHashTagResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AddHashTag") @@ -270,6 +270,14 @@ func (a *DefaultAPIService) AddHashTagExecute(r ApiAddHashTagRequest) (*AddHashT body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -302,7 +310,7 @@ func (r ApiAddHashTagsBulkRequest) BulkCreateHashTagsBody(bulkCreateHashTagsBody return r } -func (r ApiAddHashTagsBulkRequest) Execute() (*AddHashTagsBulk200Response, *http.Response, error) { +func (r ApiAddHashTagsBulkRequest) Execute() (*BulkCreateHashTagsResponse, *http.Response, error) { return r.ApiService.AddHashTagsBulkExecute(r) } @@ -320,13 +328,13 @@ func (a *DefaultAPIService) AddHashTagsBulk(ctx context.Context) ApiAddHashTagsB } // Execute executes the request -// @return AddHashTagsBulk200Response -func (a *DefaultAPIService) AddHashTagsBulkExecute(r ApiAddHashTagsBulkRequest) (*AddHashTagsBulk200Response, *http.Response, error) { +// @return BulkCreateHashTagsResponse +func (a *DefaultAPIService) AddHashTagsBulkExecute(r ApiAddHashTagsBulkRequest) (*BulkCreateHashTagsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *AddHashTagsBulk200Response + localVarReturnValue *BulkCreateHashTagsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AddHashTagsBulk") @@ -398,6 +406,14 @@ func (a *DefaultAPIService) AddHashTagsBulkExecute(r ApiAddHashTagsBulkRequest) body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -706,7 +722,7 @@ func (r ApiAggregateRequest) IncludeStats(includeStats bool) ApiAggregateRequest return r } -func (r ApiAggregateRequest) Execute() (*AggregationResponse, *http.Response, error) { +func (r ApiAggregateRequest) Execute() (*AggregateResponse, *http.Response, error) { return r.ApiService.AggregateExecute(r) } @@ -727,13 +743,13 @@ func (a *DefaultAPIService) Aggregate(ctx context.Context) ApiAggregateRequest { } // Execute executes the request -// @return AggregationResponse -func (a *DefaultAPIService) AggregateExecute(r ApiAggregateRequest) (*AggregationResponse, *http.Response, error) { +// @return AggregateResponse +func (a *DefaultAPIService) AggregateExecute(r ApiAggregateRequest) (*AggregateResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *AggregationResponse + localVarReturnValue *AggregateResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.Aggregate") @@ -877,7 +893,7 @@ func (r ApiAggregateQuestionResultsRequest) ForceRecalculate(forceRecalculate bo return r } -func (r ApiAggregateQuestionResultsRequest) Execute() (*AggregateQuestionResults200Response, *http.Response, error) { +func (r ApiAggregateQuestionResultsRequest) Execute() (*AggregateQuestionResultsResponse, *http.Response, error) { return r.ApiService.AggregateQuestionResultsExecute(r) } @@ -895,13 +911,13 @@ func (a *DefaultAPIService) AggregateQuestionResults(ctx context.Context) ApiAgg } // Execute executes the request -// @return AggregateQuestionResults200Response -func (a *DefaultAPIService) AggregateQuestionResultsExecute(r ApiAggregateQuestionResultsRequest) (*AggregateQuestionResults200Response, *http.Response, error) { +// @return AggregateQuestionResultsResponse +func (a *DefaultAPIService) AggregateQuestionResultsExecute(r ApiAggregateQuestionResultsRequest) (*AggregateQuestionResultsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *AggregateQuestionResults200Response + localVarReturnValue *AggregateQuestionResultsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AggregateQuestionResults") @@ -998,6 +1014,14 @@ func (a *DefaultAPIService) AggregateQuestionResultsExecute(r ApiAggregateQuesti body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1043,7 +1067,7 @@ func (r ApiBlockUserFromCommentRequest) AnonUserId(anonUserId string) ApiBlockUs return r } -func (r ApiBlockUserFromCommentRequest) Execute() (*BlockFromCommentPublic200Response, *http.Response, error) { +func (r ApiBlockUserFromCommentRequest) Execute() (*BlockSuccess, *http.Response, error) { return r.ApiService.BlockUserFromCommentExecute(r) } @@ -1063,13 +1087,13 @@ func (a *DefaultAPIService) BlockUserFromComment(ctx context.Context, id string) } // Execute executes the request -// @return BlockFromCommentPublic200Response -func (a *DefaultAPIService) BlockUserFromCommentExecute(r ApiBlockUserFromCommentRequest) (*BlockFromCommentPublic200Response, *http.Response, error) { +// @return BlockSuccess +func (a *DefaultAPIService) BlockUserFromCommentExecute(r ApiBlockUserFromCommentRequest) (*BlockSuccess, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *BlockFromCommentPublic200Response + localVarReturnValue *BlockSuccess ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.BlockUserFromComment") @@ -1152,6 +1176,14 @@ func (a *DefaultAPIService) BlockUserFromCommentExecute(r ApiBlockUserFromCommen body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1190,7 +1222,7 @@ func (r ApiBulkAggregateQuestionResultsRequest) ForceRecalculate(forceRecalculat return r } -func (r ApiBulkAggregateQuestionResultsRequest) Execute() (*BulkAggregateQuestionResults200Response, *http.Response, error) { +func (r ApiBulkAggregateQuestionResultsRequest) Execute() (*BulkAggregateQuestionResultsResponse, *http.Response, error) { return r.ApiService.BulkAggregateQuestionResultsExecute(r) } @@ -1208,13 +1240,13 @@ func (a *DefaultAPIService) BulkAggregateQuestionResults(ctx context.Context) Ap } // Execute executes the request -// @return BulkAggregateQuestionResults200Response -func (a *DefaultAPIService) BulkAggregateQuestionResultsExecute(r ApiBulkAggregateQuestionResultsRequest) (*BulkAggregateQuestionResults200Response, *http.Response, error) { +// @return BulkAggregateQuestionResultsResponse +func (a *DefaultAPIService) BulkAggregateQuestionResultsExecute(r ApiBulkAggregateQuestionResultsRequest) (*BulkAggregateQuestionResultsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *BulkAggregateQuestionResults200Response + localVarReturnValue *BulkAggregateQuestionResultsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.BulkAggregateQuestionResults") @@ -1293,6 +1325,14 @@ func (a *DefaultAPIService) BulkAggregateQuestionResultsExecute(r ApiBulkAggrega body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1332,7 +1372,7 @@ func (r ApiChangeTicketStateRequest) ChangeTicketStateBody(changeTicketStateBody return r } -func (r ApiChangeTicketStateRequest) Execute() (*ChangeTicketState200Response, *http.Response, error) { +func (r ApiChangeTicketStateRequest) Execute() (*ChangeTicketStateResponse, *http.Response, error) { return r.ApiService.ChangeTicketStateExecute(r) } @@ -1352,13 +1392,13 @@ func (a *DefaultAPIService) ChangeTicketState(ctx context.Context, id string) Ap } // Execute executes the request -// @return ChangeTicketState200Response -func (a *DefaultAPIService) ChangeTicketStateExecute(r ApiChangeTicketStateRequest) (*ChangeTicketState200Response, *http.Response, error) { +// @return ChangeTicketStateResponse +func (a *DefaultAPIService) ChangeTicketStateExecute(r ApiChangeTicketStateRequest) (*ChangeTicketStateResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *ChangeTicketState200Response + localVarReturnValue *ChangeTicketStateResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ChangeTicketState") @@ -1439,6 +1479,14 @@ func (a *DefaultAPIService) ChangeTicketStateExecute(r ApiChangeTicketStateReque body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1513,7 +1561,7 @@ func (r ApiCombineCommentsWithQuestionResultsRequest) Limit(limit float64) ApiCo return r } -func (r ApiCombineCommentsWithQuestionResultsRequest) Execute() (*CombineCommentsWithQuestionResults200Response, *http.Response, error) { +func (r ApiCombineCommentsWithQuestionResultsRequest) Execute() (*CombineQuestionResultsWithCommentsResponse, *http.Response, error) { return r.ApiService.CombineCommentsWithQuestionResultsExecute(r) } @@ -1531,13 +1579,13 @@ func (a *DefaultAPIService) CombineCommentsWithQuestionResults(ctx context.Conte } // Execute executes the request -// @return CombineCommentsWithQuestionResults200Response -func (a *DefaultAPIService) CombineCommentsWithQuestionResultsExecute(r ApiCombineCommentsWithQuestionResultsRequest) (*CombineCommentsWithQuestionResults200Response, *http.Response, error) { +// @return CombineQuestionResultsWithCommentsResponse +func (a *DefaultAPIService) CombineCommentsWithQuestionResultsExecute(r ApiCombineCommentsWithQuestionResultsRequest) (*CombineQuestionResultsWithCommentsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *CombineCommentsWithQuestionResults200Response + localVarReturnValue *CombineQuestionResultsWithCommentsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CombineCommentsWithQuestionResults") @@ -1640,6 +1688,14 @@ func (a *DefaultAPIService) CombineCommentsWithQuestionResultsExecute(r ApiCombi body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1672,7 +1728,7 @@ func (r ApiCreateEmailTemplateRequest) CreateEmailTemplateBody(createEmailTempla return r } -func (r ApiCreateEmailTemplateRequest) Execute() (*CreateEmailTemplate200Response, *http.Response, error) { +func (r ApiCreateEmailTemplateRequest) Execute() (*CreateEmailTemplateResponse, *http.Response, error) { return r.ApiService.CreateEmailTemplateExecute(r) } @@ -1690,13 +1746,13 @@ func (a *DefaultAPIService) CreateEmailTemplate(ctx context.Context) ApiCreateEm } // Execute executes the request -// @return CreateEmailTemplate200Response -func (a *DefaultAPIService) CreateEmailTemplateExecute(r ApiCreateEmailTemplateRequest) (*CreateEmailTemplate200Response, *http.Response, error) { +// @return CreateEmailTemplateResponse +func (a *DefaultAPIService) CreateEmailTemplateExecute(r ApiCreateEmailTemplateRequest) (*CreateEmailTemplateResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *CreateEmailTemplate200Response + localVarReturnValue *CreateEmailTemplateResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateEmailTemplate") @@ -1772,6 +1828,14 @@ func (a *DefaultAPIService) CreateEmailTemplateExecute(r ApiCreateEmailTemplateR body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1828,7 +1892,7 @@ func (r ApiCreateFeedPostRequest) SkipDupCheck(skipDupCheck bool) ApiCreateFeedP return r } -func (r ApiCreateFeedPostRequest) Execute() (*CreateFeedPost200Response, *http.Response, error) { +func (r ApiCreateFeedPostRequest) Execute() (*CreateFeedPostsResponse, *http.Response, error) { return r.ApiService.CreateFeedPostExecute(r) } @@ -1846,13 +1910,13 @@ func (a *DefaultAPIService) CreateFeedPost(ctx context.Context) ApiCreateFeedPos } // Execute executes the request -// @return CreateFeedPost200Response -func (a *DefaultAPIService) CreateFeedPostExecute(r ApiCreateFeedPostRequest) (*CreateFeedPost200Response, *http.Response, error) { +// @return CreateFeedPostsResponse +func (a *DefaultAPIService) CreateFeedPostExecute(r ApiCreateFeedPostRequest) (*CreateFeedPostsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *CreateFeedPost200Response + localVarReturnValue *CreateFeedPostsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateFeedPost") @@ -1940,6 +2004,14 @@ func (a *DefaultAPIService) CreateFeedPostExecute(r ApiCreateFeedPostRequest) (* body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1972,7 +2044,7 @@ func (r ApiCreateModeratorRequest) CreateModeratorBody(createModeratorBody Creat return r } -func (r ApiCreateModeratorRequest) Execute() (*CreateModerator200Response, *http.Response, error) { +func (r ApiCreateModeratorRequest) Execute() (*CreateModeratorResponse, *http.Response, error) { return r.ApiService.CreateModeratorExecute(r) } @@ -1990,13 +2062,13 @@ func (a *DefaultAPIService) CreateModerator(ctx context.Context) ApiCreateModera } // Execute executes the request -// @return CreateModerator200Response -func (a *DefaultAPIService) CreateModeratorExecute(r ApiCreateModeratorRequest) (*CreateModerator200Response, *http.Response, error) { +// @return CreateModeratorResponse +func (a *DefaultAPIService) CreateModeratorExecute(r ApiCreateModeratorRequest) (*CreateModeratorResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *CreateModerator200Response + localVarReturnValue *CreateModeratorResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateModerator") @@ -2072,6 +2144,14 @@ func (a *DefaultAPIService) CreateModeratorExecute(r ApiCreateModeratorRequest) body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -2104,7 +2184,7 @@ func (r ApiCreateQuestionConfigRequest) CreateQuestionConfigBody(createQuestionC return r } -func (r ApiCreateQuestionConfigRequest) Execute() (*CreateQuestionConfig200Response, *http.Response, error) { +func (r ApiCreateQuestionConfigRequest) Execute() (*CreateQuestionConfigResponse, *http.Response, error) { return r.ApiService.CreateQuestionConfigExecute(r) } @@ -2122,13 +2202,13 @@ func (a *DefaultAPIService) CreateQuestionConfig(ctx context.Context) ApiCreateQ } // Execute executes the request -// @return CreateQuestionConfig200Response -func (a *DefaultAPIService) CreateQuestionConfigExecute(r ApiCreateQuestionConfigRequest) (*CreateQuestionConfig200Response, *http.Response, error) { +// @return CreateQuestionConfigResponse +func (a *DefaultAPIService) CreateQuestionConfigExecute(r ApiCreateQuestionConfigRequest) (*CreateQuestionConfigResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *CreateQuestionConfig200Response + localVarReturnValue *CreateQuestionConfigResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateQuestionConfig") @@ -2204,6 +2284,14 @@ func (a *DefaultAPIService) CreateQuestionConfigExecute(r ApiCreateQuestionConfi body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -2236,7 +2324,7 @@ func (r ApiCreateQuestionResultRequest) CreateQuestionResultBody(createQuestionR return r } -func (r ApiCreateQuestionResultRequest) Execute() (*CreateQuestionResult200Response, *http.Response, error) { +func (r ApiCreateQuestionResultRequest) Execute() (*CreateQuestionResultResponse, *http.Response, error) { return r.ApiService.CreateQuestionResultExecute(r) } @@ -2254,13 +2342,13 @@ func (a *DefaultAPIService) CreateQuestionResult(ctx context.Context) ApiCreateQ } // Execute executes the request -// @return CreateQuestionResult200Response -func (a *DefaultAPIService) CreateQuestionResultExecute(r ApiCreateQuestionResultRequest) (*CreateQuestionResult200Response, *http.Response, error) { +// @return CreateQuestionResultResponse +func (a *DefaultAPIService) CreateQuestionResultExecute(r ApiCreateQuestionResultRequest) (*CreateQuestionResultResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *CreateQuestionResult200Response + localVarReturnValue *CreateQuestionResultResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateQuestionResult") @@ -2336,6 +2424,14 @@ func (a *DefaultAPIService) CreateQuestionResultExecute(r ApiCreateQuestionResul body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -2500,7 +2596,7 @@ func (r ApiCreateTenantRequest) CreateTenantBody(createTenantBody CreateTenantBo return r } -func (r ApiCreateTenantRequest) Execute() (*CreateTenant200Response, *http.Response, error) { +func (r ApiCreateTenantRequest) Execute() (*CreateTenantResponse, *http.Response, error) { return r.ApiService.CreateTenantExecute(r) } @@ -2518,13 +2614,13 @@ func (a *DefaultAPIService) CreateTenant(ctx context.Context) ApiCreateTenantReq } // Execute executes the request -// @return CreateTenant200Response -func (a *DefaultAPIService) CreateTenantExecute(r ApiCreateTenantRequest) (*CreateTenant200Response, *http.Response, error) { +// @return CreateTenantResponse +func (a *DefaultAPIService) CreateTenantExecute(r ApiCreateTenantRequest) (*CreateTenantResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *CreateTenant200Response + localVarReturnValue *CreateTenantResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateTenant") @@ -2600,6 +2696,14 @@ func (a *DefaultAPIService) CreateTenantExecute(r ApiCreateTenantRequest) (*Crea body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -2632,7 +2736,7 @@ func (r ApiCreateTenantPackageRequest) CreateTenantPackageBody(createTenantPacka return r } -func (r ApiCreateTenantPackageRequest) Execute() (*CreateTenantPackage200Response, *http.Response, error) { +func (r ApiCreateTenantPackageRequest) Execute() (*CreateTenantPackageResponse, *http.Response, error) { return r.ApiService.CreateTenantPackageExecute(r) } @@ -2650,13 +2754,13 @@ func (a *DefaultAPIService) CreateTenantPackage(ctx context.Context) ApiCreateTe } // Execute executes the request -// @return CreateTenantPackage200Response -func (a *DefaultAPIService) CreateTenantPackageExecute(r ApiCreateTenantPackageRequest) (*CreateTenantPackage200Response, *http.Response, error) { +// @return CreateTenantPackageResponse +func (a *DefaultAPIService) CreateTenantPackageExecute(r ApiCreateTenantPackageRequest) (*CreateTenantPackageResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *CreateTenantPackage200Response + localVarReturnValue *CreateTenantPackageResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateTenantPackage") @@ -2732,6 +2836,14 @@ func (a *DefaultAPIService) CreateTenantPackageExecute(r ApiCreateTenantPackageR body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -2764,7 +2876,7 @@ func (r ApiCreateTenantUserRequest) CreateTenantUserBody(createTenantUserBody Cr return r } -func (r ApiCreateTenantUserRequest) Execute() (*CreateTenantUser200Response, *http.Response, error) { +func (r ApiCreateTenantUserRequest) Execute() (*CreateTenantUserResponse, *http.Response, error) { return r.ApiService.CreateTenantUserExecute(r) } @@ -2782,13 +2894,13 @@ func (a *DefaultAPIService) CreateTenantUser(ctx context.Context) ApiCreateTenan } // Execute executes the request -// @return CreateTenantUser200Response -func (a *DefaultAPIService) CreateTenantUserExecute(r ApiCreateTenantUserRequest) (*CreateTenantUser200Response, *http.Response, error) { +// @return CreateTenantUserResponse +func (a *DefaultAPIService) CreateTenantUserExecute(r ApiCreateTenantUserRequest) (*CreateTenantUserResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *CreateTenantUser200Response + localVarReturnValue *CreateTenantUserResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateTenantUser") @@ -2864,6 +2976,14 @@ func (a *DefaultAPIService) CreateTenantUserExecute(r ApiCreateTenantUserRequest body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -2902,7 +3022,7 @@ func (r ApiCreateTicketRequest) CreateTicketBody(createTicketBody CreateTicketBo return r } -func (r ApiCreateTicketRequest) Execute() (*CreateTicket200Response, *http.Response, error) { +func (r ApiCreateTicketRequest) Execute() (*CreateTicketResponse, *http.Response, error) { return r.ApiService.CreateTicketExecute(r) } @@ -2920,13 +3040,13 @@ func (a *DefaultAPIService) CreateTicket(ctx context.Context) ApiCreateTicketReq } // Execute executes the request -// @return CreateTicket200Response -func (a *DefaultAPIService) CreateTicketExecute(r ApiCreateTicketRequest) (*CreateTicket200Response, *http.Response, error) { +// @return CreateTicketResponse +func (a *DefaultAPIService) CreateTicketExecute(r ApiCreateTicketRequest) (*CreateTicketResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *CreateTicket200Response + localVarReturnValue *CreateTicketResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateTicket") @@ -3006,6 +3126,14 @@ func (a *DefaultAPIService) CreateTicketExecute(r ApiCreateTicketRequest) (*Crea body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -3038,7 +3166,7 @@ func (r ApiCreateUserBadgeRequest) CreateUserBadgeParams(createUserBadgeParams C return r } -func (r ApiCreateUserBadgeRequest) Execute() (*CreateUserBadge200Response, *http.Response, error) { +func (r ApiCreateUserBadgeRequest) Execute() (*APICreateUserBadgeResponse, *http.Response, error) { return r.ApiService.CreateUserBadgeExecute(r) } @@ -3056,13 +3184,13 @@ func (a *DefaultAPIService) CreateUserBadge(ctx context.Context) ApiCreateUserBa } // Execute executes the request -// @return CreateUserBadge200Response -func (a *DefaultAPIService) CreateUserBadgeExecute(r ApiCreateUserBadgeRequest) (*CreateUserBadge200Response, *http.Response, error) { +// @return APICreateUserBadgeResponse +func (a *DefaultAPIService) CreateUserBadgeExecute(r ApiCreateUserBadgeRequest) (*APICreateUserBadgeResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *CreateUserBadge200Response + localVarReturnValue *APICreateUserBadgeResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateUserBadge") @@ -3138,6 +3266,14 @@ func (a *DefaultAPIService) CreateUserBadgeExecute(r ApiCreateUserBadgeRequest) body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -3188,7 +3324,7 @@ func (r ApiCreateVoteRequest) AnonUserId(anonUserId string) ApiCreateVoteRequest return r } -func (r ApiCreateVoteRequest) Execute() (*VoteComment200Response, *http.Response, error) { +func (r ApiCreateVoteRequest) Execute() (*VoteResponse, *http.Response, error) { return r.ApiService.CreateVoteExecute(r) } @@ -3206,13 +3342,13 @@ func (a *DefaultAPIService) CreateVote(ctx context.Context) ApiCreateVoteRequest } // Execute executes the request -// @return VoteComment200Response -func (a *DefaultAPIService) CreateVoteExecute(r ApiCreateVoteRequest) (*VoteComment200Response, *http.Response, error) { +// @return VoteResponse +func (a *DefaultAPIService) CreateVoteExecute(r ApiCreateVoteRequest) (*VoteResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *VoteComment200Response + localVarReturnValue *VoteResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateVote") @@ -3297,6 +3433,14 @@ func (a *DefaultAPIService) CreateVoteExecute(r ApiCreateVoteRequest) (*VoteComm body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -3336,7 +3480,7 @@ func (r ApiDeleteCommentRequest) IsLive(isLive bool) ApiDeleteCommentRequest { return r } -func (r ApiDeleteCommentRequest) Execute() (*DeleteComment200Response, *http.Response, error) { +func (r ApiDeleteCommentRequest) Execute() (*DeleteCommentResult, *http.Response, error) { return r.ApiService.DeleteCommentExecute(r) } @@ -3356,13 +3500,13 @@ func (a *DefaultAPIService) DeleteComment(ctx context.Context, id string) ApiDel } // Execute executes the request -// @return DeleteComment200Response -func (a *DefaultAPIService) DeleteCommentExecute(r ApiDeleteCommentRequest) (*DeleteComment200Response, *http.Response, error) { +// @return DeleteCommentResult +func (a *DefaultAPIService) DeleteCommentExecute(r ApiDeleteCommentRequest) (*DeleteCommentResult, *http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile - localVarReturnValue *DeleteComment200Response + localVarReturnValue *DeleteCommentResult ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteComment") @@ -3440,6 +3584,14 @@ func (a *DefaultAPIService) DeleteCommentExecute(r ApiDeleteCommentRequest) (*De body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -3467,7 +3619,7 @@ func (r ApiDeleteDomainConfigRequest) TenantId(tenantId string) ApiDeleteDomainC return r } -func (r ApiDeleteDomainConfigRequest) Execute() (*DeleteDomainConfig200Response, *http.Response, error) { +func (r ApiDeleteDomainConfigRequest) Execute() (*DeleteDomainConfigResponse, *http.Response, error) { return r.ApiService.DeleteDomainConfigExecute(r) } @@ -3487,13 +3639,13 @@ func (a *DefaultAPIService) DeleteDomainConfig(ctx context.Context, domain strin } // Execute executes the request -// @return DeleteDomainConfig200Response -func (a *DefaultAPIService) DeleteDomainConfigExecute(r ApiDeleteDomainConfigRequest) (*DeleteDomainConfig200Response, *http.Response, error) { +// @return DeleteDomainConfigResponse +func (a *DefaultAPIService) DeleteDomainConfigExecute(r ApiDeleteDomainConfigRequest) (*DeleteDomainConfigResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile - localVarReturnValue *DeleteDomainConfig200Response + localVarReturnValue *DeleteDomainConfigResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteDomainConfig") @@ -3592,7 +3744,7 @@ func (r ApiDeleteEmailTemplateRequest) TenantId(tenantId string) ApiDeleteEmailT return r } -func (r ApiDeleteEmailTemplateRequest) Execute() (*FlagCommentPublic200Response, *http.Response, error) { +func (r ApiDeleteEmailTemplateRequest) Execute() (*APIEmptyResponse, *http.Response, error) { return r.ApiService.DeleteEmailTemplateExecute(r) } @@ -3612,13 +3764,13 @@ func (a *DefaultAPIService) DeleteEmailTemplate(ctx context.Context, id string) } // Execute executes the request -// @return FlagCommentPublic200Response -func (a *DefaultAPIService) DeleteEmailTemplateExecute(r ApiDeleteEmailTemplateRequest) (*FlagCommentPublic200Response, *http.Response, error) { +// @return APIEmptyResponse +func (a *DefaultAPIService) DeleteEmailTemplateExecute(r ApiDeleteEmailTemplateRequest) (*APIEmptyResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile - localVarReturnValue *FlagCommentPublic200Response + localVarReturnValue *APIEmptyResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteEmailTemplate") @@ -3690,6 +3842,14 @@ func (a *DefaultAPIService) DeleteEmailTemplateExecute(r ApiDeleteEmailTemplateR body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -3718,7 +3878,7 @@ func (r ApiDeleteEmailTemplateRenderErrorRequest) TenantId(tenantId string) ApiD return r } -func (r ApiDeleteEmailTemplateRenderErrorRequest) Execute() (*FlagCommentPublic200Response, *http.Response, error) { +func (r ApiDeleteEmailTemplateRenderErrorRequest) Execute() (*APIEmptyResponse, *http.Response, error) { return r.ApiService.DeleteEmailTemplateRenderErrorExecute(r) } @@ -3740,13 +3900,13 @@ func (a *DefaultAPIService) DeleteEmailTemplateRenderError(ctx context.Context, } // Execute executes the request -// @return FlagCommentPublic200Response -func (a *DefaultAPIService) DeleteEmailTemplateRenderErrorExecute(r ApiDeleteEmailTemplateRenderErrorRequest) (*FlagCommentPublic200Response, *http.Response, error) { +// @return APIEmptyResponse +func (a *DefaultAPIService) DeleteEmailTemplateRenderErrorExecute(r ApiDeleteEmailTemplateRenderErrorRequest) (*APIEmptyResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile - localVarReturnValue *FlagCommentPublic200Response + localVarReturnValue *APIEmptyResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteEmailTemplateRenderError") @@ -3819,6 +3979,14 @@ func (a *DefaultAPIService) DeleteEmailTemplateRenderErrorExecute(r ApiDeleteEma body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -3839,7 +4007,7 @@ type ApiDeleteHashTagRequest struct { ApiService *DefaultAPIService tag string tenantId *string - deleteHashTagRequest *DeleteHashTagRequest + deleteHashTagRequestBody *DeleteHashTagRequestBody } func (r ApiDeleteHashTagRequest) TenantId(tenantId string) ApiDeleteHashTagRequest { @@ -3847,12 +4015,12 @@ func (r ApiDeleteHashTagRequest) TenantId(tenantId string) ApiDeleteHashTagReque return r } -func (r ApiDeleteHashTagRequest) DeleteHashTagRequest(deleteHashTagRequest DeleteHashTagRequest) ApiDeleteHashTagRequest { - r.deleteHashTagRequest = &deleteHashTagRequest +func (r ApiDeleteHashTagRequest) DeleteHashTagRequestBody(deleteHashTagRequestBody DeleteHashTagRequestBody) ApiDeleteHashTagRequest { + r.deleteHashTagRequestBody = &deleteHashTagRequestBody return r } -func (r ApiDeleteHashTagRequest) Execute() (*FlagCommentPublic200Response, *http.Response, error) { +func (r ApiDeleteHashTagRequest) Execute() (*APIEmptyResponse, *http.Response, error) { return r.ApiService.DeleteHashTagExecute(r) } @@ -3872,13 +4040,13 @@ func (a *DefaultAPIService) DeleteHashTag(ctx context.Context, tag string) ApiDe } // Execute executes the request -// @return FlagCommentPublic200Response -func (a *DefaultAPIService) DeleteHashTagExecute(r ApiDeleteHashTagRequest) (*FlagCommentPublic200Response, *http.Response, error) { +// @return APIEmptyResponse +func (a *DefaultAPIService) DeleteHashTagExecute(r ApiDeleteHashTagRequest) (*APIEmptyResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile - localVarReturnValue *FlagCommentPublic200Response + localVarReturnValue *APIEmptyResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteHashTag") @@ -3914,7 +4082,7 @@ func (a *DefaultAPIService) DeleteHashTagExecute(r ApiDeleteHashTagRequest) (*Fl localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.deleteHashTagRequest + localVarPostBody = r.deleteHashTagRequestBody if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -3951,6 +4119,14 @@ func (a *DefaultAPIService) DeleteHashTagExecute(r ApiDeleteHashTagRequest) (*Fl body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -3984,7 +4160,7 @@ func (r ApiDeleteModeratorRequest) SendEmail(sendEmail string) ApiDeleteModerato return r } -func (r ApiDeleteModeratorRequest) Execute() (*FlagCommentPublic200Response, *http.Response, error) { +func (r ApiDeleteModeratorRequest) Execute() (*APIEmptyResponse, *http.Response, error) { return r.ApiService.DeleteModeratorExecute(r) } @@ -4004,13 +4180,13 @@ func (a *DefaultAPIService) DeleteModerator(ctx context.Context, id string) ApiD } // Execute executes the request -// @return FlagCommentPublic200Response -func (a *DefaultAPIService) DeleteModeratorExecute(r ApiDeleteModeratorRequest) (*FlagCommentPublic200Response, *http.Response, error) { +// @return APIEmptyResponse +func (a *DefaultAPIService) DeleteModeratorExecute(r ApiDeleteModeratorRequest) (*APIEmptyResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile - localVarReturnValue *FlagCommentPublic200Response + localVarReturnValue *APIEmptyResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteModerator") @@ -4085,6 +4261,14 @@ func (a *DefaultAPIService) DeleteModeratorExecute(r ApiDeleteModeratorRequest) body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -4112,7 +4296,7 @@ func (r ApiDeleteNotificationCountRequest) TenantId(tenantId string) ApiDeleteNo return r } -func (r ApiDeleteNotificationCountRequest) Execute() (*FlagCommentPublic200Response, *http.Response, error) { +func (r ApiDeleteNotificationCountRequest) Execute() (*APIEmptyResponse, *http.Response, error) { return r.ApiService.DeleteNotificationCountExecute(r) } @@ -4132,13 +4316,13 @@ func (a *DefaultAPIService) DeleteNotificationCount(ctx context.Context, id stri } // Execute executes the request -// @return FlagCommentPublic200Response -func (a *DefaultAPIService) DeleteNotificationCountExecute(r ApiDeleteNotificationCountRequest) (*FlagCommentPublic200Response, *http.Response, error) { +// @return APIEmptyResponse +func (a *DefaultAPIService) DeleteNotificationCountExecute(r ApiDeleteNotificationCountRequest) (*APIEmptyResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile - localVarReturnValue *FlagCommentPublic200Response + localVarReturnValue *APIEmptyResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteNotificationCount") @@ -4210,6 +4394,14 @@ func (a *DefaultAPIService) DeleteNotificationCountExecute(r ApiDeleteNotificati body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -4362,7 +4554,7 @@ func (r ApiDeletePendingWebhookEventRequest) TenantId(tenantId string) ApiDelete return r } -func (r ApiDeletePendingWebhookEventRequest) Execute() (*FlagCommentPublic200Response, *http.Response, error) { +func (r ApiDeletePendingWebhookEventRequest) Execute() (*APIEmptyResponse, *http.Response, error) { return r.ApiService.DeletePendingWebhookEventExecute(r) } @@ -4382,13 +4574,13 @@ func (a *DefaultAPIService) DeletePendingWebhookEvent(ctx context.Context, id st } // Execute executes the request -// @return FlagCommentPublic200Response -func (a *DefaultAPIService) DeletePendingWebhookEventExecute(r ApiDeletePendingWebhookEventRequest) (*FlagCommentPublic200Response, *http.Response, error) { +// @return APIEmptyResponse +func (a *DefaultAPIService) DeletePendingWebhookEventExecute(r ApiDeletePendingWebhookEventRequest) (*APIEmptyResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile - localVarReturnValue *FlagCommentPublic200Response + localVarReturnValue *APIEmptyResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeletePendingWebhookEvent") @@ -4460,6 +4652,14 @@ func (a *DefaultAPIService) DeletePendingWebhookEventExecute(r ApiDeletePendingW body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -4487,7 +4687,7 @@ func (r ApiDeleteQuestionConfigRequest) TenantId(tenantId string) ApiDeleteQuest return r } -func (r ApiDeleteQuestionConfigRequest) Execute() (*FlagCommentPublic200Response, *http.Response, error) { +func (r ApiDeleteQuestionConfigRequest) Execute() (*APIEmptyResponse, *http.Response, error) { return r.ApiService.DeleteQuestionConfigExecute(r) } @@ -4507,13 +4707,13 @@ func (a *DefaultAPIService) DeleteQuestionConfig(ctx context.Context, id string) } // Execute executes the request -// @return FlagCommentPublic200Response -func (a *DefaultAPIService) DeleteQuestionConfigExecute(r ApiDeleteQuestionConfigRequest) (*FlagCommentPublic200Response, *http.Response, error) { +// @return APIEmptyResponse +func (a *DefaultAPIService) DeleteQuestionConfigExecute(r ApiDeleteQuestionConfigRequest) (*APIEmptyResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile - localVarReturnValue *FlagCommentPublic200Response + localVarReturnValue *APIEmptyResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteQuestionConfig") @@ -4585,6 +4785,14 @@ func (a *DefaultAPIService) DeleteQuestionConfigExecute(r ApiDeleteQuestionConfi body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -4612,7 +4820,7 @@ func (r ApiDeleteQuestionResultRequest) TenantId(tenantId string) ApiDeleteQuest return r } -func (r ApiDeleteQuestionResultRequest) Execute() (*FlagCommentPublic200Response, *http.Response, error) { +func (r ApiDeleteQuestionResultRequest) Execute() (*APIEmptyResponse, *http.Response, error) { return r.ApiService.DeleteQuestionResultExecute(r) } @@ -4632,13 +4840,13 @@ func (a *DefaultAPIService) DeleteQuestionResult(ctx context.Context, id string) } // Execute executes the request -// @return FlagCommentPublic200Response -func (a *DefaultAPIService) DeleteQuestionResultExecute(r ApiDeleteQuestionResultRequest) (*FlagCommentPublic200Response, *http.Response, error) { +// @return APIEmptyResponse +func (a *DefaultAPIService) DeleteQuestionResultExecute(r ApiDeleteQuestionResultRequest) (*APIEmptyResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile - localVarReturnValue *FlagCommentPublic200Response + localVarReturnValue *APIEmptyResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteQuestionResult") @@ -4710,6 +4918,14 @@ func (a *DefaultAPIService) DeleteQuestionResultExecute(r ApiDeleteQuestionResul body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -5020,7 +5236,7 @@ func (r ApiDeleteTenantRequest) Sure(sure string) ApiDeleteTenantRequest { return r } -func (r ApiDeleteTenantRequest) Execute() (*FlagCommentPublic200Response, *http.Response, error) { +func (r ApiDeleteTenantRequest) Execute() (*APIEmptyResponse, *http.Response, error) { return r.ApiService.DeleteTenantExecute(r) } @@ -5040,13 +5256,13 @@ func (a *DefaultAPIService) DeleteTenant(ctx context.Context, id string) ApiDele } // Execute executes the request -// @return FlagCommentPublic200Response -func (a *DefaultAPIService) DeleteTenantExecute(r ApiDeleteTenantRequest) (*FlagCommentPublic200Response, *http.Response, error) { +// @return APIEmptyResponse +func (a *DefaultAPIService) DeleteTenantExecute(r ApiDeleteTenantRequest) (*APIEmptyResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile - localVarReturnValue *FlagCommentPublic200Response + localVarReturnValue *APIEmptyResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteTenant") @@ -5121,6 +5337,14 @@ func (a *DefaultAPIService) DeleteTenantExecute(r ApiDeleteTenantRequest) (*Flag body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -5148,7 +5372,7 @@ func (r ApiDeleteTenantPackageRequest) TenantId(tenantId string) ApiDeleteTenant return r } -func (r ApiDeleteTenantPackageRequest) Execute() (*FlagCommentPublic200Response, *http.Response, error) { +func (r ApiDeleteTenantPackageRequest) Execute() (*APIEmptyResponse, *http.Response, error) { return r.ApiService.DeleteTenantPackageExecute(r) } @@ -5168,13 +5392,13 @@ func (a *DefaultAPIService) DeleteTenantPackage(ctx context.Context, id string) } // Execute executes the request -// @return FlagCommentPublic200Response -func (a *DefaultAPIService) DeleteTenantPackageExecute(r ApiDeleteTenantPackageRequest) (*FlagCommentPublic200Response, *http.Response, error) { +// @return APIEmptyResponse +func (a *DefaultAPIService) DeleteTenantPackageExecute(r ApiDeleteTenantPackageRequest) (*APIEmptyResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile - localVarReturnValue *FlagCommentPublic200Response + localVarReturnValue *APIEmptyResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteTenantPackage") @@ -5246,6 +5470,14 @@ func (a *DefaultAPIService) DeleteTenantPackageExecute(r ApiDeleteTenantPackageR body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -5285,7 +5517,7 @@ func (r ApiDeleteTenantUserRequest) CommentDeleteMode(commentDeleteMode string) return r } -func (r ApiDeleteTenantUserRequest) Execute() (*FlagCommentPublic200Response, *http.Response, error) { +func (r ApiDeleteTenantUserRequest) Execute() (*APIEmptyResponse, *http.Response, error) { return r.ApiService.DeleteTenantUserExecute(r) } @@ -5305,13 +5537,13 @@ func (a *DefaultAPIService) DeleteTenantUser(ctx context.Context, id string) Api } // Execute executes the request -// @return FlagCommentPublic200Response -func (a *DefaultAPIService) DeleteTenantUserExecute(r ApiDeleteTenantUserRequest) (*FlagCommentPublic200Response, *http.Response, error) { +// @return APIEmptyResponse +func (a *DefaultAPIService) DeleteTenantUserExecute(r ApiDeleteTenantUserRequest) (*APIEmptyResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile - localVarReturnValue *FlagCommentPublic200Response + localVarReturnValue *APIEmptyResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteTenantUser") @@ -5389,6 +5621,14 @@ func (a *DefaultAPIService) DeleteTenantUserExecute(r ApiDeleteTenantUserRequest body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -5416,7 +5656,7 @@ func (r ApiDeleteUserBadgeRequest) TenantId(tenantId string) ApiDeleteUserBadgeR return r } -func (r ApiDeleteUserBadgeRequest) Execute() (*UpdateUserBadge200Response, *http.Response, error) { +func (r ApiDeleteUserBadgeRequest) Execute() (*APIEmptySuccessResponse, *http.Response, error) { return r.ApiService.DeleteUserBadgeExecute(r) } @@ -5436,13 +5676,13 @@ func (a *DefaultAPIService) DeleteUserBadge(ctx context.Context, id string) ApiD } // Execute executes the request -// @return UpdateUserBadge200Response -func (a *DefaultAPIService) DeleteUserBadgeExecute(r ApiDeleteUserBadgeRequest) (*UpdateUserBadge200Response, *http.Response, error) { +// @return APIEmptySuccessResponse +func (a *DefaultAPIService) DeleteUserBadgeExecute(r ApiDeleteUserBadgeRequest) (*APIEmptySuccessResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile - localVarReturnValue *UpdateUserBadge200Response + localVarReturnValue *APIEmptySuccessResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteUserBadge") @@ -5514,6 +5754,14 @@ func (a *DefaultAPIService) DeleteUserBadgeExecute(r ApiDeleteUserBadgeRequest) body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -5547,7 +5795,7 @@ func (r ApiDeleteVoteRequest) EditKey(editKey string) ApiDeleteVoteRequest { return r } -func (r ApiDeleteVoteRequest) Execute() (*DeleteCommentVote200Response, *http.Response, error) { +func (r ApiDeleteVoteRequest) Execute() (*VoteDeleteResponse, *http.Response, error) { return r.ApiService.DeleteVoteExecute(r) } @@ -5567,13 +5815,13 @@ func (a *DefaultAPIService) DeleteVote(ctx context.Context, id string) ApiDelete } // Execute executes the request -// @return DeleteCommentVote200Response -func (a *DefaultAPIService) DeleteVoteExecute(r ApiDeleteVoteRequest) (*DeleteCommentVote200Response, *http.Response, error) { +// @return VoteDeleteResponse +func (a *DefaultAPIService) DeleteVoteExecute(r ApiDeleteVoteRequest) (*VoteDeleteResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile - localVarReturnValue *DeleteCommentVote200Response + localVarReturnValue *VoteDeleteResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteVote") @@ -5648,6 +5896,14 @@ func (a *DefaultAPIService) DeleteVoteExecute(r ApiDeleteVoteRequest) (*DeleteCo body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -5687,7 +5943,7 @@ func (r ApiFlagCommentRequest) AnonUserId(anonUserId string) ApiFlagCommentReque return r } -func (r ApiFlagCommentRequest) Execute() (*FlagComment200Response, *http.Response, error) { +func (r ApiFlagCommentRequest) Execute() (*FlagCommentResponse, *http.Response, error) { return r.ApiService.FlagCommentExecute(r) } @@ -5707,13 +5963,13 @@ func (a *DefaultAPIService) FlagComment(ctx context.Context, id string) ApiFlagC } // Execute executes the request -// @return FlagComment200Response -func (a *DefaultAPIService) FlagCommentExecute(r ApiFlagCommentRequest) (*FlagComment200Response, *http.Response, error) { +// @return FlagCommentResponse +func (a *DefaultAPIService) FlagCommentExecute(r ApiFlagCommentRequest) (*FlagCommentResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *FlagComment200Response + localVarReturnValue *FlagCommentResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.FlagComment") @@ -5791,6 +6047,14 @@ func (a *DefaultAPIService) FlagCommentExecute(r ApiFlagCommentRequest) (*FlagCo body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -5847,7 +6111,7 @@ func (r ApiGetAuditLogsRequest) Before(before float64) ApiGetAuditLogsRequest { return r } -func (r ApiGetAuditLogsRequest) Execute() (*GetAuditLogs200Response, *http.Response, error) { +func (r ApiGetAuditLogsRequest) Execute() (*GetAuditLogsResponse, *http.Response, error) { return r.ApiService.GetAuditLogsExecute(r) } @@ -5865,13 +6129,13 @@ func (a *DefaultAPIService) GetAuditLogs(ctx context.Context) ApiGetAuditLogsReq } // Execute executes the request -// @return GetAuditLogs200Response -func (a *DefaultAPIService) GetAuditLogsExecute(r ApiGetAuditLogsRequest) (*GetAuditLogs200Response, *http.Response, error) { +// @return GetAuditLogsResponse +func (a *DefaultAPIService) GetAuditLogsExecute(r ApiGetAuditLogsRequest) (*GetAuditLogsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetAuditLogs200Response + localVarReturnValue *GetAuditLogsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetAuditLogs") @@ -5957,6 +6221,14 @@ func (a *DefaultAPIService) GetAuditLogsExecute(r ApiGetAuditLogsRequest) (*GetA body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -5984,7 +6256,7 @@ func (r ApiGetCachedNotificationCountRequest) TenantId(tenantId string) ApiGetCa return r } -func (r ApiGetCachedNotificationCountRequest) Execute() (*GetCachedNotificationCount200Response, *http.Response, error) { +func (r ApiGetCachedNotificationCountRequest) Execute() (*GetCachedNotificationCountResponse, *http.Response, error) { return r.ApiService.GetCachedNotificationCountExecute(r) } @@ -6004,13 +6276,13 @@ func (a *DefaultAPIService) GetCachedNotificationCount(ctx context.Context, id s } // Execute executes the request -// @return GetCachedNotificationCount200Response -func (a *DefaultAPIService) GetCachedNotificationCountExecute(r ApiGetCachedNotificationCountRequest) (*GetCachedNotificationCount200Response, *http.Response, error) { +// @return GetCachedNotificationCountResponse +func (a *DefaultAPIService) GetCachedNotificationCountExecute(r ApiGetCachedNotificationCountRequest) (*GetCachedNotificationCountResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetCachedNotificationCount200Response + localVarReturnValue *GetCachedNotificationCountResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetCachedNotificationCount") @@ -6082,6 +6354,14 @@ func (a *DefaultAPIService) GetCachedNotificationCountExecute(r ApiGetCachedNoti body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -6109,7 +6389,7 @@ func (r ApiGetCommentRequest) TenantId(tenantId string) ApiGetCommentRequest { return r } -func (r ApiGetCommentRequest) Execute() (*GetComment200Response, *http.Response, error) { +func (r ApiGetCommentRequest) Execute() (*APIGetCommentResponse, *http.Response, error) { return r.ApiService.GetCommentExecute(r) } @@ -6129,13 +6409,13 @@ func (a *DefaultAPIService) GetComment(ctx context.Context, id string) ApiGetCom } // Execute executes the request -// @return GetComment200Response -func (a *DefaultAPIService) GetCommentExecute(r ApiGetCommentRequest) (*GetComment200Response, *http.Response, error) { +// @return APIGetCommentResponse +func (a *DefaultAPIService) GetCommentExecute(r ApiGetCommentRequest) (*APIGetCommentResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetComment200Response + localVarReturnValue *APIGetCommentResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetComment") @@ -6207,6 +6487,14 @@ func (a *DefaultAPIService) GetCommentExecute(r ApiGetCommentRequest) (*GetComme body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -6240,6 +6528,8 @@ type ApiGetCommentsRequest struct { hashTag *string parentId *string direction *SortDirections + fromDate *int64 + toDate *int64 } func (r ApiGetCommentsRequest) TenantId(tenantId string) ApiGetCommentsRequest { @@ -6317,7 +6607,17 @@ func (r ApiGetCommentsRequest) Direction(direction SortDirections) ApiGetComment return r } -func (r ApiGetCommentsRequest) Execute() (*GetComments200Response, *http.Response, error) { +func (r ApiGetCommentsRequest) FromDate(fromDate int64) ApiGetCommentsRequest { + r.fromDate = &fromDate + return r +} + +func (r ApiGetCommentsRequest) ToDate(toDate int64) ApiGetCommentsRequest { + r.toDate = &toDate + return r +} + +func (r ApiGetCommentsRequest) Execute() (*APIGetCommentsResponse, *http.Response, error) { return r.ApiService.GetCommentsExecute(r) } @@ -6335,13 +6635,13 @@ func (a *DefaultAPIService) GetComments(ctx context.Context) ApiGetCommentsReque } // Execute executes the request -// @return GetComments200Response -func (a *DefaultAPIService) GetCommentsExecute(r ApiGetCommentsRequest) (*GetComments200Response, *http.Response, error) { +// @return APIGetCommentsResponse +func (a *DefaultAPIService) GetCommentsExecute(r ApiGetCommentsRequest) (*APIGetCommentsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetComments200Response + localVarReturnValue *APIGetCommentsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetComments") @@ -6401,6 +6701,12 @@ func (a *DefaultAPIService) GetCommentsExecute(r ApiGetCommentsRequest) (*GetCom if r.direction != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "direction", r.direction, "form", "") } + if r.fromDate != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "fromDate", r.fromDate, "form", "") + } + if r.toDate != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "toDate", r.toDate, "form", "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6454,6 +6760,14 @@ func (a *DefaultAPIService) GetCommentsExecute(r ApiGetCommentsRequest) (*GetCom body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -6481,7 +6795,7 @@ func (r ApiGetDomainConfigRequest) TenantId(tenantId string) ApiGetDomainConfigR return r } -func (r ApiGetDomainConfigRequest) Execute() (*GetDomainConfig200Response, *http.Response, error) { +func (r ApiGetDomainConfigRequest) Execute() (*GetDomainConfigResponse, *http.Response, error) { return r.ApiService.GetDomainConfigExecute(r) } @@ -6501,13 +6815,13 @@ func (a *DefaultAPIService) GetDomainConfig(ctx context.Context, domain string) } // Execute executes the request -// @return GetDomainConfig200Response -func (a *DefaultAPIService) GetDomainConfigExecute(r ApiGetDomainConfigRequest) (*GetDomainConfig200Response, *http.Response, error) { +// @return GetDomainConfigResponse +func (a *DefaultAPIService) GetDomainConfigExecute(r ApiGetDomainConfigRequest) (*GetDomainConfigResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetDomainConfig200Response + localVarReturnValue *GetDomainConfigResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetDomainConfig") @@ -6605,7 +6919,7 @@ func (r ApiGetDomainConfigsRequest) TenantId(tenantId string) ApiGetDomainConfig return r } -func (r ApiGetDomainConfigsRequest) Execute() (*GetDomainConfigs200Response, *http.Response, error) { +func (r ApiGetDomainConfigsRequest) Execute() (*GetDomainConfigsResponse, *http.Response, error) { return r.ApiService.GetDomainConfigsExecute(r) } @@ -6623,13 +6937,13 @@ func (a *DefaultAPIService) GetDomainConfigs(ctx context.Context) ApiGetDomainCo } // Execute executes the request -// @return GetDomainConfigs200Response -func (a *DefaultAPIService) GetDomainConfigsExecute(r ApiGetDomainConfigsRequest) (*GetDomainConfigs200Response, *http.Response, error) { +// @return GetDomainConfigsResponse +func (a *DefaultAPIService) GetDomainConfigsExecute(r ApiGetDomainConfigsRequest) (*GetDomainConfigsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetDomainConfigs200Response + localVarReturnValue *GetDomainConfigsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetDomainConfigs") @@ -6727,7 +7041,7 @@ func (r ApiGetEmailTemplateRequest) TenantId(tenantId string) ApiGetEmailTemplat return r } -func (r ApiGetEmailTemplateRequest) Execute() (*GetEmailTemplate200Response, *http.Response, error) { +func (r ApiGetEmailTemplateRequest) Execute() (*GetEmailTemplateResponse, *http.Response, error) { return r.ApiService.GetEmailTemplateExecute(r) } @@ -6747,13 +7061,13 @@ func (a *DefaultAPIService) GetEmailTemplate(ctx context.Context, id string) Api } // Execute executes the request -// @return GetEmailTemplate200Response -func (a *DefaultAPIService) GetEmailTemplateExecute(r ApiGetEmailTemplateRequest) (*GetEmailTemplate200Response, *http.Response, error) { +// @return GetEmailTemplateResponse +func (a *DefaultAPIService) GetEmailTemplateExecute(r ApiGetEmailTemplateRequest) (*GetEmailTemplateResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetEmailTemplate200Response + localVarReturnValue *GetEmailTemplateResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetEmailTemplate") @@ -6825,6 +7139,14 @@ func (a *DefaultAPIService) GetEmailTemplateExecute(r ApiGetEmailTemplateRequest body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -6851,7 +7173,7 @@ func (r ApiGetEmailTemplateDefinitionsRequest) TenantId(tenantId string) ApiGetE return r } -func (r ApiGetEmailTemplateDefinitionsRequest) Execute() (*GetEmailTemplateDefinitions200Response, *http.Response, error) { +func (r ApiGetEmailTemplateDefinitionsRequest) Execute() (*GetEmailTemplateDefinitionsResponse, *http.Response, error) { return r.ApiService.GetEmailTemplateDefinitionsExecute(r) } @@ -6869,13 +7191,13 @@ func (a *DefaultAPIService) GetEmailTemplateDefinitions(ctx context.Context) Api } // Execute executes the request -// @return GetEmailTemplateDefinitions200Response -func (a *DefaultAPIService) GetEmailTemplateDefinitionsExecute(r ApiGetEmailTemplateDefinitionsRequest) (*GetEmailTemplateDefinitions200Response, *http.Response, error) { +// @return GetEmailTemplateDefinitionsResponse +func (a *DefaultAPIService) GetEmailTemplateDefinitionsExecute(r ApiGetEmailTemplateDefinitionsRequest) (*GetEmailTemplateDefinitionsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetEmailTemplateDefinitions200Response + localVarReturnValue *GetEmailTemplateDefinitionsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetEmailTemplateDefinitions") @@ -6946,6 +7268,14 @@ func (a *DefaultAPIService) GetEmailTemplateDefinitionsExecute(r ApiGetEmailTemp body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -6979,7 +7309,7 @@ func (r ApiGetEmailTemplateRenderErrorsRequest) Skip(skip float64) ApiGetEmailTe return r } -func (r ApiGetEmailTemplateRenderErrorsRequest) Execute() (*GetEmailTemplateRenderErrors200Response, *http.Response, error) { +func (r ApiGetEmailTemplateRenderErrorsRequest) Execute() (*GetEmailTemplateRenderErrorsResponse, *http.Response, error) { return r.ApiService.GetEmailTemplateRenderErrorsExecute(r) } @@ -6999,13 +7329,13 @@ func (a *DefaultAPIService) GetEmailTemplateRenderErrors(ctx context.Context, id } // Execute executes the request -// @return GetEmailTemplateRenderErrors200Response -func (a *DefaultAPIService) GetEmailTemplateRenderErrorsExecute(r ApiGetEmailTemplateRenderErrorsRequest) (*GetEmailTemplateRenderErrors200Response, *http.Response, error) { +// @return GetEmailTemplateRenderErrorsResponse +func (a *DefaultAPIService) GetEmailTemplateRenderErrorsExecute(r ApiGetEmailTemplateRenderErrorsRequest) (*GetEmailTemplateRenderErrorsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetEmailTemplateRenderErrors200Response + localVarReturnValue *GetEmailTemplateRenderErrorsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetEmailTemplateRenderErrors") @@ -7080,6 +7410,14 @@ func (a *DefaultAPIService) GetEmailTemplateRenderErrorsExecute(r ApiGetEmailTem body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -7112,7 +7450,7 @@ func (r ApiGetEmailTemplatesRequest) Skip(skip float64) ApiGetEmailTemplatesRequ return r } -func (r ApiGetEmailTemplatesRequest) Execute() (*GetEmailTemplates200Response, *http.Response, error) { +func (r ApiGetEmailTemplatesRequest) Execute() (*GetEmailTemplatesResponse, *http.Response, error) { return r.ApiService.GetEmailTemplatesExecute(r) } @@ -7130,13 +7468,13 @@ func (a *DefaultAPIService) GetEmailTemplates(ctx context.Context) ApiGetEmailTe } // Execute executes the request -// @return GetEmailTemplates200Response -func (a *DefaultAPIService) GetEmailTemplatesExecute(r ApiGetEmailTemplatesRequest) (*GetEmailTemplates200Response, *http.Response, error) { +// @return GetEmailTemplatesResponse +func (a *DefaultAPIService) GetEmailTemplatesExecute(r ApiGetEmailTemplatesRequest) (*GetEmailTemplatesResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetEmailTemplates200Response + localVarReturnValue *GetEmailTemplatesResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetEmailTemplates") @@ -7210,6 +7548,14 @@ func (a *DefaultAPIService) GetEmailTemplatesExecute(r ApiGetEmailTemplatesReque body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -7254,7 +7600,7 @@ func (r ApiGetFeedPostsRequest) Tags(tags []string) ApiGetFeedPostsRequest { return r } -func (r ApiGetFeedPostsRequest) Execute() (*GetFeedPosts200Response, *http.Response, error) { +func (r ApiGetFeedPostsRequest) Execute() (*GetFeedPostsResponse, *http.Response, error) { return r.ApiService.GetFeedPostsExecute(r) } @@ -7277,13 +7623,13 @@ func (a *DefaultAPIService) GetFeedPosts(ctx context.Context) ApiGetFeedPostsReq } // Execute executes the request -// @return GetFeedPosts200Response -func (a *DefaultAPIService) GetFeedPostsExecute(r ApiGetFeedPostsRequest) (*GetFeedPosts200Response, *http.Response, error) { +// @return GetFeedPostsResponse +func (a *DefaultAPIService) GetFeedPostsExecute(r ApiGetFeedPostsRequest) (*GetFeedPostsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetFeedPosts200Response + localVarReturnValue *GetFeedPostsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetFeedPosts") @@ -7371,6 +7717,14 @@ func (a *DefaultAPIService) GetFeedPostsExecute(r ApiGetFeedPostsRequest) (*GetF body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -7403,7 +7757,7 @@ func (r ApiGetHashTagsRequest) Page(page float64) ApiGetHashTagsRequest { return r } -func (r ApiGetHashTagsRequest) Execute() (*GetHashTags200Response, *http.Response, error) { +func (r ApiGetHashTagsRequest) Execute() (*GetHashTagsResponse, *http.Response, error) { return r.ApiService.GetHashTagsExecute(r) } @@ -7421,13 +7775,13 @@ func (a *DefaultAPIService) GetHashTags(ctx context.Context) ApiGetHashTagsReque } // Execute executes the request -// @return GetHashTags200Response -func (a *DefaultAPIService) GetHashTagsExecute(r ApiGetHashTagsRequest) (*GetHashTags200Response, *http.Response, error) { +// @return GetHashTagsResponse +func (a *DefaultAPIService) GetHashTagsExecute(r ApiGetHashTagsRequest) (*GetHashTagsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetHashTags200Response + localVarReturnValue *GetHashTagsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetHashTags") @@ -7501,6 +7855,14 @@ func (a *DefaultAPIService) GetHashTagsExecute(r ApiGetHashTagsRequest) (*GetHas body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -7528,7 +7890,7 @@ func (r ApiGetModeratorRequest) TenantId(tenantId string) ApiGetModeratorRequest return r } -func (r ApiGetModeratorRequest) Execute() (*GetModerator200Response, *http.Response, error) { +func (r ApiGetModeratorRequest) Execute() (*GetModeratorResponse, *http.Response, error) { return r.ApiService.GetModeratorExecute(r) } @@ -7548,13 +7910,13 @@ func (a *DefaultAPIService) GetModerator(ctx context.Context, id string) ApiGetM } // Execute executes the request -// @return GetModerator200Response -func (a *DefaultAPIService) GetModeratorExecute(r ApiGetModeratorRequest) (*GetModerator200Response, *http.Response, error) { +// @return GetModeratorResponse +func (a *DefaultAPIService) GetModeratorExecute(r ApiGetModeratorRequest) (*GetModeratorResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetModerator200Response + localVarReturnValue *GetModeratorResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetModerator") @@ -7626,6 +7988,14 @@ func (a *DefaultAPIService) GetModeratorExecute(r ApiGetModeratorRequest) (*GetM body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -7658,7 +8028,7 @@ func (r ApiGetModeratorsRequest) Skip(skip float64) ApiGetModeratorsRequest { return r } -func (r ApiGetModeratorsRequest) Execute() (*GetModerators200Response, *http.Response, error) { +func (r ApiGetModeratorsRequest) Execute() (*GetModeratorsResponse, *http.Response, error) { return r.ApiService.GetModeratorsExecute(r) } @@ -7676,13 +8046,13 @@ func (a *DefaultAPIService) GetModerators(ctx context.Context) ApiGetModeratorsR } // Execute executes the request -// @return GetModerators200Response -func (a *DefaultAPIService) GetModeratorsExecute(r ApiGetModeratorsRequest) (*GetModerators200Response, *http.Response, error) { +// @return GetModeratorsResponse +func (a *DefaultAPIService) GetModeratorsExecute(r ApiGetModeratorsRequest) (*GetModeratorsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetModerators200Response + localVarReturnValue *GetModeratorsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetModerators") @@ -7756,6 +8126,14 @@ func (a *DefaultAPIService) GetModeratorsExecute(r ApiGetModeratorsRequest) (*Ge body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -7812,7 +8190,7 @@ func (r ApiGetNotificationCountRequest) Type_(type_ string) ApiGetNotificationCo return r } -func (r ApiGetNotificationCountRequest) Execute() (*GetNotificationCount200Response, *http.Response, error) { +func (r ApiGetNotificationCountRequest) Execute() (*GetNotificationCountResponse, *http.Response, error) { return r.ApiService.GetNotificationCountExecute(r) } @@ -7830,13 +8208,13 @@ func (a *DefaultAPIService) GetNotificationCount(ctx context.Context) ApiGetNoti } // Execute executes the request -// @return GetNotificationCount200Response -func (a *DefaultAPIService) GetNotificationCountExecute(r ApiGetNotificationCountRequest) (*GetNotificationCount200Response, *http.Response, error) { +// @return GetNotificationCountResponse +func (a *DefaultAPIService) GetNotificationCountExecute(r ApiGetNotificationCountRequest) (*GetNotificationCountResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetNotificationCount200Response + localVarReturnValue *GetNotificationCountResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetNotificationCount") @@ -7922,6 +8300,14 @@ func (a *DefaultAPIService) GetNotificationCountExecute(r ApiGetNotificationCoun body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -7984,7 +8370,7 @@ func (r ApiGetNotificationsRequest) Skip(skip float64) ApiGetNotificationsReques return r } -func (r ApiGetNotificationsRequest) Execute() (*GetNotifications200Response, *http.Response, error) { +func (r ApiGetNotificationsRequest) Execute() (*GetNotificationsResponse, *http.Response, error) { return r.ApiService.GetNotificationsExecute(r) } @@ -8002,13 +8388,13 @@ func (a *DefaultAPIService) GetNotifications(ctx context.Context) ApiGetNotifica } // Execute executes the request -// @return GetNotifications200Response -func (a *DefaultAPIService) GetNotificationsExecute(r ApiGetNotificationsRequest) (*GetNotifications200Response, *http.Response, error) { +// @return GetNotificationsResponse +func (a *DefaultAPIService) GetNotificationsExecute(r ApiGetNotificationsRequest) (*GetNotificationsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetNotifications200Response + localVarReturnValue *GetNotificationsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetNotifications") @@ -8097,6 +8483,14 @@ func (a *DefaultAPIService) GetNotificationsExecute(r ApiGetNotificationsRequest body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -8411,7 +8805,7 @@ func (r ApiGetPendingWebhookEventCountRequest) AttemptCountGT(attemptCountGT flo return r } -func (r ApiGetPendingWebhookEventCountRequest) Execute() (*GetPendingWebhookEventCount200Response, *http.Response, error) { +func (r ApiGetPendingWebhookEventCountRequest) Execute() (*GetPendingWebhookEventCountResponse, *http.Response, error) { return r.ApiService.GetPendingWebhookEventCountExecute(r) } @@ -8429,13 +8823,13 @@ func (a *DefaultAPIService) GetPendingWebhookEventCount(ctx context.Context) Api } // Execute executes the request -// @return GetPendingWebhookEventCount200Response -func (a *DefaultAPIService) GetPendingWebhookEventCountExecute(r ApiGetPendingWebhookEventCountRequest) (*GetPendingWebhookEventCount200Response, *http.Response, error) { +// @return GetPendingWebhookEventCountResponse +func (a *DefaultAPIService) GetPendingWebhookEventCountExecute(r ApiGetPendingWebhookEventCountRequest) (*GetPendingWebhookEventCountResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetPendingWebhookEventCount200Response + localVarReturnValue *GetPendingWebhookEventCountResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetPendingWebhookEventCount") @@ -8524,6 +8918,14 @@ func (a *DefaultAPIService) GetPendingWebhookEventCountExecute(r ApiGetPendingWe body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -8592,7 +8994,7 @@ func (r ApiGetPendingWebhookEventsRequest) Skip(skip float64) ApiGetPendingWebho return r } -func (r ApiGetPendingWebhookEventsRequest) Execute() (*GetPendingWebhookEvents200Response, *http.Response, error) { +func (r ApiGetPendingWebhookEventsRequest) Execute() (*GetPendingWebhookEventsResponse, *http.Response, error) { return r.ApiService.GetPendingWebhookEventsExecute(r) } @@ -8610,13 +9012,13 @@ func (a *DefaultAPIService) GetPendingWebhookEvents(ctx context.Context) ApiGetP } // Execute executes the request -// @return GetPendingWebhookEvents200Response -func (a *DefaultAPIService) GetPendingWebhookEventsExecute(r ApiGetPendingWebhookEventsRequest) (*GetPendingWebhookEvents200Response, *http.Response, error) { +// @return GetPendingWebhookEventsResponse +func (a *DefaultAPIService) GetPendingWebhookEventsExecute(r ApiGetPendingWebhookEventsRequest) (*GetPendingWebhookEventsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetPendingWebhookEvents200Response + localVarReturnValue *GetPendingWebhookEventsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetPendingWebhookEvents") @@ -8708,6 +9110,14 @@ func (a *DefaultAPIService) GetPendingWebhookEventsExecute(r ApiGetPendingWebhoo body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -8735,7 +9145,7 @@ func (r ApiGetQuestionConfigRequest) TenantId(tenantId string) ApiGetQuestionCon return r } -func (r ApiGetQuestionConfigRequest) Execute() (*GetQuestionConfig200Response, *http.Response, error) { +func (r ApiGetQuestionConfigRequest) Execute() (*GetQuestionConfigResponse, *http.Response, error) { return r.ApiService.GetQuestionConfigExecute(r) } @@ -8755,13 +9165,13 @@ func (a *DefaultAPIService) GetQuestionConfig(ctx context.Context, id string) Ap } // Execute executes the request -// @return GetQuestionConfig200Response -func (a *DefaultAPIService) GetQuestionConfigExecute(r ApiGetQuestionConfigRequest) (*GetQuestionConfig200Response, *http.Response, error) { +// @return GetQuestionConfigResponse +func (a *DefaultAPIService) GetQuestionConfigExecute(r ApiGetQuestionConfigRequest) (*GetQuestionConfigResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetQuestionConfig200Response + localVarReturnValue *GetQuestionConfigResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetQuestionConfig") @@ -8833,6 +9243,14 @@ func (a *DefaultAPIService) GetQuestionConfigExecute(r ApiGetQuestionConfigReque body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -8865,7 +9283,7 @@ func (r ApiGetQuestionConfigsRequest) Skip(skip float64) ApiGetQuestionConfigsRe return r } -func (r ApiGetQuestionConfigsRequest) Execute() (*GetQuestionConfigs200Response, *http.Response, error) { +func (r ApiGetQuestionConfigsRequest) Execute() (*GetQuestionConfigsResponse, *http.Response, error) { return r.ApiService.GetQuestionConfigsExecute(r) } @@ -8883,13 +9301,13 @@ func (a *DefaultAPIService) GetQuestionConfigs(ctx context.Context) ApiGetQuesti } // Execute executes the request -// @return GetQuestionConfigs200Response -func (a *DefaultAPIService) GetQuestionConfigsExecute(r ApiGetQuestionConfigsRequest) (*GetQuestionConfigs200Response, *http.Response, error) { +// @return GetQuestionConfigsResponse +func (a *DefaultAPIService) GetQuestionConfigsExecute(r ApiGetQuestionConfigsRequest) (*GetQuestionConfigsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetQuestionConfigs200Response + localVarReturnValue *GetQuestionConfigsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetQuestionConfigs") @@ -8963,6 +9381,14 @@ func (a *DefaultAPIService) GetQuestionConfigsExecute(r ApiGetQuestionConfigsReq body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -8990,7 +9416,7 @@ func (r ApiGetQuestionResultRequest) TenantId(tenantId string) ApiGetQuestionRes return r } -func (r ApiGetQuestionResultRequest) Execute() (*GetQuestionResult200Response, *http.Response, error) { +func (r ApiGetQuestionResultRequest) Execute() (*GetQuestionResultResponse, *http.Response, error) { return r.ApiService.GetQuestionResultExecute(r) } @@ -9010,13 +9436,13 @@ func (a *DefaultAPIService) GetQuestionResult(ctx context.Context, id string) Ap } // Execute executes the request -// @return GetQuestionResult200Response -func (a *DefaultAPIService) GetQuestionResultExecute(r ApiGetQuestionResultRequest) (*GetQuestionResult200Response, *http.Response, error) { +// @return GetQuestionResultResponse +func (a *DefaultAPIService) GetQuestionResultExecute(r ApiGetQuestionResultRequest) (*GetQuestionResultResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetQuestionResult200Response + localVarReturnValue *GetQuestionResultResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetQuestionResult") @@ -9088,6 +9514,14 @@ func (a *DefaultAPIService) GetQuestionResultExecute(r ApiGetQuestionResultReque body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -9150,7 +9584,7 @@ func (r ApiGetQuestionResultsRequest) Skip(skip float64) ApiGetQuestionResultsRe return r } -func (r ApiGetQuestionResultsRequest) Execute() (*GetQuestionResults200Response, *http.Response, error) { +func (r ApiGetQuestionResultsRequest) Execute() (*GetQuestionResultsResponse, *http.Response, error) { return r.ApiService.GetQuestionResultsExecute(r) } @@ -9168,13 +9602,13 @@ func (a *DefaultAPIService) GetQuestionResults(ctx context.Context) ApiGetQuesti } // Execute executes the request -// @return GetQuestionResults200Response -func (a *DefaultAPIService) GetQuestionResultsExecute(r ApiGetQuestionResultsRequest) (*GetQuestionResults200Response, *http.Response, error) { +// @return GetQuestionResultsResponse +func (a *DefaultAPIService) GetQuestionResultsExecute(r ApiGetQuestionResultsRequest) (*GetQuestionResultsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetQuestionResults200Response + localVarReturnValue *GetQuestionResultsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetQuestionResults") @@ -9263,6 +9697,14 @@ func (a *DefaultAPIService) GetQuestionResultsExecute(r ApiGetQuestionResultsReq body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -9545,7 +9987,7 @@ func (r ApiGetSSOUsersRequest) Skip(skip int32) ApiGetSSOUsersRequest { return r } -func (r ApiGetSSOUsersRequest) Execute() (*GetSSOUsers200Response, *http.Response, error) { +func (r ApiGetSSOUsersRequest) Execute() (*GetSSOUsersResponse, *http.Response, error) { return r.ApiService.GetSSOUsersExecute(r) } @@ -9563,13 +10005,13 @@ func (a *DefaultAPIService) GetSSOUsers(ctx context.Context) ApiGetSSOUsersReque } // Execute executes the request -// @return GetSSOUsers200Response -func (a *DefaultAPIService) GetSSOUsersExecute(r ApiGetSSOUsersRequest) (*GetSSOUsers200Response, *http.Response, error) { +// @return GetSSOUsersResponse +func (a *DefaultAPIService) GetSSOUsersExecute(r ApiGetSSOUsersRequest) (*GetSSOUsersResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetSSOUsers200Response + localVarReturnValue *GetSSOUsersResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetSSOUsers") @@ -9800,7 +10242,7 @@ func (r ApiGetTenantRequest) TenantId(tenantId string) ApiGetTenantRequest { return r } -func (r ApiGetTenantRequest) Execute() (*GetTenant200Response, *http.Response, error) { +func (r ApiGetTenantRequest) Execute() (*GetTenantResponse, *http.Response, error) { return r.ApiService.GetTenantExecute(r) } @@ -9820,13 +10262,13 @@ func (a *DefaultAPIService) GetTenant(ctx context.Context, id string) ApiGetTena } // Execute executes the request -// @return GetTenant200Response -func (a *DefaultAPIService) GetTenantExecute(r ApiGetTenantRequest) (*GetTenant200Response, *http.Response, error) { +// @return GetTenantResponse +func (a *DefaultAPIService) GetTenantExecute(r ApiGetTenantRequest) (*GetTenantResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetTenant200Response + localVarReturnValue *GetTenantResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetTenant") @@ -9898,6 +10340,14 @@ func (a *DefaultAPIService) GetTenantExecute(r ApiGetTenantRequest) (*GetTenant2 body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -9948,7 +10398,7 @@ func (r ApiGetTenantDailyUsagesRequest) Skip(skip float64) ApiGetTenantDailyUsag return r } -func (r ApiGetTenantDailyUsagesRequest) Execute() (*GetTenantDailyUsages200Response, *http.Response, error) { +func (r ApiGetTenantDailyUsagesRequest) Execute() (*GetTenantDailyUsagesResponse, *http.Response, error) { return r.ApiService.GetTenantDailyUsagesExecute(r) } @@ -9966,13 +10416,13 @@ func (a *DefaultAPIService) GetTenantDailyUsages(ctx context.Context) ApiGetTena } // Execute executes the request -// @return GetTenantDailyUsages200Response -func (a *DefaultAPIService) GetTenantDailyUsagesExecute(r ApiGetTenantDailyUsagesRequest) (*GetTenantDailyUsages200Response, *http.Response, error) { +// @return GetTenantDailyUsagesResponse +func (a *DefaultAPIService) GetTenantDailyUsagesExecute(r ApiGetTenantDailyUsagesRequest) (*GetTenantDailyUsagesResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetTenantDailyUsages200Response + localVarReturnValue *GetTenantDailyUsagesResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetTenantDailyUsages") @@ -10055,6 +10505,14 @@ func (a *DefaultAPIService) GetTenantDailyUsagesExecute(r ApiGetTenantDailyUsage body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -10082,7 +10540,7 @@ func (r ApiGetTenantPackageRequest) TenantId(tenantId string) ApiGetTenantPackag return r } -func (r ApiGetTenantPackageRequest) Execute() (*GetTenantPackage200Response, *http.Response, error) { +func (r ApiGetTenantPackageRequest) Execute() (*GetTenantPackageResponse, *http.Response, error) { return r.ApiService.GetTenantPackageExecute(r) } @@ -10102,13 +10560,13 @@ func (a *DefaultAPIService) GetTenantPackage(ctx context.Context, id string) Api } // Execute executes the request -// @return GetTenantPackage200Response -func (a *DefaultAPIService) GetTenantPackageExecute(r ApiGetTenantPackageRequest) (*GetTenantPackage200Response, *http.Response, error) { +// @return GetTenantPackageResponse +func (a *DefaultAPIService) GetTenantPackageExecute(r ApiGetTenantPackageRequest) (*GetTenantPackageResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetTenantPackage200Response + localVarReturnValue *GetTenantPackageResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetTenantPackage") @@ -10180,6 +10638,14 @@ func (a *DefaultAPIService) GetTenantPackageExecute(r ApiGetTenantPackageRequest body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -10212,7 +10678,7 @@ func (r ApiGetTenantPackagesRequest) Skip(skip float64) ApiGetTenantPackagesRequ return r } -func (r ApiGetTenantPackagesRequest) Execute() (*GetTenantPackages200Response, *http.Response, error) { +func (r ApiGetTenantPackagesRequest) Execute() (*GetTenantPackagesResponse, *http.Response, error) { return r.ApiService.GetTenantPackagesExecute(r) } @@ -10230,13 +10696,13 @@ func (a *DefaultAPIService) GetTenantPackages(ctx context.Context) ApiGetTenantP } // Execute executes the request -// @return GetTenantPackages200Response -func (a *DefaultAPIService) GetTenantPackagesExecute(r ApiGetTenantPackagesRequest) (*GetTenantPackages200Response, *http.Response, error) { +// @return GetTenantPackagesResponse +func (a *DefaultAPIService) GetTenantPackagesExecute(r ApiGetTenantPackagesRequest) (*GetTenantPackagesResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetTenantPackages200Response + localVarReturnValue *GetTenantPackagesResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetTenantPackages") @@ -10310,6 +10776,14 @@ func (a *DefaultAPIService) GetTenantPackagesExecute(r ApiGetTenantPackagesReque body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -10337,7 +10811,7 @@ func (r ApiGetTenantUserRequest) TenantId(tenantId string) ApiGetTenantUserReque return r } -func (r ApiGetTenantUserRequest) Execute() (*GetTenantUser200Response, *http.Response, error) { +func (r ApiGetTenantUserRequest) Execute() (*GetTenantUserResponse, *http.Response, error) { return r.ApiService.GetTenantUserExecute(r) } @@ -10357,13 +10831,13 @@ func (a *DefaultAPIService) GetTenantUser(ctx context.Context, id string) ApiGet } // Execute executes the request -// @return GetTenantUser200Response -func (a *DefaultAPIService) GetTenantUserExecute(r ApiGetTenantUserRequest) (*GetTenantUser200Response, *http.Response, error) { +// @return GetTenantUserResponse +func (a *DefaultAPIService) GetTenantUserExecute(r ApiGetTenantUserRequest) (*GetTenantUserResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetTenantUser200Response + localVarReturnValue *GetTenantUserResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetTenantUser") @@ -10435,6 +10909,14 @@ func (a *DefaultAPIService) GetTenantUserExecute(r ApiGetTenantUserRequest) (*Ge body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -10467,7 +10949,7 @@ func (r ApiGetTenantUsersRequest) Skip(skip float64) ApiGetTenantUsersRequest { return r } -func (r ApiGetTenantUsersRequest) Execute() (*GetTenantUsers200Response, *http.Response, error) { +func (r ApiGetTenantUsersRequest) Execute() (*GetTenantUsersResponse, *http.Response, error) { return r.ApiService.GetTenantUsersExecute(r) } @@ -10485,13 +10967,13 @@ func (a *DefaultAPIService) GetTenantUsers(ctx context.Context) ApiGetTenantUser } // Execute executes the request -// @return GetTenantUsers200Response -func (a *DefaultAPIService) GetTenantUsersExecute(r ApiGetTenantUsersRequest) (*GetTenantUsers200Response, *http.Response, error) { +// @return GetTenantUsersResponse +func (a *DefaultAPIService) GetTenantUsersExecute(r ApiGetTenantUsersRequest) (*GetTenantUsersResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetTenantUsers200Response + localVarReturnValue *GetTenantUsersResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetTenantUsers") @@ -10565,6 +11047,14 @@ func (a *DefaultAPIService) GetTenantUsersExecute(r ApiGetTenantUsersRequest) (* body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -10603,7 +11093,7 @@ func (r ApiGetTenantsRequest) Skip(skip float64) ApiGetTenantsRequest { return r } -func (r ApiGetTenantsRequest) Execute() (*GetTenants200Response, *http.Response, error) { +func (r ApiGetTenantsRequest) Execute() (*GetTenantsResponse, *http.Response, error) { return r.ApiService.GetTenantsExecute(r) } @@ -10621,13 +11111,13 @@ func (a *DefaultAPIService) GetTenants(ctx context.Context) ApiGetTenantsRequest } // Execute executes the request -// @return GetTenants200Response -func (a *DefaultAPIService) GetTenantsExecute(r ApiGetTenantsRequest) (*GetTenants200Response, *http.Response, error) { +// @return GetTenantsResponse +func (a *DefaultAPIService) GetTenantsExecute(r ApiGetTenantsRequest) (*GetTenantsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetTenants200Response + localVarReturnValue *GetTenantsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetTenants") @@ -10704,6 +11194,14 @@ func (a *DefaultAPIService) GetTenantsExecute(r ApiGetTenantsRequest) (*GetTenan body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -10737,7 +11235,7 @@ func (r ApiGetTicketRequest) UserId(userId string) ApiGetTicketRequest { return r } -func (r ApiGetTicketRequest) Execute() (*GetTicket200Response, *http.Response, error) { +func (r ApiGetTicketRequest) Execute() (*GetTicketResponse, *http.Response, error) { return r.ApiService.GetTicketExecute(r) } @@ -10757,13 +11255,13 @@ func (a *DefaultAPIService) GetTicket(ctx context.Context, id string) ApiGetTick } // Execute executes the request -// @return GetTicket200Response -func (a *DefaultAPIService) GetTicketExecute(r ApiGetTicketRequest) (*GetTicket200Response, *http.Response, error) { +// @return GetTicketResponse +func (a *DefaultAPIService) GetTicketExecute(r ApiGetTicketRequest) (*GetTicketResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetTicket200Response + localVarReturnValue *GetTicketResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetTicket") @@ -10838,6 +11336,14 @@ func (a *DefaultAPIService) GetTicketExecute(r ApiGetTicketRequest) (*GetTicket2 body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -10888,7 +11394,7 @@ func (r ApiGetTicketsRequest) Limit(limit float64) ApiGetTicketsRequest { return r } -func (r ApiGetTicketsRequest) Execute() (*GetTickets200Response, *http.Response, error) { +func (r ApiGetTicketsRequest) Execute() (*GetTicketsResponse, *http.Response, error) { return r.ApiService.GetTicketsExecute(r) } @@ -10906,13 +11412,13 @@ func (a *DefaultAPIService) GetTickets(ctx context.Context) ApiGetTicketsRequest } // Execute executes the request -// @return GetTickets200Response -func (a *DefaultAPIService) GetTicketsExecute(r ApiGetTicketsRequest) (*GetTickets200Response, *http.Response, error) { +// @return GetTicketsResponse +func (a *DefaultAPIService) GetTicketsExecute(r ApiGetTicketsRequest) (*GetTicketsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetTickets200Response + localVarReturnValue *GetTicketsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetTickets") @@ -10995,6 +11501,14 @@ func (a *DefaultAPIService) GetTicketsExecute(r ApiGetTicketsRequest) (*GetTicke body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -11022,7 +11536,7 @@ func (r ApiGetUserRequest) TenantId(tenantId string) ApiGetUserRequest { return r } -func (r ApiGetUserRequest) Execute() (*GetUser200Response, *http.Response, error) { +func (r ApiGetUserRequest) Execute() (*GetUserResponse, *http.Response, error) { return r.ApiService.GetUserExecute(r) } @@ -11042,13 +11556,13 @@ func (a *DefaultAPIService) GetUser(ctx context.Context, id string) ApiGetUserRe } // Execute executes the request -// @return GetUser200Response -func (a *DefaultAPIService) GetUserExecute(r ApiGetUserRequest) (*GetUser200Response, *http.Response, error) { +// @return GetUserResponse +func (a *DefaultAPIService) GetUserExecute(r ApiGetUserRequest) (*GetUserResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetUser200Response + localVarReturnValue *GetUserResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetUser") @@ -11120,6 +11634,14 @@ func (a *DefaultAPIService) GetUserExecute(r ApiGetUserRequest) (*GetUser200Resp body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -11147,7 +11669,7 @@ func (r ApiGetUserBadgeRequest) TenantId(tenantId string) ApiGetUserBadgeRequest return r } -func (r ApiGetUserBadgeRequest) Execute() (*GetUserBadge200Response, *http.Response, error) { +func (r ApiGetUserBadgeRequest) Execute() (*APIGetUserBadgeResponse, *http.Response, error) { return r.ApiService.GetUserBadgeExecute(r) } @@ -11167,13 +11689,13 @@ func (a *DefaultAPIService) GetUserBadge(ctx context.Context, id string) ApiGetU } // Execute executes the request -// @return GetUserBadge200Response -func (a *DefaultAPIService) GetUserBadgeExecute(r ApiGetUserBadgeRequest) (*GetUserBadge200Response, *http.Response, error) { +// @return APIGetUserBadgeResponse +func (a *DefaultAPIService) GetUserBadgeExecute(r ApiGetUserBadgeRequest) (*APIGetUserBadgeResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetUserBadge200Response + localVarReturnValue *APIGetUserBadgeResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetUserBadge") @@ -11245,6 +11767,14 @@ func (a *DefaultAPIService) GetUserBadgeExecute(r ApiGetUserBadgeRequest) (*GetU body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -11272,7 +11802,7 @@ func (r ApiGetUserBadgeProgressByIdRequest) TenantId(tenantId string) ApiGetUser return r } -func (r ApiGetUserBadgeProgressByIdRequest) Execute() (*GetUserBadgeProgressById200Response, *http.Response, error) { +func (r ApiGetUserBadgeProgressByIdRequest) Execute() (*APIGetUserBadgeProgressResponse, *http.Response, error) { return r.ApiService.GetUserBadgeProgressByIdExecute(r) } @@ -11292,13 +11822,13 @@ func (a *DefaultAPIService) GetUserBadgeProgressById(ctx context.Context, id str } // Execute executes the request -// @return GetUserBadgeProgressById200Response -func (a *DefaultAPIService) GetUserBadgeProgressByIdExecute(r ApiGetUserBadgeProgressByIdRequest) (*GetUserBadgeProgressById200Response, *http.Response, error) { +// @return APIGetUserBadgeProgressResponse +func (a *DefaultAPIService) GetUserBadgeProgressByIdExecute(r ApiGetUserBadgeProgressByIdRequest) (*APIGetUserBadgeProgressResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetUserBadgeProgressById200Response + localVarReturnValue *APIGetUserBadgeProgressResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetUserBadgeProgressById") @@ -11370,6 +11900,14 @@ func (a *DefaultAPIService) GetUserBadgeProgressByIdExecute(r ApiGetUserBadgePro body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -11397,7 +11935,7 @@ func (r ApiGetUserBadgeProgressByUserIdRequest) TenantId(tenantId string) ApiGet return r } -func (r ApiGetUserBadgeProgressByUserIdRequest) Execute() (*GetUserBadgeProgressById200Response, *http.Response, error) { +func (r ApiGetUserBadgeProgressByUserIdRequest) Execute() (*APIGetUserBadgeProgressResponse, *http.Response, error) { return r.ApiService.GetUserBadgeProgressByUserIdExecute(r) } @@ -11417,13 +11955,13 @@ func (a *DefaultAPIService) GetUserBadgeProgressByUserId(ctx context.Context, us } // Execute executes the request -// @return GetUserBadgeProgressById200Response -func (a *DefaultAPIService) GetUserBadgeProgressByUserIdExecute(r ApiGetUserBadgeProgressByUserIdRequest) (*GetUserBadgeProgressById200Response, *http.Response, error) { +// @return APIGetUserBadgeProgressResponse +func (a *DefaultAPIService) GetUserBadgeProgressByUserIdExecute(r ApiGetUserBadgeProgressByUserIdRequest) (*APIGetUserBadgeProgressResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetUserBadgeProgressById200Response + localVarReturnValue *APIGetUserBadgeProgressResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetUserBadgeProgressByUserId") @@ -11495,6 +12033,14 @@ func (a *DefaultAPIService) GetUserBadgeProgressByUserIdExecute(r ApiGetUserBadg body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -11539,7 +12085,7 @@ func (r ApiGetUserBadgeProgressListRequest) Skip(skip float64) ApiGetUserBadgePr return r } -func (r ApiGetUserBadgeProgressListRequest) Execute() (*GetUserBadgeProgressList200Response, *http.Response, error) { +func (r ApiGetUserBadgeProgressListRequest) Execute() (*APIGetUserBadgeProgressListResponse, *http.Response, error) { return r.ApiService.GetUserBadgeProgressListExecute(r) } @@ -11557,13 +12103,13 @@ func (a *DefaultAPIService) GetUserBadgeProgressList(ctx context.Context) ApiGet } // Execute executes the request -// @return GetUserBadgeProgressList200Response -func (a *DefaultAPIService) GetUserBadgeProgressListExecute(r ApiGetUserBadgeProgressListRequest) (*GetUserBadgeProgressList200Response, *http.Response, error) { +// @return APIGetUserBadgeProgressListResponse +func (a *DefaultAPIService) GetUserBadgeProgressListExecute(r ApiGetUserBadgeProgressListRequest) (*APIGetUserBadgeProgressListResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetUserBadgeProgressList200Response + localVarReturnValue *APIGetUserBadgeProgressListResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetUserBadgeProgressList") @@ -11643,6 +12189,14 @@ func (a *DefaultAPIService) GetUserBadgeProgressListExecute(r ApiGetUserBadgePro body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -11705,7 +12259,7 @@ func (r ApiGetUserBadgesRequest) Skip(skip float64) ApiGetUserBadgesRequest { return r } -func (r ApiGetUserBadgesRequest) Execute() (*GetUserBadges200Response, *http.Response, error) { +func (r ApiGetUserBadgesRequest) Execute() (*APIGetUserBadgesResponse, *http.Response, error) { return r.ApiService.GetUserBadgesExecute(r) } @@ -11723,13 +12277,13 @@ func (a *DefaultAPIService) GetUserBadges(ctx context.Context) ApiGetUserBadgesR } // Execute executes the request -// @return GetUserBadges200Response -func (a *DefaultAPIService) GetUserBadgesExecute(r ApiGetUserBadgesRequest) (*GetUserBadges200Response, *http.Response, error) { +// @return APIGetUserBadgesResponse +func (a *DefaultAPIService) GetUserBadgesExecute(r ApiGetUserBadgesRequest) (*APIGetUserBadgesResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetUserBadges200Response + localVarReturnValue *APIGetUserBadgesResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetUserBadges") @@ -11818,6 +12372,14 @@ func (a *DefaultAPIService) GetUserBadgesExecute(r ApiGetUserBadgesRequest) (*Ge body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -11850,7 +12412,7 @@ func (r ApiGetVotesRequest) UrlId(urlId string) ApiGetVotesRequest { return r } -func (r ApiGetVotesRequest) Execute() (*GetVotes200Response, *http.Response, error) { +func (r ApiGetVotesRequest) Execute() (*GetVotesResponse, *http.Response, error) { return r.ApiService.GetVotesExecute(r) } @@ -11868,13 +12430,13 @@ func (a *DefaultAPIService) GetVotes(ctx context.Context) ApiGetVotesRequest { } // Execute executes the request -// @return GetVotes200Response -func (a *DefaultAPIService) GetVotesExecute(r ApiGetVotesRequest) (*GetVotes200Response, *http.Response, error) { +// @return GetVotesResponse +func (a *DefaultAPIService) GetVotesExecute(r ApiGetVotesRequest) (*GetVotesResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetVotes200Response + localVarReturnValue *GetVotesResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetVotes") @@ -11949,6 +12511,14 @@ func (a *DefaultAPIService) GetVotesExecute(r ApiGetVotesRequest) (*GetVotes200R body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -11993,7 +12563,7 @@ func (r ApiGetVotesForUserRequest) AnonUserId(anonUserId string) ApiGetVotesForU return r } -func (r ApiGetVotesForUserRequest) Execute() (*GetVotesForUser200Response, *http.Response, error) { +func (r ApiGetVotesForUserRequest) Execute() (*GetVotesForUserResponse, *http.Response, error) { return r.ApiService.GetVotesForUserExecute(r) } @@ -12011,13 +12581,13 @@ func (a *DefaultAPIService) GetVotesForUser(ctx context.Context) ApiGetVotesForU } // Execute executes the request -// @return GetVotesForUser200Response -func (a *DefaultAPIService) GetVotesForUserExecute(r ApiGetVotesForUserRequest) (*GetVotesForUser200Response, *http.Response, error) { +// @return GetVotesForUserResponse +func (a *DefaultAPIService) GetVotesForUserExecute(r ApiGetVotesForUserRequest) (*GetVotesForUserResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetVotesForUser200Response + localVarReturnValue *GetVotesForUserResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetVotesForUser") @@ -12098,6 +12668,14 @@ func (a *DefaultAPIService) GetVotesForUserExecute(r ApiGetVotesForUserRequest) body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -12131,7 +12709,7 @@ func (r ApiPatchDomainConfigRequest) PatchDomainConfigParams(patchDomainConfigPa return r } -func (r ApiPatchDomainConfigRequest) Execute() (*GetDomainConfig200Response, *http.Response, error) { +func (r ApiPatchDomainConfigRequest) Execute() (*PatchDomainConfigResponse, *http.Response, error) { return r.ApiService.PatchDomainConfigExecute(r) } @@ -12151,13 +12729,13 @@ func (a *DefaultAPIService) PatchDomainConfig(ctx context.Context, domainToUpdat } // Execute executes the request -// @return GetDomainConfig200Response -func (a *DefaultAPIService) PatchDomainConfigExecute(r ApiPatchDomainConfigRequest) (*GetDomainConfig200Response, *http.Response, error) { +// @return PatchDomainConfigResponse +func (a *DefaultAPIService) PatchDomainConfigExecute(r ApiPatchDomainConfigRequest) (*PatchDomainConfigResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetDomainConfig200Response + localVarReturnValue *PatchDomainConfigResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.PatchDomainConfig") @@ -12267,7 +12845,7 @@ func (r ApiPatchHashTagRequest) UpdateHashTagBody(updateHashTagBody UpdateHashTa return r } -func (r ApiPatchHashTagRequest) Execute() (*PatchHashTag200Response, *http.Response, error) { +func (r ApiPatchHashTagRequest) Execute() (*UpdateHashTagResponse, *http.Response, error) { return r.ApiService.PatchHashTagExecute(r) } @@ -12287,13 +12865,13 @@ func (a *DefaultAPIService) PatchHashTag(ctx context.Context, tag string) ApiPat } // Execute executes the request -// @return PatchHashTag200Response -func (a *DefaultAPIService) PatchHashTagExecute(r ApiPatchHashTagRequest) (*PatchHashTag200Response, *http.Response, error) { +// @return UpdateHashTagResponse +func (a *DefaultAPIService) PatchHashTagExecute(r ApiPatchHashTagRequest) (*UpdateHashTagResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PatchHashTag200Response + localVarReturnValue *UpdateHashTagResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.PatchHashTag") @@ -12366,6 +12944,14 @@ func (a *DefaultAPIService) PatchHashTagExecute(r ApiPatchHashTagRequest) (*Patc body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -12680,7 +13266,7 @@ func (r ApiPutDomainConfigRequest) UpdateDomainConfigParams(updateDomainConfigPa return r } -func (r ApiPutDomainConfigRequest) Execute() (*GetDomainConfig200Response, *http.Response, error) { +func (r ApiPutDomainConfigRequest) Execute() (*PutDomainConfigResponse, *http.Response, error) { return r.ApiService.PutDomainConfigExecute(r) } @@ -12700,13 +13286,13 @@ func (a *DefaultAPIService) PutDomainConfig(ctx context.Context, domainToUpdate } // Execute executes the request -// @return GetDomainConfig200Response -func (a *DefaultAPIService) PutDomainConfigExecute(r ApiPutDomainConfigRequest) (*GetDomainConfig200Response, *http.Response, error) { +// @return PutDomainConfigResponse +func (a *DefaultAPIService) PutDomainConfigExecute(r ApiPutDomainConfigRequest) (*PutDomainConfigResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetDomainConfig200Response + localVarReturnValue *PutDomainConfigResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.PutDomainConfig") @@ -12966,7 +13552,7 @@ func (r ApiRenderEmailTemplateRequest) Locale(locale string) ApiRenderEmailTempl return r } -func (r ApiRenderEmailTemplateRequest) Execute() (*RenderEmailTemplate200Response, *http.Response, error) { +func (r ApiRenderEmailTemplateRequest) Execute() (*RenderEmailTemplateResponse, *http.Response, error) { return r.ApiService.RenderEmailTemplateExecute(r) } @@ -12984,13 +13570,13 @@ func (a *DefaultAPIService) RenderEmailTemplate(ctx context.Context) ApiRenderEm } // Execute executes the request -// @return RenderEmailTemplate200Response -func (a *DefaultAPIService) RenderEmailTemplateExecute(r ApiRenderEmailTemplateRequest) (*RenderEmailTemplate200Response, *http.Response, error) { +// @return RenderEmailTemplateResponse +func (a *DefaultAPIService) RenderEmailTemplateExecute(r ApiRenderEmailTemplateRequest) (*RenderEmailTemplateResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *RenderEmailTemplate200Response + localVarReturnValue *RenderEmailTemplateResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.RenderEmailTemplate") @@ -13069,6 +13655,14 @@ func (a *DefaultAPIService) RenderEmailTemplateExecute(r ApiRenderEmailTemplateR body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -13102,7 +13696,7 @@ func (r ApiReplaceTenantPackageRequest) ReplaceTenantPackageBody(replaceTenantPa return r } -func (r ApiReplaceTenantPackageRequest) Execute() (*FlagCommentPublic200Response, *http.Response, error) { +func (r ApiReplaceTenantPackageRequest) Execute() (*APIEmptyResponse, *http.Response, error) { return r.ApiService.ReplaceTenantPackageExecute(r) } @@ -13122,13 +13716,13 @@ func (a *DefaultAPIService) ReplaceTenantPackage(ctx context.Context, id string) } // Execute executes the request -// @return FlagCommentPublic200Response -func (a *DefaultAPIService) ReplaceTenantPackageExecute(r ApiReplaceTenantPackageRequest) (*FlagCommentPublic200Response, *http.Response, error) { +// @return APIEmptyResponse +func (a *DefaultAPIService) ReplaceTenantPackageExecute(r ApiReplaceTenantPackageRequest) (*APIEmptyResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *FlagCommentPublic200Response + localVarReturnValue *APIEmptyResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ReplaceTenantPackage") @@ -13205,6 +13799,14 @@ func (a *DefaultAPIService) ReplaceTenantPackageExecute(r ApiReplaceTenantPackag body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -13244,7 +13846,7 @@ func (r ApiReplaceTenantUserRequest) UpdateComments(updateComments string) ApiRe return r } -func (r ApiReplaceTenantUserRequest) Execute() (*FlagCommentPublic200Response, *http.Response, error) { +func (r ApiReplaceTenantUserRequest) Execute() (*APIEmptyResponse, *http.Response, error) { return r.ApiService.ReplaceTenantUserExecute(r) } @@ -13264,13 +13866,13 @@ func (a *DefaultAPIService) ReplaceTenantUser(ctx context.Context, id string) Ap } // Execute executes the request -// @return FlagCommentPublic200Response -func (a *DefaultAPIService) ReplaceTenantUserExecute(r ApiReplaceTenantUserRequest) (*FlagCommentPublic200Response, *http.Response, error) { +// @return APIEmptyResponse +func (a *DefaultAPIService) ReplaceTenantUserExecute(r ApiReplaceTenantUserRequest) (*APIEmptyResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *FlagCommentPublic200Response + localVarReturnValue *APIEmptyResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ReplaceTenantUser") @@ -13350,6 +13952,14 @@ func (a *DefaultAPIService) ReplaceTenantUserExecute(r ApiReplaceTenantUserReque body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -13406,7 +14016,7 @@ func (r ApiSaveCommentRequest) PopulateNotifications(populateNotifications bool) return r } -func (r ApiSaveCommentRequest) Execute() (*SaveComment200Response, *http.Response, error) { +func (r ApiSaveCommentRequest) Execute() (*APISaveCommentResponse, *http.Response, error) { return r.ApiService.SaveCommentExecute(r) } @@ -13424,13 +14034,13 @@ func (a *DefaultAPIService) SaveComment(ctx context.Context) ApiSaveCommentReque } // Execute executes the request -// @return SaveComment200Response -func (a *DefaultAPIService) SaveCommentExecute(r ApiSaveCommentRequest) (*SaveComment200Response, *http.Response, error) { +// @return APISaveCommentResponse +func (a *DefaultAPIService) SaveCommentExecute(r ApiSaveCommentRequest) (*APISaveCommentResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *SaveComment200Response + localVarReturnValue *APISaveCommentResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.SaveComment") @@ -13518,6 +14128,14 @@ func (a *DefaultAPIService) SaveCommentExecute(r ApiSaveCommentRequest) (*SaveCo body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -13574,7 +14192,7 @@ func (r ApiSaveCommentsBulkRequest) PopulateNotifications(populateNotifications return r } -func (r ApiSaveCommentsBulkRequest) Execute() ([]SaveComment200Response, *http.Response, error) { +func (r ApiSaveCommentsBulkRequest) Execute() ([]SaveCommentsBulkResponse, *http.Response, error) { return r.ApiService.SaveCommentsBulkExecute(r) } @@ -13592,13 +14210,13 @@ func (a *DefaultAPIService) SaveCommentsBulk(ctx context.Context) ApiSaveComment } // Execute executes the request -// @return []SaveComment200Response -func (a *DefaultAPIService) SaveCommentsBulkExecute(r ApiSaveCommentsBulkRequest) ([]SaveComment200Response, *http.Response, error) { +// @return []SaveCommentsBulkResponse +func (a *DefaultAPIService) SaveCommentsBulkExecute(r ApiSaveCommentsBulkRequest) ([]SaveCommentsBulkResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue []SaveComment200Response + localVarReturnValue []SaveCommentsBulkResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.SaveCommentsBulk") @@ -13719,7 +14337,7 @@ func (r ApiSendInviteRequest) FromName(fromName string) ApiSendInviteRequest { return r } -func (r ApiSendInviteRequest) Execute() (*FlagCommentPublic200Response, *http.Response, error) { +func (r ApiSendInviteRequest) Execute() (*APIEmptyResponse, *http.Response, error) { return r.ApiService.SendInviteExecute(r) } @@ -13739,13 +14357,13 @@ func (a *DefaultAPIService) SendInvite(ctx context.Context, id string) ApiSendIn } // Execute executes the request -// @return FlagCommentPublic200Response -func (a *DefaultAPIService) SendInviteExecute(r ApiSendInviteRequest) (*FlagCommentPublic200Response, *http.Response, error) { +// @return APIEmptyResponse +func (a *DefaultAPIService) SendInviteExecute(r ApiSendInviteRequest) (*APIEmptyResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *FlagCommentPublic200Response + localVarReturnValue *APIEmptyResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.SendInvite") @@ -13821,6 +14439,14 @@ func (a *DefaultAPIService) SendInviteExecute(r ApiSendInviteRequest) (*FlagComm body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -13854,7 +14480,7 @@ func (r ApiSendLoginLinkRequest) RedirectURL(redirectURL string) ApiSendLoginLin return r } -func (r ApiSendLoginLinkRequest) Execute() (*FlagCommentPublic200Response, *http.Response, error) { +func (r ApiSendLoginLinkRequest) Execute() (*APIEmptyResponse, *http.Response, error) { return r.ApiService.SendLoginLinkExecute(r) } @@ -13874,13 +14500,13 @@ func (a *DefaultAPIService) SendLoginLink(ctx context.Context, id string) ApiSen } // Execute executes the request -// @return FlagCommentPublic200Response -func (a *DefaultAPIService) SendLoginLinkExecute(r ApiSendLoginLinkRequest) (*FlagCommentPublic200Response, *http.Response, error) { +// @return APIEmptyResponse +func (a *DefaultAPIService) SendLoginLinkExecute(r ApiSendLoginLinkRequest) (*APIEmptyResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *FlagCommentPublic200Response + localVarReturnValue *APIEmptyResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.SendLoginLink") @@ -13955,6 +14581,14 @@ func (a *DefaultAPIService) SendLoginLinkExecute(r ApiSendLoginLinkRequest) (*Fl body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -14000,7 +14634,7 @@ func (r ApiUnBlockUserFromCommentRequest) AnonUserId(anonUserId string) ApiUnBlo return r } -func (r ApiUnBlockUserFromCommentRequest) Execute() (*UnBlockCommentPublic200Response, *http.Response, error) { +func (r ApiUnBlockUserFromCommentRequest) Execute() (*UnblockSuccess, *http.Response, error) { return r.ApiService.UnBlockUserFromCommentExecute(r) } @@ -14020,13 +14654,13 @@ func (a *DefaultAPIService) UnBlockUserFromComment(ctx context.Context, id strin } // Execute executes the request -// @return UnBlockCommentPublic200Response -func (a *DefaultAPIService) UnBlockUserFromCommentExecute(r ApiUnBlockUserFromCommentRequest) (*UnBlockCommentPublic200Response, *http.Response, error) { +// @return UnblockSuccess +func (a *DefaultAPIService) UnBlockUserFromCommentExecute(r ApiUnBlockUserFromCommentRequest) (*UnblockSuccess, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *UnBlockCommentPublic200Response + localVarReturnValue *UnblockSuccess ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UnBlockUserFromComment") @@ -14109,6 +14743,14 @@ func (a *DefaultAPIService) UnBlockUserFromCommentExecute(r ApiUnBlockUserFromCo body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -14148,7 +14790,7 @@ func (r ApiUnFlagCommentRequest) AnonUserId(anonUserId string) ApiUnFlagCommentR return r } -func (r ApiUnFlagCommentRequest) Execute() (*FlagComment200Response, *http.Response, error) { +func (r ApiUnFlagCommentRequest) Execute() (*FlagCommentResponse, *http.Response, error) { return r.ApiService.UnFlagCommentExecute(r) } @@ -14168,13 +14810,13 @@ func (a *DefaultAPIService) UnFlagComment(ctx context.Context, id string) ApiUnF } // Execute executes the request -// @return FlagComment200Response -func (a *DefaultAPIService) UnFlagCommentExecute(r ApiUnFlagCommentRequest) (*FlagComment200Response, *http.Response, error) { +// @return FlagCommentResponse +func (a *DefaultAPIService) UnFlagCommentExecute(r ApiUnFlagCommentRequest) (*FlagCommentResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *FlagComment200Response + localVarReturnValue *FlagCommentResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UnFlagComment") @@ -14252,6 +14894,14 @@ func (a *DefaultAPIService) UnFlagCommentExecute(r ApiUnFlagCommentRequest) (*Fl body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -14303,7 +14953,7 @@ func (r ApiUpdateCommentRequest) IsLive(isLive bool) ApiUpdateCommentRequest { return r } -func (r ApiUpdateCommentRequest) Execute() (*FlagCommentPublic200Response, *http.Response, error) { +func (r ApiUpdateCommentRequest) Execute() (*APIEmptyResponse, *http.Response, error) { return r.ApiService.UpdateCommentExecute(r) } @@ -14323,13 +14973,13 @@ func (a *DefaultAPIService) UpdateComment(ctx context.Context, id string) ApiUpd } // Execute executes the request -// @return FlagCommentPublic200Response -func (a *DefaultAPIService) UpdateCommentExecute(r ApiUpdateCommentRequest) (*FlagCommentPublic200Response, *http.Response, error) { +// @return APIEmptyResponse +func (a *DefaultAPIService) UpdateCommentExecute(r ApiUpdateCommentRequest) (*APIEmptyResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *FlagCommentPublic200Response + localVarReturnValue *APIEmptyResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UpdateComment") @@ -14415,6 +15065,14 @@ func (a *DefaultAPIService) UpdateCommentExecute(r ApiUpdateCommentRequest) (*Fl body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -14448,7 +15106,7 @@ func (r ApiUpdateEmailTemplateRequest) UpdateEmailTemplateBody(updateEmailTempla return r } -func (r ApiUpdateEmailTemplateRequest) Execute() (*FlagCommentPublic200Response, *http.Response, error) { +func (r ApiUpdateEmailTemplateRequest) Execute() (*APIEmptyResponse, *http.Response, error) { return r.ApiService.UpdateEmailTemplateExecute(r) } @@ -14468,13 +15126,13 @@ func (a *DefaultAPIService) UpdateEmailTemplate(ctx context.Context, id string) } // Execute executes the request -// @return FlagCommentPublic200Response -func (a *DefaultAPIService) UpdateEmailTemplateExecute(r ApiUpdateEmailTemplateRequest) (*FlagCommentPublic200Response, *http.Response, error) { +// @return APIEmptyResponse +func (a *DefaultAPIService) UpdateEmailTemplateExecute(r ApiUpdateEmailTemplateRequest) (*APIEmptyResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *FlagCommentPublic200Response + localVarReturnValue *APIEmptyResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UpdateEmailTemplate") @@ -14551,6 +15209,14 @@ func (a *DefaultAPIService) UpdateEmailTemplateExecute(r ApiUpdateEmailTemplateR body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -14584,7 +15250,7 @@ func (r ApiUpdateFeedPostRequest) FeedPost(feedPost FeedPost) ApiUpdateFeedPostR return r } -func (r ApiUpdateFeedPostRequest) Execute() (*FlagCommentPublic200Response, *http.Response, error) { +func (r ApiUpdateFeedPostRequest) Execute() (*APIEmptyResponse, *http.Response, error) { return r.ApiService.UpdateFeedPostExecute(r) } @@ -14604,13 +15270,13 @@ func (a *DefaultAPIService) UpdateFeedPost(ctx context.Context, id string) ApiUp } // Execute executes the request -// @return FlagCommentPublic200Response -func (a *DefaultAPIService) UpdateFeedPostExecute(r ApiUpdateFeedPostRequest) (*FlagCommentPublic200Response, *http.Response, error) { +// @return APIEmptyResponse +func (a *DefaultAPIService) UpdateFeedPostExecute(r ApiUpdateFeedPostRequest) (*APIEmptyResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *FlagCommentPublic200Response + localVarReturnValue *APIEmptyResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UpdateFeedPost") @@ -14687,6 +15353,14 @@ func (a *DefaultAPIService) UpdateFeedPostExecute(r ApiUpdateFeedPostRequest) (* body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -14720,7 +15394,7 @@ func (r ApiUpdateModeratorRequest) UpdateModeratorBody(updateModeratorBody Updat return r } -func (r ApiUpdateModeratorRequest) Execute() (*FlagCommentPublic200Response, *http.Response, error) { +func (r ApiUpdateModeratorRequest) Execute() (*APIEmptyResponse, *http.Response, error) { return r.ApiService.UpdateModeratorExecute(r) } @@ -14740,13 +15414,13 @@ func (a *DefaultAPIService) UpdateModerator(ctx context.Context, id string) ApiU } // Execute executes the request -// @return FlagCommentPublic200Response -func (a *DefaultAPIService) UpdateModeratorExecute(r ApiUpdateModeratorRequest) (*FlagCommentPublic200Response, *http.Response, error) { +// @return APIEmptyResponse +func (a *DefaultAPIService) UpdateModeratorExecute(r ApiUpdateModeratorRequest) (*APIEmptyResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *FlagCommentPublic200Response + localVarReturnValue *APIEmptyResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UpdateModerator") @@ -14823,6 +15497,14 @@ func (a *DefaultAPIService) UpdateModeratorExecute(r ApiUpdateModeratorRequest) body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -14862,7 +15544,7 @@ func (r ApiUpdateNotificationRequest) UserId(userId string) ApiUpdateNotificatio return r } -func (r ApiUpdateNotificationRequest) Execute() (*FlagCommentPublic200Response, *http.Response, error) { +func (r ApiUpdateNotificationRequest) Execute() (*APIEmptyResponse, *http.Response, error) { return r.ApiService.UpdateNotificationExecute(r) } @@ -14882,13 +15564,13 @@ func (a *DefaultAPIService) UpdateNotification(ctx context.Context, id string) A } // Execute executes the request -// @return FlagCommentPublic200Response -func (a *DefaultAPIService) UpdateNotificationExecute(r ApiUpdateNotificationRequest) (*FlagCommentPublic200Response, *http.Response, error) { +// @return APIEmptyResponse +func (a *DefaultAPIService) UpdateNotificationExecute(r ApiUpdateNotificationRequest) (*APIEmptyResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *FlagCommentPublic200Response + localVarReturnValue *APIEmptyResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UpdateNotification") @@ -14968,6 +15650,14 @@ func (a *DefaultAPIService) UpdateNotificationExecute(r ApiUpdateNotificationReq body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -15001,7 +15691,7 @@ func (r ApiUpdateQuestionConfigRequest) UpdateQuestionConfigBody(updateQuestionC return r } -func (r ApiUpdateQuestionConfigRequest) Execute() (*FlagCommentPublic200Response, *http.Response, error) { +func (r ApiUpdateQuestionConfigRequest) Execute() (*APIEmptyResponse, *http.Response, error) { return r.ApiService.UpdateQuestionConfigExecute(r) } @@ -15021,13 +15711,13 @@ func (a *DefaultAPIService) UpdateQuestionConfig(ctx context.Context, id string) } // Execute executes the request -// @return FlagCommentPublic200Response -func (a *DefaultAPIService) UpdateQuestionConfigExecute(r ApiUpdateQuestionConfigRequest) (*FlagCommentPublic200Response, *http.Response, error) { +// @return APIEmptyResponse +func (a *DefaultAPIService) UpdateQuestionConfigExecute(r ApiUpdateQuestionConfigRequest) (*APIEmptyResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *FlagCommentPublic200Response + localVarReturnValue *APIEmptyResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UpdateQuestionConfig") @@ -15104,6 +15794,14 @@ func (a *DefaultAPIService) UpdateQuestionConfigExecute(r ApiUpdateQuestionConfi body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -15137,7 +15835,7 @@ func (r ApiUpdateQuestionResultRequest) UpdateQuestionResultBody(updateQuestionR return r } -func (r ApiUpdateQuestionResultRequest) Execute() (*FlagCommentPublic200Response, *http.Response, error) { +func (r ApiUpdateQuestionResultRequest) Execute() (*APIEmptyResponse, *http.Response, error) { return r.ApiService.UpdateQuestionResultExecute(r) } @@ -15157,13 +15855,13 @@ func (a *DefaultAPIService) UpdateQuestionResult(ctx context.Context, id string) } // Execute executes the request -// @return FlagCommentPublic200Response -func (a *DefaultAPIService) UpdateQuestionResultExecute(r ApiUpdateQuestionResultRequest) (*FlagCommentPublic200Response, *http.Response, error) { +// @return APIEmptyResponse +func (a *DefaultAPIService) UpdateQuestionResultExecute(r ApiUpdateQuestionResultRequest) (*APIEmptyResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *FlagCommentPublic200Response + localVarReturnValue *APIEmptyResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UpdateQuestionResult") @@ -15240,6 +15938,14 @@ func (a *DefaultAPIService) UpdateQuestionResultExecute(r ApiUpdateQuestionResul body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -15418,7 +16124,7 @@ func (r ApiUpdateTenantRequest) UpdateTenantBody(updateTenantBody UpdateTenantBo return r } -func (r ApiUpdateTenantRequest) Execute() (*FlagCommentPublic200Response, *http.Response, error) { +func (r ApiUpdateTenantRequest) Execute() (*APIEmptyResponse, *http.Response, error) { return r.ApiService.UpdateTenantExecute(r) } @@ -15438,13 +16144,13 @@ func (a *DefaultAPIService) UpdateTenant(ctx context.Context, id string) ApiUpda } // Execute executes the request -// @return FlagCommentPublic200Response -func (a *DefaultAPIService) UpdateTenantExecute(r ApiUpdateTenantRequest) (*FlagCommentPublic200Response, *http.Response, error) { +// @return APIEmptyResponse +func (a *DefaultAPIService) UpdateTenantExecute(r ApiUpdateTenantRequest) (*APIEmptyResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *FlagCommentPublic200Response + localVarReturnValue *APIEmptyResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UpdateTenant") @@ -15521,6 +16227,14 @@ func (a *DefaultAPIService) UpdateTenantExecute(r ApiUpdateTenantRequest) (*Flag body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -15554,7 +16268,7 @@ func (r ApiUpdateTenantPackageRequest) UpdateTenantPackageBody(updateTenantPacka return r } -func (r ApiUpdateTenantPackageRequest) Execute() (*FlagCommentPublic200Response, *http.Response, error) { +func (r ApiUpdateTenantPackageRequest) Execute() (*APIEmptyResponse, *http.Response, error) { return r.ApiService.UpdateTenantPackageExecute(r) } @@ -15574,13 +16288,13 @@ func (a *DefaultAPIService) UpdateTenantPackage(ctx context.Context, id string) } // Execute executes the request -// @return FlagCommentPublic200Response -func (a *DefaultAPIService) UpdateTenantPackageExecute(r ApiUpdateTenantPackageRequest) (*FlagCommentPublic200Response, *http.Response, error) { +// @return APIEmptyResponse +func (a *DefaultAPIService) UpdateTenantPackageExecute(r ApiUpdateTenantPackageRequest) (*APIEmptyResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *FlagCommentPublic200Response + localVarReturnValue *APIEmptyResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UpdateTenantPackage") @@ -15657,6 +16371,14 @@ func (a *DefaultAPIService) UpdateTenantPackageExecute(r ApiUpdateTenantPackageR body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -15696,7 +16418,7 @@ func (r ApiUpdateTenantUserRequest) UpdateComments(updateComments string) ApiUpd return r } -func (r ApiUpdateTenantUserRequest) Execute() (*FlagCommentPublic200Response, *http.Response, error) { +func (r ApiUpdateTenantUserRequest) Execute() (*APIEmptyResponse, *http.Response, error) { return r.ApiService.UpdateTenantUserExecute(r) } @@ -15716,13 +16438,13 @@ func (a *DefaultAPIService) UpdateTenantUser(ctx context.Context, id string) Api } // Execute executes the request -// @return FlagCommentPublic200Response -func (a *DefaultAPIService) UpdateTenantUserExecute(r ApiUpdateTenantUserRequest) (*FlagCommentPublic200Response, *http.Response, error) { +// @return APIEmptyResponse +func (a *DefaultAPIService) UpdateTenantUserExecute(r ApiUpdateTenantUserRequest) (*APIEmptyResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *FlagCommentPublic200Response + localVarReturnValue *APIEmptyResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UpdateTenantUser") @@ -15802,6 +16524,14 @@ func (a *DefaultAPIService) UpdateTenantUserExecute(r ApiUpdateTenantUserRequest body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -15835,7 +16565,7 @@ func (r ApiUpdateUserBadgeRequest) UpdateUserBadgeParams(updateUserBadgeParams U return r } -func (r ApiUpdateUserBadgeRequest) Execute() (*UpdateUserBadge200Response, *http.Response, error) { +func (r ApiUpdateUserBadgeRequest) Execute() (*APIEmptySuccessResponse, *http.Response, error) { return r.ApiService.UpdateUserBadgeExecute(r) } @@ -15855,13 +16585,13 @@ func (a *DefaultAPIService) UpdateUserBadge(ctx context.Context, id string) ApiU } // Execute executes the request -// @return UpdateUserBadge200Response -func (a *DefaultAPIService) UpdateUserBadgeExecute(r ApiUpdateUserBadgeRequest) (*UpdateUserBadge200Response, *http.Response, error) { +// @return APIEmptySuccessResponse +func (a *DefaultAPIService) UpdateUserBadgeExecute(r ApiUpdateUserBadgeRequest) (*APIEmptySuccessResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *UpdateUserBadge200Response + localVarReturnValue *APIEmptySuccessResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UpdateUserBadge") @@ -15938,6 +16668,14 @@ func (a *DefaultAPIService) UpdateUserBadgeExecute(r ApiUpdateUserBadgeRequest) body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } diff --git a/client/api_moderation.go b/client/api_moderation.go new file mode 100644 index 0000000..fa791cd --- /dev/null +++ b/client/api_moderation.go @@ -0,0 +1,5686 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// ModerationAPIService ModerationAPI service +type ModerationAPIService service + +type ApiDeleteModerationVoteRequest struct { + ctx context.Context + ApiService *ModerationAPIService + commentId string + voteId string + sso *string +} + +func (r ApiDeleteModerationVoteRequest) Sso(sso string) ApiDeleteModerationVoteRequest { + r.sso = &sso + return r +} + +func (r ApiDeleteModerationVoteRequest) Execute() (*VoteDeleteResponse, *http.Response, error) { + return r.ApiService.DeleteModerationVoteExecute(r) +} + +/* +DeleteModerationVote Method for DeleteModerationVote + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param commentId + @param voteId + @return ApiDeleteModerationVoteRequest +*/ +func (a *ModerationAPIService) DeleteModerationVote(ctx context.Context, commentId string, voteId string) ApiDeleteModerationVoteRequest { + return ApiDeleteModerationVoteRequest{ + ApiService: a, + ctx: ctx, + commentId: commentId, + voteId: voteId, + } +} + +// Execute executes the request +// @return VoteDeleteResponse +func (a *ModerationAPIService) DeleteModerationVoteExecute(r ApiDeleteModerationVoteRequest) (*VoteDeleteResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VoteDeleteResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.DeleteModerationVote") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/vote/{commentId}/{voteId}" + localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"voteId"+"}", url.PathEscape(parameterValueToString(r.voteId, "voteId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetApiCommentsRequest struct { + ctx context.Context + ApiService *ModerationAPIService + page *float64 + count *float64 + textSearch *string + byIPFromComment *string + filters *string + searchFilters *string + sorts *string + demo *bool + sso *string +} + +func (r ApiGetApiCommentsRequest) Page(page float64) ApiGetApiCommentsRequest { + r.page = &page + return r +} + +func (r ApiGetApiCommentsRequest) Count(count float64) ApiGetApiCommentsRequest { + r.count = &count + return r +} + +func (r ApiGetApiCommentsRequest) TextSearch(textSearch string) ApiGetApiCommentsRequest { + r.textSearch = &textSearch + return r +} + +func (r ApiGetApiCommentsRequest) ByIPFromComment(byIPFromComment string) ApiGetApiCommentsRequest { + r.byIPFromComment = &byIPFromComment + return r +} + +func (r ApiGetApiCommentsRequest) Filters(filters string) ApiGetApiCommentsRequest { + r.filters = &filters + return r +} + +func (r ApiGetApiCommentsRequest) SearchFilters(searchFilters string) ApiGetApiCommentsRequest { + r.searchFilters = &searchFilters + return r +} + +func (r ApiGetApiCommentsRequest) Sorts(sorts string) ApiGetApiCommentsRequest { + r.sorts = &sorts + return r +} + +func (r ApiGetApiCommentsRequest) Demo(demo bool) ApiGetApiCommentsRequest { + r.demo = &demo + return r +} + +func (r ApiGetApiCommentsRequest) Sso(sso string) ApiGetApiCommentsRequest { + r.sso = &sso + return r +} + +func (r ApiGetApiCommentsRequest) Execute() (*ModerationAPIGetCommentsResponse, *http.Response, error) { + return r.ApiService.GetApiCommentsExecute(r) +} + +/* +GetApiComments Method for GetApiComments + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetApiCommentsRequest +*/ +func (a *ModerationAPIService) GetApiComments(ctx context.Context) ApiGetApiCommentsRequest { + return ApiGetApiCommentsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ModerationAPIGetCommentsResponse +func (a *ModerationAPIService) GetApiCommentsExecute(r ApiGetApiCommentsRequest) (*ModerationAPIGetCommentsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModerationAPIGetCommentsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.GetApiComments") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/api/comments" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.count != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "form", "") + } + if r.textSearch != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "text-search", r.textSearch, "form", "") + } + if r.byIPFromComment != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "byIPFromComment", r.byIPFromComment, "form", "") + } + if r.filters != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") + } + if r.searchFilters != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "searchFilters", r.searchFilters, "form", "") + } + if r.sorts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sorts", r.sorts, "form", "") + } + if r.demo != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "demo", r.demo, "form", "") + } + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetApiExportStatusRequest struct { + ctx context.Context + ApiService *ModerationAPIService + batchJobId *string + sso *string +} + +func (r ApiGetApiExportStatusRequest) BatchJobId(batchJobId string) ApiGetApiExportStatusRequest { + r.batchJobId = &batchJobId + return r +} + +func (r ApiGetApiExportStatusRequest) Sso(sso string) ApiGetApiExportStatusRequest { + r.sso = &sso + return r +} + +func (r ApiGetApiExportStatusRequest) Execute() (*ModerationExportStatusResponse, *http.Response, error) { + return r.ApiService.GetApiExportStatusExecute(r) +} + +/* +GetApiExportStatus Method for GetApiExportStatus + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetApiExportStatusRequest +*/ +func (a *ModerationAPIService) GetApiExportStatus(ctx context.Context) ApiGetApiExportStatusRequest { + return ApiGetApiExportStatusRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ModerationExportStatusResponse +func (a *ModerationAPIService) GetApiExportStatusExecute(r ApiGetApiExportStatusRequest) (*ModerationExportStatusResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModerationExportStatusResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.GetApiExportStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/api/export/status" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.batchJobId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "batchJobId", r.batchJobId, "form", "") + } + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetApiIdsRequest struct { + ctx context.Context + ApiService *ModerationAPIService + textSearch *string + byIPFromComment *string + filters *string + searchFilters *string + afterId *string + demo *bool + sso *string +} + +func (r ApiGetApiIdsRequest) TextSearch(textSearch string) ApiGetApiIdsRequest { + r.textSearch = &textSearch + return r +} + +func (r ApiGetApiIdsRequest) ByIPFromComment(byIPFromComment string) ApiGetApiIdsRequest { + r.byIPFromComment = &byIPFromComment + return r +} + +func (r ApiGetApiIdsRequest) Filters(filters string) ApiGetApiIdsRequest { + r.filters = &filters + return r +} + +func (r ApiGetApiIdsRequest) SearchFilters(searchFilters string) ApiGetApiIdsRequest { + r.searchFilters = &searchFilters + return r +} + +func (r ApiGetApiIdsRequest) AfterId(afterId string) ApiGetApiIdsRequest { + r.afterId = &afterId + return r +} + +func (r ApiGetApiIdsRequest) Demo(demo bool) ApiGetApiIdsRequest { + r.demo = &demo + return r +} + +func (r ApiGetApiIdsRequest) Sso(sso string) ApiGetApiIdsRequest { + r.sso = &sso + return r +} + +func (r ApiGetApiIdsRequest) Execute() (*ModerationAPIGetCommentIdsResponse, *http.Response, error) { + return r.ApiService.GetApiIdsExecute(r) +} + +/* +GetApiIds Method for GetApiIds + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetApiIdsRequest +*/ +func (a *ModerationAPIService) GetApiIds(ctx context.Context) ApiGetApiIdsRequest { + return ApiGetApiIdsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ModerationAPIGetCommentIdsResponse +func (a *ModerationAPIService) GetApiIdsExecute(r ApiGetApiIdsRequest) (*ModerationAPIGetCommentIdsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModerationAPIGetCommentIdsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.GetApiIds") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/api/ids" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.textSearch != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "text-search", r.textSearch, "form", "") + } + if r.byIPFromComment != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "byIPFromComment", r.byIPFromComment, "form", "") + } + if r.filters != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") + } + if r.searchFilters != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "searchFilters", r.searchFilters, "form", "") + } + if r.afterId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "afterId", r.afterId, "form", "") + } + if r.demo != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "demo", r.demo, "form", "") + } + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetBanUsersFromCommentRequest struct { + ctx context.Context + ApiService *ModerationAPIService + commentId string + sso *string +} + +func (r ApiGetBanUsersFromCommentRequest) Sso(sso string) ApiGetBanUsersFromCommentRequest { + r.sso = &sso + return r +} + +func (r ApiGetBanUsersFromCommentRequest) Execute() (*GetBannedUsersFromCommentResponse, *http.Response, error) { + return r.ApiService.GetBanUsersFromCommentExecute(r) +} + +/* +GetBanUsersFromComment Method for GetBanUsersFromComment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param commentId + @return ApiGetBanUsersFromCommentRequest +*/ +func (a *ModerationAPIService) GetBanUsersFromComment(ctx context.Context, commentId string) ApiGetBanUsersFromCommentRequest { + return ApiGetBanUsersFromCommentRequest{ + ApiService: a, + ctx: ctx, + commentId: commentId, + } +} + +// Execute executes the request +// @return GetBannedUsersFromCommentResponse +func (a *ModerationAPIService) GetBanUsersFromCommentExecute(r ApiGetBanUsersFromCommentRequest) (*GetBannedUsersFromCommentResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetBannedUsersFromCommentResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.GetBanUsersFromComment") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/ban-users/from-comment/{commentId}" + localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetCommentBanStatusRequest struct { + ctx context.Context + ApiService *ModerationAPIService + commentId string + sso *string +} + +func (r ApiGetCommentBanStatusRequest) Sso(sso string) ApiGetCommentBanStatusRequest { + r.sso = &sso + return r +} + +func (r ApiGetCommentBanStatusRequest) Execute() (*GetCommentBanStatusResponse, *http.Response, error) { + return r.ApiService.GetCommentBanStatusExecute(r) +} + +/* +GetCommentBanStatus Method for GetCommentBanStatus + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param commentId + @return ApiGetCommentBanStatusRequest +*/ +func (a *ModerationAPIService) GetCommentBanStatus(ctx context.Context, commentId string) ApiGetCommentBanStatusRequest { + return ApiGetCommentBanStatusRequest{ + ApiService: a, + ctx: ctx, + commentId: commentId, + } +} + +// Execute executes the request +// @return GetCommentBanStatusResponse +func (a *ModerationAPIService) GetCommentBanStatusExecute(r ApiGetCommentBanStatusRequest) (*GetCommentBanStatusResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetCommentBanStatusResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.GetCommentBanStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/get-comment-ban-status/{commentId}" + localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetCommentChildrenRequest struct { + ctx context.Context + ApiService *ModerationAPIService + commentId string + sso *string +} + +func (r ApiGetCommentChildrenRequest) Sso(sso string) ApiGetCommentChildrenRequest { + r.sso = &sso + return r +} + +func (r ApiGetCommentChildrenRequest) Execute() (*ModerationAPIChildCommentsResponse, *http.Response, error) { + return r.ApiService.GetCommentChildrenExecute(r) +} + +/* +GetCommentChildren Method for GetCommentChildren + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param commentId + @return ApiGetCommentChildrenRequest +*/ +func (a *ModerationAPIService) GetCommentChildren(ctx context.Context, commentId string) ApiGetCommentChildrenRequest { + return ApiGetCommentChildrenRequest{ + ApiService: a, + ctx: ctx, + commentId: commentId, + } +} + +// Execute executes the request +// @return ModerationAPIChildCommentsResponse +func (a *ModerationAPIService) GetCommentChildrenExecute(r ApiGetCommentChildrenRequest) (*ModerationAPIChildCommentsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModerationAPIChildCommentsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.GetCommentChildren") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/comment-children/{commentId}" + localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetCountRequest struct { + ctx context.Context + ApiService *ModerationAPIService + textSearch *string + byIPFromComment *string + filter *string + searchFilters *string + demo *bool + sso *string +} + +func (r ApiGetCountRequest) TextSearch(textSearch string) ApiGetCountRequest { + r.textSearch = &textSearch + return r +} + +func (r ApiGetCountRequest) ByIPFromComment(byIPFromComment string) ApiGetCountRequest { + r.byIPFromComment = &byIPFromComment + return r +} + +func (r ApiGetCountRequest) Filter(filter string) ApiGetCountRequest { + r.filter = &filter + return r +} + +func (r ApiGetCountRequest) SearchFilters(searchFilters string) ApiGetCountRequest { + r.searchFilters = &searchFilters + return r +} + +func (r ApiGetCountRequest) Demo(demo bool) ApiGetCountRequest { + r.demo = &demo + return r +} + +func (r ApiGetCountRequest) Sso(sso string) ApiGetCountRequest { + r.sso = &sso + return r +} + +func (r ApiGetCountRequest) Execute() (*ModerationAPICountCommentsResponse, *http.Response, error) { + return r.ApiService.GetCountExecute(r) +} + +/* +GetCount Method for GetCount + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetCountRequest +*/ +func (a *ModerationAPIService) GetCount(ctx context.Context) ApiGetCountRequest { + return ApiGetCountRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ModerationAPICountCommentsResponse +func (a *ModerationAPIService) GetCountExecute(r ApiGetCountRequest) (*ModerationAPICountCommentsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModerationAPICountCommentsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.GetCount") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/count" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.textSearch != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "text-search", r.textSearch, "form", "") + } + if r.byIPFromComment != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "byIPFromComment", r.byIPFromComment, "form", "") + } + if r.filter != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "filter", r.filter, "form", "") + } + if r.searchFilters != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "searchFilters", r.searchFilters, "form", "") + } + if r.demo != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "demo", r.demo, "form", "") + } + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetCountsRequest struct { + ctx context.Context + ApiService *ModerationAPIService + sso *string +} + +func (r ApiGetCountsRequest) Sso(sso string) ApiGetCountsRequest { + r.sso = &sso + return r +} + +func (r ApiGetCountsRequest) Execute() (*GetBannedUsersCountResponse, *http.Response, error) { + return r.ApiService.GetCountsExecute(r) +} + +/* +GetCounts Method for GetCounts + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetCountsRequest +*/ +func (a *ModerationAPIService) GetCounts(ctx context.Context) ApiGetCountsRequest { + return ApiGetCountsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return GetBannedUsersCountResponse +func (a *ModerationAPIService) GetCountsExecute(r ApiGetCountsRequest) (*GetBannedUsersCountResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetBannedUsersCountResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.GetCounts") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/banned-users/counts" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetLogsRequest struct { + ctx context.Context + ApiService *ModerationAPIService + commentId string + sso *string +} + +func (r ApiGetLogsRequest) Sso(sso string) ApiGetLogsRequest { + r.sso = &sso + return r +} + +func (r ApiGetLogsRequest) Execute() (*ModerationAPIGetLogsResponse, *http.Response, error) { + return r.ApiService.GetLogsExecute(r) +} + +/* +GetLogs Method for GetLogs + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param commentId + @return ApiGetLogsRequest +*/ +func (a *ModerationAPIService) GetLogs(ctx context.Context, commentId string) ApiGetLogsRequest { + return ApiGetLogsRequest{ + ApiService: a, + ctx: ctx, + commentId: commentId, + } +} + +// Execute executes the request +// @return ModerationAPIGetLogsResponse +func (a *ModerationAPIService) GetLogsExecute(r ApiGetLogsRequest) (*ModerationAPIGetLogsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModerationAPIGetLogsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.GetLogs") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/logs/{commentId}" + localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetManualBadgesRequest struct { + ctx context.Context + ApiService *ModerationAPIService + sso *string +} + +func (r ApiGetManualBadgesRequest) Sso(sso string) ApiGetManualBadgesRequest { + r.sso = &sso + return r +} + +func (r ApiGetManualBadgesRequest) Execute() (*GetTenantManualBadgesResponse, *http.Response, error) { + return r.ApiService.GetManualBadgesExecute(r) +} + +/* +GetManualBadges Method for GetManualBadges + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetManualBadgesRequest +*/ +func (a *ModerationAPIService) GetManualBadges(ctx context.Context) ApiGetManualBadgesRequest { + return ApiGetManualBadgesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return GetTenantManualBadgesResponse +func (a *ModerationAPIService) GetManualBadgesExecute(r ApiGetManualBadgesRequest) (*GetTenantManualBadgesResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetTenantManualBadgesResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.GetManualBadges") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/get-manual-badges" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetManualBadgesForUserRequest struct { + ctx context.Context + ApiService *ModerationAPIService + badgesUserId *string + commentId *string + sso *string +} + +func (r ApiGetManualBadgesForUserRequest) BadgesUserId(badgesUserId string) ApiGetManualBadgesForUserRequest { + r.badgesUserId = &badgesUserId + return r +} + +func (r ApiGetManualBadgesForUserRequest) CommentId(commentId string) ApiGetManualBadgesForUserRequest { + r.commentId = &commentId + return r +} + +func (r ApiGetManualBadgesForUserRequest) Sso(sso string) ApiGetManualBadgesForUserRequest { + r.sso = &sso + return r +} + +func (r ApiGetManualBadgesForUserRequest) Execute() (*GetUserManualBadgesResponse, *http.Response, error) { + return r.ApiService.GetManualBadgesForUserExecute(r) +} + +/* +GetManualBadgesForUser Method for GetManualBadgesForUser + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetManualBadgesForUserRequest +*/ +func (a *ModerationAPIService) GetManualBadgesForUser(ctx context.Context) ApiGetManualBadgesForUserRequest { + return ApiGetManualBadgesForUserRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return GetUserManualBadgesResponse +func (a *ModerationAPIService) GetManualBadgesForUserExecute(r ApiGetManualBadgesForUserRequest) (*GetUserManualBadgesResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetUserManualBadgesResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.GetManualBadgesForUser") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/get-manual-badges-for-user" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.badgesUserId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "badgesUserId", r.badgesUserId, "form", "") + } + if r.commentId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "commentId", r.commentId, "form", "") + } + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetModerationCommentRequest struct { + ctx context.Context + ApiService *ModerationAPIService + commentId string + includeEmail *bool + includeIP *bool + sso *string +} + +func (r ApiGetModerationCommentRequest) IncludeEmail(includeEmail bool) ApiGetModerationCommentRequest { + r.includeEmail = &includeEmail + return r +} + +func (r ApiGetModerationCommentRequest) IncludeIP(includeIP bool) ApiGetModerationCommentRequest { + r.includeIP = &includeIP + return r +} + +func (r ApiGetModerationCommentRequest) Sso(sso string) ApiGetModerationCommentRequest { + r.sso = &sso + return r +} + +func (r ApiGetModerationCommentRequest) Execute() (*ModerationAPICommentResponse, *http.Response, error) { + return r.ApiService.GetModerationCommentExecute(r) +} + +/* +GetModerationComment Method for GetModerationComment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param commentId + @return ApiGetModerationCommentRequest +*/ +func (a *ModerationAPIService) GetModerationComment(ctx context.Context, commentId string) ApiGetModerationCommentRequest { + return ApiGetModerationCommentRequest{ + ApiService: a, + ctx: ctx, + commentId: commentId, + } +} + +// Execute executes the request +// @return ModerationAPICommentResponse +func (a *ModerationAPIService) GetModerationCommentExecute(r ApiGetModerationCommentRequest) (*ModerationAPICommentResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModerationAPICommentResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.GetModerationComment") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/comment/{commentId}" + localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.includeEmail != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "includeEmail", r.includeEmail, "form", "") + } + if r.includeIP != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "includeIP", r.includeIP, "form", "") + } + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetModerationCommentTextRequest struct { + ctx context.Context + ApiService *ModerationAPIService + commentId string + sso *string +} + +func (r ApiGetModerationCommentTextRequest) Sso(sso string) ApiGetModerationCommentTextRequest { + r.sso = &sso + return r +} + +func (r ApiGetModerationCommentTextRequest) Execute() (*GetCommentTextResponse, *http.Response, error) { + return r.ApiService.GetModerationCommentTextExecute(r) +} + +/* +GetModerationCommentText Method for GetModerationCommentText + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param commentId + @return ApiGetModerationCommentTextRequest +*/ +func (a *ModerationAPIService) GetModerationCommentText(ctx context.Context, commentId string) ApiGetModerationCommentTextRequest { + return ApiGetModerationCommentTextRequest{ + ApiService: a, + ctx: ctx, + commentId: commentId, + } +} + +// Execute executes the request +// @return GetCommentTextResponse +func (a *ModerationAPIService) GetModerationCommentTextExecute(r ApiGetModerationCommentTextRequest) (*GetCommentTextResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetCommentTextResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.GetModerationCommentText") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/get-comment-text/{commentId}" + localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetPreBanSummaryRequest struct { + ctx context.Context + ApiService *ModerationAPIService + commentId string + includeByUserIdAndEmail *bool + includeByIP *bool + includeByEmailDomain *bool + sso *string +} + +func (r ApiGetPreBanSummaryRequest) IncludeByUserIdAndEmail(includeByUserIdAndEmail bool) ApiGetPreBanSummaryRequest { + r.includeByUserIdAndEmail = &includeByUserIdAndEmail + return r +} + +func (r ApiGetPreBanSummaryRequest) IncludeByIP(includeByIP bool) ApiGetPreBanSummaryRequest { + r.includeByIP = &includeByIP + return r +} + +func (r ApiGetPreBanSummaryRequest) IncludeByEmailDomain(includeByEmailDomain bool) ApiGetPreBanSummaryRequest { + r.includeByEmailDomain = &includeByEmailDomain + return r +} + +func (r ApiGetPreBanSummaryRequest) Sso(sso string) ApiGetPreBanSummaryRequest { + r.sso = &sso + return r +} + +func (r ApiGetPreBanSummaryRequest) Execute() (*PreBanSummary, *http.Response, error) { + return r.ApiService.GetPreBanSummaryExecute(r) +} + +/* +GetPreBanSummary Method for GetPreBanSummary + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param commentId + @return ApiGetPreBanSummaryRequest +*/ +func (a *ModerationAPIService) GetPreBanSummary(ctx context.Context, commentId string) ApiGetPreBanSummaryRequest { + return ApiGetPreBanSummaryRequest{ + ApiService: a, + ctx: ctx, + commentId: commentId, + } +} + +// Execute executes the request +// @return PreBanSummary +func (a *ModerationAPIService) GetPreBanSummaryExecute(r ApiGetPreBanSummaryRequest) (*PreBanSummary, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PreBanSummary + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.GetPreBanSummary") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/pre-ban-summary/{commentId}" + localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.includeByUserIdAndEmail != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "includeByUserIdAndEmail", r.includeByUserIdAndEmail, "form", "") + } + if r.includeByIP != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "includeByIP", r.includeByIP, "form", "") + } + if r.includeByEmailDomain != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "includeByEmailDomain", r.includeByEmailDomain, "form", "") + } + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetSearchCommentsSummaryRequest struct { + ctx context.Context + ApiService *ModerationAPIService + value *string + filters *string + searchFilters *string + sso *string +} + +func (r ApiGetSearchCommentsSummaryRequest) Value(value string) ApiGetSearchCommentsSummaryRequest { + r.value = &value + return r +} + +func (r ApiGetSearchCommentsSummaryRequest) Filters(filters string) ApiGetSearchCommentsSummaryRequest { + r.filters = &filters + return r +} + +func (r ApiGetSearchCommentsSummaryRequest) SearchFilters(searchFilters string) ApiGetSearchCommentsSummaryRequest { + r.searchFilters = &searchFilters + return r +} + +func (r ApiGetSearchCommentsSummaryRequest) Sso(sso string) ApiGetSearchCommentsSummaryRequest { + r.sso = &sso + return r +} + +func (r ApiGetSearchCommentsSummaryRequest) Execute() (*ModerationCommentSearchResponse, *http.Response, error) { + return r.ApiService.GetSearchCommentsSummaryExecute(r) +} + +/* +GetSearchCommentsSummary Method for GetSearchCommentsSummary + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetSearchCommentsSummaryRequest +*/ +func (a *ModerationAPIService) GetSearchCommentsSummary(ctx context.Context) ApiGetSearchCommentsSummaryRequest { + return ApiGetSearchCommentsSummaryRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ModerationCommentSearchResponse +func (a *ModerationAPIService) GetSearchCommentsSummaryExecute(r ApiGetSearchCommentsSummaryRequest) (*ModerationCommentSearchResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModerationCommentSearchResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.GetSearchCommentsSummary") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/search/comments/summary" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.value != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "value", r.value, "form", "") + } + if r.filters != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") + } + if r.searchFilters != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "searchFilters", r.searchFilters, "form", "") + } + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetSearchPagesRequest struct { + ctx context.Context + ApiService *ModerationAPIService + value *string + sso *string +} + +func (r ApiGetSearchPagesRequest) Value(value string) ApiGetSearchPagesRequest { + r.value = &value + return r +} + +func (r ApiGetSearchPagesRequest) Sso(sso string) ApiGetSearchPagesRequest { + r.sso = &sso + return r +} + +func (r ApiGetSearchPagesRequest) Execute() (*ModerationPageSearchResponse, *http.Response, error) { + return r.ApiService.GetSearchPagesExecute(r) +} + +/* +GetSearchPages Method for GetSearchPages + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetSearchPagesRequest +*/ +func (a *ModerationAPIService) GetSearchPages(ctx context.Context) ApiGetSearchPagesRequest { + return ApiGetSearchPagesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ModerationPageSearchResponse +func (a *ModerationAPIService) GetSearchPagesExecute(r ApiGetSearchPagesRequest) (*ModerationPageSearchResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModerationPageSearchResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.GetSearchPages") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/search/pages" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.value != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "value", r.value, "form", "") + } + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetSearchSitesRequest struct { + ctx context.Context + ApiService *ModerationAPIService + value *string + sso *string +} + +func (r ApiGetSearchSitesRequest) Value(value string) ApiGetSearchSitesRequest { + r.value = &value + return r +} + +func (r ApiGetSearchSitesRequest) Sso(sso string) ApiGetSearchSitesRequest { + r.sso = &sso + return r +} + +func (r ApiGetSearchSitesRequest) Execute() (*ModerationSiteSearchResponse, *http.Response, error) { + return r.ApiService.GetSearchSitesExecute(r) +} + +/* +GetSearchSites Method for GetSearchSites + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetSearchSitesRequest +*/ +func (a *ModerationAPIService) GetSearchSites(ctx context.Context) ApiGetSearchSitesRequest { + return ApiGetSearchSitesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ModerationSiteSearchResponse +func (a *ModerationAPIService) GetSearchSitesExecute(r ApiGetSearchSitesRequest) (*ModerationSiteSearchResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModerationSiteSearchResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.GetSearchSites") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/search/sites" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.value != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "value", r.value, "form", "") + } + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetSearchSuggestRequest struct { + ctx context.Context + ApiService *ModerationAPIService + textSearch *string + sso *string +} + +func (r ApiGetSearchSuggestRequest) TextSearch(textSearch string) ApiGetSearchSuggestRequest { + r.textSearch = &textSearch + return r +} + +func (r ApiGetSearchSuggestRequest) Sso(sso string) ApiGetSearchSuggestRequest { + r.sso = &sso + return r +} + +func (r ApiGetSearchSuggestRequest) Execute() (*ModerationSuggestResponse, *http.Response, error) { + return r.ApiService.GetSearchSuggestExecute(r) +} + +/* +GetSearchSuggest Method for GetSearchSuggest + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetSearchSuggestRequest +*/ +func (a *ModerationAPIService) GetSearchSuggest(ctx context.Context) ApiGetSearchSuggestRequest { + return ApiGetSearchSuggestRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ModerationSuggestResponse +func (a *ModerationAPIService) GetSearchSuggestExecute(r ApiGetSearchSuggestRequest) (*ModerationSuggestResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModerationSuggestResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.GetSearchSuggest") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/search/suggest" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.textSearch != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "text-search", r.textSearch, "form", "") + } + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetSearchUsersRequest struct { + ctx context.Context + ApiService *ModerationAPIService + value *string + sso *string +} + +func (r ApiGetSearchUsersRequest) Value(value string) ApiGetSearchUsersRequest { + r.value = &value + return r +} + +func (r ApiGetSearchUsersRequest) Sso(sso string) ApiGetSearchUsersRequest { + r.sso = &sso + return r +} + +func (r ApiGetSearchUsersRequest) Execute() (*ModerationUserSearchResponse, *http.Response, error) { + return r.ApiService.GetSearchUsersExecute(r) +} + +/* +GetSearchUsers Method for GetSearchUsers + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetSearchUsersRequest +*/ +func (a *ModerationAPIService) GetSearchUsers(ctx context.Context) ApiGetSearchUsersRequest { + return ApiGetSearchUsersRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ModerationUserSearchResponse +func (a *ModerationAPIService) GetSearchUsersExecute(r ApiGetSearchUsersRequest) (*ModerationUserSearchResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModerationUserSearchResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.GetSearchUsers") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/search/users" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.value != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "value", r.value, "form", "") + } + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetTrustFactorRequest struct { + ctx context.Context + ApiService *ModerationAPIService + userId *string + sso *string +} + +func (r ApiGetTrustFactorRequest) UserId(userId string) ApiGetTrustFactorRequest { + r.userId = &userId + return r +} + +func (r ApiGetTrustFactorRequest) Sso(sso string) ApiGetTrustFactorRequest { + r.sso = &sso + return r +} + +func (r ApiGetTrustFactorRequest) Execute() (*GetUserTrustFactorResponse, *http.Response, error) { + return r.ApiService.GetTrustFactorExecute(r) +} + +/* +GetTrustFactor Method for GetTrustFactor + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetTrustFactorRequest +*/ +func (a *ModerationAPIService) GetTrustFactor(ctx context.Context) ApiGetTrustFactorRequest { + return ApiGetTrustFactorRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return GetUserTrustFactorResponse +func (a *ModerationAPIService) GetTrustFactorExecute(r ApiGetTrustFactorRequest) (*GetUserTrustFactorResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetUserTrustFactorResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.GetTrustFactor") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/get-trust-factor" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.userId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "userId", r.userId, "form", "") + } + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetUserBanPreferenceRequest struct { + ctx context.Context + ApiService *ModerationAPIService + sso *string +} + +func (r ApiGetUserBanPreferenceRequest) Sso(sso string) ApiGetUserBanPreferenceRequest { + r.sso = &sso + return r +} + +func (r ApiGetUserBanPreferenceRequest) Execute() (*APIModerateGetUserBanPreferencesResponse, *http.Response, error) { + return r.ApiService.GetUserBanPreferenceExecute(r) +} + +/* +GetUserBanPreference Method for GetUserBanPreference + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetUserBanPreferenceRequest +*/ +func (a *ModerationAPIService) GetUserBanPreference(ctx context.Context) ApiGetUserBanPreferenceRequest { + return ApiGetUserBanPreferenceRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return APIModerateGetUserBanPreferencesResponse +func (a *ModerationAPIService) GetUserBanPreferenceExecute(r ApiGetUserBanPreferenceRequest) (*APIModerateGetUserBanPreferencesResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *APIModerateGetUserBanPreferencesResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.GetUserBanPreference") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/user-ban-preference" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetUserInternalProfileRequest struct { + ctx context.Context + ApiService *ModerationAPIService + commentId *string + sso *string +} + +func (r ApiGetUserInternalProfileRequest) CommentId(commentId string) ApiGetUserInternalProfileRequest { + r.commentId = &commentId + return r +} + +func (r ApiGetUserInternalProfileRequest) Sso(sso string) ApiGetUserInternalProfileRequest { + r.sso = &sso + return r +} + +func (r ApiGetUserInternalProfileRequest) Execute() (*GetUserInternalProfileResponse, *http.Response, error) { + return r.ApiService.GetUserInternalProfileExecute(r) +} + +/* +GetUserInternalProfile Method for GetUserInternalProfile + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetUserInternalProfileRequest +*/ +func (a *ModerationAPIService) GetUserInternalProfile(ctx context.Context) ApiGetUserInternalProfileRequest { + return ApiGetUserInternalProfileRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return GetUserInternalProfileResponse +func (a *ModerationAPIService) GetUserInternalProfileExecute(r ApiGetUserInternalProfileRequest) (*GetUserInternalProfileResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetUserInternalProfileResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.GetUserInternalProfile") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/get-user-internal-profile" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.commentId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "commentId", r.commentId, "form", "") + } + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPostAdjustCommentVotesRequest struct { + ctx context.Context + ApiService *ModerationAPIService + commentId string + adjustCommentVotesParams *AdjustCommentVotesParams + sso *string +} + +func (r ApiPostAdjustCommentVotesRequest) AdjustCommentVotesParams(adjustCommentVotesParams AdjustCommentVotesParams) ApiPostAdjustCommentVotesRequest { + r.adjustCommentVotesParams = &adjustCommentVotesParams + return r +} + +func (r ApiPostAdjustCommentVotesRequest) Sso(sso string) ApiPostAdjustCommentVotesRequest { + r.sso = &sso + return r +} + +func (r ApiPostAdjustCommentVotesRequest) Execute() (*AdjustVotesResponse, *http.Response, error) { + return r.ApiService.PostAdjustCommentVotesExecute(r) +} + +/* +PostAdjustCommentVotes Method for PostAdjustCommentVotes + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param commentId + @return ApiPostAdjustCommentVotesRequest +*/ +func (a *ModerationAPIService) PostAdjustCommentVotes(ctx context.Context, commentId string) ApiPostAdjustCommentVotesRequest { + return ApiPostAdjustCommentVotesRequest{ + ApiService: a, + ctx: ctx, + commentId: commentId, + } +} + +// Execute executes the request +// @return AdjustVotesResponse +func (a *ModerationAPIService) PostAdjustCommentVotesExecute(r ApiPostAdjustCommentVotesRequest) (*AdjustVotesResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AdjustVotesResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.PostAdjustCommentVotes") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/adjust-comment-votes/{commentId}" + localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.adjustCommentVotesParams == nil { + return localVarReturnValue, nil, reportError("adjustCommentVotesParams is required and must be specified") + } + + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.adjustCommentVotesParams + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPostApiExportRequest struct { + ctx context.Context + ApiService *ModerationAPIService + textSearch *string + byIPFromComment *string + filters *string + searchFilters *string + sorts *string + sso *string +} + +func (r ApiPostApiExportRequest) TextSearch(textSearch string) ApiPostApiExportRequest { + r.textSearch = &textSearch + return r +} + +func (r ApiPostApiExportRequest) ByIPFromComment(byIPFromComment string) ApiPostApiExportRequest { + r.byIPFromComment = &byIPFromComment + return r +} + +func (r ApiPostApiExportRequest) Filters(filters string) ApiPostApiExportRequest { + r.filters = &filters + return r +} + +func (r ApiPostApiExportRequest) SearchFilters(searchFilters string) ApiPostApiExportRequest { + r.searchFilters = &searchFilters + return r +} + +func (r ApiPostApiExportRequest) Sorts(sorts string) ApiPostApiExportRequest { + r.sorts = &sorts + return r +} + +func (r ApiPostApiExportRequest) Sso(sso string) ApiPostApiExportRequest { + r.sso = &sso + return r +} + +func (r ApiPostApiExportRequest) Execute() (*ModerationExportResponse, *http.Response, error) { + return r.ApiService.PostApiExportExecute(r) +} + +/* +PostApiExport Method for PostApiExport + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPostApiExportRequest +*/ +func (a *ModerationAPIService) PostApiExport(ctx context.Context) ApiPostApiExportRequest { + return ApiPostApiExportRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ModerationExportResponse +func (a *ModerationAPIService) PostApiExportExecute(r ApiPostApiExportRequest) (*ModerationExportResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModerationExportResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.PostApiExport") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/api/export" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.textSearch != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "text-search", r.textSearch, "form", "") + } + if r.byIPFromComment != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "byIPFromComment", r.byIPFromComment, "form", "") + } + if r.filters != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "filters", r.filters, "form", "") + } + if r.searchFilters != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "searchFilters", r.searchFilters, "form", "") + } + if r.sorts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sorts", r.sorts, "form", "") + } + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPostBanUserFromCommentRequest struct { + ctx context.Context + ApiService *ModerationAPIService + commentId string + banEmail *bool + banEmailDomain *bool + banIP *bool + deleteAllUsersComments *bool + bannedUntil *string + isShadowBan *bool + updateId *string + banReason *string + sso *string +} + +func (r ApiPostBanUserFromCommentRequest) BanEmail(banEmail bool) ApiPostBanUserFromCommentRequest { + r.banEmail = &banEmail + return r +} + +func (r ApiPostBanUserFromCommentRequest) BanEmailDomain(banEmailDomain bool) ApiPostBanUserFromCommentRequest { + r.banEmailDomain = &banEmailDomain + return r +} + +func (r ApiPostBanUserFromCommentRequest) BanIP(banIP bool) ApiPostBanUserFromCommentRequest { + r.banIP = &banIP + return r +} + +func (r ApiPostBanUserFromCommentRequest) DeleteAllUsersComments(deleteAllUsersComments bool) ApiPostBanUserFromCommentRequest { + r.deleteAllUsersComments = &deleteAllUsersComments + return r +} + +func (r ApiPostBanUserFromCommentRequest) BannedUntil(bannedUntil string) ApiPostBanUserFromCommentRequest { + r.bannedUntil = &bannedUntil + return r +} + +func (r ApiPostBanUserFromCommentRequest) IsShadowBan(isShadowBan bool) ApiPostBanUserFromCommentRequest { + r.isShadowBan = &isShadowBan + return r +} + +func (r ApiPostBanUserFromCommentRequest) UpdateId(updateId string) ApiPostBanUserFromCommentRequest { + r.updateId = &updateId + return r +} + +func (r ApiPostBanUserFromCommentRequest) BanReason(banReason string) ApiPostBanUserFromCommentRequest { + r.banReason = &banReason + return r +} + +func (r ApiPostBanUserFromCommentRequest) Sso(sso string) ApiPostBanUserFromCommentRequest { + r.sso = &sso + return r +} + +func (r ApiPostBanUserFromCommentRequest) Execute() (*BanUserFromCommentResult, *http.Response, error) { + return r.ApiService.PostBanUserFromCommentExecute(r) +} + +/* +PostBanUserFromComment Method for PostBanUserFromComment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param commentId + @return ApiPostBanUserFromCommentRequest +*/ +func (a *ModerationAPIService) PostBanUserFromComment(ctx context.Context, commentId string) ApiPostBanUserFromCommentRequest { + return ApiPostBanUserFromCommentRequest{ + ApiService: a, + ctx: ctx, + commentId: commentId, + } +} + +// Execute executes the request +// @return BanUserFromCommentResult +func (a *ModerationAPIService) PostBanUserFromCommentExecute(r ApiPostBanUserFromCommentRequest) (*BanUserFromCommentResult, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *BanUserFromCommentResult + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.PostBanUserFromComment") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/ban-user/from-comment/{commentId}" + localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.banEmail != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "banEmail", r.banEmail, "form", "") + } + if r.banEmailDomain != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "banEmailDomain", r.banEmailDomain, "form", "") + } + if r.banIP != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "banIP", r.banIP, "form", "") + } + if r.deleteAllUsersComments != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "deleteAllUsersComments", r.deleteAllUsersComments, "form", "") + } + if r.bannedUntil != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "bannedUntil", r.bannedUntil, "form", "") + } + if r.isShadowBan != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "isShadowBan", r.isShadowBan, "form", "") + } + if r.updateId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updateId", r.updateId, "form", "") + } + if r.banReason != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "banReason", r.banReason, "form", "") + } + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPostBanUserUndoRequest struct { + ctx context.Context + ApiService *ModerationAPIService + banUserUndoParams *BanUserUndoParams + sso *string +} + +func (r ApiPostBanUserUndoRequest) BanUserUndoParams(banUserUndoParams BanUserUndoParams) ApiPostBanUserUndoRequest { + r.banUserUndoParams = &banUserUndoParams + return r +} + +func (r ApiPostBanUserUndoRequest) Sso(sso string) ApiPostBanUserUndoRequest { + r.sso = &sso + return r +} + +func (r ApiPostBanUserUndoRequest) Execute() (*APIEmptyResponse, *http.Response, error) { + return r.ApiService.PostBanUserUndoExecute(r) +} + +/* +PostBanUserUndo Method for PostBanUserUndo + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPostBanUserUndoRequest +*/ +func (a *ModerationAPIService) PostBanUserUndo(ctx context.Context) ApiPostBanUserUndoRequest { + return ApiPostBanUserUndoRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return APIEmptyResponse +func (a *ModerationAPIService) PostBanUserUndoExecute(r ApiPostBanUserUndoRequest) (*APIEmptyResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *APIEmptyResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.PostBanUserUndo") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/ban-user/undo" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.banUserUndoParams == nil { + return localVarReturnValue, nil, reportError("banUserUndoParams is required and must be specified") + } + + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.banUserUndoParams + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPostBulkPreBanSummaryRequest struct { + ctx context.Context + ApiService *ModerationAPIService + bulkPreBanParams *BulkPreBanParams + includeByUserIdAndEmail *bool + includeByIP *bool + includeByEmailDomain *bool + sso *string +} + +func (r ApiPostBulkPreBanSummaryRequest) BulkPreBanParams(bulkPreBanParams BulkPreBanParams) ApiPostBulkPreBanSummaryRequest { + r.bulkPreBanParams = &bulkPreBanParams + return r +} + +func (r ApiPostBulkPreBanSummaryRequest) IncludeByUserIdAndEmail(includeByUserIdAndEmail bool) ApiPostBulkPreBanSummaryRequest { + r.includeByUserIdAndEmail = &includeByUserIdAndEmail + return r +} + +func (r ApiPostBulkPreBanSummaryRequest) IncludeByIP(includeByIP bool) ApiPostBulkPreBanSummaryRequest { + r.includeByIP = &includeByIP + return r +} + +func (r ApiPostBulkPreBanSummaryRequest) IncludeByEmailDomain(includeByEmailDomain bool) ApiPostBulkPreBanSummaryRequest { + r.includeByEmailDomain = &includeByEmailDomain + return r +} + +func (r ApiPostBulkPreBanSummaryRequest) Sso(sso string) ApiPostBulkPreBanSummaryRequest { + r.sso = &sso + return r +} + +func (r ApiPostBulkPreBanSummaryRequest) Execute() (*BulkPreBanSummary, *http.Response, error) { + return r.ApiService.PostBulkPreBanSummaryExecute(r) +} + +/* +PostBulkPreBanSummary Method for PostBulkPreBanSummary + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPostBulkPreBanSummaryRequest +*/ +func (a *ModerationAPIService) PostBulkPreBanSummary(ctx context.Context) ApiPostBulkPreBanSummaryRequest { + return ApiPostBulkPreBanSummaryRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return BulkPreBanSummary +func (a *ModerationAPIService) PostBulkPreBanSummaryExecute(r ApiPostBulkPreBanSummaryRequest) (*BulkPreBanSummary, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *BulkPreBanSummary + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.PostBulkPreBanSummary") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/bulk-pre-ban-summary" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.bulkPreBanParams == nil { + return localVarReturnValue, nil, reportError("bulkPreBanParams is required and must be specified") + } + + if r.includeByUserIdAndEmail != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "includeByUserIdAndEmail", r.includeByUserIdAndEmail, "form", "") + } + if r.includeByIP != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "includeByIP", r.includeByIP, "form", "") + } + if r.includeByEmailDomain != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "includeByEmailDomain", r.includeByEmailDomain, "form", "") + } + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.bulkPreBanParams + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPostCommentsByIdsRequest struct { + ctx context.Context + ApiService *ModerationAPIService + commentsByIdsParams *CommentsByIdsParams + sso *string +} + +func (r ApiPostCommentsByIdsRequest) CommentsByIdsParams(commentsByIdsParams CommentsByIdsParams) ApiPostCommentsByIdsRequest { + r.commentsByIdsParams = &commentsByIdsParams + return r +} + +func (r ApiPostCommentsByIdsRequest) Sso(sso string) ApiPostCommentsByIdsRequest { + r.sso = &sso + return r +} + +func (r ApiPostCommentsByIdsRequest) Execute() (*ModerationAPIChildCommentsResponse, *http.Response, error) { + return r.ApiService.PostCommentsByIdsExecute(r) +} + +/* +PostCommentsByIds Method for PostCommentsByIds + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPostCommentsByIdsRequest +*/ +func (a *ModerationAPIService) PostCommentsByIds(ctx context.Context) ApiPostCommentsByIdsRequest { + return ApiPostCommentsByIdsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ModerationAPIChildCommentsResponse +func (a *ModerationAPIService) PostCommentsByIdsExecute(r ApiPostCommentsByIdsRequest) (*ModerationAPIChildCommentsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModerationAPIChildCommentsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.PostCommentsByIds") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/comments-by-ids" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.commentsByIdsParams == nil { + return localVarReturnValue, nil, reportError("commentsByIdsParams is required and must be specified") + } + + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.commentsByIdsParams + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPostFlagCommentRequest struct { + ctx context.Context + ApiService *ModerationAPIService + commentId string + sso *string +} + +func (r ApiPostFlagCommentRequest) Sso(sso string) ApiPostFlagCommentRequest { + r.sso = &sso + return r +} + +func (r ApiPostFlagCommentRequest) Execute() (*APIEmptyResponse, *http.Response, error) { + return r.ApiService.PostFlagCommentExecute(r) +} + +/* +PostFlagComment Method for PostFlagComment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param commentId + @return ApiPostFlagCommentRequest +*/ +func (a *ModerationAPIService) PostFlagComment(ctx context.Context, commentId string) ApiPostFlagCommentRequest { + return ApiPostFlagCommentRequest{ + ApiService: a, + ctx: ctx, + commentId: commentId, + } +} + +// Execute executes the request +// @return APIEmptyResponse +func (a *ModerationAPIService) PostFlagCommentExecute(r ApiPostFlagCommentRequest) (*APIEmptyResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *APIEmptyResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.PostFlagComment") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/flag-comment/{commentId}" + localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPostRemoveCommentRequest struct { + ctx context.Context + ApiService *ModerationAPIService + commentId string + sso *string +} + +func (r ApiPostRemoveCommentRequest) Sso(sso string) ApiPostRemoveCommentRequest { + r.sso = &sso + return r +} + +func (r ApiPostRemoveCommentRequest) Execute() (*PostRemoveCommentResponse, *http.Response, error) { + return r.ApiService.PostRemoveCommentExecute(r) +} + +/* +PostRemoveComment Method for PostRemoveComment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param commentId + @return ApiPostRemoveCommentRequest +*/ +func (a *ModerationAPIService) PostRemoveComment(ctx context.Context, commentId string) ApiPostRemoveCommentRequest { + return ApiPostRemoveCommentRequest{ + ApiService: a, + ctx: ctx, + commentId: commentId, + } +} + +// Execute executes the request +// @return PostRemoveCommentResponse +func (a *ModerationAPIService) PostRemoveCommentExecute(r ApiPostRemoveCommentRequest) (*PostRemoveCommentResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PostRemoveCommentResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.PostRemoveComment") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/remove-comment/{commentId}" + localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPostRestoreDeletedCommentRequest struct { + ctx context.Context + ApiService *ModerationAPIService + commentId string + sso *string +} + +func (r ApiPostRestoreDeletedCommentRequest) Sso(sso string) ApiPostRestoreDeletedCommentRequest { + r.sso = &sso + return r +} + +func (r ApiPostRestoreDeletedCommentRequest) Execute() (*APIEmptyResponse, *http.Response, error) { + return r.ApiService.PostRestoreDeletedCommentExecute(r) +} + +/* +PostRestoreDeletedComment Method for PostRestoreDeletedComment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param commentId + @return ApiPostRestoreDeletedCommentRequest +*/ +func (a *ModerationAPIService) PostRestoreDeletedComment(ctx context.Context, commentId string) ApiPostRestoreDeletedCommentRequest { + return ApiPostRestoreDeletedCommentRequest{ + ApiService: a, + ctx: ctx, + commentId: commentId, + } +} + +// Execute executes the request +// @return APIEmptyResponse +func (a *ModerationAPIService) PostRestoreDeletedCommentExecute(r ApiPostRestoreDeletedCommentRequest) (*APIEmptyResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *APIEmptyResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.PostRestoreDeletedComment") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/restore-deleted-comment/{commentId}" + localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPostSetCommentApprovalStatusRequest struct { + ctx context.Context + ApiService *ModerationAPIService + commentId string + approved *bool + sso *string +} + +func (r ApiPostSetCommentApprovalStatusRequest) Approved(approved bool) ApiPostSetCommentApprovalStatusRequest { + r.approved = &approved + return r +} + +func (r ApiPostSetCommentApprovalStatusRequest) Sso(sso string) ApiPostSetCommentApprovalStatusRequest { + r.sso = &sso + return r +} + +func (r ApiPostSetCommentApprovalStatusRequest) Execute() (*SetCommentApprovedResponse, *http.Response, error) { + return r.ApiService.PostSetCommentApprovalStatusExecute(r) +} + +/* +PostSetCommentApprovalStatus Method for PostSetCommentApprovalStatus + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param commentId + @return ApiPostSetCommentApprovalStatusRequest +*/ +func (a *ModerationAPIService) PostSetCommentApprovalStatus(ctx context.Context, commentId string) ApiPostSetCommentApprovalStatusRequest { + return ApiPostSetCommentApprovalStatusRequest{ + ApiService: a, + ctx: ctx, + commentId: commentId, + } +} + +// Execute executes the request +// @return SetCommentApprovedResponse +func (a *ModerationAPIService) PostSetCommentApprovalStatusExecute(r ApiPostSetCommentApprovalStatusRequest) (*SetCommentApprovedResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SetCommentApprovedResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.PostSetCommentApprovalStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/set-comment-approval-status/{commentId}" + localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.approved != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "approved", r.approved, "form", "") + } + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPostSetCommentReviewStatusRequest struct { + ctx context.Context + ApiService *ModerationAPIService + commentId string + reviewed *bool + sso *string +} + +func (r ApiPostSetCommentReviewStatusRequest) Reviewed(reviewed bool) ApiPostSetCommentReviewStatusRequest { + r.reviewed = &reviewed + return r +} + +func (r ApiPostSetCommentReviewStatusRequest) Sso(sso string) ApiPostSetCommentReviewStatusRequest { + r.sso = &sso + return r +} + +func (r ApiPostSetCommentReviewStatusRequest) Execute() (*APIEmptyResponse, *http.Response, error) { + return r.ApiService.PostSetCommentReviewStatusExecute(r) +} + +/* +PostSetCommentReviewStatus Method for PostSetCommentReviewStatus + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param commentId + @return ApiPostSetCommentReviewStatusRequest +*/ +func (a *ModerationAPIService) PostSetCommentReviewStatus(ctx context.Context, commentId string) ApiPostSetCommentReviewStatusRequest { + return ApiPostSetCommentReviewStatusRequest{ + ApiService: a, + ctx: ctx, + commentId: commentId, + } +} + +// Execute executes the request +// @return APIEmptyResponse +func (a *ModerationAPIService) PostSetCommentReviewStatusExecute(r ApiPostSetCommentReviewStatusRequest) (*APIEmptyResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *APIEmptyResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.PostSetCommentReviewStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/set-comment-review-status/{commentId}" + localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.reviewed != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "reviewed", r.reviewed, "form", "") + } + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPostSetCommentSpamStatusRequest struct { + ctx context.Context + ApiService *ModerationAPIService + commentId string + spam *bool + permNotSpam *bool + sso *string +} + +func (r ApiPostSetCommentSpamStatusRequest) Spam(spam bool) ApiPostSetCommentSpamStatusRequest { + r.spam = &spam + return r +} + +func (r ApiPostSetCommentSpamStatusRequest) PermNotSpam(permNotSpam bool) ApiPostSetCommentSpamStatusRequest { + r.permNotSpam = &permNotSpam + return r +} + +func (r ApiPostSetCommentSpamStatusRequest) Sso(sso string) ApiPostSetCommentSpamStatusRequest { + r.sso = &sso + return r +} + +func (r ApiPostSetCommentSpamStatusRequest) Execute() (*APIEmptyResponse, *http.Response, error) { + return r.ApiService.PostSetCommentSpamStatusExecute(r) +} + +/* +PostSetCommentSpamStatus Method for PostSetCommentSpamStatus + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param commentId + @return ApiPostSetCommentSpamStatusRequest +*/ +func (a *ModerationAPIService) PostSetCommentSpamStatus(ctx context.Context, commentId string) ApiPostSetCommentSpamStatusRequest { + return ApiPostSetCommentSpamStatusRequest{ + ApiService: a, + ctx: ctx, + commentId: commentId, + } +} + +// Execute executes the request +// @return APIEmptyResponse +func (a *ModerationAPIService) PostSetCommentSpamStatusExecute(r ApiPostSetCommentSpamStatusRequest) (*APIEmptyResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *APIEmptyResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.PostSetCommentSpamStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/set-comment-spam-status/{commentId}" + localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.spam != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "spam", r.spam, "form", "") + } + if r.permNotSpam != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "permNotSpam", r.permNotSpam, "form", "") + } + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPostSetCommentTextRequest struct { + ctx context.Context + ApiService *ModerationAPIService + commentId string + setCommentTextParams *SetCommentTextParams + sso *string +} + +func (r ApiPostSetCommentTextRequest) SetCommentTextParams(setCommentTextParams SetCommentTextParams) ApiPostSetCommentTextRequest { + r.setCommentTextParams = &setCommentTextParams + return r +} + +func (r ApiPostSetCommentTextRequest) Sso(sso string) ApiPostSetCommentTextRequest { + r.sso = &sso + return r +} + +func (r ApiPostSetCommentTextRequest) Execute() (*SetCommentTextResponse, *http.Response, error) { + return r.ApiService.PostSetCommentTextExecute(r) +} + +/* +PostSetCommentText Method for PostSetCommentText + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param commentId + @return ApiPostSetCommentTextRequest +*/ +func (a *ModerationAPIService) PostSetCommentText(ctx context.Context, commentId string) ApiPostSetCommentTextRequest { + return ApiPostSetCommentTextRequest{ + ApiService: a, + ctx: ctx, + commentId: commentId, + } +} + +// Execute executes the request +// @return SetCommentTextResponse +func (a *ModerationAPIService) PostSetCommentTextExecute(r ApiPostSetCommentTextRequest) (*SetCommentTextResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SetCommentTextResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.PostSetCommentText") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/set-comment-text/{commentId}" + localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.setCommentTextParams == nil { + return localVarReturnValue, nil, reportError("setCommentTextParams is required and must be specified") + } + + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.setCommentTextParams + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPostUnFlagCommentRequest struct { + ctx context.Context + ApiService *ModerationAPIService + commentId string + sso *string +} + +func (r ApiPostUnFlagCommentRequest) Sso(sso string) ApiPostUnFlagCommentRequest { + r.sso = &sso + return r +} + +func (r ApiPostUnFlagCommentRequest) Execute() (*APIEmptyResponse, *http.Response, error) { + return r.ApiService.PostUnFlagCommentExecute(r) +} + +/* +PostUnFlagComment Method for PostUnFlagComment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param commentId + @return ApiPostUnFlagCommentRequest +*/ +func (a *ModerationAPIService) PostUnFlagComment(ctx context.Context, commentId string) ApiPostUnFlagCommentRequest { + return ApiPostUnFlagCommentRequest{ + ApiService: a, + ctx: ctx, + commentId: commentId, + } +} + +// Execute executes the request +// @return APIEmptyResponse +func (a *ModerationAPIService) PostUnFlagCommentExecute(r ApiPostUnFlagCommentRequest) (*APIEmptyResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *APIEmptyResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.PostUnFlagComment") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/un-flag-comment/{commentId}" + localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPostVoteRequest struct { + ctx context.Context + ApiService *ModerationAPIService + commentId string + direction *string + sso *string +} + +func (r ApiPostVoteRequest) Direction(direction string) ApiPostVoteRequest { + r.direction = &direction + return r +} + +func (r ApiPostVoteRequest) Sso(sso string) ApiPostVoteRequest { + r.sso = &sso + return r +} + +func (r ApiPostVoteRequest) Execute() (*VoteResponse, *http.Response, error) { + return r.ApiService.PostVoteExecute(r) +} + +/* +PostVote Method for PostVote + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param commentId + @return ApiPostVoteRequest +*/ +func (a *ModerationAPIService) PostVote(ctx context.Context, commentId string) ApiPostVoteRequest { + return ApiPostVoteRequest{ + ApiService: a, + ctx: ctx, + commentId: commentId, + } +} + +// Execute executes the request +// @return VoteResponse +func (a *ModerationAPIService) PostVoteExecute(r ApiPostVoteRequest) (*VoteResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VoteResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.PostVote") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/vote/{commentId}" + localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.direction != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "direction", r.direction, "form", "") + } + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPutAwardBadgeRequest struct { + ctx context.Context + ApiService *ModerationAPIService + badgeId *string + userId *string + commentId *string + broadcastId *string + sso *string +} + +func (r ApiPutAwardBadgeRequest) BadgeId(badgeId string) ApiPutAwardBadgeRequest { + r.badgeId = &badgeId + return r +} + +func (r ApiPutAwardBadgeRequest) UserId(userId string) ApiPutAwardBadgeRequest { + r.userId = &userId + return r +} + +func (r ApiPutAwardBadgeRequest) CommentId(commentId string) ApiPutAwardBadgeRequest { + r.commentId = &commentId + return r +} + +func (r ApiPutAwardBadgeRequest) BroadcastId(broadcastId string) ApiPutAwardBadgeRequest { + r.broadcastId = &broadcastId + return r +} + +func (r ApiPutAwardBadgeRequest) Sso(sso string) ApiPutAwardBadgeRequest { + r.sso = &sso + return r +} + +func (r ApiPutAwardBadgeRequest) Execute() (*AwardUserBadgeResponse, *http.Response, error) { + return r.ApiService.PutAwardBadgeExecute(r) +} + +/* +PutAwardBadge Method for PutAwardBadge + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPutAwardBadgeRequest +*/ +func (a *ModerationAPIService) PutAwardBadge(ctx context.Context) ApiPutAwardBadgeRequest { + return ApiPutAwardBadgeRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AwardUserBadgeResponse +func (a *ModerationAPIService) PutAwardBadgeExecute(r ApiPutAwardBadgeRequest) (*AwardUserBadgeResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AwardUserBadgeResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.PutAwardBadge") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/award-badge" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.badgeId == nil { + return localVarReturnValue, nil, reportError("badgeId is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "badgeId", r.badgeId, "form", "") + if r.userId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "userId", r.userId, "form", "") + } + if r.commentId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "commentId", r.commentId, "form", "") + } + if r.broadcastId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "broadcastId", r.broadcastId, "form", "") + } + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPutCloseThreadRequest struct { + ctx context.Context + ApiService *ModerationAPIService + urlId *string + sso *string +} + +func (r ApiPutCloseThreadRequest) UrlId(urlId string) ApiPutCloseThreadRequest { + r.urlId = &urlId + return r +} + +func (r ApiPutCloseThreadRequest) Sso(sso string) ApiPutCloseThreadRequest { + r.sso = &sso + return r +} + +func (r ApiPutCloseThreadRequest) Execute() (*APIEmptyResponse, *http.Response, error) { + return r.ApiService.PutCloseThreadExecute(r) +} + +/* +PutCloseThread Method for PutCloseThread + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPutCloseThreadRequest +*/ +func (a *ModerationAPIService) PutCloseThread(ctx context.Context) ApiPutCloseThreadRequest { + return ApiPutCloseThreadRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return APIEmptyResponse +func (a *ModerationAPIService) PutCloseThreadExecute(r ApiPutCloseThreadRequest) (*APIEmptyResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *APIEmptyResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.PutCloseThread") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/close-thread" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.urlId == nil { + return localVarReturnValue, nil, reportError("urlId is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "urlId", r.urlId, "form", "") + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPutRemoveBadgeRequest struct { + ctx context.Context + ApiService *ModerationAPIService + badgeId *string + userId *string + commentId *string + broadcastId *string + sso *string +} + +func (r ApiPutRemoveBadgeRequest) BadgeId(badgeId string) ApiPutRemoveBadgeRequest { + r.badgeId = &badgeId + return r +} + +func (r ApiPutRemoveBadgeRequest) UserId(userId string) ApiPutRemoveBadgeRequest { + r.userId = &userId + return r +} + +func (r ApiPutRemoveBadgeRequest) CommentId(commentId string) ApiPutRemoveBadgeRequest { + r.commentId = &commentId + return r +} + +func (r ApiPutRemoveBadgeRequest) BroadcastId(broadcastId string) ApiPutRemoveBadgeRequest { + r.broadcastId = &broadcastId + return r +} + +func (r ApiPutRemoveBadgeRequest) Sso(sso string) ApiPutRemoveBadgeRequest { + r.sso = &sso + return r +} + +func (r ApiPutRemoveBadgeRequest) Execute() (*RemoveUserBadgeResponse, *http.Response, error) { + return r.ApiService.PutRemoveBadgeExecute(r) +} + +/* +PutRemoveBadge Method for PutRemoveBadge + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPutRemoveBadgeRequest +*/ +func (a *ModerationAPIService) PutRemoveBadge(ctx context.Context) ApiPutRemoveBadgeRequest { + return ApiPutRemoveBadgeRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return RemoveUserBadgeResponse +func (a *ModerationAPIService) PutRemoveBadgeExecute(r ApiPutRemoveBadgeRequest) (*RemoveUserBadgeResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RemoveUserBadgeResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.PutRemoveBadge") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/remove-badge" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.badgeId == nil { + return localVarReturnValue, nil, reportError("badgeId is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "badgeId", r.badgeId, "form", "") + if r.userId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "userId", r.userId, "form", "") + } + if r.commentId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "commentId", r.commentId, "form", "") + } + if r.broadcastId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "broadcastId", r.broadcastId, "form", "") + } + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPutReopenThreadRequest struct { + ctx context.Context + ApiService *ModerationAPIService + urlId *string + sso *string +} + +func (r ApiPutReopenThreadRequest) UrlId(urlId string) ApiPutReopenThreadRequest { + r.urlId = &urlId + return r +} + +func (r ApiPutReopenThreadRequest) Sso(sso string) ApiPutReopenThreadRequest { + r.sso = &sso + return r +} + +func (r ApiPutReopenThreadRequest) Execute() (*APIEmptyResponse, *http.Response, error) { + return r.ApiService.PutReopenThreadExecute(r) +} + +/* +PutReopenThread Method for PutReopenThread + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPutReopenThreadRequest +*/ +func (a *ModerationAPIService) PutReopenThread(ctx context.Context) ApiPutReopenThreadRequest { + return ApiPutReopenThreadRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return APIEmptyResponse +func (a *ModerationAPIService) PutReopenThreadExecute(r ApiPutReopenThreadRequest) (*APIEmptyResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *APIEmptyResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.PutReopenThread") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/reopen-thread" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.urlId == nil { + return localVarReturnValue, nil, reportError("urlId is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "urlId", r.urlId, "form", "") + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiSetTrustFactorRequest struct { + ctx context.Context + ApiService *ModerationAPIService + userId *string + trustFactor *string + sso *string +} + +func (r ApiSetTrustFactorRequest) UserId(userId string) ApiSetTrustFactorRequest { + r.userId = &userId + return r +} + +func (r ApiSetTrustFactorRequest) TrustFactor(trustFactor string) ApiSetTrustFactorRequest { + r.trustFactor = &trustFactor + return r +} + +func (r ApiSetTrustFactorRequest) Sso(sso string) ApiSetTrustFactorRequest { + r.sso = &sso + return r +} + +func (r ApiSetTrustFactorRequest) Execute() (*SetUserTrustFactorResponse, *http.Response, error) { + return r.ApiService.SetTrustFactorExecute(r) +} + +/* +SetTrustFactor Method for SetTrustFactor + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSetTrustFactorRequest +*/ +func (a *ModerationAPIService) SetTrustFactor(ctx context.Context) ApiSetTrustFactorRequest { + return ApiSetTrustFactorRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return SetUserTrustFactorResponse +func (a *ModerationAPIService) SetTrustFactorExecute(r ApiSetTrustFactorRequest) (*SetUserTrustFactorResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SetUserTrustFactorResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.SetTrustFactor") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/auth/my-account/moderate-comments/set-trust-factor" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.userId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "userId", r.userId, "form", "") + } + if r.trustFactor != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "trustFactor", r.trustFactor, "form", "") + } + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/client/api_public.go b/client/api_public.go index 1d4d4ca..ee45a18 100644 --- a/client/api_public.go +++ b/client/api_public.go @@ -49,7 +49,7 @@ func (r ApiBlockFromCommentPublicRequest) Sso(sso string) ApiBlockFromCommentPub return r } -func (r ApiBlockFromCommentPublicRequest) Execute() (*BlockFromCommentPublic200Response, *http.Response, error) { +func (r ApiBlockFromCommentPublicRequest) Execute() (*BlockSuccess, *http.Response, error) { return r.ApiService.BlockFromCommentPublicExecute(r) } @@ -69,13 +69,13 @@ func (a *PublicAPIService) BlockFromCommentPublic(ctx context.Context, commentId } // Execute executes the request -// @return BlockFromCommentPublic200Response -func (a *PublicAPIService) BlockFromCommentPublicExecute(r ApiBlockFromCommentPublicRequest) (*BlockFromCommentPublic200Response, *http.Response, error) { +// @return BlockSuccess +func (a *PublicAPIService) BlockFromCommentPublicExecute(r ApiBlockFromCommentPublicRequest) (*BlockSuccess, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *BlockFromCommentPublic200Response + localVarReturnValue *BlockSuccess ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.BlockFromCommentPublic") @@ -141,6 +141,14 @@ func (a *PublicAPIService) BlockFromCommentPublicExecute(r ApiBlockFromCommentPu body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -180,7 +188,7 @@ func (r ApiCheckedCommentsForBlockedRequest) Sso(sso string) ApiCheckedCommentsF return r } -func (r ApiCheckedCommentsForBlockedRequest) Execute() (*CheckedCommentsForBlocked200Response, *http.Response, error) { +func (r ApiCheckedCommentsForBlockedRequest) Execute() (*CheckBlockedCommentsResponse, *http.Response, error) { return r.ApiService.CheckedCommentsForBlockedExecute(r) } @@ -198,13 +206,13 @@ func (a *PublicAPIService) CheckedCommentsForBlocked(ctx context.Context) ApiChe } // Execute executes the request -// @return CheckedCommentsForBlocked200Response -func (a *PublicAPIService) CheckedCommentsForBlockedExecute(r ApiCheckedCommentsForBlockedRequest) (*CheckedCommentsForBlocked200Response, *http.Response, error) { +// @return CheckBlockedCommentsResponse +func (a *PublicAPIService) CheckedCommentsForBlockedExecute(r ApiCheckedCommentsForBlockedRequest) (*CheckBlockedCommentsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *CheckedCommentsForBlocked200Response + localVarReturnValue *CheckBlockedCommentsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.CheckedCommentsForBlocked") @@ -268,6 +276,14 @@ func (a *PublicAPIService) CheckedCommentsForBlockedExecute(r ApiCheckedComments body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -319,7 +335,7 @@ func (r ApiCreateCommentPublicRequest) Sso(sso string) ApiCreateCommentPublicReq return r } -func (r ApiCreateCommentPublicRequest) Execute() (*CreateCommentPublic200Response, *http.Response, error) { +func (r ApiCreateCommentPublicRequest) Execute() (*SaveCommentsResponseWithPresence, *http.Response, error) { return r.ApiService.CreateCommentPublicExecute(r) } @@ -339,13 +355,13 @@ func (a *PublicAPIService) CreateCommentPublic(ctx context.Context, tenantId str } // Execute executes the request -// @return CreateCommentPublic200Response -func (a *PublicAPIService) CreateCommentPublicExecute(r ApiCreateCommentPublicRequest) (*CreateCommentPublic200Response, *http.Response, error) { +// @return SaveCommentsResponseWithPresence +func (a *PublicAPIService) CreateCommentPublicExecute(r ApiCreateCommentPublicRequest) (*SaveCommentsResponseWithPresence, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *CreateCommentPublic200Response + localVarReturnValue *SaveCommentsResponseWithPresence ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.CreateCommentPublic") @@ -418,6 +434,14 @@ func (a *PublicAPIService) CreateCommentPublicExecute(r ApiCreateCommentPublicRe body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -457,7 +481,7 @@ func (r ApiCreateFeedPostPublicRequest) Sso(sso string) ApiCreateFeedPostPublicR return r } -func (r ApiCreateFeedPostPublicRequest) Execute() (*CreateFeedPostPublic200Response, *http.Response, error) { +func (r ApiCreateFeedPostPublicRequest) Execute() (*CreateFeedPostResponse, *http.Response, error) { return r.ApiService.CreateFeedPostPublicExecute(r) } @@ -477,13 +501,13 @@ func (a *PublicAPIService) CreateFeedPostPublic(ctx context.Context, tenantId st } // Execute executes the request -// @return CreateFeedPostPublic200Response -func (a *PublicAPIService) CreateFeedPostPublicExecute(r ApiCreateFeedPostPublicRequest) (*CreateFeedPostPublic200Response, *http.Response, error) { +// @return CreateFeedPostResponse +func (a *PublicAPIService) CreateFeedPostPublicExecute(r ApiCreateFeedPostPublicRequest) (*CreateFeedPostResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *CreateFeedPostPublic200Response + localVarReturnValue *CreateFeedPostResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.CreateFeedPostPublic") @@ -548,6 +572,14 @@ func (a *PublicAPIService) CreateFeedPostPublicExecute(r ApiCreateFeedPostPublic body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -563,84 +595,71 @@ func (a *PublicAPIService) CreateFeedPostPublicExecute(r ApiCreateFeedPostPublic return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDeleteCommentPublicRequest struct { +type ApiCreateV1PageReactRequest struct { ctx context.Context ApiService *PublicAPIService tenantId string - commentId string - broadcastId *string - editKey *string - sso *string -} - -func (r ApiDeleteCommentPublicRequest) BroadcastId(broadcastId string) ApiDeleteCommentPublicRequest { - r.broadcastId = &broadcastId - return r + urlId *string + title *string } -func (r ApiDeleteCommentPublicRequest) EditKey(editKey string) ApiDeleteCommentPublicRequest { - r.editKey = &editKey +func (r ApiCreateV1PageReactRequest) UrlId(urlId string) ApiCreateV1PageReactRequest { + r.urlId = &urlId return r } -func (r ApiDeleteCommentPublicRequest) Sso(sso string) ApiDeleteCommentPublicRequest { - r.sso = &sso +func (r ApiCreateV1PageReactRequest) Title(title string) ApiCreateV1PageReactRequest { + r.title = &title return r } -func (r ApiDeleteCommentPublicRequest) Execute() (*DeleteCommentPublic200Response, *http.Response, error) { - return r.ApiService.DeleteCommentPublicExecute(r) +func (r ApiCreateV1PageReactRequest) Execute() (*CreateV1PageReact, *http.Response, error) { + return r.ApiService.CreateV1PageReactExecute(r) } /* -DeleteCommentPublic Method for DeleteCommentPublic +CreateV1PageReact Method for CreateV1PageReact @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param tenantId - @param commentId - @return ApiDeleteCommentPublicRequest + @return ApiCreateV1PageReactRequest */ -func (a *PublicAPIService) DeleteCommentPublic(ctx context.Context, tenantId string, commentId string) ApiDeleteCommentPublicRequest { - return ApiDeleteCommentPublicRequest{ +func (a *PublicAPIService) CreateV1PageReact(ctx context.Context, tenantId string) ApiCreateV1PageReactRequest { + return ApiCreateV1PageReactRequest{ ApiService: a, ctx: ctx, tenantId: tenantId, - commentId: commentId, } } // Execute executes the request -// @return DeleteCommentPublic200Response -func (a *PublicAPIService) DeleteCommentPublicExecute(r ApiDeleteCommentPublicRequest) (*DeleteCommentPublic200Response, *http.Response, error) { +// @return CreateV1PageReact +func (a *PublicAPIService) CreateV1PageReactExecute(r ApiCreateV1PageReactRequest) (*CreateV1PageReact, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *DeleteCommentPublic200Response + localVarReturnValue *CreateV1PageReact ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.DeleteCommentPublic") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.CreateV1PageReact") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/comments/{tenantId}/{commentId}" + localVarPath := localBasePath + "/page-reacts/v1/likes/{tenantId}" localVarPath = strings.Replace(localVarPath, "{"+"tenantId"+"}", url.PathEscape(parameterValueToString(r.tenantId, "tenantId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.broadcastId == nil { - return localVarReturnValue, nil, reportError("broadcastId is required and must be specified") + if r.urlId == nil { + return localVarReturnValue, nil, reportError("urlId is required and must be specified") } - parameterAddToHeaderOrQuery(localVarQueryParams, "broadcastId", r.broadcastId, "form", "") - if r.editKey != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "editKey", r.editKey, "form", "") - } - if r.sso != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + parameterAddToHeaderOrQuery(localVarQueryParams, "urlId", r.urlId, "form", "") + if r.title != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "title", r.title, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -681,6 +700,14 @@ func (a *PublicAPIService) DeleteCommentPublicExecute(r ApiDeleteCommentPublicRe body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -696,80 +723,66 @@ func (a *PublicAPIService) DeleteCommentPublicExecute(r ApiDeleteCommentPublicRe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDeleteCommentVoteRequest struct { +type ApiCreateV2PageReactRequest struct { ctx context.Context ApiService *PublicAPIService tenantId string - commentId string - voteId string urlId *string - broadcastId *string - editKey *string - sso *string + id *string + title *string } -func (r ApiDeleteCommentVoteRequest) UrlId(urlId string) ApiDeleteCommentVoteRequest { +func (r ApiCreateV2PageReactRequest) UrlId(urlId string) ApiCreateV2PageReactRequest { r.urlId = &urlId return r } -func (r ApiDeleteCommentVoteRequest) BroadcastId(broadcastId string) ApiDeleteCommentVoteRequest { - r.broadcastId = &broadcastId - return r -} - -func (r ApiDeleteCommentVoteRequest) EditKey(editKey string) ApiDeleteCommentVoteRequest { - r.editKey = &editKey +func (r ApiCreateV2PageReactRequest) Id(id string) ApiCreateV2PageReactRequest { + r.id = &id return r } -func (r ApiDeleteCommentVoteRequest) Sso(sso string) ApiDeleteCommentVoteRequest { - r.sso = &sso +func (r ApiCreateV2PageReactRequest) Title(title string) ApiCreateV2PageReactRequest { + r.title = &title return r } -func (r ApiDeleteCommentVoteRequest) Execute() (*DeleteCommentVote200Response, *http.Response, error) { - return r.ApiService.DeleteCommentVoteExecute(r) +func (r ApiCreateV2PageReactRequest) Execute() (*CreateV1PageReact, *http.Response, error) { + return r.ApiService.CreateV2PageReactExecute(r) } /* -DeleteCommentVote Method for DeleteCommentVote +CreateV2PageReact Method for CreateV2PageReact @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param tenantId - @param commentId - @param voteId - @return ApiDeleteCommentVoteRequest + @return ApiCreateV2PageReactRequest */ -func (a *PublicAPIService) DeleteCommentVote(ctx context.Context, tenantId string, commentId string, voteId string) ApiDeleteCommentVoteRequest { - return ApiDeleteCommentVoteRequest{ +func (a *PublicAPIService) CreateV2PageReact(ctx context.Context, tenantId string) ApiCreateV2PageReactRequest { + return ApiCreateV2PageReactRequest{ ApiService: a, ctx: ctx, tenantId: tenantId, - commentId: commentId, - voteId: voteId, } } // Execute executes the request -// @return DeleteCommentVote200Response -func (a *PublicAPIService) DeleteCommentVoteExecute(r ApiDeleteCommentVoteRequest) (*DeleteCommentVote200Response, *http.Response, error) { +// @return CreateV1PageReact +func (a *PublicAPIService) CreateV2PageReactExecute(r ApiCreateV2PageReactRequest) (*CreateV1PageReact, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *DeleteCommentVote200Response + localVarReturnValue *CreateV1PageReact ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.DeleteCommentVote") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.CreateV2PageReact") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/comments/{tenantId}/{commentId}/vote/{voteId}" + localVarPath := localBasePath + "/page-reacts/v2/{tenantId}" localVarPath = strings.Replace(localVarPath, "{"+"tenantId"+"}", url.PathEscape(parameterValueToString(r.tenantId, "tenantId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"voteId"+"}", url.PathEscape(parameterValueToString(r.voteId, "voteId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -777,17 +790,14 @@ func (a *PublicAPIService) DeleteCommentVoteExecute(r ApiDeleteCommentVoteReques if r.urlId == nil { return localVarReturnValue, nil, reportError("urlId is required and must be specified") } - if r.broadcastId == nil { - return localVarReturnValue, nil, reportError("broadcastId is required and must be specified") + if r.id == nil { + return localVarReturnValue, nil, reportError("id is required and must be specified") } parameterAddToHeaderOrQuery(localVarQueryParams, "urlId", r.urlId, "form", "") - parameterAddToHeaderOrQuery(localVarQueryParams, "broadcastId", r.broadcastId, "form", "") - if r.editKey != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "editKey", r.editKey, "form", "") - } - if r.sso != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "form", "") + if r.title != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "title", r.title, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -828,6 +838,14 @@ func (a *PublicAPIService) DeleteCommentVoteExecute(r ApiDeleteCommentVoteReques body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -843,71 +861,81 @@ func (a *PublicAPIService) DeleteCommentVoteExecute(r ApiDeleteCommentVoteReques return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDeleteFeedPostPublicRequest struct { +type ApiDeleteCommentPublicRequest struct { ctx context.Context ApiService *PublicAPIService tenantId string - postId string + commentId string broadcastId *string + editKey *string sso *string } -func (r ApiDeleteFeedPostPublicRequest) BroadcastId(broadcastId string) ApiDeleteFeedPostPublicRequest { +func (r ApiDeleteCommentPublicRequest) BroadcastId(broadcastId string) ApiDeleteCommentPublicRequest { r.broadcastId = &broadcastId return r } -func (r ApiDeleteFeedPostPublicRequest) Sso(sso string) ApiDeleteFeedPostPublicRequest { +func (r ApiDeleteCommentPublicRequest) EditKey(editKey string) ApiDeleteCommentPublicRequest { + r.editKey = &editKey + return r +} + +func (r ApiDeleteCommentPublicRequest) Sso(sso string) ApiDeleteCommentPublicRequest { r.sso = &sso return r } -func (r ApiDeleteFeedPostPublicRequest) Execute() (*DeleteFeedPostPublic200Response, *http.Response, error) { - return r.ApiService.DeleteFeedPostPublicExecute(r) +func (r ApiDeleteCommentPublicRequest) Execute() (*PublicAPIDeleteCommentResponse, *http.Response, error) { + return r.ApiService.DeleteCommentPublicExecute(r) } /* -DeleteFeedPostPublic Method for DeleteFeedPostPublic +DeleteCommentPublic Method for DeleteCommentPublic @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param tenantId - @param postId - @return ApiDeleteFeedPostPublicRequest + @param commentId + @return ApiDeleteCommentPublicRequest */ -func (a *PublicAPIService) DeleteFeedPostPublic(ctx context.Context, tenantId string, postId string) ApiDeleteFeedPostPublicRequest { - return ApiDeleteFeedPostPublicRequest{ +func (a *PublicAPIService) DeleteCommentPublic(ctx context.Context, tenantId string, commentId string) ApiDeleteCommentPublicRequest { + return ApiDeleteCommentPublicRequest{ ApiService: a, ctx: ctx, tenantId: tenantId, - postId: postId, + commentId: commentId, } } // Execute executes the request -// @return DeleteFeedPostPublic200Response -func (a *PublicAPIService) DeleteFeedPostPublicExecute(r ApiDeleteFeedPostPublicRequest) (*DeleteFeedPostPublic200Response, *http.Response, error) { +// @return PublicAPIDeleteCommentResponse +func (a *PublicAPIService) DeleteCommentPublicExecute(r ApiDeleteCommentPublicRequest) (*PublicAPIDeleteCommentResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile - localVarReturnValue *DeleteFeedPostPublic200Response + localVarReturnValue *PublicAPIDeleteCommentResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.DeleteFeedPostPublic") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.DeleteCommentPublic") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/feed-posts/{tenantId}/{postId}" + localVarPath := localBasePath + "/comments/{tenantId}/{commentId}" localVarPath = strings.Replace(localVarPath, "{"+"tenantId"+"}", url.PathEscape(parameterValueToString(r.tenantId, "tenantId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"postId"+"}", url.PathEscape(parameterValueToString(r.postId, "postId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.broadcastId == nil { + return localVarReturnValue, nil, reportError("broadcastId is required and must be specified") + } - if r.broadcastId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "broadcastId", r.broadcastId, "form", "") + parameterAddToHeaderOrQuery(localVarQueryParams, "broadcastId", r.broadcastId, "form", "") + if r.editKey != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "editKey", r.editKey, "form", "") } if r.sso != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") @@ -951,6 +979,14 @@ func (a *PublicAPIService) DeleteFeedPostPublicExecute(r ApiDeleteFeedPostPublic body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -966,79 +1002,96 @@ func (a *PublicAPIService) DeleteFeedPostPublicExecute(r ApiDeleteFeedPostPublic return localVarReturnValue, localVarHTTPResponse, nil } -type ApiFlagCommentPublicRequest struct { +type ApiDeleteCommentVoteRequest struct { ctx context.Context ApiService *PublicAPIService - tenantId *string + tenantId string commentId string - isFlagged *bool + voteId string + urlId *string + broadcastId *string + editKey *string sso *string } -func (r ApiFlagCommentPublicRequest) TenantId(tenantId string) ApiFlagCommentPublicRequest { - r.tenantId = &tenantId +func (r ApiDeleteCommentVoteRequest) UrlId(urlId string) ApiDeleteCommentVoteRequest { + r.urlId = &urlId return r } -func (r ApiFlagCommentPublicRequest) IsFlagged(isFlagged bool) ApiFlagCommentPublicRequest { - r.isFlagged = &isFlagged +func (r ApiDeleteCommentVoteRequest) BroadcastId(broadcastId string) ApiDeleteCommentVoteRequest { + r.broadcastId = &broadcastId return r } -func (r ApiFlagCommentPublicRequest) Sso(sso string) ApiFlagCommentPublicRequest { +func (r ApiDeleteCommentVoteRequest) EditKey(editKey string) ApiDeleteCommentVoteRequest { + r.editKey = &editKey + return r +} + +func (r ApiDeleteCommentVoteRequest) Sso(sso string) ApiDeleteCommentVoteRequest { r.sso = &sso return r } -func (r ApiFlagCommentPublicRequest) Execute() (*FlagCommentPublic200Response, *http.Response, error) { - return r.ApiService.FlagCommentPublicExecute(r) +func (r ApiDeleteCommentVoteRequest) Execute() (*VoteDeleteResponse, *http.Response, error) { + return r.ApiService.DeleteCommentVoteExecute(r) } /* -FlagCommentPublic Method for FlagCommentPublic +DeleteCommentVote Method for DeleteCommentVote @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param tenantId @param commentId - @return ApiFlagCommentPublicRequest + @param voteId + @return ApiDeleteCommentVoteRequest */ -func (a *PublicAPIService) FlagCommentPublic(ctx context.Context, commentId string) ApiFlagCommentPublicRequest { - return ApiFlagCommentPublicRequest{ +func (a *PublicAPIService) DeleteCommentVote(ctx context.Context, tenantId string, commentId string, voteId string) ApiDeleteCommentVoteRequest { + return ApiDeleteCommentVoteRequest{ ApiService: a, ctx: ctx, + tenantId: tenantId, commentId: commentId, + voteId: voteId, } } // Execute executes the request -// @return FlagCommentPublic200Response -func (a *PublicAPIService) FlagCommentPublicExecute(r ApiFlagCommentPublicRequest) (*FlagCommentPublic200Response, *http.Response, error) { +// @return VoteDeleteResponse +func (a *PublicAPIService) DeleteCommentVoteExecute(r ApiDeleteCommentVoteRequest) (*VoteDeleteResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost + localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile - localVarReturnValue *FlagCommentPublic200Response + localVarReturnValue *VoteDeleteResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.FlagCommentPublic") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.DeleteCommentVote") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/flag-comment/{commentId}" + localVarPath := localBasePath + "/comments/{tenantId}/{commentId}/vote/{voteId}" + localVarPath = strings.Replace(localVarPath, "{"+"tenantId"+"}", url.PathEscape(parameterValueToString(r.tenantId, "tenantId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"voteId"+"}", url.PathEscape(parameterValueToString(r.voteId, "voteId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.tenantId == nil { - return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + if r.urlId == nil { + return localVarReturnValue, nil, reportError("urlId is required and must be specified") } - if r.isFlagged == nil { - return localVarReturnValue, nil, reportError("isFlagged is required and must be specified") + if r.broadcastId == nil { + return localVarReturnValue, nil, reportError("broadcastId is required and must be specified") } - parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") - parameterAddToHeaderOrQuery(localVarQueryParams, "isFlagged", r.isFlagged, "form", "") + parameterAddToHeaderOrQuery(localVarQueryParams, "urlId", r.urlId, "form", "") + parameterAddToHeaderOrQuery(localVarQueryParams, "broadcastId", r.broadcastId, "form", "") + if r.editKey != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "editKey", r.editKey, "form", "") + } if r.sso != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") } @@ -1081,6 +1134,14 @@ func (a *PublicAPIService) FlagCommentPublicExecute(r ApiFlagCommentPublicReques body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1096,71 +1157,71 @@ func (a *PublicAPIService) FlagCommentPublicExecute(r ApiFlagCommentPublicReques return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGetCommentTextRequest struct { +type ApiDeleteFeedPostPublicRequest struct { ctx context.Context ApiService *PublicAPIService tenantId string - commentId string - editKey *string + postId string + broadcastId *string sso *string } -func (r ApiGetCommentTextRequest) EditKey(editKey string) ApiGetCommentTextRequest { - r.editKey = &editKey +func (r ApiDeleteFeedPostPublicRequest) BroadcastId(broadcastId string) ApiDeleteFeedPostPublicRequest { + r.broadcastId = &broadcastId return r } -func (r ApiGetCommentTextRequest) Sso(sso string) ApiGetCommentTextRequest { +func (r ApiDeleteFeedPostPublicRequest) Sso(sso string) ApiDeleteFeedPostPublicRequest { r.sso = &sso return r } -func (r ApiGetCommentTextRequest) Execute() (*GetCommentText200Response, *http.Response, error) { - return r.ApiService.GetCommentTextExecute(r) +func (r ApiDeleteFeedPostPublicRequest) Execute() (*DeleteFeedPostPublicResponse, *http.Response, error) { + return r.ApiService.DeleteFeedPostPublicExecute(r) } /* -GetCommentText Method for GetCommentText +DeleteFeedPostPublic Method for DeleteFeedPostPublic @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param tenantId - @param commentId - @return ApiGetCommentTextRequest + @param postId + @return ApiDeleteFeedPostPublicRequest */ -func (a *PublicAPIService) GetCommentText(ctx context.Context, tenantId string, commentId string) ApiGetCommentTextRequest { - return ApiGetCommentTextRequest{ +func (a *PublicAPIService) DeleteFeedPostPublic(ctx context.Context, tenantId string, postId string) ApiDeleteFeedPostPublicRequest { + return ApiDeleteFeedPostPublicRequest{ ApiService: a, ctx: ctx, tenantId: tenantId, - commentId: commentId, + postId: postId, } } // Execute executes the request -// @return GetCommentText200Response -func (a *PublicAPIService) GetCommentTextExecute(r ApiGetCommentTextRequest) (*GetCommentText200Response, *http.Response, error) { +// @return DeleteFeedPostPublicResponse +func (a *PublicAPIService) DeleteFeedPostPublicExecute(r ApiDeleteFeedPostPublicRequest) (*DeleteFeedPostPublicResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet + localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetCommentText200Response + localVarReturnValue *DeleteFeedPostPublicResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.GetCommentText") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.DeleteFeedPostPublic") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/comments/{tenantId}/{commentId}/text" + localVarPath := localBasePath + "/feed-posts/{tenantId}/{postId}" localVarPath = strings.Replace(localVarPath, "{"+"tenantId"+"}", url.PathEscape(parameterValueToString(r.tenantId, "tenantId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"postId"+"}", url.PathEscape(parameterValueToString(r.postId, "postId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.editKey != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "editKey", r.editKey, "form", "") + if r.broadcastId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "broadcastId", r.broadcastId, "form", "") } if r.sso != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") @@ -1204,6 +1265,14 @@ func (a *PublicAPIService) GetCommentTextExecute(r ApiGetCommentTextRequest) (*G body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1219,76 +1288,63 @@ func (a *PublicAPIService) GetCommentTextExecute(r ApiGetCommentTextRequest) (*G return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGetCommentVoteUserNamesRequest struct { +type ApiDeleteV1PageReactRequest struct { ctx context.Context ApiService *PublicAPIService tenantId string - commentId string - dir *int32 - sso *string -} - -func (r ApiGetCommentVoteUserNamesRequest) Dir(dir int32) ApiGetCommentVoteUserNamesRequest { - r.dir = &dir - return r + urlId *string } -func (r ApiGetCommentVoteUserNamesRequest) Sso(sso string) ApiGetCommentVoteUserNamesRequest { - r.sso = &sso +func (r ApiDeleteV1PageReactRequest) UrlId(urlId string) ApiDeleteV1PageReactRequest { + r.urlId = &urlId return r } -func (r ApiGetCommentVoteUserNamesRequest) Execute() (*GetCommentVoteUserNames200Response, *http.Response, error) { - return r.ApiService.GetCommentVoteUserNamesExecute(r) +func (r ApiDeleteV1PageReactRequest) Execute() (*CreateV1PageReact, *http.Response, error) { + return r.ApiService.DeleteV1PageReactExecute(r) } /* -GetCommentVoteUserNames Method for GetCommentVoteUserNames +DeleteV1PageReact Method for DeleteV1PageReact @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param tenantId - @param commentId - @return ApiGetCommentVoteUserNamesRequest + @return ApiDeleteV1PageReactRequest */ -func (a *PublicAPIService) GetCommentVoteUserNames(ctx context.Context, tenantId string, commentId string) ApiGetCommentVoteUserNamesRequest { - return ApiGetCommentVoteUserNamesRequest{ +func (a *PublicAPIService) DeleteV1PageReact(ctx context.Context, tenantId string) ApiDeleteV1PageReactRequest { + return ApiDeleteV1PageReactRequest{ ApiService: a, ctx: ctx, tenantId: tenantId, - commentId: commentId, } } // Execute executes the request -// @return GetCommentVoteUserNames200Response -func (a *PublicAPIService) GetCommentVoteUserNamesExecute(r ApiGetCommentVoteUserNamesRequest) (*GetCommentVoteUserNames200Response, *http.Response, error) { +// @return CreateV1PageReact +func (a *PublicAPIService) DeleteV1PageReactExecute(r ApiDeleteV1PageReactRequest) (*CreateV1PageReact, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet + localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetCommentVoteUserNames200Response + localVarReturnValue *CreateV1PageReact ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.GetCommentVoteUserNames") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.DeleteV1PageReact") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/comments/{tenantId}/{commentId}/votes" + localVarPath := localBasePath + "/page-reacts/v1/likes/{tenantId}" localVarPath = strings.Replace(localVarPath, "{"+"tenantId"+"}", url.PathEscape(parameterValueToString(r.tenantId, "tenantId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.dir == nil { - return localVarReturnValue, nil, reportError("dir is required and must be specified") + if r.urlId == nil { + return localVarReturnValue, nil, reportError("urlId is required and must be specified") } - parameterAddToHeaderOrQuery(localVarQueryParams, "dir", r.dir, "form", "") - if r.sso != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") - } + parameterAddToHeaderOrQuery(localVarQueryParams, "urlId", r.urlId, "form", "") // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1328,6 +1384,14 @@ func (a *PublicAPIService) GetCommentVoteUserNamesExecute(r ApiGetCommentVoteUse body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1343,192 +1407,37 @@ func (a *PublicAPIService) GetCommentVoteUserNamesExecute(r ApiGetCommentVoteUse return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGetCommentsPublicRequest struct { +type ApiDeleteV2PageReactRequest struct { ctx context.Context ApiService *PublicAPIService tenantId string urlId *string - page *int32 - direction *SortDirections - sso *string - skip *int32 - skipChildren *int32 - limit *int32 - limitChildren *int32 - countChildren *bool - fetchPageForCommentId *string - includeConfig *bool - countAll *bool - includei10n *bool - locale *string - modules *string - isCrawler *bool - includeNotificationCount *bool - asTree *bool - maxTreeDepth *int32 - useFullTranslationIds *bool - parentId *string - searchText *string - hashTags *[]string - userId *string - customConfigStr *string - afterCommentId *string - beforeCommentId *string + id *string } -func (r ApiGetCommentsPublicRequest) UrlId(urlId string) ApiGetCommentsPublicRequest { +func (r ApiDeleteV2PageReactRequest) UrlId(urlId string) ApiDeleteV2PageReactRequest { r.urlId = &urlId return r } -func (r ApiGetCommentsPublicRequest) Page(page int32) ApiGetCommentsPublicRequest { - r.page = &page - return r -} - -func (r ApiGetCommentsPublicRequest) Direction(direction SortDirections) ApiGetCommentsPublicRequest { - r.direction = &direction - return r -} - -func (r ApiGetCommentsPublicRequest) Sso(sso string) ApiGetCommentsPublicRequest { - r.sso = &sso - return r -} - -func (r ApiGetCommentsPublicRequest) Skip(skip int32) ApiGetCommentsPublicRequest { - r.skip = &skip - return r -} - -func (r ApiGetCommentsPublicRequest) SkipChildren(skipChildren int32) ApiGetCommentsPublicRequest { - r.skipChildren = &skipChildren - return r -} - -func (r ApiGetCommentsPublicRequest) Limit(limit int32) ApiGetCommentsPublicRequest { - r.limit = &limit - return r -} - -func (r ApiGetCommentsPublicRequest) LimitChildren(limitChildren int32) ApiGetCommentsPublicRequest { - r.limitChildren = &limitChildren - return r -} - -func (r ApiGetCommentsPublicRequest) CountChildren(countChildren bool) ApiGetCommentsPublicRequest { - r.countChildren = &countChildren - return r -} - -func (r ApiGetCommentsPublicRequest) FetchPageForCommentId(fetchPageForCommentId string) ApiGetCommentsPublicRequest { - r.fetchPageForCommentId = &fetchPageForCommentId - return r -} - -func (r ApiGetCommentsPublicRequest) IncludeConfig(includeConfig bool) ApiGetCommentsPublicRequest { - r.includeConfig = &includeConfig - return r -} - -func (r ApiGetCommentsPublicRequest) CountAll(countAll bool) ApiGetCommentsPublicRequest { - r.countAll = &countAll - return r -} - -func (r ApiGetCommentsPublicRequest) Includei10n(includei10n bool) ApiGetCommentsPublicRequest { - r.includei10n = &includei10n - return r -} - -func (r ApiGetCommentsPublicRequest) Locale(locale string) ApiGetCommentsPublicRequest { - r.locale = &locale - return r -} - -func (r ApiGetCommentsPublicRequest) Modules(modules string) ApiGetCommentsPublicRequest { - r.modules = &modules - return r -} - -func (r ApiGetCommentsPublicRequest) IsCrawler(isCrawler bool) ApiGetCommentsPublicRequest { - r.isCrawler = &isCrawler - return r -} - -func (r ApiGetCommentsPublicRequest) IncludeNotificationCount(includeNotificationCount bool) ApiGetCommentsPublicRequest { - r.includeNotificationCount = &includeNotificationCount - return r -} - -func (r ApiGetCommentsPublicRequest) AsTree(asTree bool) ApiGetCommentsPublicRequest { - r.asTree = &asTree - return r -} - -func (r ApiGetCommentsPublicRequest) MaxTreeDepth(maxTreeDepth int32) ApiGetCommentsPublicRequest { - r.maxTreeDepth = &maxTreeDepth - return r -} - -func (r ApiGetCommentsPublicRequest) UseFullTranslationIds(useFullTranslationIds bool) ApiGetCommentsPublicRequest { - r.useFullTranslationIds = &useFullTranslationIds - return r -} - -func (r ApiGetCommentsPublicRequest) ParentId(parentId string) ApiGetCommentsPublicRequest { - r.parentId = &parentId - return r -} - -func (r ApiGetCommentsPublicRequest) SearchText(searchText string) ApiGetCommentsPublicRequest { - r.searchText = &searchText - return r -} - -func (r ApiGetCommentsPublicRequest) HashTags(hashTags []string) ApiGetCommentsPublicRequest { - r.hashTags = &hashTags - return r -} - -func (r ApiGetCommentsPublicRequest) UserId(userId string) ApiGetCommentsPublicRequest { - r.userId = &userId - return r -} - -func (r ApiGetCommentsPublicRequest) CustomConfigStr(customConfigStr string) ApiGetCommentsPublicRequest { - r.customConfigStr = &customConfigStr - return r -} - -func (r ApiGetCommentsPublicRequest) AfterCommentId(afterCommentId string) ApiGetCommentsPublicRequest { - r.afterCommentId = &afterCommentId - return r -} - -func (r ApiGetCommentsPublicRequest) BeforeCommentId(beforeCommentId string) ApiGetCommentsPublicRequest { - r.beforeCommentId = &beforeCommentId +func (r ApiDeleteV2PageReactRequest) Id(id string) ApiDeleteV2PageReactRequest { + r.id = &id return r } -func (r ApiGetCommentsPublicRequest) Execute() (*GetCommentsPublic200Response, *http.Response, error) { - return r.ApiService.GetCommentsPublicExecute(r) +func (r ApiDeleteV2PageReactRequest) Execute() (*CreateV1PageReact, *http.Response, error) { + return r.ApiService.DeleteV2PageReactExecute(r) } /* -GetCommentsPublic Method for GetCommentsPublic - - -req -tenantId -urlId +DeleteV2PageReact Method for DeleteV2PageReact @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param tenantId - @return ApiGetCommentsPublicRequest + @return ApiDeleteV2PageReactRequest */ -func (a *PublicAPIService) GetCommentsPublic(ctx context.Context, tenantId string) ApiGetCommentsPublicRequest { - return ApiGetCommentsPublicRequest{ +func (a *PublicAPIService) DeleteV2PageReact(ctx context.Context, tenantId string) ApiDeleteV2PageReactRequest { + return ApiDeleteV2PageReactRequest{ ApiService: a, ctx: ctx, tenantId: tenantId, @@ -1536,21 +1445,21 @@ func (a *PublicAPIService) GetCommentsPublic(ctx context.Context, tenantId strin } // Execute executes the request -// @return GetCommentsPublic200Response -func (a *PublicAPIService) GetCommentsPublicExecute(r ApiGetCommentsPublicRequest) (*GetCommentsPublic200Response, *http.Response, error) { +// @return CreateV1PageReact +func (a *PublicAPIService) DeleteV2PageReactExecute(r ApiDeleteV2PageReactRequest) (*CreateV1PageReact, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet + localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetCommentsPublic200Response + localVarReturnValue *CreateV1PageReact ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.GetCommentsPublic") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.DeleteV2PageReact") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/comments/{tenantId}" + localVarPath := localBasePath + "/page-reacts/v2/{tenantId}" localVarPath = strings.Replace(localVarPath, "{"+"tenantId"+"}", url.PathEscape(parameterValueToString(r.tenantId, "tenantId")), -1) localVarHeaderParams := make(map[string]string) @@ -1559,93 +1468,2755 @@ func (a *PublicAPIService) GetCommentsPublicExecute(r ApiGetCommentsPublicReques if r.urlId == nil { return localVarReturnValue, nil, reportError("urlId is required and must be specified") } + if r.id == nil { + return localVarReturnValue, nil, reportError("id is required and must be specified") + } parameterAddToHeaderOrQuery(localVarQueryParams, "urlId", r.urlId, "form", "") - if r.page != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "form", "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType } - if r.direction != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "direction", r.direction, "form", "") + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiFlagCommentPublicRequest struct { + ctx context.Context + ApiService *PublicAPIService + tenantId *string + commentId string + isFlagged *bool + sso *string +} + +func (r ApiFlagCommentPublicRequest) TenantId(tenantId string) ApiFlagCommentPublicRequest { + r.tenantId = &tenantId + return r +} + +func (r ApiFlagCommentPublicRequest) IsFlagged(isFlagged bool) ApiFlagCommentPublicRequest { + r.isFlagged = &isFlagged + return r +} + +func (r ApiFlagCommentPublicRequest) Sso(sso string) ApiFlagCommentPublicRequest { + r.sso = &sso + return r +} + +func (r ApiFlagCommentPublicRequest) Execute() (*APIEmptyResponse, *http.Response, error) { + return r.ApiService.FlagCommentPublicExecute(r) +} + +/* +FlagCommentPublic Method for FlagCommentPublic + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param commentId + @return ApiFlagCommentPublicRequest +*/ +func (a *PublicAPIService) FlagCommentPublic(ctx context.Context, commentId string) ApiFlagCommentPublicRequest { + return ApiFlagCommentPublicRequest{ + ApiService: a, + ctx: ctx, + commentId: commentId, + } +} + +// Execute executes the request +// @return APIEmptyResponse +func (a *PublicAPIService) FlagCommentPublicExecute(r ApiFlagCommentPublicRequest) (*APIEmptyResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *APIEmptyResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.FlagCommentPublic") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/flag-comment/{commentId}" + localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } + if r.isFlagged == nil { + return localVarReturnValue, nil, reportError("isFlagged is required and must be specified") } + + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") + parameterAddToHeaderOrQuery(localVarQueryParams, "isFlagged", r.isFlagged, "form", "") if r.sso != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") } - if r.skip != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "skip", r.skip, "form", "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType } - if r.skipChildren != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "skipChildren", r.skipChildren, "form", "") + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetCommentTextRequest struct { + ctx context.Context + ApiService *PublicAPIService + tenantId string + commentId string + editKey *string + sso *string +} + +func (r ApiGetCommentTextRequest) EditKey(editKey string) ApiGetCommentTextRequest { + r.editKey = &editKey + return r +} + +func (r ApiGetCommentTextRequest) Sso(sso string) ApiGetCommentTextRequest { + r.sso = &sso + return r +} + +func (r ApiGetCommentTextRequest) Execute() (*PublicAPIGetCommentTextResponse, *http.Response, error) { + return r.ApiService.GetCommentTextExecute(r) +} + +/* +GetCommentText Method for GetCommentText + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param tenantId + @param commentId + @return ApiGetCommentTextRequest +*/ +func (a *PublicAPIService) GetCommentText(ctx context.Context, tenantId string, commentId string) ApiGetCommentTextRequest { + return ApiGetCommentTextRequest{ + ApiService: a, + ctx: ctx, + tenantId: tenantId, + commentId: commentId, + } +} + +// Execute executes the request +// @return PublicAPIGetCommentTextResponse +func (a *PublicAPIService) GetCommentTextExecute(r ApiGetCommentTextRequest) (*PublicAPIGetCommentTextResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PublicAPIGetCommentTextResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.GetCommentText") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/comments/{tenantId}/{commentId}/text" + localVarPath = strings.Replace(localVarPath, "{"+"tenantId"+"}", url.PathEscape(parameterValueToString(r.tenantId, "tenantId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.editKey != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "editKey", r.editKey, "form", "") + } + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetCommentVoteUserNamesRequest struct { + ctx context.Context + ApiService *PublicAPIService + tenantId string + commentId string + dir *int32 + sso *string +} + +func (r ApiGetCommentVoteUserNamesRequest) Dir(dir int32) ApiGetCommentVoteUserNamesRequest { + r.dir = &dir + return r +} + +func (r ApiGetCommentVoteUserNamesRequest) Sso(sso string) ApiGetCommentVoteUserNamesRequest { + r.sso = &sso + return r +} + +func (r ApiGetCommentVoteUserNamesRequest) Execute() (*GetCommentVoteUserNamesSuccessResponse, *http.Response, error) { + return r.ApiService.GetCommentVoteUserNamesExecute(r) +} + +/* +GetCommentVoteUserNames Method for GetCommentVoteUserNames + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param tenantId + @param commentId + @return ApiGetCommentVoteUserNamesRequest +*/ +func (a *PublicAPIService) GetCommentVoteUserNames(ctx context.Context, tenantId string, commentId string) ApiGetCommentVoteUserNamesRequest { + return ApiGetCommentVoteUserNamesRequest{ + ApiService: a, + ctx: ctx, + tenantId: tenantId, + commentId: commentId, + } +} + +// Execute executes the request +// @return GetCommentVoteUserNamesSuccessResponse +func (a *PublicAPIService) GetCommentVoteUserNamesExecute(r ApiGetCommentVoteUserNamesRequest) (*GetCommentVoteUserNamesSuccessResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetCommentVoteUserNamesSuccessResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.GetCommentVoteUserNames") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/comments/{tenantId}/{commentId}/votes" + localVarPath = strings.Replace(localVarPath, "{"+"tenantId"+"}", url.PathEscape(parameterValueToString(r.tenantId, "tenantId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.dir == nil { + return localVarReturnValue, nil, reportError("dir is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "dir", r.dir, "form", "") + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetCommentsForUserRequest struct { + ctx context.Context + ApiService *PublicAPIService + userId *string + direction *SortDirections + repliesToUserId *string + page *float64 + includei10n *bool + locale *string + isCrawler *bool +} + +func (r ApiGetCommentsForUserRequest) UserId(userId string) ApiGetCommentsForUserRequest { + r.userId = &userId + return r +} + +func (r ApiGetCommentsForUserRequest) Direction(direction SortDirections) ApiGetCommentsForUserRequest { + r.direction = &direction + return r +} + +func (r ApiGetCommentsForUserRequest) RepliesToUserId(repliesToUserId string) ApiGetCommentsForUserRequest { + r.repliesToUserId = &repliesToUserId + return r +} + +func (r ApiGetCommentsForUserRequest) Page(page float64) ApiGetCommentsForUserRequest { + r.page = &page + return r +} + +func (r ApiGetCommentsForUserRequest) Includei10n(includei10n bool) ApiGetCommentsForUserRequest { + r.includei10n = &includei10n + return r +} + +func (r ApiGetCommentsForUserRequest) Locale(locale string) ApiGetCommentsForUserRequest { + r.locale = &locale + return r +} + +func (r ApiGetCommentsForUserRequest) IsCrawler(isCrawler bool) ApiGetCommentsForUserRequest { + r.isCrawler = &isCrawler + return r +} + +func (r ApiGetCommentsForUserRequest) Execute() (*GetCommentsForUserResponse, *http.Response, error) { + return r.ApiService.GetCommentsForUserExecute(r) +} + +/* +GetCommentsForUser Method for GetCommentsForUser + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetCommentsForUserRequest +*/ +func (a *PublicAPIService) GetCommentsForUser(ctx context.Context) ApiGetCommentsForUserRequest { + return ApiGetCommentsForUserRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return GetCommentsForUserResponse +func (a *PublicAPIService) GetCommentsForUserExecute(r ApiGetCommentsForUserRequest) (*GetCommentsForUserResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetCommentsForUserResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.GetCommentsForUser") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/comments-for-user" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.userId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "userId", r.userId, "form", "") + } + if r.direction != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "direction", r.direction, "form", "") + } + if r.repliesToUserId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "repliesToUserId", r.repliesToUserId, "form", "") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.includei10n != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "includei10n", r.includei10n, "form", "") + } + if r.locale != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "locale", r.locale, "form", "") + } + if r.isCrawler != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "isCrawler", r.isCrawler, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetCommentsPublicRequest struct { + ctx context.Context + ApiService *PublicAPIService + tenantId string + urlId *string + page *int32 + direction *SortDirections + sso *string + skip *int32 + skipChildren *int32 + limit *int32 + limitChildren *int32 + countChildren *bool + fetchPageForCommentId *string + includeConfig *bool + countAll *bool + includei10n *bool + locale *string + modules *string + isCrawler *bool + includeNotificationCount *bool + asTree *bool + maxTreeDepth *int32 + useFullTranslationIds *bool + parentId *string + searchText *string + hashTags *[]string + userId *string + customConfigStr *string + afterCommentId *string + beforeCommentId *string +} + +func (r ApiGetCommentsPublicRequest) UrlId(urlId string) ApiGetCommentsPublicRequest { + r.urlId = &urlId + return r +} + +func (r ApiGetCommentsPublicRequest) Page(page int32) ApiGetCommentsPublicRequest { + r.page = &page + return r +} + +func (r ApiGetCommentsPublicRequest) Direction(direction SortDirections) ApiGetCommentsPublicRequest { + r.direction = &direction + return r +} + +func (r ApiGetCommentsPublicRequest) Sso(sso string) ApiGetCommentsPublicRequest { + r.sso = &sso + return r +} + +func (r ApiGetCommentsPublicRequest) Skip(skip int32) ApiGetCommentsPublicRequest { + r.skip = &skip + return r +} + +func (r ApiGetCommentsPublicRequest) SkipChildren(skipChildren int32) ApiGetCommentsPublicRequest { + r.skipChildren = &skipChildren + return r +} + +func (r ApiGetCommentsPublicRequest) Limit(limit int32) ApiGetCommentsPublicRequest { + r.limit = &limit + return r +} + +func (r ApiGetCommentsPublicRequest) LimitChildren(limitChildren int32) ApiGetCommentsPublicRequest { + r.limitChildren = &limitChildren + return r +} + +func (r ApiGetCommentsPublicRequest) CountChildren(countChildren bool) ApiGetCommentsPublicRequest { + r.countChildren = &countChildren + return r +} + +func (r ApiGetCommentsPublicRequest) FetchPageForCommentId(fetchPageForCommentId string) ApiGetCommentsPublicRequest { + r.fetchPageForCommentId = &fetchPageForCommentId + return r +} + +func (r ApiGetCommentsPublicRequest) IncludeConfig(includeConfig bool) ApiGetCommentsPublicRequest { + r.includeConfig = &includeConfig + return r +} + +func (r ApiGetCommentsPublicRequest) CountAll(countAll bool) ApiGetCommentsPublicRequest { + r.countAll = &countAll + return r +} + +func (r ApiGetCommentsPublicRequest) Includei10n(includei10n bool) ApiGetCommentsPublicRequest { + r.includei10n = &includei10n + return r +} + +func (r ApiGetCommentsPublicRequest) Locale(locale string) ApiGetCommentsPublicRequest { + r.locale = &locale + return r +} + +func (r ApiGetCommentsPublicRequest) Modules(modules string) ApiGetCommentsPublicRequest { + r.modules = &modules + return r +} + +func (r ApiGetCommentsPublicRequest) IsCrawler(isCrawler bool) ApiGetCommentsPublicRequest { + r.isCrawler = &isCrawler + return r +} + +func (r ApiGetCommentsPublicRequest) IncludeNotificationCount(includeNotificationCount bool) ApiGetCommentsPublicRequest { + r.includeNotificationCount = &includeNotificationCount + return r +} + +func (r ApiGetCommentsPublicRequest) AsTree(asTree bool) ApiGetCommentsPublicRequest { + r.asTree = &asTree + return r +} + +func (r ApiGetCommentsPublicRequest) MaxTreeDepth(maxTreeDepth int32) ApiGetCommentsPublicRequest { + r.maxTreeDepth = &maxTreeDepth + return r +} + +func (r ApiGetCommentsPublicRequest) UseFullTranslationIds(useFullTranslationIds bool) ApiGetCommentsPublicRequest { + r.useFullTranslationIds = &useFullTranslationIds + return r +} + +func (r ApiGetCommentsPublicRequest) ParentId(parentId string) ApiGetCommentsPublicRequest { + r.parentId = &parentId + return r +} + +func (r ApiGetCommentsPublicRequest) SearchText(searchText string) ApiGetCommentsPublicRequest { + r.searchText = &searchText + return r +} + +func (r ApiGetCommentsPublicRequest) HashTags(hashTags []string) ApiGetCommentsPublicRequest { + r.hashTags = &hashTags + return r +} + +func (r ApiGetCommentsPublicRequest) UserId(userId string) ApiGetCommentsPublicRequest { + r.userId = &userId + return r +} + +func (r ApiGetCommentsPublicRequest) CustomConfigStr(customConfigStr string) ApiGetCommentsPublicRequest { + r.customConfigStr = &customConfigStr + return r +} + +func (r ApiGetCommentsPublicRequest) AfterCommentId(afterCommentId string) ApiGetCommentsPublicRequest { + r.afterCommentId = &afterCommentId + return r +} + +func (r ApiGetCommentsPublicRequest) BeforeCommentId(beforeCommentId string) ApiGetCommentsPublicRequest { + r.beforeCommentId = &beforeCommentId + return r +} + +func (r ApiGetCommentsPublicRequest) Execute() (*GetCommentsResponseWithPresencePublicComment, *http.Response, error) { + return r.ApiService.GetCommentsPublicExecute(r) +} + +/* +GetCommentsPublic Method for GetCommentsPublic + + +req +tenantId +urlId + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param tenantId + @return ApiGetCommentsPublicRequest +*/ +func (a *PublicAPIService) GetCommentsPublic(ctx context.Context, tenantId string) ApiGetCommentsPublicRequest { + return ApiGetCommentsPublicRequest{ + ApiService: a, + ctx: ctx, + tenantId: tenantId, + } +} + +// Execute executes the request +// @return GetCommentsResponseWithPresencePublicComment +func (a *PublicAPIService) GetCommentsPublicExecute(r ApiGetCommentsPublicRequest) (*GetCommentsResponseWithPresencePublicComment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetCommentsResponseWithPresencePublicComment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.GetCommentsPublic") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/comments/{tenantId}" + localVarPath = strings.Replace(localVarPath, "{"+"tenantId"+"}", url.PathEscape(parameterValueToString(r.tenantId, "tenantId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.urlId == nil { + return localVarReturnValue, nil, reportError("urlId is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "urlId", r.urlId, "form", "") + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.direction != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "direction", r.direction, "form", "") + } + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + if r.skip != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "skip", r.skip, "form", "") + } + if r.skipChildren != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "skipChildren", r.skipChildren, "form", "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + if r.limitChildren != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limitChildren", r.limitChildren, "form", "") + } + if r.countChildren != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "countChildren", r.countChildren, "form", "") + } + if r.fetchPageForCommentId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "fetchPageForCommentId", r.fetchPageForCommentId, "form", "") + } + if r.includeConfig != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "includeConfig", r.includeConfig, "form", "") + } + if r.countAll != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "countAll", r.countAll, "form", "") + } + if r.includei10n != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "includei10n", r.includei10n, "form", "") + } + if r.locale != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "locale", r.locale, "form", "") + } + if r.modules != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modules", r.modules, "form", "") + } + if r.isCrawler != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "isCrawler", r.isCrawler, "form", "") + } + if r.includeNotificationCount != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "includeNotificationCount", r.includeNotificationCount, "form", "") + } + if r.asTree != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "asTree", r.asTree, "form", "") + } + if r.maxTreeDepth != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "maxTreeDepth", r.maxTreeDepth, "form", "") + } + if r.useFullTranslationIds != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "useFullTranslationIds", r.useFullTranslationIds, "form", "") + } + if r.parentId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "parentId", r.parentId, "form", "") + } + if r.searchText != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "searchText", r.searchText, "form", "") + } + if r.hashTags != nil { + t := *r.hashTags + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "hashTags", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "hashTags", t, "form", "multi") + } + } + if r.userId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "userId", r.userId, "form", "") + } + if r.customConfigStr != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "customConfigStr", r.customConfigStr, "form", "") + } + if r.afterCommentId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "afterCommentId", r.afterCommentId, "form", "") + } + if r.beforeCommentId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "beforeCommentId", r.beforeCommentId, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetEventLogRequest struct { + ctx context.Context + ApiService *PublicAPIService + tenantId string + urlId *string + userIdWS *string + startTime *int64 + endTime *int64 +} + +func (r ApiGetEventLogRequest) UrlId(urlId string) ApiGetEventLogRequest { + r.urlId = &urlId + return r +} + +func (r ApiGetEventLogRequest) UserIdWS(userIdWS string) ApiGetEventLogRequest { + r.userIdWS = &userIdWS + return r +} + +func (r ApiGetEventLogRequest) StartTime(startTime int64) ApiGetEventLogRequest { + r.startTime = &startTime + return r +} + +func (r ApiGetEventLogRequest) EndTime(endTime int64) ApiGetEventLogRequest { + r.endTime = &endTime + return r +} + +func (r ApiGetEventLogRequest) Execute() (*GetEventLogResponse, *http.Response, error) { + return r.ApiService.GetEventLogExecute(r) +} + +/* +GetEventLog Method for GetEventLog + + +req +tenantId +urlId +userIdWS + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param tenantId + @return ApiGetEventLogRequest +*/ +func (a *PublicAPIService) GetEventLog(ctx context.Context, tenantId string) ApiGetEventLogRequest { + return ApiGetEventLogRequest{ + ApiService: a, + ctx: ctx, + tenantId: tenantId, + } +} + +// Execute executes the request +// @return GetEventLogResponse +func (a *PublicAPIService) GetEventLogExecute(r ApiGetEventLogRequest) (*GetEventLogResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetEventLogResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.GetEventLog") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/event-log/{tenantId}" + localVarPath = strings.Replace(localVarPath, "{"+"tenantId"+"}", url.PathEscape(parameterValueToString(r.tenantId, "tenantId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.urlId == nil { + return localVarReturnValue, nil, reportError("urlId is required and must be specified") + } + if r.userIdWS == nil { + return localVarReturnValue, nil, reportError("userIdWS is required and must be specified") + } + if r.startTime == nil { + return localVarReturnValue, nil, reportError("startTime is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "urlId", r.urlId, "form", "") + parameterAddToHeaderOrQuery(localVarQueryParams, "userIdWS", r.userIdWS, "form", "") + parameterAddToHeaderOrQuery(localVarQueryParams, "startTime", r.startTime, "form", "") + if r.endTime != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "endTime", r.endTime, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetFeedPostsPublicRequest struct { + ctx context.Context + ApiService *PublicAPIService + tenantId string + afterId *string + limit *int32 + tags *[]string + sso *string + isCrawler *bool + includeUserInfo *bool +} + +func (r ApiGetFeedPostsPublicRequest) AfterId(afterId string) ApiGetFeedPostsPublicRequest { + r.afterId = &afterId + return r +} + +func (r ApiGetFeedPostsPublicRequest) Limit(limit int32) ApiGetFeedPostsPublicRequest { + r.limit = &limit + return r +} + +func (r ApiGetFeedPostsPublicRequest) Tags(tags []string) ApiGetFeedPostsPublicRequest { + r.tags = &tags + return r +} + +func (r ApiGetFeedPostsPublicRequest) Sso(sso string) ApiGetFeedPostsPublicRequest { + r.sso = &sso + return r +} + +func (r ApiGetFeedPostsPublicRequest) IsCrawler(isCrawler bool) ApiGetFeedPostsPublicRequest { + r.isCrawler = &isCrawler + return r +} + +func (r ApiGetFeedPostsPublicRequest) IncludeUserInfo(includeUserInfo bool) ApiGetFeedPostsPublicRequest { + r.includeUserInfo = &includeUserInfo + return r +} + +func (r ApiGetFeedPostsPublicRequest) Execute() (*PublicFeedPostsResponse, *http.Response, error) { + return r.ApiService.GetFeedPostsPublicExecute(r) +} + +/* +GetFeedPostsPublic Method for GetFeedPostsPublic + + +req +tenantId +afterId + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param tenantId + @return ApiGetFeedPostsPublicRequest +*/ +func (a *PublicAPIService) GetFeedPostsPublic(ctx context.Context, tenantId string) ApiGetFeedPostsPublicRequest { + return ApiGetFeedPostsPublicRequest{ + ApiService: a, + ctx: ctx, + tenantId: tenantId, + } +} + +// Execute executes the request +// @return PublicFeedPostsResponse +func (a *PublicAPIService) GetFeedPostsPublicExecute(r ApiGetFeedPostsPublicRequest) (*PublicFeedPostsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PublicFeedPostsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.GetFeedPostsPublic") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/feed-posts/{tenantId}" + localVarPath = strings.Replace(localVarPath, "{"+"tenantId"+"}", url.PathEscape(parameterValueToString(r.tenantId, "tenantId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.afterId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "afterId", r.afterId, "form", "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + if r.tags != nil { + t := *r.tags + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", t, "form", "multi") + } + } + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + if r.isCrawler != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "isCrawler", r.isCrawler, "form", "") + } + if r.includeUserInfo != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "includeUserInfo", r.includeUserInfo, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetFeedPostsStatsRequest struct { + ctx context.Context + ApiService *PublicAPIService + tenantId string + postIds *[]string + sso *string +} + +func (r ApiGetFeedPostsStatsRequest) PostIds(postIds []string) ApiGetFeedPostsStatsRequest { + r.postIds = &postIds + return r +} + +func (r ApiGetFeedPostsStatsRequest) Sso(sso string) ApiGetFeedPostsStatsRequest { + r.sso = &sso + return r +} + +func (r ApiGetFeedPostsStatsRequest) Execute() (*FeedPostsStatsResponse, *http.Response, error) { + return r.ApiService.GetFeedPostsStatsExecute(r) +} + +/* +GetFeedPostsStats Method for GetFeedPostsStats + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param tenantId + @return ApiGetFeedPostsStatsRequest +*/ +func (a *PublicAPIService) GetFeedPostsStats(ctx context.Context, tenantId string) ApiGetFeedPostsStatsRequest { + return ApiGetFeedPostsStatsRequest{ + ApiService: a, + ctx: ctx, + tenantId: tenantId, + } +} + +// Execute executes the request +// @return FeedPostsStatsResponse +func (a *PublicAPIService) GetFeedPostsStatsExecute(r ApiGetFeedPostsStatsRequest) (*FeedPostsStatsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FeedPostsStatsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.GetFeedPostsStats") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/feed-posts/{tenantId}/stats" + localVarPath = strings.Replace(localVarPath, "{"+"tenantId"+"}", url.PathEscape(parameterValueToString(r.tenantId, "tenantId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.postIds == nil { + return localVarReturnValue, nil, reportError("postIds is required and must be specified") + } + + { + t := *r.postIds + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "postIds", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "postIds", t, "form", "multi") + } + } + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetGifLargeRequest struct { + ctx context.Context + ApiService *PublicAPIService + tenantId string + largeInternalURLSanitized *string +} + +func (r ApiGetGifLargeRequest) LargeInternalURLSanitized(largeInternalURLSanitized string) ApiGetGifLargeRequest { + r.largeInternalURLSanitized = &largeInternalURLSanitized + return r +} + +func (r ApiGetGifLargeRequest) Execute() (*GifGetLargeResponse, *http.Response, error) { + return r.ApiService.GetGifLargeExecute(r) +} + +/* +GetGifLarge Method for GetGifLarge + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param tenantId + @return ApiGetGifLargeRequest +*/ +func (a *PublicAPIService) GetGifLarge(ctx context.Context, tenantId string) ApiGetGifLargeRequest { + return ApiGetGifLargeRequest{ + ApiService: a, + ctx: ctx, + tenantId: tenantId, + } +} + +// Execute executes the request +// @return GifGetLargeResponse +func (a *PublicAPIService) GetGifLargeExecute(r ApiGetGifLargeRequest) (*GifGetLargeResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GifGetLargeResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.GetGifLarge") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/gifs/get-large/{tenantId}" + localVarPath = strings.Replace(localVarPath, "{"+"tenantId"+"}", url.PathEscape(parameterValueToString(r.tenantId, "tenantId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.largeInternalURLSanitized == nil { + return localVarReturnValue, nil, reportError("largeInternalURLSanitized is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "largeInternalURLSanitized", r.largeInternalURLSanitized, "form", "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetGifsSearchRequest struct { + ctx context.Context + ApiService *PublicAPIService + tenantId string + search *string + locale *string + rating *string + page *float64 +} + +func (r ApiGetGifsSearchRequest) Search(search string) ApiGetGifsSearchRequest { + r.search = &search + return r +} + +func (r ApiGetGifsSearchRequest) Locale(locale string) ApiGetGifsSearchRequest { + r.locale = &locale + return r +} + +func (r ApiGetGifsSearchRequest) Rating(rating string) ApiGetGifsSearchRequest { + r.rating = &rating + return r +} + +func (r ApiGetGifsSearchRequest) Page(page float64) ApiGetGifsSearchRequest { + r.page = &page + return r +} + +func (r ApiGetGifsSearchRequest) Execute() (*GetGifsSearchResponse, *http.Response, error) { + return r.ApiService.GetGifsSearchExecute(r) +} + +/* +GetGifsSearch Method for GetGifsSearch + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param tenantId + @return ApiGetGifsSearchRequest +*/ +func (a *PublicAPIService) GetGifsSearch(ctx context.Context, tenantId string) ApiGetGifsSearchRequest { + return ApiGetGifsSearchRequest{ + ApiService: a, + ctx: ctx, + tenantId: tenantId, + } +} + +// Execute executes the request +// @return GetGifsSearchResponse +func (a *PublicAPIService) GetGifsSearchExecute(r ApiGetGifsSearchRequest) (*GetGifsSearchResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetGifsSearchResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.GetGifsSearch") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/gifs/search/{tenantId}" + localVarPath = strings.Replace(localVarPath, "{"+"tenantId"+"}", url.PathEscape(parameterValueToString(r.tenantId, "tenantId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.search == nil { + return localVarReturnValue, nil, reportError("search is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") + if r.locale != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "locale", r.locale, "form", "") + } + if r.rating != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "rating", r.rating, "form", "") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetGifsTrendingRequest struct { + ctx context.Context + ApiService *PublicAPIService + tenantId string + locale *string + rating *string + page *float64 +} + +func (r ApiGetGifsTrendingRequest) Locale(locale string) ApiGetGifsTrendingRequest { + r.locale = &locale + return r +} + +func (r ApiGetGifsTrendingRequest) Rating(rating string) ApiGetGifsTrendingRequest { + r.rating = &rating + return r +} + +func (r ApiGetGifsTrendingRequest) Page(page float64) ApiGetGifsTrendingRequest { + r.page = &page + return r +} + +func (r ApiGetGifsTrendingRequest) Execute() (*GetGifsTrendingResponse, *http.Response, error) { + return r.ApiService.GetGifsTrendingExecute(r) +} + +/* +GetGifsTrending Method for GetGifsTrending + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param tenantId + @return ApiGetGifsTrendingRequest +*/ +func (a *PublicAPIService) GetGifsTrending(ctx context.Context, tenantId string) ApiGetGifsTrendingRequest { + return ApiGetGifsTrendingRequest{ + ApiService: a, + ctx: ctx, + tenantId: tenantId, + } +} + +// Execute executes the request +// @return GetGifsTrendingResponse +func (a *PublicAPIService) GetGifsTrendingExecute(r ApiGetGifsTrendingRequest) (*GetGifsTrendingResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetGifsTrendingResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.GetGifsTrending") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/gifs/trending/{tenantId}" + localVarPath = strings.Replace(localVarPath, "{"+"tenantId"+"}", url.PathEscape(parameterValueToString(r.tenantId, "tenantId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.locale != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "locale", r.locale, "form", "") + } + if r.rating != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "rating", r.rating, "form", "") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetGlobalEventLogRequest struct { + ctx context.Context + ApiService *PublicAPIService + tenantId string + urlId *string + userIdWS *string + startTime *int64 + endTime *int64 +} + +func (r ApiGetGlobalEventLogRequest) UrlId(urlId string) ApiGetGlobalEventLogRequest { + r.urlId = &urlId + return r +} + +func (r ApiGetGlobalEventLogRequest) UserIdWS(userIdWS string) ApiGetGlobalEventLogRequest { + r.userIdWS = &userIdWS + return r +} + +func (r ApiGetGlobalEventLogRequest) StartTime(startTime int64) ApiGetGlobalEventLogRequest { + r.startTime = &startTime + return r +} + +func (r ApiGetGlobalEventLogRequest) EndTime(endTime int64) ApiGetGlobalEventLogRequest { + r.endTime = &endTime + return r +} + +func (r ApiGetGlobalEventLogRequest) Execute() (*GetEventLogResponse, *http.Response, error) { + return r.ApiService.GetGlobalEventLogExecute(r) +} + +/* +GetGlobalEventLog Method for GetGlobalEventLog + + +req +tenantId +urlId +userIdWS + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param tenantId + @return ApiGetGlobalEventLogRequest +*/ +func (a *PublicAPIService) GetGlobalEventLog(ctx context.Context, tenantId string) ApiGetGlobalEventLogRequest { + return ApiGetGlobalEventLogRequest{ + ApiService: a, + ctx: ctx, + tenantId: tenantId, + } +} + +// Execute executes the request +// @return GetEventLogResponse +func (a *PublicAPIService) GetGlobalEventLogExecute(r ApiGetGlobalEventLogRequest) (*GetEventLogResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetEventLogResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.GetGlobalEventLog") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/event-log/global/{tenantId}" + localVarPath = strings.Replace(localVarPath, "{"+"tenantId"+"}", url.PathEscape(parameterValueToString(r.tenantId, "tenantId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.urlId == nil { + return localVarReturnValue, nil, reportError("urlId is required and must be specified") + } + if r.userIdWS == nil { + return localVarReturnValue, nil, reportError("userIdWS is required and must be specified") + } + if r.startTime == nil { + return localVarReturnValue, nil, reportError("startTime is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "urlId", r.urlId, "form", "") + parameterAddToHeaderOrQuery(localVarQueryParams, "userIdWS", r.userIdWS, "form", "") + parameterAddToHeaderOrQuery(localVarQueryParams, "startTime", r.startTime, "form", "") + if r.endTime != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "endTime", r.endTime, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetOfflineUsersRequest struct { + ctx context.Context + ApiService *PublicAPIService + tenantId string + urlId *string + afterName *string + afterUserId *string +} + +// Page URL identifier (cleaned server-side). +func (r ApiGetOfflineUsersRequest) UrlId(urlId string) ApiGetOfflineUsersRequest { + r.urlId = &urlId + return r +} + +// Cursor: pass nextAfterName from the previous response. +func (r ApiGetOfflineUsersRequest) AfterName(afterName string) ApiGetOfflineUsersRequest { + r.afterName = &afterName + return r +} + +// Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. +func (r ApiGetOfflineUsersRequest) AfterUserId(afterUserId string) ApiGetOfflineUsersRequest { + r.afterUserId = &afterUserId + return r +} + +func (r ApiGetOfflineUsersRequest) Execute() (*PageUsersOfflineResponse, *http.Response, error) { + return r.ApiService.GetOfflineUsersExecute(r) +} + +/* +GetOfflineUsers Method for GetOfflineUsers + +Past commenters on the page who are NOT currently online. Sorted by displayName. +Use this after exhausting /users/online to render a "Members" section. +Cursor pagination on commenterName: server walks the partial {tenantId, urlId, commenterName} +index from afterName forward via $gt, no $skip cost. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param tenantId + @return ApiGetOfflineUsersRequest +*/ +func (a *PublicAPIService) GetOfflineUsers(ctx context.Context, tenantId string) ApiGetOfflineUsersRequest { + return ApiGetOfflineUsersRequest{ + ApiService: a, + ctx: ctx, + tenantId: tenantId, + } +} + +// Execute executes the request +// @return PageUsersOfflineResponse +func (a *PublicAPIService) GetOfflineUsersExecute(r ApiGetOfflineUsersRequest) (*PageUsersOfflineResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PageUsersOfflineResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.GetOfflineUsers") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/pages/{tenantId}/users/offline" + localVarPath = strings.Replace(localVarPath, "{"+"tenantId"+"}", url.PathEscape(parameterValueToString(r.tenantId, "tenantId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.urlId == nil { + return localVarReturnValue, nil, reportError("urlId is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "urlId", r.urlId, "form", "") + if r.afterName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "afterName", r.afterName, "form", "") + } + if r.afterUserId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "afterUserId", r.afterUserId, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 403 { + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 422 { + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetOnlineUsersRequest struct { + ctx context.Context + ApiService *PublicAPIService + tenantId string + urlId *string + afterName *string + afterUserId *string +} + +// Page URL identifier (cleaned server-side). +func (r ApiGetOnlineUsersRequest) UrlId(urlId string) ApiGetOnlineUsersRequest { + r.urlId = &urlId + return r +} + +// Cursor: pass nextAfterName from the previous response. +func (r ApiGetOnlineUsersRequest) AfterName(afterName string) ApiGetOnlineUsersRequest { + r.afterName = &afterName + return r +} + +// Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. +func (r ApiGetOnlineUsersRequest) AfterUserId(afterUserId string) ApiGetOnlineUsersRequest { + r.afterUserId = &afterUserId + return r +} + +func (r ApiGetOnlineUsersRequest) Execute() (*PageUsersOnlineResponse, *http.Response, error) { + return r.ApiService.GetOnlineUsersExecute(r) +} + +/* +GetOnlineUsers Method for GetOnlineUsers + +Currently-online viewers of a page: people whose websocket session is subscribed to the page right now. +Returns anonCount + totalCount (room-wide subscribers, including anon viewers we don't enumerate). + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param tenantId + @return ApiGetOnlineUsersRequest +*/ +func (a *PublicAPIService) GetOnlineUsers(ctx context.Context, tenantId string) ApiGetOnlineUsersRequest { + return ApiGetOnlineUsersRequest{ + ApiService: a, + ctx: ctx, + tenantId: tenantId, + } +} + +// Execute executes the request +// @return PageUsersOnlineResponse +func (a *PublicAPIService) GetOnlineUsersExecute(r ApiGetOnlineUsersRequest) (*PageUsersOnlineResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PageUsersOnlineResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.GetOnlineUsers") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/pages/{tenantId}/users/online" + localVarPath = strings.Replace(localVarPath, "{"+"tenantId"+"}", url.PathEscape(parameterValueToString(r.tenantId, "tenantId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.urlId == nil { + return localVarReturnValue, nil, reportError("urlId is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "urlId", r.urlId, "form", "") + if r.afterName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "afterName", r.afterName, "form", "") + } + if r.afterUserId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "afterUserId", r.afterUserId, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 403 { + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 422 { + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetPagesPublicRequest struct { + ctx context.Context + ApiService *PublicAPIService + tenantId string + cursor *string + limit *int32 + q *string + sortBy *PagesSortBy + hasComments *bool +} + +// Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`. +func (r ApiGetPagesPublicRequest) Cursor(cursor string) ApiGetPagesPublicRequest { + r.cursor = &cursor + return r +} + +// 1..200, default 50 +func (r ApiGetPagesPublicRequest) Limit(limit int32) ApiGetPagesPublicRequest { + r.limit = &limit + return r +} + +// Optional case-insensitive title prefix filter. +func (r ApiGetPagesPublicRequest) Q(q string) ApiGetPagesPublicRequest { + r.q = &q + return r +} + +// Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). +func (r ApiGetPagesPublicRequest) SortBy(sortBy PagesSortBy) ApiGetPagesPublicRequest { + r.sortBy = &sortBy + return r +} + +// If true, only return pages with at least one comment. +func (r ApiGetPagesPublicRequest) HasComments(hasComments bool) ApiGetPagesPublicRequest { + r.hasComments = &hasComments + return r +} + +func (r ApiGetPagesPublicRequest) Execute() (*GetPublicPagesResponse, *http.Response, error) { + return r.ApiService.GetPagesPublicExecute(r) +} + +/* +GetPagesPublic Method for GetPagesPublic + +List pages for a tenant. Used by the FChat desktop client to populate its room list. +Requires `enableFChat` to be true on the resolved custom config for each page. +Pages that require SSO are filtered against the requesting user's group access. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param tenantId + @return ApiGetPagesPublicRequest +*/ +func (a *PublicAPIService) GetPagesPublic(ctx context.Context, tenantId string) ApiGetPagesPublicRequest { + return ApiGetPagesPublicRequest{ + ApiService: a, + ctx: ctx, + tenantId: tenantId, + } +} + +// Execute executes the request +// @return GetPublicPagesResponse +func (a *PublicAPIService) GetPagesPublicExecute(r ApiGetPagesPublicRequest) (*GetPublicPagesResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetPublicPagesResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.GetPagesPublic") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/pages/{tenantId}" + localVarPath = strings.Replace(localVarPath, "{"+"tenantId"+"}", url.PathEscape(parameterValueToString(r.tenantId, "tenantId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.cursor != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "form", "") } if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } - if r.limitChildren != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limitChildren", r.limitChildren, "form", "") + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } - if r.countChildren != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "countChildren", r.countChildren, "form", "") + if r.sortBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sortBy", r.sortBy, "form", "") } - if r.fetchPageForCommentId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "fetchPageForCommentId", r.fetchPageForCommentId, "form", "") + if r.hasComments != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "hasComments", r.hasComments, "form", "") } - if r.includeConfig != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "includeConfig", r.includeConfig, "form", "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType } - if r.countAll != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "countAll", r.countAll, "form", "") + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.includei10n != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "includei10n", r.includei10n, "form", "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err } - if r.locale != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "locale", r.locale, "form", "") + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.modules != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modules", r.modules, "form", "") + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.isCrawler != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "isCrawler", r.isCrawler, "form", "") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.includeNotificationCount != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "includeNotificationCount", r.includeNotificationCount, "form", "") + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.asTree != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "asTree", r.asTree, "form", "") + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetTranslationsRequest struct { + ctx context.Context + ApiService *PublicAPIService + namespace string + component string + locale *string + useFullTranslationIds *bool +} + +func (r ApiGetTranslationsRequest) Locale(locale string) ApiGetTranslationsRequest { + r.locale = &locale + return r +} + +func (r ApiGetTranslationsRequest) UseFullTranslationIds(useFullTranslationIds bool) ApiGetTranslationsRequest { + r.useFullTranslationIds = &useFullTranslationIds + return r +} + +func (r ApiGetTranslationsRequest) Execute() (*GetTranslationsResponse, *http.Response, error) { + return r.ApiService.GetTranslationsExecute(r) +} + +/* +GetTranslations Method for GetTranslations + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace + @param component + @return ApiGetTranslationsRequest +*/ +func (a *PublicAPIService) GetTranslations(ctx context.Context, namespace string, component string) ApiGetTranslationsRequest { + return ApiGetTranslationsRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + component: component, } - if r.maxTreeDepth != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "maxTreeDepth", r.maxTreeDepth, "form", "") +} + +// Execute executes the request +// @return GetTranslationsResponse +func (a *PublicAPIService) GetTranslationsExecute(r ApiGetTranslationsRequest) (*GetTranslationsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetTranslationsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.GetTranslations") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/translations/{namespace}/{component}" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterValueToString(r.namespace, "namespace")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"component"+"}", url.PathEscape(parameterValueToString(r.component, "component")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.locale != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "locale", r.locale, "form", "") } if r.useFullTranslationIds != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "useFullTranslationIds", r.useFullTranslationIds, "form", "") } - if r.parentId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "parentId", r.parentId, "form", "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType } - if r.searchText != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "searchText", r.searchText, "form", "") + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.hashTags != nil { - t := *r.hashTags - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "hashTags", s.Index(i).Interface(), "form", "multi") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "hashTags", t, "form", "multi") + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.userId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "userId", r.userId, "form", "") + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.customConfigStr != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "customConfigStr", r.customConfigStr, "form", "") + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetUserNotificationCountRequest struct { + ctx context.Context + ApiService *PublicAPIService + tenantId *string + sso *string +} + +func (r ApiGetUserNotificationCountRequest) TenantId(tenantId string) ApiGetUserNotificationCountRequest { + r.tenantId = &tenantId + return r +} + +func (r ApiGetUserNotificationCountRequest) Sso(sso string) ApiGetUserNotificationCountRequest { + r.sso = &sso + return r +} + +func (r ApiGetUserNotificationCountRequest) Execute() (*GetUserNotificationCountResponse, *http.Response, error) { + return r.ApiService.GetUserNotificationCountExecute(r) +} + +/* +GetUserNotificationCount Method for GetUserNotificationCount + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetUserNotificationCountRequest +*/ +func (a *PublicAPIService) GetUserNotificationCount(ctx context.Context) ApiGetUserNotificationCountRequest { + return ApiGetUserNotificationCountRequest{ + ApiService: a, + ctx: ctx, } - if r.afterCommentId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "afterCommentId", r.afterCommentId, "form", "") +} + +// Execute executes the request +// @return GetUserNotificationCountResponse +func (a *PublicAPIService) GetUserNotificationCountExecute(r ApiGetUserNotificationCountRequest) (*GetUserNotificationCountResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetUserNotificationCountResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.GetUserNotificationCount") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.beforeCommentId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "beforeCommentId", r.beforeCommentId, "form", "") + + localVarPath := localBasePath + "/user-notifications/get-count" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1686,6 +4257,14 @@ func (a *PublicAPIService) GetCommentsPublicExecute(r ApiGetCommentsPublicReques body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1701,99 +4280,159 @@ func (a *PublicAPIService) GetCommentsPublicExecute(r ApiGetCommentsPublicReques return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGetEventLogRequest struct { +type ApiGetUserNotificationsRequest struct { ctx context.Context ApiService *PublicAPIService - tenantId string + tenantId *string urlId *string - userIdWS *string - startTime *int64 - endTime *int64 + pageSize *int32 + afterId *string + includeContext *bool + afterCreatedAt *int64 + unreadOnly *bool + dmOnly *bool + noDm *bool + includeTranslations *bool + includeTenantNotifications *bool + sso *string } -func (r ApiGetEventLogRequest) UrlId(urlId string) ApiGetEventLogRequest { +func (r ApiGetUserNotificationsRequest) TenantId(tenantId string) ApiGetUserNotificationsRequest { + r.tenantId = &tenantId + return r +} + +// Used to determine whether the current page is subscribed. +func (r ApiGetUserNotificationsRequest) UrlId(urlId string) ApiGetUserNotificationsRequest { r.urlId = &urlId return r } -func (r ApiGetEventLogRequest) UserIdWS(userIdWS string) ApiGetEventLogRequest { - r.userIdWS = &userIdWS +func (r ApiGetUserNotificationsRequest) PageSize(pageSize int32) ApiGetUserNotificationsRequest { + r.pageSize = &pageSize return r } -func (r ApiGetEventLogRequest) StartTime(startTime int64) ApiGetEventLogRequest { - r.startTime = &startTime +func (r ApiGetUserNotificationsRequest) AfterId(afterId string) ApiGetUserNotificationsRequest { + r.afterId = &afterId return r } -func (r ApiGetEventLogRequest) EndTime(endTime int64) ApiGetEventLogRequest { - r.endTime = &endTime +func (r ApiGetUserNotificationsRequest) IncludeContext(includeContext bool) ApiGetUserNotificationsRequest { + r.includeContext = &includeContext return r } -func (r ApiGetEventLogRequest) Execute() (*GetEventLog200Response, *http.Response, error) { - return r.ApiService.GetEventLogExecute(r) +func (r ApiGetUserNotificationsRequest) AfterCreatedAt(afterCreatedAt int64) ApiGetUserNotificationsRequest { + r.afterCreatedAt = &afterCreatedAt + return r } -/* -GetEventLog Method for GetEventLog +func (r ApiGetUserNotificationsRequest) UnreadOnly(unreadOnly bool) ApiGetUserNotificationsRequest { + r.unreadOnly = &unreadOnly + return r +} +func (r ApiGetUserNotificationsRequest) DmOnly(dmOnly bool) ApiGetUserNotificationsRequest { + r.dmOnly = &dmOnly + return r +} -req -tenantId -urlId -userIdWS +func (r ApiGetUserNotificationsRequest) NoDm(noDm bool) ApiGetUserNotificationsRequest { + r.noDm = &noDm + return r +} + +func (r ApiGetUserNotificationsRequest) IncludeTranslations(includeTranslations bool) ApiGetUserNotificationsRequest { + r.includeTranslations = &includeTranslations + return r +} + +func (r ApiGetUserNotificationsRequest) IncludeTenantNotifications(includeTenantNotifications bool) ApiGetUserNotificationsRequest { + r.includeTenantNotifications = &includeTenantNotifications + return r +} + +func (r ApiGetUserNotificationsRequest) Sso(sso string) ApiGetUserNotificationsRequest { + r.sso = &sso + return r +} + +func (r ApiGetUserNotificationsRequest) Execute() (*GetMyNotificationsResponse, *http.Response, error) { + return r.ApiService.GetUserNotificationsExecute(r) +} + +/* +GetUserNotifications Method for GetUserNotifications @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param tenantId - @return ApiGetEventLogRequest + @return ApiGetUserNotificationsRequest */ -func (a *PublicAPIService) GetEventLog(ctx context.Context, tenantId string) ApiGetEventLogRequest { - return ApiGetEventLogRequest{ +func (a *PublicAPIService) GetUserNotifications(ctx context.Context) ApiGetUserNotificationsRequest { + return ApiGetUserNotificationsRequest{ ApiService: a, ctx: ctx, - tenantId: tenantId, } } // Execute executes the request -// @return GetEventLog200Response -func (a *PublicAPIService) GetEventLogExecute(r ApiGetEventLogRequest) (*GetEventLog200Response, *http.Response, error) { +// @return GetMyNotificationsResponse +func (a *PublicAPIService) GetUserNotificationsExecute(r ApiGetUserNotificationsRequest) (*GetMyNotificationsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetEventLog200Response + localVarReturnValue *GetMyNotificationsResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.GetEventLog") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.GetUserNotifications") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/event-log/{tenantId}" - localVarPath = strings.Replace(localVarPath, "{"+"tenantId"+"}", url.PathEscape(parameterValueToString(r.tenantId, "tenantId")), -1) + localVarPath := localBasePath + "/user-notifications" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.urlId == nil { - return localVarReturnValue, nil, reportError("urlId is required and must be specified") + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") } - if r.userIdWS == nil { - return localVarReturnValue, nil, reportError("userIdWS is required and must be specified") + + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") + if r.urlId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "urlId", r.urlId, "form", "") } - if r.startTime == nil { - return localVarReturnValue, nil, reportError("startTime is required and must be specified") + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "pageSize", r.pageSize, "form", "") } - if r.endTime == nil { - return localVarReturnValue, nil, reportError("endTime is required and must be specified") + if r.afterId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "afterId", r.afterId, "form", "") + } + if r.includeContext != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "includeContext", r.includeContext, "form", "") + } + if r.afterCreatedAt != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "afterCreatedAt", r.afterCreatedAt, "form", "") + } + if r.unreadOnly != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "unreadOnly", r.unreadOnly, "form", "") + } + if r.dmOnly != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "dmOnly", r.dmOnly, "form", "") + } + if r.noDm != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "noDm", r.noDm, "form", "") + } + if r.includeTranslations != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "includeTranslations", r.includeTranslations, "form", "") + } + if r.includeTenantNotifications != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "includeTenantNotifications", r.includeTenantNotifications, "form", "") + } + if r.sso != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") } - - parameterAddToHeaderOrQuery(localVarQueryParams, "urlId", r.urlId, "form", "") - parameterAddToHeaderOrQuery(localVarQueryParams, "userIdWS", r.userIdWS, "form", "") - parameterAddToHeaderOrQuery(localVarQueryParams, "startTime", r.startTime, "form", "") - parameterAddToHeaderOrQuery(localVarQueryParams, "endTime", r.endTime, "form", "") // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1833,6 +4472,14 @@ func (a *PublicAPIService) GetEventLogExecute(r ApiGetEventLogRequest) (*GetEven body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1848,120 +4495,79 @@ func (a *PublicAPIService) GetEventLogExecute(r ApiGetEventLogRequest) (*GetEven return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGetFeedPostsPublicRequest struct { +type ApiGetUserPresenceStatusesRequest struct { ctx context.Context ApiService *PublicAPIService - tenantId string - afterId *string - limit *int32 - tags *[]string - sso *string - isCrawler *bool - includeUserInfo *bool -} - -func (r ApiGetFeedPostsPublicRequest) AfterId(afterId string) ApiGetFeedPostsPublicRequest { - r.afterId = &afterId - return r -} - -func (r ApiGetFeedPostsPublicRequest) Limit(limit int32) ApiGetFeedPostsPublicRequest { - r.limit = &limit - return r -} - -func (r ApiGetFeedPostsPublicRequest) Tags(tags []string) ApiGetFeedPostsPublicRequest { - r.tags = &tags - return r + tenantId *string + urlIdWS *string + userIds *string } -func (r ApiGetFeedPostsPublicRequest) Sso(sso string) ApiGetFeedPostsPublicRequest { - r.sso = &sso +func (r ApiGetUserPresenceStatusesRequest) TenantId(tenantId string) ApiGetUserPresenceStatusesRequest { + r.tenantId = &tenantId return r } -func (r ApiGetFeedPostsPublicRequest) IsCrawler(isCrawler bool) ApiGetFeedPostsPublicRequest { - r.isCrawler = &isCrawler +func (r ApiGetUserPresenceStatusesRequest) UrlIdWS(urlIdWS string) ApiGetUserPresenceStatusesRequest { + r.urlIdWS = &urlIdWS return r } -func (r ApiGetFeedPostsPublicRequest) IncludeUserInfo(includeUserInfo bool) ApiGetFeedPostsPublicRequest { - r.includeUserInfo = &includeUserInfo +func (r ApiGetUserPresenceStatusesRequest) UserIds(userIds string) ApiGetUserPresenceStatusesRequest { + r.userIds = &userIds return r } -func (r ApiGetFeedPostsPublicRequest) Execute() (*GetFeedPostsPublic200Response, *http.Response, error) { - return r.ApiService.GetFeedPostsPublicExecute(r) +func (r ApiGetUserPresenceStatusesRequest) Execute() (*GetUserPresenceStatusesResponse, *http.Response, error) { + return r.ApiService.GetUserPresenceStatusesExecute(r) } /* -GetFeedPostsPublic Method for GetFeedPostsPublic - - -req -tenantId -afterId +GetUserPresenceStatuses Method for GetUserPresenceStatuses @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param tenantId - @return ApiGetFeedPostsPublicRequest + @return ApiGetUserPresenceStatusesRequest */ -func (a *PublicAPIService) GetFeedPostsPublic(ctx context.Context, tenantId string) ApiGetFeedPostsPublicRequest { - return ApiGetFeedPostsPublicRequest{ +func (a *PublicAPIService) GetUserPresenceStatuses(ctx context.Context) ApiGetUserPresenceStatusesRequest { + return ApiGetUserPresenceStatusesRequest{ ApiService: a, ctx: ctx, - tenantId: tenantId, } } // Execute executes the request -// @return GetFeedPostsPublic200Response -func (a *PublicAPIService) GetFeedPostsPublicExecute(r ApiGetFeedPostsPublicRequest) (*GetFeedPostsPublic200Response, *http.Response, error) { +// @return GetUserPresenceStatusesResponse +func (a *PublicAPIService) GetUserPresenceStatusesExecute(r ApiGetUserPresenceStatusesRequest) (*GetUserPresenceStatusesResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetFeedPostsPublic200Response + localVarReturnValue *GetUserPresenceStatusesResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.GetFeedPostsPublic") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.GetUserPresenceStatuses") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/feed-posts/{tenantId}" - localVarPath = strings.Replace(localVarPath, "{"+"tenantId"+"}", url.PathEscape(parameterValueToString(r.tenantId, "tenantId")), -1) + localVarPath := localBasePath + "/user-presence-status" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - - if r.afterId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "afterId", r.afterId, "form", "") - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") - } - if r.tags != nil { - t := *r.tags - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", s.Index(i).Interface(), "form", "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tags", t, "form", "multi") - } - } - if r.sso != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") } - if r.isCrawler != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "isCrawler", r.isCrawler, "form", "") + if r.urlIdWS == nil { + return localVarReturnValue, nil, reportError("urlIdWS is required and must be specified") } - if r.includeUserInfo != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "includeUserInfo", r.includeUserInfo, "form", "") + if r.userIds == nil { + return localVarReturnValue, nil, reportError("userIds is required and must be specified") } + + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") + parameterAddToHeaderOrQuery(localVarQueryParams, "urlIdWS", r.urlIdWS, "form", "") + parameterAddToHeaderOrQuery(localVarQueryParams, "userIds", r.userIds, "form", "") // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2001,6 +4607,25 @@ func (a *PublicAPIService) GetFeedPostsPublicExecute(r ApiGetFeedPostsPublicRequ body: localVarBody, error: localVarHTTPResponse.Status, } + if localVarHTTPResponse.StatusCode == 422 { + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -2016,7 +4641,7 @@ func (a *PublicAPIService) GetFeedPostsPublicExecute(r ApiGetFeedPostsPublicRequ return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGetFeedPostsStatsRequest struct { +type ApiGetUserReactsPublicRequest struct { ctx context.Context ApiService *PublicAPIService tenantId string @@ -2024,29 +4649,29 @@ type ApiGetFeedPostsStatsRequest struct { sso *string } -func (r ApiGetFeedPostsStatsRequest) PostIds(postIds []string) ApiGetFeedPostsStatsRequest { +func (r ApiGetUserReactsPublicRequest) PostIds(postIds []string) ApiGetUserReactsPublicRequest { r.postIds = &postIds return r } -func (r ApiGetFeedPostsStatsRequest) Sso(sso string) ApiGetFeedPostsStatsRequest { +func (r ApiGetUserReactsPublicRequest) Sso(sso string) ApiGetUserReactsPublicRequest { r.sso = &sso return r } -func (r ApiGetFeedPostsStatsRequest) Execute() (*GetFeedPostsStats200Response, *http.Response, error) { - return r.ApiService.GetFeedPostsStatsExecute(r) +func (r ApiGetUserReactsPublicRequest) Execute() (*UserReactsResponse, *http.Response, error) { + return r.ApiService.GetUserReactsPublicExecute(r) } /* -GetFeedPostsStats Method for GetFeedPostsStats +GetUserReactsPublic Method for GetUserReactsPublic @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param tenantId - @return ApiGetFeedPostsStatsRequest + @return ApiGetUserReactsPublicRequest */ -func (a *PublicAPIService) GetFeedPostsStats(ctx context.Context, tenantId string) ApiGetFeedPostsStatsRequest { - return ApiGetFeedPostsStatsRequest{ +func (a *PublicAPIService) GetUserReactsPublic(ctx context.Context, tenantId string) ApiGetUserReactsPublicRequest { + return ApiGetUserReactsPublicRequest{ ApiService: a, ctx: ctx, tenantId: tenantId, @@ -2054,31 +4679,28 @@ func (a *PublicAPIService) GetFeedPostsStats(ctx context.Context, tenantId strin } // Execute executes the request -// @return GetFeedPostsStats200Response -func (a *PublicAPIService) GetFeedPostsStatsExecute(r ApiGetFeedPostsStatsRequest) (*GetFeedPostsStats200Response, *http.Response, error) { +// @return UserReactsResponse +func (a *PublicAPIService) GetUserReactsPublicExecute(r ApiGetUserReactsPublicRequest) (*UserReactsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetFeedPostsStats200Response + localVarReturnValue *UserReactsResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.GetFeedPostsStats") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.GetUserReactsPublic") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/feed-posts/{tenantId}/stats" + localVarPath := localBasePath + "/feed-posts/{tenantId}/user-reacts" localVarPath = strings.Replace(localVarPath, "{"+"tenantId"+"}", url.PathEscape(parameterValueToString(r.tenantId, "tenantId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.postIds == nil { - return localVarReturnValue, nil, reportError("postIds is required and must be specified") - } - { + if r.postIds != nil { t := *r.postIds if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) @@ -2131,6 +4753,14 @@ func (a *PublicAPIService) GetFeedPostsStatsExecute(r ApiGetFeedPostsStatsReques body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -2146,55 +4776,36 @@ func (a *PublicAPIService) GetFeedPostsStatsExecute(r ApiGetFeedPostsStatsReques return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGetGlobalEventLogRequest struct { +type ApiGetUsersInfoRequest struct { ctx context.Context ApiService *PublicAPIService tenantId string - urlId *string - userIdWS *string - startTime *int64 - endTime *int64 -} - -func (r ApiGetGlobalEventLogRequest) UrlId(urlId string) ApiGetGlobalEventLogRequest { - r.urlId = &urlId - return r -} - -func (r ApiGetGlobalEventLogRequest) UserIdWS(userIdWS string) ApiGetGlobalEventLogRequest { - r.userIdWS = &userIdWS - return r -} - -func (r ApiGetGlobalEventLogRequest) StartTime(startTime int64) ApiGetGlobalEventLogRequest { - r.startTime = &startTime - return r + ids *string } -func (r ApiGetGlobalEventLogRequest) EndTime(endTime int64) ApiGetGlobalEventLogRequest { - r.endTime = &endTime +// Comma-delimited userIds. +func (r ApiGetUsersInfoRequest) Ids(ids string) ApiGetUsersInfoRequest { + r.ids = &ids return r } -func (r ApiGetGlobalEventLogRequest) Execute() (*GetEventLog200Response, *http.Response, error) { - return r.ApiService.GetGlobalEventLogExecute(r) +func (r ApiGetUsersInfoRequest) Execute() (*PageUsersInfoResponse, *http.Response, error) { + return r.ApiService.GetUsersInfoExecute(r) } /* -GetGlobalEventLog Method for GetGlobalEventLog - +GetUsersInfo Method for GetUsersInfo -req -tenantId -urlId -userIdWS +Bulk user info for a tenant. Given userIds, return display info from User / SSOUser. +Used by the comment widget to enrich users that just appeared via a presence event. +No page context: privacy is enforced uniformly (private profiles are masked). @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param tenantId - @return ApiGetGlobalEventLogRequest + @return ApiGetUsersInfoRequest */ -func (a *PublicAPIService) GetGlobalEventLog(ctx context.Context, tenantId string) ApiGetGlobalEventLogRequest { - return ApiGetGlobalEventLogRequest{ +func (a *PublicAPIService) GetUsersInfo(ctx context.Context, tenantId string) ApiGetUsersInfoRequest { + return ApiGetUsersInfoRequest{ ApiService: a, ctx: ctx, tenantId: tenantId, @@ -2202,43 +4813,31 @@ func (a *PublicAPIService) GetGlobalEventLog(ctx context.Context, tenantId strin } // Execute executes the request -// @return GetEventLog200Response -func (a *PublicAPIService) GetGlobalEventLogExecute(r ApiGetGlobalEventLogRequest) (*GetEventLog200Response, *http.Response, error) { +// @return PageUsersInfoResponse +func (a *PublicAPIService) GetUsersInfoExecute(r ApiGetUsersInfoRequest) (*PageUsersInfoResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetEventLog200Response + localVarReturnValue *PageUsersInfoResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.GetGlobalEventLog") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.GetUsersInfo") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/event-log/global/{tenantId}" + localVarPath := localBasePath + "/pages/{tenantId}/users/info" localVarPath = strings.Replace(localVarPath, "{"+"tenantId"+"}", url.PathEscape(parameterValueToString(r.tenantId, "tenantId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.urlId == nil { - return localVarReturnValue, nil, reportError("urlId is required and must be specified") - } - if r.userIdWS == nil { - return localVarReturnValue, nil, reportError("userIdWS is required and must be specified") - } - if r.startTime == nil { - return localVarReturnValue, nil, reportError("startTime is required and must be specified") - } - if r.endTime == nil { - return localVarReturnValue, nil, reportError("endTime is required and must be specified") + if r.ids == nil { + return localVarReturnValue, nil, reportError("ids is required and must be specified") } - parameterAddToHeaderOrQuery(localVarQueryParams, "urlId", r.urlId, "form", "") - parameterAddToHeaderOrQuery(localVarQueryParams, "userIdWS", r.userIdWS, "form", "") - parameterAddToHeaderOrQuery(localVarQueryParams, "startTime", r.startTime, "form", "") - parameterAddToHeaderOrQuery(localVarQueryParams, "endTime", r.endTime, "form", "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ids", r.ids, "form", "") // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2278,6 +4877,25 @@ func (a *PublicAPIService) GetGlobalEventLogExecute(r ApiGetGlobalEventLogReques body: localVarBody, error: localVarHTTPResponse.Status, } + if localVarHTTPResponse.StatusCode == 422 { + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -2293,68 +4911,63 @@ func (a *PublicAPIService) GetGlobalEventLogExecute(r ApiGetGlobalEventLogReques return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGetUserNotificationCountRequest struct { +type ApiGetV1PageLikesRequest struct { ctx context.Context ApiService *PublicAPIService - tenantId *string - sso *string -} - -func (r ApiGetUserNotificationCountRequest) TenantId(tenantId string) ApiGetUserNotificationCountRequest { - r.tenantId = &tenantId - return r + tenantId string + urlId *string } -func (r ApiGetUserNotificationCountRequest) Sso(sso string) ApiGetUserNotificationCountRequest { - r.sso = &sso +func (r ApiGetV1PageLikesRequest) UrlId(urlId string) ApiGetV1PageLikesRequest { + r.urlId = &urlId return r } -func (r ApiGetUserNotificationCountRequest) Execute() (*GetUserNotificationCount200Response, *http.Response, error) { - return r.ApiService.GetUserNotificationCountExecute(r) +func (r ApiGetV1PageLikesRequest) Execute() (*GetV1PageLikes, *http.Response, error) { + return r.ApiService.GetV1PageLikesExecute(r) } /* -GetUserNotificationCount Method for GetUserNotificationCount +GetV1PageLikes Method for GetV1PageLikes @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetUserNotificationCountRequest + @param tenantId + @return ApiGetV1PageLikesRequest */ -func (a *PublicAPIService) GetUserNotificationCount(ctx context.Context) ApiGetUserNotificationCountRequest { - return ApiGetUserNotificationCountRequest{ +func (a *PublicAPIService) GetV1PageLikes(ctx context.Context, tenantId string) ApiGetV1PageLikesRequest { + return ApiGetV1PageLikesRequest{ ApiService: a, ctx: ctx, + tenantId: tenantId, } } // Execute executes the request -// @return GetUserNotificationCount200Response -func (a *PublicAPIService) GetUserNotificationCountExecute(r ApiGetUserNotificationCountRequest) (*GetUserNotificationCount200Response, *http.Response, error) { +// @return GetV1PageLikes +func (a *PublicAPIService) GetV1PageLikesExecute(r ApiGetV1PageLikesRequest) (*GetV1PageLikes, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetUserNotificationCount200Response + localVarReturnValue *GetV1PageLikes ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.GetUserNotificationCount") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.GetV1PageLikes") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/user-notifications/get-count" + localVarPath := localBasePath + "/page-reacts/v1/likes/{tenantId}" + localVarPath = strings.Replace(localVarPath, "{"+"tenantId"+"}", url.PathEscape(parameterValueToString(r.tenantId, "tenantId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.tenantId == nil { - return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + if r.urlId == nil { + return localVarReturnValue, nil, reportError("urlId is required and must be specified") } - parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") - if r.sso != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") - } + parameterAddToHeaderOrQuery(localVarQueryParams, "urlId", r.urlId, "form", "") // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2394,6 +5007,14 @@ func (a *PublicAPIService) GetUserNotificationCountExecute(r ApiGetUserNotificat body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -2409,140 +5030,73 @@ func (a *PublicAPIService) GetUserNotificationCountExecute(r ApiGetUserNotificat return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGetUserNotificationsRequest struct { +type ApiGetV2PageReactUsersRequest struct { ctx context.Context ApiService *PublicAPIService - tenantId *string - pageSize *int32 - afterId *string - includeContext *bool - afterCreatedAt *int64 - unreadOnly *bool - dmOnly *bool - noDm *bool - includeTranslations *bool - sso *string -} - -func (r ApiGetUserNotificationsRequest) TenantId(tenantId string) ApiGetUserNotificationsRequest { - r.tenantId = &tenantId - return r -} - -func (r ApiGetUserNotificationsRequest) PageSize(pageSize int32) ApiGetUserNotificationsRequest { - r.pageSize = &pageSize - return r -} - -func (r ApiGetUserNotificationsRequest) AfterId(afterId string) ApiGetUserNotificationsRequest { - r.afterId = &afterId - return r -} - -func (r ApiGetUserNotificationsRequest) IncludeContext(includeContext bool) ApiGetUserNotificationsRequest { - r.includeContext = &includeContext - return r -} - -func (r ApiGetUserNotificationsRequest) AfterCreatedAt(afterCreatedAt int64) ApiGetUserNotificationsRequest { - r.afterCreatedAt = &afterCreatedAt - return r -} - -func (r ApiGetUserNotificationsRequest) UnreadOnly(unreadOnly bool) ApiGetUserNotificationsRequest { - r.unreadOnly = &unreadOnly - return r -} - -func (r ApiGetUserNotificationsRequest) DmOnly(dmOnly bool) ApiGetUserNotificationsRequest { - r.dmOnly = &dmOnly - return r -} - -func (r ApiGetUserNotificationsRequest) NoDm(noDm bool) ApiGetUserNotificationsRequest { - r.noDm = &noDm - return r + tenantId string + urlId *string + id *string } -func (r ApiGetUserNotificationsRequest) IncludeTranslations(includeTranslations bool) ApiGetUserNotificationsRequest { - r.includeTranslations = &includeTranslations +func (r ApiGetV2PageReactUsersRequest) UrlId(urlId string) ApiGetV2PageReactUsersRequest { + r.urlId = &urlId return r } -func (r ApiGetUserNotificationsRequest) Sso(sso string) ApiGetUserNotificationsRequest { - r.sso = &sso +func (r ApiGetV2PageReactUsersRequest) Id(id string) ApiGetV2PageReactUsersRequest { + r.id = &id return r } -func (r ApiGetUserNotificationsRequest) Execute() (*GetUserNotifications200Response, *http.Response, error) { - return r.ApiService.GetUserNotificationsExecute(r) +func (r ApiGetV2PageReactUsersRequest) Execute() (*GetV2PageReactUsersResponse, *http.Response, error) { + return r.ApiService.GetV2PageReactUsersExecute(r) } /* -GetUserNotifications Method for GetUserNotifications +GetV2PageReactUsers Method for GetV2PageReactUsers @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetUserNotificationsRequest + @param tenantId + @return ApiGetV2PageReactUsersRequest */ -func (a *PublicAPIService) GetUserNotifications(ctx context.Context) ApiGetUserNotificationsRequest { - return ApiGetUserNotificationsRequest{ +func (a *PublicAPIService) GetV2PageReactUsers(ctx context.Context, tenantId string) ApiGetV2PageReactUsersRequest { + return ApiGetV2PageReactUsersRequest{ ApiService: a, ctx: ctx, + tenantId: tenantId, } } // Execute executes the request -// @return GetUserNotifications200Response -func (a *PublicAPIService) GetUserNotificationsExecute(r ApiGetUserNotificationsRequest) (*GetUserNotifications200Response, *http.Response, error) { +// @return GetV2PageReactUsersResponse +func (a *PublicAPIService) GetV2PageReactUsersExecute(r ApiGetV2PageReactUsersRequest) (*GetV2PageReactUsersResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetUserNotifications200Response + localVarReturnValue *GetV2PageReactUsersResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.GetUserNotifications") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.GetV2PageReactUsers") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/user-notifications" + localVarPath := localBasePath + "/page-reacts/v2/{tenantId}/list" + localVarPath = strings.Replace(localVarPath, "{"+"tenantId"+"}", url.PathEscape(parameterValueToString(r.tenantId, "tenantId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.tenantId == nil { - return localVarReturnValue, nil, reportError("tenantId is required and must be specified") - } - - parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") - if r.pageSize != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "pageSize", r.pageSize, "form", "") - } - if r.afterId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "afterId", r.afterId, "form", "") - } - if r.includeContext != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "includeContext", r.includeContext, "form", "") - } - if r.afterCreatedAt != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "afterCreatedAt", r.afterCreatedAt, "form", "") - } - if r.unreadOnly != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "unreadOnly", r.unreadOnly, "form", "") - } - if r.dmOnly != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "dmOnly", r.dmOnly, "form", "") - } - if r.noDm != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "noDm", r.noDm, "form", "") - } - if r.includeTranslations != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "includeTranslations", r.includeTranslations, "form", "") + if r.urlId == nil { + return localVarReturnValue, nil, reportError("urlId is required and must be specified") } - if r.sso != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") + if r.id == nil { + return localVarReturnValue, nil, reportError("id is required and must be specified") } + + parameterAddToHeaderOrQuery(localVarQueryParams, "urlId", r.urlId, "form", "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "form", "") // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2582,6 +5136,14 @@ func (a *PublicAPIService) GetUserNotificationsExecute(r ApiGetUserNotifications body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -2597,79 +5159,63 @@ func (a *PublicAPIService) GetUserNotificationsExecute(r ApiGetUserNotifications return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGetUserPresenceStatusesRequest struct { +type ApiGetV2PageReactsRequest struct { ctx context.Context ApiService *PublicAPIService - tenantId *string - urlIdWS *string - userIds *string -} - -func (r ApiGetUserPresenceStatusesRequest) TenantId(tenantId string) ApiGetUserPresenceStatusesRequest { - r.tenantId = &tenantId - return r -} - -func (r ApiGetUserPresenceStatusesRequest) UrlIdWS(urlIdWS string) ApiGetUserPresenceStatusesRequest { - r.urlIdWS = &urlIdWS - return r + tenantId string + urlId *string } -func (r ApiGetUserPresenceStatusesRequest) UserIds(userIds string) ApiGetUserPresenceStatusesRequest { - r.userIds = &userIds +func (r ApiGetV2PageReactsRequest) UrlId(urlId string) ApiGetV2PageReactsRequest { + r.urlId = &urlId return r } -func (r ApiGetUserPresenceStatusesRequest) Execute() (*GetUserPresenceStatuses200Response, *http.Response, error) { - return r.ApiService.GetUserPresenceStatusesExecute(r) +func (r ApiGetV2PageReactsRequest) Execute() (*GetV2PageReacts, *http.Response, error) { + return r.ApiService.GetV2PageReactsExecute(r) } /* -GetUserPresenceStatuses Method for GetUserPresenceStatuses +GetV2PageReacts Method for GetV2PageReacts @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetUserPresenceStatusesRequest + @param tenantId + @return ApiGetV2PageReactsRequest */ -func (a *PublicAPIService) GetUserPresenceStatuses(ctx context.Context) ApiGetUserPresenceStatusesRequest { - return ApiGetUserPresenceStatusesRequest{ +func (a *PublicAPIService) GetV2PageReacts(ctx context.Context, tenantId string) ApiGetV2PageReactsRequest { + return ApiGetV2PageReactsRequest{ ApiService: a, ctx: ctx, + tenantId: tenantId, } } // Execute executes the request -// @return GetUserPresenceStatuses200Response -func (a *PublicAPIService) GetUserPresenceStatusesExecute(r ApiGetUserPresenceStatusesRequest) (*GetUserPresenceStatuses200Response, *http.Response, error) { +// @return GetV2PageReacts +func (a *PublicAPIService) GetV2PageReactsExecute(r ApiGetV2PageReactsRequest) (*GetV2PageReacts, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetUserPresenceStatuses200Response + localVarReturnValue *GetV2PageReacts ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.GetUserPresenceStatuses") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.GetV2PageReacts") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/user-presence-status" + localVarPath := localBasePath + "/page-reacts/v2/{tenantId}" + localVarPath = strings.Replace(localVarPath, "{"+"tenantId"+"}", url.PathEscape(parameterValueToString(r.tenantId, "tenantId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.tenantId == nil { - return localVarReturnValue, nil, reportError("tenantId is required and must be specified") - } - if r.urlIdWS == nil { - return localVarReturnValue, nil, reportError("urlIdWS is required and must be specified") - } - if r.userIds == nil { - return localVarReturnValue, nil, reportError("userIds is required and must be specified") + if r.urlId == nil { + return localVarReturnValue, nil, reportError("urlId is required and must be specified") } - parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") - parameterAddToHeaderOrQuery(localVarQueryParams, "urlIdWS", r.urlIdWS, "form", "") - parameterAddToHeaderOrQuery(localVarQueryParams, "userIds", r.userIds, "form", "") + parameterAddToHeaderOrQuery(localVarQueryParams, "urlId", r.urlId, "form", "") // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2709,7 +5255,6 @@ func (a *PublicAPIService) GetUserPresenceStatusesExecute(r ApiGetUserPresenceSt body: localVarBody, error: localVarHTTPResponse.Status, } - if localVarHTTPResponse.StatusCode == 422 { var v APIError err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { @@ -2718,7 +5263,6 @@ func (a *PublicAPIService) GetUserPresenceStatusesExecute(r ApiGetUserPresenceSt } newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) newErr.model = v - } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -2734,76 +5278,73 @@ func (a *PublicAPIService) GetUserPresenceStatusesExecute(r ApiGetUserPresenceSt return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGetUserReactsPublicRequest struct { +type ApiLockCommentRequest struct { ctx context.Context ApiService *PublicAPIService tenantId string - postIds *[]string + commentId string + broadcastId *string sso *string } -func (r ApiGetUserReactsPublicRequest) PostIds(postIds []string) ApiGetUserReactsPublicRequest { - r.postIds = &postIds +func (r ApiLockCommentRequest) BroadcastId(broadcastId string) ApiLockCommentRequest { + r.broadcastId = &broadcastId return r } -func (r ApiGetUserReactsPublicRequest) Sso(sso string) ApiGetUserReactsPublicRequest { +func (r ApiLockCommentRequest) Sso(sso string) ApiLockCommentRequest { r.sso = &sso return r } -func (r ApiGetUserReactsPublicRequest) Execute() (*GetUserReactsPublic200Response, *http.Response, error) { - return r.ApiService.GetUserReactsPublicExecute(r) +func (r ApiLockCommentRequest) Execute() (*APIEmptyResponse, *http.Response, error) { + return r.ApiService.LockCommentExecute(r) } /* -GetUserReactsPublic Method for GetUserReactsPublic +LockComment Method for LockComment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param tenantId - @return ApiGetUserReactsPublicRequest + @param commentId + @return ApiLockCommentRequest */ -func (a *PublicAPIService) GetUserReactsPublic(ctx context.Context, tenantId string) ApiGetUserReactsPublicRequest { - return ApiGetUserReactsPublicRequest{ +func (a *PublicAPIService) LockComment(ctx context.Context, tenantId string, commentId string) ApiLockCommentRequest { + return ApiLockCommentRequest{ ApiService: a, ctx: ctx, tenantId: tenantId, + commentId: commentId, } } // Execute executes the request -// @return GetUserReactsPublic200Response -func (a *PublicAPIService) GetUserReactsPublicExecute(r ApiGetUserReactsPublicRequest) (*GetUserReactsPublic200Response, *http.Response, error) { +// @return APIEmptyResponse +func (a *PublicAPIService) LockCommentExecute(r ApiLockCommentRequest) (*APIEmptyResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetUserReactsPublic200Response + localVarReturnValue *APIEmptyResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.GetUserReactsPublic") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.LockComment") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/feed-posts/{tenantId}/user-reacts" + localVarPath := localBasePath + "/comments/{tenantId}/{commentId}/lock" localVarPath = strings.Replace(localVarPath, "{"+"tenantId"+"}", url.PathEscape(parameterValueToString(r.tenantId, "tenantId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - - if r.postIds != nil { - t := *r.postIds - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "postIds", s.Index(i).Interface(), "form", "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "postIds", t, "form", "multi") - } + if r.broadcastId == nil { + return localVarReturnValue, nil, reportError("broadcastId is required and must be specified") } + + parameterAddToHeaderOrQuery(localVarQueryParams, "broadcastId", r.broadcastId, "form", "") if r.sso != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") } @@ -2846,6 +5387,14 @@ func (a *PublicAPIService) GetUserReactsPublicExecute(r ApiGetUserReactsPublicRe body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -2861,76 +5410,49 @@ func (a *PublicAPIService) GetUserReactsPublicExecute(r ApiGetUserReactsPublicRe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiLockCommentRequest struct { +type ApiLogoutPublicRequest struct { ctx context.Context ApiService *PublicAPIService - tenantId string - commentId string - broadcastId *string - sso *string } -func (r ApiLockCommentRequest) BroadcastId(broadcastId string) ApiLockCommentRequest { - r.broadcastId = &broadcastId - return r -} - -func (r ApiLockCommentRequest) Sso(sso string) ApiLockCommentRequest { - r.sso = &sso - return r -} - -func (r ApiLockCommentRequest) Execute() (*LockComment200Response, *http.Response, error) { - return r.ApiService.LockCommentExecute(r) +func (r ApiLogoutPublicRequest) Execute() (*APIEmptyResponse, *http.Response, error) { + return r.ApiService.LogoutPublicExecute(r) } /* -LockComment Method for LockComment +LogoutPublic Method for LogoutPublic @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param tenantId - @param commentId - @return ApiLockCommentRequest + @return ApiLogoutPublicRequest */ -func (a *PublicAPIService) LockComment(ctx context.Context, tenantId string, commentId string) ApiLockCommentRequest { - return ApiLockCommentRequest{ +func (a *PublicAPIService) LogoutPublic(ctx context.Context) ApiLogoutPublicRequest { + return ApiLogoutPublicRequest{ ApiService: a, ctx: ctx, - tenantId: tenantId, - commentId: commentId, } } // Execute executes the request -// @return LockComment200Response -func (a *PublicAPIService) LockCommentExecute(r ApiLockCommentRequest) (*LockComment200Response, *http.Response, error) { +// @return APIEmptyResponse +func (a *PublicAPIService) LogoutPublicExecute(r ApiLogoutPublicRequest) (*APIEmptyResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost + localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *LockComment200Response + localVarReturnValue *APIEmptyResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.LockComment") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.LogoutPublic") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/comments/{tenantId}/{commentId}/lock" - localVarPath = strings.Replace(localVarPath, "{"+"tenantId"+"}", url.PathEscape(parameterValueToString(r.tenantId, "tenantId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) + localVarPath := localBasePath + "/auth/logout" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.broadcastId == nil { - return localVarReturnValue, nil, reportError("broadcastId is required and must be specified") - } - parameterAddToHeaderOrQuery(localVarQueryParams, "broadcastId", r.broadcastId, "form", "") - if r.sso != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") - } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3004,7 +5526,7 @@ func (r ApiPinCommentRequest) Sso(sso string) ApiPinCommentRequest { return r } -func (r ApiPinCommentRequest) Execute() (*PinComment200Response, *http.Response, error) { +func (r ApiPinCommentRequest) Execute() (*ChangeCommentPinStatusResponse, *http.Response, error) { return r.ApiService.PinCommentExecute(r) } @@ -3026,13 +5548,13 @@ func (a *PublicAPIService) PinComment(ctx context.Context, tenantId string, comm } // Execute executes the request -// @return PinComment200Response -func (a *PublicAPIService) PinCommentExecute(r ApiPinCommentRequest) (*PinComment200Response, *http.Response, error) { +// @return ChangeCommentPinStatusResponse +func (a *PublicAPIService) PinCommentExecute(r ApiPinCommentRequest) (*ChangeCommentPinStatusResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PinComment200Response + localVarReturnValue *ChangeCommentPinStatusResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.PinComment") @@ -3094,6 +5616,14 @@ func (a *PublicAPIService) PinCommentExecute(r ApiPinCommentRequest) (*PinCommen body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -3140,7 +5670,7 @@ func (r ApiReactFeedPostPublicRequest) Sso(sso string) ApiReactFeedPostPublicReq return r } -func (r ApiReactFeedPostPublicRequest) Execute() (*ReactFeedPostPublic200Response, *http.Response, error) { +func (r ApiReactFeedPostPublicRequest) Execute() (*ReactFeedPostResponse, *http.Response, error) { return r.ApiService.ReactFeedPostPublicExecute(r) } @@ -3162,13 +5692,13 @@ func (a *PublicAPIService) ReactFeedPostPublic(ctx context.Context, tenantId str } // Execute executes the request -// @return ReactFeedPostPublic200Response -func (a *PublicAPIService) ReactFeedPostPublicExecute(r ApiReactFeedPostPublicRequest) (*ReactFeedPostPublic200Response, *http.Response, error) { +// @return ReactFeedPostResponse +func (a *PublicAPIService) ReactFeedPostPublicExecute(r ApiReactFeedPostPublicRequest) (*ReactFeedPostResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *ReactFeedPostPublic200Response + localVarReturnValue *ReactFeedPostResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.ReactFeedPostPublic") @@ -3237,6 +5767,14 @@ func (a *PublicAPIService) ReactFeedPostPublicExecute(r ApiReactFeedPostPublicRe body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -3269,7 +5807,7 @@ func (r ApiResetUserNotificationCountRequest) Sso(sso string) ApiResetUserNotifi return r } -func (r ApiResetUserNotificationCountRequest) Execute() (*ResetUserNotifications200Response, *http.Response, error) { +func (r ApiResetUserNotificationCountRequest) Execute() (*ResetUserNotificationsResponse, *http.Response, error) { return r.ApiService.ResetUserNotificationCountExecute(r) } @@ -3287,13 +5825,13 @@ func (a *PublicAPIService) ResetUserNotificationCount(ctx context.Context) ApiRe } // Execute executes the request -// @return ResetUserNotifications200Response -func (a *PublicAPIService) ResetUserNotificationCountExecute(r ApiResetUserNotificationCountRequest) (*ResetUserNotifications200Response, *http.Response, error) { +// @return ResetUserNotificationsResponse +func (a *PublicAPIService) ResetUserNotificationCountExecute(r ApiResetUserNotificationCountRequest) (*ResetUserNotificationsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *ResetUserNotifications200Response + localVarReturnValue *ResetUserNotificationsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.ResetUserNotificationCount") @@ -3353,6 +5891,14 @@ func (a *PublicAPIService) ResetUserNotificationCountExecute(r ApiResetUserNotif body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -3415,7 +5961,7 @@ func (r ApiResetUserNotificationsRequest) Sso(sso string) ApiResetUserNotificati return r } -func (r ApiResetUserNotificationsRequest) Execute() (*ResetUserNotifications200Response, *http.Response, error) { +func (r ApiResetUserNotificationsRequest) Execute() (*ResetUserNotificationsResponse, *http.Response, error) { return r.ApiService.ResetUserNotificationsExecute(r) } @@ -3433,13 +5979,13 @@ func (a *PublicAPIService) ResetUserNotifications(ctx context.Context) ApiResetU } // Execute executes the request -// @return ResetUserNotifications200Response -func (a *PublicAPIService) ResetUserNotificationsExecute(r ApiResetUserNotificationsRequest) (*ResetUserNotifications200Response, *http.Response, error) { +// @return ResetUserNotificationsResponse +func (a *PublicAPIService) ResetUserNotificationsExecute(r ApiResetUserNotificationsRequest) (*ResetUserNotificationsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *ResetUserNotifications200Response + localVarReturnValue *ResetUserNotificationsResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.ResetUserNotifications") @@ -3514,6 +6060,14 @@ func (a *PublicAPIService) ResetUserNotificationsExecute(r ApiResetUserNotificat body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -3565,7 +6119,7 @@ func (r ApiSearchUsersRequest) SearchSection(searchSection string) ApiSearchUser return r } -func (r ApiSearchUsersRequest) Execute() (*SearchUsers200Response, *http.Response, error) { +func (r ApiSearchUsersRequest) Execute() (*SearchUsersResult, *http.Response, error) { return r.ApiService.SearchUsersExecute(r) } @@ -3585,13 +6139,13 @@ func (a *PublicAPIService) SearchUsers(ctx context.Context, tenantId string) Api } // Execute executes the request -// @return SearchUsers200Response -func (a *PublicAPIService) SearchUsersExecute(r ApiSearchUsersRequest) (*SearchUsers200Response, *http.Response, error) { +// @return SearchUsersResult +func (a *PublicAPIService) SearchUsersExecute(r ApiSearchUsersRequest) (*SearchUsersResult, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *SearchUsers200Response + localVarReturnValue *SearchUsersResult ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.SearchUsers") @@ -3669,6 +6223,14 @@ func (a *PublicAPIService) SearchUsersExecute(r ApiSearchUsersRequest) (*SearchU body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -3715,7 +6277,7 @@ func (r ApiSetCommentTextRequest) Sso(sso string) ApiSetCommentTextRequest { return r } -func (r ApiSetCommentTextRequest) Execute() (*SetCommentText200Response, *http.Response, error) { +func (r ApiSetCommentTextRequest) Execute() (*PublicAPISetCommentTextResponse, *http.Response, error) { return r.ApiService.SetCommentTextExecute(r) } @@ -3737,13 +6299,13 @@ func (a *PublicAPIService) SetCommentText(ctx context.Context, tenantId string, } // Execute executes the request -// @return SetCommentText200Response -func (a *PublicAPIService) SetCommentTextExecute(r ApiSetCommentTextRequest) (*SetCommentText200Response, *http.Response, error) { +// @return PublicAPISetCommentTextResponse +func (a *PublicAPIService) SetCommentTextExecute(r ApiSetCommentTextRequest) (*PublicAPISetCommentTextResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *SetCommentText200Response + localVarReturnValue *PublicAPISetCommentTextResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.SetCommentText") @@ -3813,6 +6375,14 @@ func (a *PublicAPIService) SetCommentTextExecute(r ApiSetCommentTextRequest) (*S body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -3852,7 +6422,7 @@ func (r ApiUnBlockCommentPublicRequest) Sso(sso string) ApiUnBlockCommentPublicR return r } -func (r ApiUnBlockCommentPublicRequest) Execute() (*UnBlockCommentPublic200Response, *http.Response, error) { +func (r ApiUnBlockCommentPublicRequest) Execute() (*UnblockSuccess, *http.Response, error) { return r.ApiService.UnBlockCommentPublicExecute(r) } @@ -3872,13 +6442,13 @@ func (a *PublicAPIService) UnBlockCommentPublic(ctx context.Context, commentId s } // Execute executes the request -// @return UnBlockCommentPublic200Response -func (a *PublicAPIService) UnBlockCommentPublicExecute(r ApiUnBlockCommentPublicRequest) (*UnBlockCommentPublic200Response, *http.Response, error) { +// @return UnblockSuccess +func (a *PublicAPIService) UnBlockCommentPublicExecute(r ApiUnBlockCommentPublicRequest) (*UnblockSuccess, *http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile - localVarReturnValue *UnBlockCommentPublic200Response + localVarReturnValue *UnblockSuccess ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.UnBlockCommentPublic") @@ -3944,6 +6514,14 @@ func (a *PublicAPIService) UnBlockCommentPublicExecute(r ApiUnBlockCommentPublic body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -3978,7 +6556,7 @@ func (r ApiUnLockCommentRequest) Sso(sso string) ApiUnLockCommentRequest { return r } -func (r ApiUnLockCommentRequest) Execute() (*LockComment200Response, *http.Response, error) { +func (r ApiUnLockCommentRequest) Execute() (*APIEmptyResponse, *http.Response, error) { return r.ApiService.UnLockCommentExecute(r) } @@ -4000,13 +6578,13 @@ func (a *PublicAPIService) UnLockComment(ctx context.Context, tenantId string, c } // Execute executes the request -// @return LockComment200Response -func (a *PublicAPIService) UnLockCommentExecute(r ApiUnLockCommentRequest) (*LockComment200Response, *http.Response, error) { +// @return APIEmptyResponse +func (a *PublicAPIService) UnLockCommentExecute(r ApiUnLockCommentRequest) (*APIEmptyResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *LockComment200Response + localVarReturnValue *APIEmptyResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.UnLockComment") @@ -4068,6 +6646,14 @@ func (a *PublicAPIService) UnLockCommentExecute(r ApiUnLockCommentRequest) (*Loc body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -4102,7 +6688,7 @@ func (r ApiUnPinCommentRequest) Sso(sso string) ApiUnPinCommentRequest { return r } -func (r ApiUnPinCommentRequest) Execute() (*PinComment200Response, *http.Response, error) { +func (r ApiUnPinCommentRequest) Execute() (*ChangeCommentPinStatusResponse, *http.Response, error) { return r.ApiService.UnPinCommentExecute(r) } @@ -4124,13 +6710,13 @@ func (a *PublicAPIService) UnPinComment(ctx context.Context, tenantId string, co } // Execute executes the request -// @return PinComment200Response -func (a *PublicAPIService) UnPinCommentExecute(r ApiUnPinCommentRequest) (*PinComment200Response, *http.Response, error) { +// @return ChangeCommentPinStatusResponse +func (a *PublicAPIService) UnPinCommentExecute(r ApiUnPinCommentRequest) (*ChangeCommentPinStatusResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PinComment200Response + localVarReturnValue *ChangeCommentPinStatusResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.UnPinComment") @@ -4192,6 +6778,14 @@ func (a *PublicAPIService) UnPinCommentExecute(r ApiUnPinCommentRequest) (*PinCo body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -4232,7 +6826,7 @@ func (r ApiUpdateFeedPostPublicRequest) Sso(sso string) ApiUpdateFeedPostPublicR return r } -func (r ApiUpdateFeedPostPublicRequest) Execute() (*CreateFeedPostPublic200Response, *http.Response, error) { +func (r ApiUpdateFeedPostPublicRequest) Execute() (*CreateFeedPostResponse, *http.Response, error) { return r.ApiService.UpdateFeedPostPublicExecute(r) } @@ -4254,13 +6848,13 @@ func (a *PublicAPIService) UpdateFeedPostPublic(ctx context.Context, tenantId st } // Execute executes the request -// @return CreateFeedPostPublic200Response -func (a *PublicAPIService) UpdateFeedPostPublicExecute(r ApiUpdateFeedPostPublicRequest) (*CreateFeedPostPublic200Response, *http.Response, error) { +// @return CreateFeedPostResponse +func (a *PublicAPIService) UpdateFeedPostPublicExecute(r ApiUpdateFeedPostPublicRequest) (*CreateFeedPostResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *CreateFeedPostPublic200Response + localVarReturnValue *CreateFeedPostResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.UpdateFeedPostPublic") @@ -4326,6 +6920,14 @@ func (a *PublicAPIService) UpdateFeedPostPublicExecute(r ApiUpdateFeedPostPublic body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -4366,7 +6968,7 @@ func (r ApiUpdateUserNotificationCommentSubscriptionStatusRequest) Sso(sso strin return r } -func (r ApiUpdateUserNotificationCommentSubscriptionStatusRequest) Execute() (*UpdateUserNotificationStatus200Response, *http.Response, error) { +func (r ApiUpdateUserNotificationCommentSubscriptionStatusRequest) Execute() (*UpdateUserNotificationCommentSubscriptionStatusResponse, *http.Response, error) { return r.ApiService.UpdateUserNotificationCommentSubscriptionStatusExecute(r) } @@ -4390,13 +6992,13 @@ func (a *PublicAPIService) UpdateUserNotificationCommentSubscriptionStatus(ctx c } // Execute executes the request -// @return UpdateUserNotificationStatus200Response -func (a *PublicAPIService) UpdateUserNotificationCommentSubscriptionStatusExecute(r ApiUpdateUserNotificationCommentSubscriptionStatusRequest) (*UpdateUserNotificationStatus200Response, *http.Response, error) { +// @return UpdateUserNotificationCommentSubscriptionStatusResponse +func (a *PublicAPIService) UpdateUserNotificationCommentSubscriptionStatusExecute(r ApiUpdateUserNotificationCommentSubscriptionStatusRequest) (*UpdateUserNotificationCommentSubscriptionStatusResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *UpdateUserNotificationStatus200Response + localVarReturnValue *UpdateUserNotificationCommentSubscriptionStatusResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.UpdateUserNotificationCommentSubscriptionStatus") @@ -4462,6 +7064,14 @@ func (a *PublicAPIService) UpdateUserNotificationCommentSubscriptionStatusExecut body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -4513,7 +7123,7 @@ func (r ApiUpdateUserNotificationPageSubscriptionStatusRequest) Sso(sso string) return r } -func (r ApiUpdateUserNotificationPageSubscriptionStatusRequest) Execute() (*UpdateUserNotificationStatus200Response, *http.Response, error) { +func (r ApiUpdateUserNotificationPageSubscriptionStatusRequest) Execute() (*UpdateUserNotificationPageSubscriptionStatusResponse, *http.Response, error) { return r.ApiService.UpdateUserNotificationPageSubscriptionStatusExecute(r) } @@ -4536,13 +7146,13 @@ func (a *PublicAPIService) UpdateUserNotificationPageSubscriptionStatus(ctx cont } // Execute executes the request -// @return UpdateUserNotificationStatus200Response -func (a *PublicAPIService) UpdateUserNotificationPageSubscriptionStatusExecute(r ApiUpdateUserNotificationPageSubscriptionStatusRequest) (*UpdateUserNotificationStatus200Response, *http.Response, error) { +// @return UpdateUserNotificationPageSubscriptionStatusResponse +func (a *PublicAPIService) UpdateUserNotificationPageSubscriptionStatusExecute(r ApiUpdateUserNotificationPageSubscriptionStatusRequest) (*UpdateUserNotificationPageSubscriptionStatusResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *UpdateUserNotificationStatus200Response + localVarReturnValue *UpdateUserNotificationPageSubscriptionStatusResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.UpdateUserNotificationPageSubscriptionStatus") @@ -4615,6 +7225,14 @@ func (a *PublicAPIService) UpdateUserNotificationPageSubscriptionStatusExecute(r body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -4649,7 +7267,7 @@ func (r ApiUpdateUserNotificationStatusRequest) Sso(sso string) ApiUpdateUserNot return r } -func (r ApiUpdateUserNotificationStatusRequest) Execute() (*UpdateUserNotificationStatus200Response, *http.Response, error) { +func (r ApiUpdateUserNotificationStatusRequest) Execute() (*UpdateUserNotificationStatusResponse, *http.Response, error) { return r.ApiService.UpdateUserNotificationStatusExecute(r) } @@ -4671,13 +7289,13 @@ func (a *PublicAPIService) UpdateUserNotificationStatus(ctx context.Context, not } // Execute executes the request -// @return UpdateUserNotificationStatus200Response -func (a *PublicAPIService) UpdateUserNotificationStatusExecute(r ApiUpdateUserNotificationStatusRequest) (*UpdateUserNotificationStatus200Response, *http.Response, error) { +// @return UpdateUserNotificationStatusResponse +func (a *PublicAPIService) UpdateUserNotificationStatusExecute(r ApiUpdateUserNotificationStatusRequest) (*UpdateUserNotificationStatusResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *UpdateUserNotificationStatus200Response + localVarReturnValue *UpdateUserNotificationStatusResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.UpdateUserNotificationStatus") @@ -4739,6 +7357,14 @@ func (a *PublicAPIService) UpdateUserNotificationStatusExecute(r ApiUpdateUserNo body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -4938,7 +7564,7 @@ func (r ApiVoteCommentRequest) Sso(sso string) ApiVoteCommentRequest { return r } -func (r ApiVoteCommentRequest) Execute() (*VoteComment200Response, *http.Response, error) { +func (r ApiVoteCommentRequest) Execute() (*VoteResponse, *http.Response, error) { return r.ApiService.VoteCommentExecute(r) } @@ -4960,13 +7586,13 @@ func (a *PublicAPIService) VoteComment(ctx context.Context, tenantId string, com } // Execute executes the request -// @return VoteComment200Response -func (a *PublicAPIService) VoteCommentExecute(r ApiVoteCommentRequest) (*VoteComment200Response, *http.Response, error) { +// @return VoteResponse +func (a *PublicAPIService) VoteCommentExecute(r ApiVoteCommentRequest) (*VoteResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *VoteComment200Response + localVarReturnValue *VoteResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PublicAPIService.VoteComment") @@ -5040,6 +7666,14 @@ func (a *PublicAPIService) VoteCommentExecute(r ApiVoteCommentRequest) (*VoteCom body: localVarBody, error: localVarHTTPResponse.Status, } + var v APIError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } diff --git a/client/client.go b/client/client.go index 7be167c..1277ad0 100644 --- a/client/client.go +++ b/client/client.go @@ -51,6 +51,8 @@ type APIClient struct { DefaultAPI *DefaultAPIService + ModerationAPI *ModerationAPIService + PublicAPI *PublicAPIService } @@ -71,6 +73,7 @@ func NewAPIClient(cfg *Configuration) *APIClient { // API Services c.DefaultAPI = (*DefaultAPIService)(&c.common) + c.ModerationAPI = (*ModerationAPIService)(&c.common) c.PublicAPI = (*PublicAPIService)(&c.common) return c diff --git a/client/configuration.go b/client/configuration.go index 9787fca..938a15b 100644 --- a/client/configuration.go +++ b/client/configuration.go @@ -89,7 +89,7 @@ type Configuration struct { func NewConfiguration() *Configuration { cfg := &Configuration{ DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/1.2.0/go", + UserAgent: "OpenAPI-Generator/1.2.1/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/client/docs/APIBanUserChangeLog.md b/client/docs/APIBanUserChangeLog.md new file mode 100644 index 0000000..450bead --- /dev/null +++ b/client/docs/APIBanUserChangeLog.md @@ -0,0 +1,134 @@ +# APIBanUserChangeLog + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedBannedUserId** | Pointer to **string** | | [optional] +**UpdatedBannedUserId** | Pointer to **string** | | [optional] +**DeletedBannedUsers** | Pointer to [**[]APIBannedUser**](APIBannedUser.md) | | [optional] +**ChangedValuesBefore** | Pointer to [**APIBanUserChangedValues**](APIBanUserChangedValues.md) | | [optional] + +## Methods + +### NewAPIBanUserChangeLog + +`func NewAPIBanUserChangeLog() *APIBanUserChangeLog` + +NewAPIBanUserChangeLog instantiates a new APIBanUserChangeLog object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAPIBanUserChangeLogWithDefaults + +`func NewAPIBanUserChangeLogWithDefaults() *APIBanUserChangeLog` + +NewAPIBanUserChangeLogWithDefaults instantiates a new APIBanUserChangeLog object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCreatedBannedUserId + +`func (o *APIBanUserChangeLog) GetCreatedBannedUserId() string` + +GetCreatedBannedUserId returns the CreatedBannedUserId field if non-nil, zero value otherwise. + +### GetCreatedBannedUserIdOk + +`func (o *APIBanUserChangeLog) GetCreatedBannedUserIdOk() (*string, bool)` + +GetCreatedBannedUserIdOk returns a tuple with the CreatedBannedUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedBannedUserId + +`func (o *APIBanUserChangeLog) SetCreatedBannedUserId(v string)` + +SetCreatedBannedUserId sets CreatedBannedUserId field to given value. + +### HasCreatedBannedUserId + +`func (o *APIBanUserChangeLog) HasCreatedBannedUserId() bool` + +HasCreatedBannedUserId returns a boolean if a field has been set. + +### GetUpdatedBannedUserId + +`func (o *APIBanUserChangeLog) GetUpdatedBannedUserId() string` + +GetUpdatedBannedUserId returns the UpdatedBannedUserId field if non-nil, zero value otherwise. + +### GetUpdatedBannedUserIdOk + +`func (o *APIBanUserChangeLog) GetUpdatedBannedUserIdOk() (*string, bool)` + +GetUpdatedBannedUserIdOk returns a tuple with the UpdatedBannedUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedBannedUserId + +`func (o *APIBanUserChangeLog) SetUpdatedBannedUserId(v string)` + +SetUpdatedBannedUserId sets UpdatedBannedUserId field to given value. + +### HasUpdatedBannedUserId + +`func (o *APIBanUserChangeLog) HasUpdatedBannedUserId() bool` + +HasUpdatedBannedUserId returns a boolean if a field has been set. + +### GetDeletedBannedUsers + +`func (o *APIBanUserChangeLog) GetDeletedBannedUsers() []APIBannedUser` + +GetDeletedBannedUsers returns the DeletedBannedUsers field if non-nil, zero value otherwise. + +### GetDeletedBannedUsersOk + +`func (o *APIBanUserChangeLog) GetDeletedBannedUsersOk() (*[]APIBannedUser, bool)` + +GetDeletedBannedUsersOk returns a tuple with the DeletedBannedUsers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeletedBannedUsers + +`func (o *APIBanUserChangeLog) SetDeletedBannedUsers(v []APIBannedUser)` + +SetDeletedBannedUsers sets DeletedBannedUsers field to given value. + +### HasDeletedBannedUsers + +`func (o *APIBanUserChangeLog) HasDeletedBannedUsers() bool` + +HasDeletedBannedUsers returns a boolean if a field has been set. + +### GetChangedValuesBefore + +`func (o *APIBanUserChangeLog) GetChangedValuesBefore() APIBanUserChangedValues` + +GetChangedValuesBefore returns the ChangedValuesBefore field if non-nil, zero value otherwise. + +### GetChangedValuesBeforeOk + +`func (o *APIBanUserChangeLog) GetChangedValuesBeforeOk() (*APIBanUserChangedValues, bool)` + +GetChangedValuesBeforeOk returns a tuple with the ChangedValuesBefore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChangedValuesBefore + +`func (o *APIBanUserChangeLog) SetChangedValuesBefore(v APIBanUserChangedValues)` + +SetChangedValuesBefore sets ChangedValuesBefore field to given value. + +### HasChangedValuesBefore + +`func (o *APIBanUserChangeLog) HasChangedValuesBefore() bool` + +HasChangedValuesBefore returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/APIBanUserChangedValues.md b/client/docs/APIBanUserChangedValues.md new file mode 100644 index 0000000..fb52adf --- /dev/null +++ b/client/docs/APIBanUserChangedValues.md @@ -0,0 +1,418 @@ +# APIBanUserChangedValues + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**TenantId** | Pointer to **string** | | [optional] +**UserId** | Pointer to **NullableString** | | [optional] +**Email** | Pointer to **NullableString** | | [optional] +**Username** | Pointer to **NullableString** | | [optional] +**IpHash** | Pointer to **NullableString** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**BannedByUserId** | Pointer to **string** | | [optional] +**BannedCommentText** | Pointer to **string** | | [optional] +**BanType** | Pointer to **string** | | [optional] +**BannedUntil** | Pointer to **NullableTime** | | [optional] +**HasEmailWildcard** | Pointer to **bool** | | [optional] +**BanReason** | Pointer to **string** | | [optional] + +## Methods + +### NewAPIBanUserChangedValues + +`func NewAPIBanUserChangedValues() *APIBanUserChangedValues` + +NewAPIBanUserChangedValues instantiates a new APIBanUserChangedValues object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAPIBanUserChangedValuesWithDefaults + +`func NewAPIBanUserChangedValuesWithDefaults() *APIBanUserChangedValues` + +NewAPIBanUserChangedValuesWithDefaults instantiates a new APIBanUserChangedValues object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *APIBanUserChangedValues) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *APIBanUserChangedValues) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *APIBanUserChangedValues) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *APIBanUserChangedValues) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetTenantId + +`func (o *APIBanUserChangedValues) GetTenantId() string` + +GetTenantId returns the TenantId field if non-nil, zero value otherwise. + +### GetTenantIdOk + +`func (o *APIBanUserChangedValues) GetTenantIdOk() (*string, bool)` + +GetTenantIdOk returns a tuple with the TenantId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenantId + +`func (o *APIBanUserChangedValues) SetTenantId(v string)` + +SetTenantId sets TenantId field to given value. + +### HasTenantId + +`func (o *APIBanUserChangedValues) HasTenantId() bool` + +HasTenantId returns a boolean if a field has been set. + +### GetUserId + +`func (o *APIBanUserChangedValues) GetUserId() string` + +GetUserId returns the UserId field if non-nil, zero value otherwise. + +### GetUserIdOk + +`func (o *APIBanUserChangedValues) GetUserIdOk() (*string, bool)` + +GetUserIdOk returns a tuple with the UserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserId + +`func (o *APIBanUserChangedValues) SetUserId(v string)` + +SetUserId sets UserId field to given value. + +### HasUserId + +`func (o *APIBanUserChangedValues) HasUserId() bool` + +HasUserId returns a boolean if a field has been set. + +### SetUserIdNil + +`func (o *APIBanUserChangedValues) SetUserIdNil(b bool)` + + SetUserIdNil sets the value for UserId to be an explicit nil + +### UnsetUserId +`func (o *APIBanUserChangedValues) UnsetUserId()` + +UnsetUserId ensures that no value is present for UserId, not even an explicit nil +### GetEmail + +`func (o *APIBanUserChangedValues) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *APIBanUserChangedValues) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *APIBanUserChangedValues) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *APIBanUserChangedValues) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### SetEmailNil + +`func (o *APIBanUserChangedValues) SetEmailNil(b bool)` + + SetEmailNil sets the value for Email to be an explicit nil + +### UnsetEmail +`func (o *APIBanUserChangedValues) UnsetEmail()` + +UnsetEmail ensures that no value is present for Email, not even an explicit nil +### GetUsername + +`func (o *APIBanUserChangedValues) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *APIBanUserChangedValues) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *APIBanUserChangedValues) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *APIBanUserChangedValues) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### SetUsernameNil + +`func (o *APIBanUserChangedValues) SetUsernameNil(b bool)` + + SetUsernameNil sets the value for Username to be an explicit nil + +### UnsetUsername +`func (o *APIBanUserChangedValues) UnsetUsername()` + +UnsetUsername ensures that no value is present for Username, not even an explicit nil +### GetIpHash + +`func (o *APIBanUserChangedValues) GetIpHash() string` + +GetIpHash returns the IpHash field if non-nil, zero value otherwise. + +### GetIpHashOk + +`func (o *APIBanUserChangedValues) GetIpHashOk() (*string, bool)` + +GetIpHashOk returns a tuple with the IpHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpHash + +`func (o *APIBanUserChangedValues) SetIpHash(v string)` + +SetIpHash sets IpHash field to given value. + +### HasIpHash + +`func (o *APIBanUserChangedValues) HasIpHash() bool` + +HasIpHash returns a boolean if a field has been set. + +### SetIpHashNil + +`func (o *APIBanUserChangedValues) SetIpHashNil(b bool)` + + SetIpHashNil sets the value for IpHash to be an explicit nil + +### UnsetIpHash +`func (o *APIBanUserChangedValues) UnsetIpHash()` + +UnsetIpHash ensures that no value is present for IpHash, not even an explicit nil +### GetCreatedAt + +`func (o *APIBanUserChangedValues) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *APIBanUserChangedValues) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *APIBanUserChangedValues) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *APIBanUserChangedValues) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetBannedByUserId + +`func (o *APIBanUserChangedValues) GetBannedByUserId() string` + +GetBannedByUserId returns the BannedByUserId field if non-nil, zero value otherwise. + +### GetBannedByUserIdOk + +`func (o *APIBanUserChangedValues) GetBannedByUserIdOk() (*string, bool)` + +GetBannedByUserIdOk returns a tuple with the BannedByUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBannedByUserId + +`func (o *APIBanUserChangedValues) SetBannedByUserId(v string)` + +SetBannedByUserId sets BannedByUserId field to given value. + +### HasBannedByUserId + +`func (o *APIBanUserChangedValues) HasBannedByUserId() bool` + +HasBannedByUserId returns a boolean if a field has been set. + +### GetBannedCommentText + +`func (o *APIBanUserChangedValues) GetBannedCommentText() string` + +GetBannedCommentText returns the BannedCommentText field if non-nil, zero value otherwise. + +### GetBannedCommentTextOk + +`func (o *APIBanUserChangedValues) GetBannedCommentTextOk() (*string, bool)` + +GetBannedCommentTextOk returns a tuple with the BannedCommentText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBannedCommentText + +`func (o *APIBanUserChangedValues) SetBannedCommentText(v string)` + +SetBannedCommentText sets BannedCommentText field to given value. + +### HasBannedCommentText + +`func (o *APIBanUserChangedValues) HasBannedCommentText() bool` + +HasBannedCommentText returns a boolean if a field has been set. + +### GetBanType + +`func (o *APIBanUserChangedValues) GetBanType() string` + +GetBanType returns the BanType field if non-nil, zero value otherwise. + +### GetBanTypeOk + +`func (o *APIBanUserChangedValues) GetBanTypeOk() (*string, bool)` + +GetBanTypeOk returns a tuple with the BanType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBanType + +`func (o *APIBanUserChangedValues) SetBanType(v string)` + +SetBanType sets BanType field to given value. + +### HasBanType + +`func (o *APIBanUserChangedValues) HasBanType() bool` + +HasBanType returns a boolean if a field has been set. + +### GetBannedUntil + +`func (o *APIBanUserChangedValues) GetBannedUntil() time.Time` + +GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. + +### GetBannedUntilOk + +`func (o *APIBanUserChangedValues) GetBannedUntilOk() (*time.Time, bool)` + +GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBannedUntil + +`func (o *APIBanUserChangedValues) SetBannedUntil(v time.Time)` + +SetBannedUntil sets BannedUntil field to given value. + +### HasBannedUntil + +`func (o *APIBanUserChangedValues) HasBannedUntil() bool` + +HasBannedUntil returns a boolean if a field has been set. + +### SetBannedUntilNil + +`func (o *APIBanUserChangedValues) SetBannedUntilNil(b bool)` + + SetBannedUntilNil sets the value for BannedUntil to be an explicit nil + +### UnsetBannedUntil +`func (o *APIBanUserChangedValues) UnsetBannedUntil()` + +UnsetBannedUntil ensures that no value is present for BannedUntil, not even an explicit nil +### GetHasEmailWildcard + +`func (o *APIBanUserChangedValues) GetHasEmailWildcard() bool` + +GetHasEmailWildcard returns the HasEmailWildcard field if non-nil, zero value otherwise. + +### GetHasEmailWildcardOk + +`func (o *APIBanUserChangedValues) GetHasEmailWildcardOk() (*bool, bool)` + +GetHasEmailWildcardOk returns a tuple with the HasEmailWildcard field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasEmailWildcard + +`func (o *APIBanUserChangedValues) SetHasEmailWildcard(v bool)` + +SetHasEmailWildcard sets HasEmailWildcard field to given value. + +### HasHasEmailWildcard + +`func (o *APIBanUserChangedValues) HasHasEmailWildcard() bool` + +HasHasEmailWildcard returns a boolean if a field has been set. + +### GetBanReason + +`func (o *APIBanUserChangedValues) GetBanReason() string` + +GetBanReason returns the BanReason field if non-nil, zero value otherwise. + +### GetBanReasonOk + +`func (o *APIBanUserChangedValues) GetBanReasonOk() (*string, bool)` + +GetBanReasonOk returns a tuple with the BanReason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBanReason + +`func (o *APIBanUserChangedValues) SetBanReason(v string)` + +SetBanReason sets BanReason field to given value. + +### HasBanReason + +`func (o *APIBanUserChangedValues) HasBanReason() bool` + +HasBanReason returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/APIBannedUser.md b/client/docs/APIBannedUser.md new file mode 100644 index 0000000..b0b355d --- /dev/null +++ b/client/docs/APIBannedUser.md @@ -0,0 +1,378 @@ +# APIBannedUser + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**TenantId** | **string** | | +**UserId** | Pointer to **NullableString** | | [optional] +**Email** | Pointer to **NullableString** | | [optional] +**Username** | Pointer to **NullableString** | | [optional] +**IpHash** | Pointer to **NullableString** | | [optional] +**CreatedAt** | **time.Time** | | +**BannedByUserId** | **string** | | +**BannedCommentText** | **string** | | +**BanType** | **string** | | +**BannedUntil** | **NullableTime** | | +**HasEmailWildcard** | **bool** | | +**BanReason** | Pointer to **string** | | [optional] + +## Methods + +### NewAPIBannedUser + +`func NewAPIBannedUser(id string, tenantId string, createdAt time.Time, bannedByUserId string, bannedCommentText string, banType string, bannedUntil NullableTime, hasEmailWildcard bool, ) *APIBannedUser` + +NewAPIBannedUser instantiates a new APIBannedUser object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAPIBannedUserWithDefaults + +`func NewAPIBannedUserWithDefaults() *APIBannedUser` + +NewAPIBannedUserWithDefaults instantiates a new APIBannedUser object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *APIBannedUser) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *APIBannedUser) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *APIBannedUser) SetId(v string)` + +SetId sets Id field to given value. + + +### GetTenantId + +`func (o *APIBannedUser) GetTenantId() string` + +GetTenantId returns the TenantId field if non-nil, zero value otherwise. + +### GetTenantIdOk + +`func (o *APIBannedUser) GetTenantIdOk() (*string, bool)` + +GetTenantIdOk returns a tuple with the TenantId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenantId + +`func (o *APIBannedUser) SetTenantId(v string)` + +SetTenantId sets TenantId field to given value. + + +### GetUserId + +`func (o *APIBannedUser) GetUserId() string` + +GetUserId returns the UserId field if non-nil, zero value otherwise. + +### GetUserIdOk + +`func (o *APIBannedUser) GetUserIdOk() (*string, bool)` + +GetUserIdOk returns a tuple with the UserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserId + +`func (o *APIBannedUser) SetUserId(v string)` + +SetUserId sets UserId field to given value. + +### HasUserId + +`func (o *APIBannedUser) HasUserId() bool` + +HasUserId returns a boolean if a field has been set. + +### SetUserIdNil + +`func (o *APIBannedUser) SetUserIdNil(b bool)` + + SetUserIdNil sets the value for UserId to be an explicit nil + +### UnsetUserId +`func (o *APIBannedUser) UnsetUserId()` + +UnsetUserId ensures that no value is present for UserId, not even an explicit nil +### GetEmail + +`func (o *APIBannedUser) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *APIBannedUser) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *APIBannedUser) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *APIBannedUser) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### SetEmailNil + +`func (o *APIBannedUser) SetEmailNil(b bool)` + + SetEmailNil sets the value for Email to be an explicit nil + +### UnsetEmail +`func (o *APIBannedUser) UnsetEmail()` + +UnsetEmail ensures that no value is present for Email, not even an explicit nil +### GetUsername + +`func (o *APIBannedUser) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *APIBannedUser) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *APIBannedUser) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *APIBannedUser) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### SetUsernameNil + +`func (o *APIBannedUser) SetUsernameNil(b bool)` + + SetUsernameNil sets the value for Username to be an explicit nil + +### UnsetUsername +`func (o *APIBannedUser) UnsetUsername()` + +UnsetUsername ensures that no value is present for Username, not even an explicit nil +### GetIpHash + +`func (o *APIBannedUser) GetIpHash() string` + +GetIpHash returns the IpHash field if non-nil, zero value otherwise. + +### GetIpHashOk + +`func (o *APIBannedUser) GetIpHashOk() (*string, bool)` + +GetIpHashOk returns a tuple with the IpHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpHash + +`func (o *APIBannedUser) SetIpHash(v string)` + +SetIpHash sets IpHash field to given value. + +### HasIpHash + +`func (o *APIBannedUser) HasIpHash() bool` + +HasIpHash returns a boolean if a field has been set. + +### SetIpHashNil + +`func (o *APIBannedUser) SetIpHashNil(b bool)` + + SetIpHashNil sets the value for IpHash to be an explicit nil + +### UnsetIpHash +`func (o *APIBannedUser) UnsetIpHash()` + +UnsetIpHash ensures that no value is present for IpHash, not even an explicit nil +### GetCreatedAt + +`func (o *APIBannedUser) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *APIBannedUser) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *APIBannedUser) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetBannedByUserId + +`func (o *APIBannedUser) GetBannedByUserId() string` + +GetBannedByUserId returns the BannedByUserId field if non-nil, zero value otherwise. + +### GetBannedByUserIdOk + +`func (o *APIBannedUser) GetBannedByUserIdOk() (*string, bool)` + +GetBannedByUserIdOk returns a tuple with the BannedByUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBannedByUserId + +`func (o *APIBannedUser) SetBannedByUserId(v string)` + +SetBannedByUserId sets BannedByUserId field to given value. + + +### GetBannedCommentText + +`func (o *APIBannedUser) GetBannedCommentText() string` + +GetBannedCommentText returns the BannedCommentText field if non-nil, zero value otherwise. + +### GetBannedCommentTextOk + +`func (o *APIBannedUser) GetBannedCommentTextOk() (*string, bool)` + +GetBannedCommentTextOk returns a tuple with the BannedCommentText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBannedCommentText + +`func (o *APIBannedUser) SetBannedCommentText(v string)` + +SetBannedCommentText sets BannedCommentText field to given value. + + +### GetBanType + +`func (o *APIBannedUser) GetBanType() string` + +GetBanType returns the BanType field if non-nil, zero value otherwise. + +### GetBanTypeOk + +`func (o *APIBannedUser) GetBanTypeOk() (*string, bool)` + +GetBanTypeOk returns a tuple with the BanType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBanType + +`func (o *APIBannedUser) SetBanType(v string)` + +SetBanType sets BanType field to given value. + + +### GetBannedUntil + +`func (o *APIBannedUser) GetBannedUntil() time.Time` + +GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. + +### GetBannedUntilOk + +`func (o *APIBannedUser) GetBannedUntilOk() (*time.Time, bool)` + +GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBannedUntil + +`func (o *APIBannedUser) SetBannedUntil(v time.Time)` + +SetBannedUntil sets BannedUntil field to given value. + + +### SetBannedUntilNil + +`func (o *APIBannedUser) SetBannedUntilNil(b bool)` + + SetBannedUntilNil sets the value for BannedUntil to be an explicit nil + +### UnsetBannedUntil +`func (o *APIBannedUser) UnsetBannedUntil()` + +UnsetBannedUntil ensures that no value is present for BannedUntil, not even an explicit nil +### GetHasEmailWildcard + +`func (o *APIBannedUser) GetHasEmailWildcard() bool` + +GetHasEmailWildcard returns the HasEmailWildcard field if non-nil, zero value otherwise. + +### GetHasEmailWildcardOk + +`func (o *APIBannedUser) GetHasEmailWildcardOk() (*bool, bool)` + +GetHasEmailWildcardOk returns a tuple with the HasEmailWildcard field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasEmailWildcard + +`func (o *APIBannedUser) SetHasEmailWildcard(v bool)` + +SetHasEmailWildcard sets HasEmailWildcard field to given value. + + +### GetBanReason + +`func (o *APIBannedUser) GetBanReason() string` + +GetBanReason returns the BanReason field if non-nil, zero value otherwise. + +### GetBanReasonOk + +`func (o *APIBannedUser) GetBanReasonOk() (*string, bool)` + +GetBanReasonOk returns a tuple with the BanReason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBanReason + +`func (o *APIBannedUser) SetBanReason(v string)` + +SetBanReason sets BanReason field to given value. + +### HasBanReason + +`func (o *APIBannedUser) HasBanReason() bool` + +HasBanReason returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/APIBannedUserWithMultiMatchInfo.md b/client/docs/APIBannedUserWithMultiMatchInfo.md new file mode 100644 index 0000000..1729478 --- /dev/null +++ b/client/docs/APIBannedUserWithMultiMatchInfo.md @@ -0,0 +1,279 @@ +# APIBannedUserWithMultiMatchInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**UserId** | Pointer to **NullableString** | | [optional] +**BanType** | **string** | | +**Email** | Pointer to **NullableString** | | [optional] +**IpHash** | Pointer to **NullableString** | | [optional] +**BannedUntil** | **NullableTime** | | +**HasEmailWildcard** | **bool** | | +**BanReason** | Pointer to **string** | | [optional] +**Matches** | [**[]BannedUserMatch**](BannedUserMatch.md) | | + +## Methods + +### NewAPIBannedUserWithMultiMatchInfo + +`func NewAPIBannedUserWithMultiMatchInfo(id string, banType string, bannedUntil NullableTime, hasEmailWildcard bool, matches []BannedUserMatch, ) *APIBannedUserWithMultiMatchInfo` + +NewAPIBannedUserWithMultiMatchInfo instantiates a new APIBannedUserWithMultiMatchInfo object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAPIBannedUserWithMultiMatchInfoWithDefaults + +`func NewAPIBannedUserWithMultiMatchInfoWithDefaults() *APIBannedUserWithMultiMatchInfo` + +NewAPIBannedUserWithMultiMatchInfoWithDefaults instantiates a new APIBannedUserWithMultiMatchInfo object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *APIBannedUserWithMultiMatchInfo) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *APIBannedUserWithMultiMatchInfo) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *APIBannedUserWithMultiMatchInfo) SetId(v string)` + +SetId sets Id field to given value. + + +### GetUserId + +`func (o *APIBannedUserWithMultiMatchInfo) GetUserId() string` + +GetUserId returns the UserId field if non-nil, zero value otherwise. + +### GetUserIdOk + +`func (o *APIBannedUserWithMultiMatchInfo) GetUserIdOk() (*string, bool)` + +GetUserIdOk returns a tuple with the UserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserId + +`func (o *APIBannedUserWithMultiMatchInfo) SetUserId(v string)` + +SetUserId sets UserId field to given value. + +### HasUserId + +`func (o *APIBannedUserWithMultiMatchInfo) HasUserId() bool` + +HasUserId returns a boolean if a field has been set. + +### SetUserIdNil + +`func (o *APIBannedUserWithMultiMatchInfo) SetUserIdNil(b bool)` + + SetUserIdNil sets the value for UserId to be an explicit nil + +### UnsetUserId +`func (o *APIBannedUserWithMultiMatchInfo) UnsetUserId()` + +UnsetUserId ensures that no value is present for UserId, not even an explicit nil +### GetBanType + +`func (o *APIBannedUserWithMultiMatchInfo) GetBanType() string` + +GetBanType returns the BanType field if non-nil, zero value otherwise. + +### GetBanTypeOk + +`func (o *APIBannedUserWithMultiMatchInfo) GetBanTypeOk() (*string, bool)` + +GetBanTypeOk returns a tuple with the BanType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBanType + +`func (o *APIBannedUserWithMultiMatchInfo) SetBanType(v string)` + +SetBanType sets BanType field to given value. + + +### GetEmail + +`func (o *APIBannedUserWithMultiMatchInfo) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *APIBannedUserWithMultiMatchInfo) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *APIBannedUserWithMultiMatchInfo) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *APIBannedUserWithMultiMatchInfo) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### SetEmailNil + +`func (o *APIBannedUserWithMultiMatchInfo) SetEmailNil(b bool)` + + SetEmailNil sets the value for Email to be an explicit nil + +### UnsetEmail +`func (o *APIBannedUserWithMultiMatchInfo) UnsetEmail()` + +UnsetEmail ensures that no value is present for Email, not even an explicit nil +### GetIpHash + +`func (o *APIBannedUserWithMultiMatchInfo) GetIpHash() string` + +GetIpHash returns the IpHash field if non-nil, zero value otherwise. + +### GetIpHashOk + +`func (o *APIBannedUserWithMultiMatchInfo) GetIpHashOk() (*string, bool)` + +GetIpHashOk returns a tuple with the IpHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpHash + +`func (o *APIBannedUserWithMultiMatchInfo) SetIpHash(v string)` + +SetIpHash sets IpHash field to given value. + +### HasIpHash + +`func (o *APIBannedUserWithMultiMatchInfo) HasIpHash() bool` + +HasIpHash returns a boolean if a field has been set. + +### SetIpHashNil + +`func (o *APIBannedUserWithMultiMatchInfo) SetIpHashNil(b bool)` + + SetIpHashNil sets the value for IpHash to be an explicit nil + +### UnsetIpHash +`func (o *APIBannedUserWithMultiMatchInfo) UnsetIpHash()` + +UnsetIpHash ensures that no value is present for IpHash, not even an explicit nil +### GetBannedUntil + +`func (o *APIBannedUserWithMultiMatchInfo) GetBannedUntil() time.Time` + +GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. + +### GetBannedUntilOk + +`func (o *APIBannedUserWithMultiMatchInfo) GetBannedUntilOk() (*time.Time, bool)` + +GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBannedUntil + +`func (o *APIBannedUserWithMultiMatchInfo) SetBannedUntil(v time.Time)` + +SetBannedUntil sets BannedUntil field to given value. + + +### SetBannedUntilNil + +`func (o *APIBannedUserWithMultiMatchInfo) SetBannedUntilNil(b bool)` + + SetBannedUntilNil sets the value for BannedUntil to be an explicit nil + +### UnsetBannedUntil +`func (o *APIBannedUserWithMultiMatchInfo) UnsetBannedUntil()` + +UnsetBannedUntil ensures that no value is present for BannedUntil, not even an explicit nil +### GetHasEmailWildcard + +`func (o *APIBannedUserWithMultiMatchInfo) GetHasEmailWildcard() bool` + +GetHasEmailWildcard returns the HasEmailWildcard field if non-nil, zero value otherwise. + +### GetHasEmailWildcardOk + +`func (o *APIBannedUserWithMultiMatchInfo) GetHasEmailWildcardOk() (*bool, bool)` + +GetHasEmailWildcardOk returns a tuple with the HasEmailWildcard field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasEmailWildcard + +`func (o *APIBannedUserWithMultiMatchInfo) SetHasEmailWildcard(v bool)` + +SetHasEmailWildcard sets HasEmailWildcard field to given value. + + +### GetBanReason + +`func (o *APIBannedUserWithMultiMatchInfo) GetBanReason() string` + +GetBanReason returns the BanReason field if non-nil, zero value otherwise. + +### GetBanReasonOk + +`func (o *APIBannedUserWithMultiMatchInfo) GetBanReasonOk() (*string, bool)` + +GetBanReasonOk returns a tuple with the BanReason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBanReason + +`func (o *APIBannedUserWithMultiMatchInfo) SetBanReason(v string)` + +SetBanReason sets BanReason field to given value. + +### HasBanReason + +`func (o *APIBannedUserWithMultiMatchInfo) HasBanReason() bool` + +HasBanReason returns a boolean if a field has been set. + +### GetMatches + +`func (o *APIBannedUserWithMultiMatchInfo) GetMatches() []BannedUserMatch` + +GetMatches returns the Matches field if non-nil, zero value otherwise. + +### GetMatchesOk + +`func (o *APIBannedUserWithMultiMatchInfo) GetMatchesOk() (*[]BannedUserMatch, bool)` + +GetMatchesOk returns a tuple with the Matches field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMatches + +`func (o *APIBannedUserWithMultiMatchInfo) SetMatches(v []BannedUserMatch)` + +SetMatches sets Matches field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/APICommentCommonBannedUser.md b/client/docs/APICommentCommonBannedUser.md new file mode 100644 index 0000000..a88c417 --- /dev/null +++ b/client/docs/APICommentCommonBannedUser.md @@ -0,0 +1,258 @@ +# APICommentCommonBannedUser + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**UserId** | Pointer to **NullableString** | | [optional] +**BanType** | **string** | | +**Email** | Pointer to **NullableString** | | [optional] +**IpHash** | Pointer to **NullableString** | | [optional] +**BannedUntil** | **NullableTime** | | +**HasEmailWildcard** | **bool** | | +**BanReason** | Pointer to **string** | | [optional] + +## Methods + +### NewAPICommentCommonBannedUser + +`func NewAPICommentCommonBannedUser(id string, banType string, bannedUntil NullableTime, hasEmailWildcard bool, ) *APICommentCommonBannedUser` + +NewAPICommentCommonBannedUser instantiates a new APICommentCommonBannedUser object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAPICommentCommonBannedUserWithDefaults + +`func NewAPICommentCommonBannedUserWithDefaults() *APICommentCommonBannedUser` + +NewAPICommentCommonBannedUserWithDefaults instantiates a new APICommentCommonBannedUser object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *APICommentCommonBannedUser) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *APICommentCommonBannedUser) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *APICommentCommonBannedUser) SetId(v string)` + +SetId sets Id field to given value. + + +### GetUserId + +`func (o *APICommentCommonBannedUser) GetUserId() string` + +GetUserId returns the UserId field if non-nil, zero value otherwise. + +### GetUserIdOk + +`func (o *APICommentCommonBannedUser) GetUserIdOk() (*string, bool)` + +GetUserIdOk returns a tuple with the UserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserId + +`func (o *APICommentCommonBannedUser) SetUserId(v string)` + +SetUserId sets UserId field to given value. + +### HasUserId + +`func (o *APICommentCommonBannedUser) HasUserId() bool` + +HasUserId returns a boolean if a field has been set. + +### SetUserIdNil + +`func (o *APICommentCommonBannedUser) SetUserIdNil(b bool)` + + SetUserIdNil sets the value for UserId to be an explicit nil + +### UnsetUserId +`func (o *APICommentCommonBannedUser) UnsetUserId()` + +UnsetUserId ensures that no value is present for UserId, not even an explicit nil +### GetBanType + +`func (o *APICommentCommonBannedUser) GetBanType() string` + +GetBanType returns the BanType field if non-nil, zero value otherwise. + +### GetBanTypeOk + +`func (o *APICommentCommonBannedUser) GetBanTypeOk() (*string, bool)` + +GetBanTypeOk returns a tuple with the BanType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBanType + +`func (o *APICommentCommonBannedUser) SetBanType(v string)` + +SetBanType sets BanType field to given value. + + +### GetEmail + +`func (o *APICommentCommonBannedUser) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *APICommentCommonBannedUser) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *APICommentCommonBannedUser) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *APICommentCommonBannedUser) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### SetEmailNil + +`func (o *APICommentCommonBannedUser) SetEmailNil(b bool)` + + SetEmailNil sets the value for Email to be an explicit nil + +### UnsetEmail +`func (o *APICommentCommonBannedUser) UnsetEmail()` + +UnsetEmail ensures that no value is present for Email, not even an explicit nil +### GetIpHash + +`func (o *APICommentCommonBannedUser) GetIpHash() string` + +GetIpHash returns the IpHash field if non-nil, zero value otherwise. + +### GetIpHashOk + +`func (o *APICommentCommonBannedUser) GetIpHashOk() (*string, bool)` + +GetIpHashOk returns a tuple with the IpHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpHash + +`func (o *APICommentCommonBannedUser) SetIpHash(v string)` + +SetIpHash sets IpHash field to given value. + +### HasIpHash + +`func (o *APICommentCommonBannedUser) HasIpHash() bool` + +HasIpHash returns a boolean if a field has been set. + +### SetIpHashNil + +`func (o *APICommentCommonBannedUser) SetIpHashNil(b bool)` + + SetIpHashNil sets the value for IpHash to be an explicit nil + +### UnsetIpHash +`func (o *APICommentCommonBannedUser) UnsetIpHash()` + +UnsetIpHash ensures that no value is present for IpHash, not even an explicit nil +### GetBannedUntil + +`func (o *APICommentCommonBannedUser) GetBannedUntil() time.Time` + +GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. + +### GetBannedUntilOk + +`func (o *APICommentCommonBannedUser) GetBannedUntilOk() (*time.Time, bool)` + +GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBannedUntil + +`func (o *APICommentCommonBannedUser) SetBannedUntil(v time.Time)` + +SetBannedUntil sets BannedUntil field to given value. + + +### SetBannedUntilNil + +`func (o *APICommentCommonBannedUser) SetBannedUntilNil(b bool)` + + SetBannedUntilNil sets the value for BannedUntil to be an explicit nil + +### UnsetBannedUntil +`func (o *APICommentCommonBannedUser) UnsetBannedUntil()` + +UnsetBannedUntil ensures that no value is present for BannedUntil, not even an explicit nil +### GetHasEmailWildcard + +`func (o *APICommentCommonBannedUser) GetHasEmailWildcard() bool` + +GetHasEmailWildcard returns the HasEmailWildcard field if non-nil, zero value otherwise. + +### GetHasEmailWildcardOk + +`func (o *APICommentCommonBannedUser) GetHasEmailWildcardOk() (*bool, bool)` + +GetHasEmailWildcardOk returns a tuple with the HasEmailWildcard field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasEmailWildcard + +`func (o *APICommentCommonBannedUser) SetHasEmailWildcard(v bool)` + +SetHasEmailWildcard sets HasEmailWildcard field to given value. + + +### GetBanReason + +`func (o *APICommentCommonBannedUser) GetBanReason() string` + +GetBanReason returns the BanReason field if non-nil, zero value otherwise. + +### GetBanReasonOk + +`func (o *APICommentCommonBannedUser) GetBanReasonOk() (*string, bool)` + +GetBanReasonOk returns a tuple with the BanReason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBanReason + +`func (o *APICommentCommonBannedUser) SetBanReason(v string)` + +SetBanReason sets BanReason field to given value. + +### HasBanReason + +`func (o *APICommentCommonBannedUser) HasBanReason() bool` + +HasBanReason returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/APIModerateGetUserBanPreferencesResponse.md b/client/docs/APIModerateGetUserBanPreferencesResponse.md new file mode 100644 index 0000000..01525c2 --- /dev/null +++ b/client/docs/APIModerateGetUserBanPreferencesResponse.md @@ -0,0 +1,82 @@ +# APIModerateGetUserBanPreferencesResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Preferences** | [**NullableAPIModerateUserBanPreferences**](APIModerateUserBanPreferences.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | + +## Methods + +### NewAPIModerateGetUserBanPreferencesResponse + +`func NewAPIModerateGetUserBanPreferencesResponse(preferences NullableAPIModerateUserBanPreferences, status APIStatus, ) *APIModerateGetUserBanPreferencesResponse` + +NewAPIModerateGetUserBanPreferencesResponse instantiates a new APIModerateGetUserBanPreferencesResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAPIModerateGetUserBanPreferencesResponseWithDefaults + +`func NewAPIModerateGetUserBanPreferencesResponseWithDefaults() *APIModerateGetUserBanPreferencesResponse` + +NewAPIModerateGetUserBanPreferencesResponseWithDefaults instantiates a new APIModerateGetUserBanPreferencesResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPreferences + +`func (o *APIModerateGetUserBanPreferencesResponse) GetPreferences() APIModerateUserBanPreferences` + +GetPreferences returns the Preferences field if non-nil, zero value otherwise. + +### GetPreferencesOk + +`func (o *APIModerateGetUserBanPreferencesResponse) GetPreferencesOk() (*APIModerateUserBanPreferences, bool)` + +GetPreferencesOk returns a tuple with the Preferences field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPreferences + +`func (o *APIModerateGetUserBanPreferencesResponse) SetPreferences(v APIModerateUserBanPreferences)` + +SetPreferences sets Preferences field to given value. + + +### SetPreferencesNil + +`func (o *APIModerateGetUserBanPreferencesResponse) SetPreferencesNil(b bool)` + + SetPreferencesNil sets the value for Preferences to be an explicit nil + +### UnsetPreferences +`func (o *APIModerateGetUserBanPreferencesResponse) UnsetPreferences()` + +UnsetPreferences ensures that no value is present for Preferences, not even an explicit nil +### GetStatus + +`func (o *APIModerateGetUserBanPreferencesResponse) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *APIModerateGetUserBanPreferencesResponse) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *APIModerateGetUserBanPreferencesResponse) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/APIModerateUserBanPreferences.md b/client/docs/APIModerateUserBanPreferences.md new file mode 100644 index 0000000..aef00bf --- /dev/null +++ b/client/docs/APIModerateUserBanPreferences.md @@ -0,0 +1,114 @@ +# APIModerateUserBanPreferences + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ShouldBanEmail** | **bool** | | +**ShouldBanByIP** | **bool** | | +**LastBanType** | **string** | | +**LastBanDuration** | **string** | | + +## Methods + +### NewAPIModerateUserBanPreferences + +`func NewAPIModerateUserBanPreferences(shouldBanEmail bool, shouldBanByIP bool, lastBanType string, lastBanDuration string, ) *APIModerateUserBanPreferences` + +NewAPIModerateUserBanPreferences instantiates a new APIModerateUserBanPreferences object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAPIModerateUserBanPreferencesWithDefaults + +`func NewAPIModerateUserBanPreferencesWithDefaults() *APIModerateUserBanPreferences` + +NewAPIModerateUserBanPreferencesWithDefaults instantiates a new APIModerateUserBanPreferences object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetShouldBanEmail + +`func (o *APIModerateUserBanPreferences) GetShouldBanEmail() bool` + +GetShouldBanEmail returns the ShouldBanEmail field if non-nil, zero value otherwise. + +### GetShouldBanEmailOk + +`func (o *APIModerateUserBanPreferences) GetShouldBanEmailOk() (*bool, bool)` + +GetShouldBanEmailOk returns a tuple with the ShouldBanEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShouldBanEmail + +`func (o *APIModerateUserBanPreferences) SetShouldBanEmail(v bool)` + +SetShouldBanEmail sets ShouldBanEmail field to given value. + + +### GetShouldBanByIP + +`func (o *APIModerateUserBanPreferences) GetShouldBanByIP() bool` + +GetShouldBanByIP returns the ShouldBanByIP field if non-nil, zero value otherwise. + +### GetShouldBanByIPOk + +`func (o *APIModerateUserBanPreferences) GetShouldBanByIPOk() (*bool, bool)` + +GetShouldBanByIPOk returns a tuple with the ShouldBanByIP field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShouldBanByIP + +`func (o *APIModerateUserBanPreferences) SetShouldBanByIP(v bool)` + +SetShouldBanByIP sets ShouldBanByIP field to given value. + + +### GetLastBanType + +`func (o *APIModerateUserBanPreferences) GetLastBanType() string` + +GetLastBanType returns the LastBanType field if non-nil, zero value otherwise. + +### GetLastBanTypeOk + +`func (o *APIModerateUserBanPreferences) GetLastBanTypeOk() (*string, bool)` + +GetLastBanTypeOk returns a tuple with the LastBanType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastBanType + +`func (o *APIModerateUserBanPreferences) SetLastBanType(v string)` + +SetLastBanType sets LastBanType field to given value. + + +### GetLastBanDuration + +`func (o *APIModerateUserBanPreferences) GetLastBanDuration() string` + +GetLastBanDuration returns the LastBanDuration field if non-nil, zero value otherwise. + +### GetLastBanDurationOk + +`func (o *APIModerateUserBanPreferences) GetLastBanDurationOk() (*string, bool)` + +GetLastBanDurationOk returns a tuple with the LastBanDuration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastBanDuration + +`func (o *APIModerateUserBanPreferences) SetLastBanDuration(v string)` + +SetLastBanDuration sets LastBanDuration field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/SaveCommentResponse.md b/client/docs/APISaveCommentResponse.md similarity index 62% rename from client/docs/SaveCommentResponse.md rename to client/docs/APISaveCommentResponse.md index 449edd6..4972b13 100644 --- a/client/docs/SaveCommentResponse.md +++ b/client/docs/APISaveCommentResponse.md @@ -1,125 +1,125 @@ -# SaveCommentResponse +# APISaveCommentResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Status** | [**APIStatus**](APIStatus.md) | | -**Comment** | [**FComment**](FComment.md) | | +**Comment** | [**APIComment**](APIComment.md) | | **User** | [**NullableUserSessionInfo**](UserSessionInfo.md) | | **ModuleData** | Pointer to **map[string]interface{}** | Construct a type with a set of properties K of type T | [optional] ## Methods -### NewSaveCommentResponse +### NewAPISaveCommentResponse -`func NewSaveCommentResponse(status APIStatus, comment FComment, user NullableUserSessionInfo, ) *SaveCommentResponse` +`func NewAPISaveCommentResponse(status APIStatus, comment APIComment, user NullableUserSessionInfo, ) *APISaveCommentResponse` -NewSaveCommentResponse instantiates a new SaveCommentResponse object +NewAPISaveCommentResponse instantiates a new APISaveCommentResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewSaveCommentResponseWithDefaults +### NewAPISaveCommentResponseWithDefaults -`func NewSaveCommentResponseWithDefaults() *SaveCommentResponse` +`func NewAPISaveCommentResponseWithDefaults() *APISaveCommentResponse` -NewSaveCommentResponseWithDefaults instantiates a new SaveCommentResponse object +NewAPISaveCommentResponseWithDefaults instantiates a new APISaveCommentResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *SaveCommentResponse) GetStatus() APIStatus` +`func (o *APISaveCommentResponse) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *SaveCommentResponse) GetStatusOk() (*APIStatus, bool)` +`func (o *APISaveCommentResponse) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *SaveCommentResponse) SetStatus(v APIStatus)` +`func (o *APISaveCommentResponse) SetStatus(v APIStatus)` SetStatus sets Status field to given value. ### GetComment -`func (o *SaveCommentResponse) GetComment() FComment` +`func (o *APISaveCommentResponse) GetComment() APIComment` GetComment returns the Comment field if non-nil, zero value otherwise. ### GetCommentOk -`func (o *SaveCommentResponse) GetCommentOk() (*FComment, bool)` +`func (o *APISaveCommentResponse) GetCommentOk() (*APIComment, bool)` GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetComment -`func (o *SaveCommentResponse) SetComment(v FComment)` +`func (o *APISaveCommentResponse) SetComment(v APIComment)` SetComment sets Comment field to given value. ### GetUser -`func (o *SaveCommentResponse) GetUser() UserSessionInfo` +`func (o *APISaveCommentResponse) GetUser() UserSessionInfo` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *SaveCommentResponse) GetUserOk() (*UserSessionInfo, bool)` +`func (o *APISaveCommentResponse) GetUserOk() (*UserSessionInfo, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *SaveCommentResponse) SetUser(v UserSessionInfo)` +`func (o *APISaveCommentResponse) SetUser(v UserSessionInfo)` SetUser sets User field to given value. ### SetUserNil -`func (o *SaveCommentResponse) SetUserNil(b bool)` +`func (o *APISaveCommentResponse) SetUserNil(b bool)` SetUserNil sets the value for User to be an explicit nil ### UnsetUser -`func (o *SaveCommentResponse) UnsetUser()` +`func (o *APISaveCommentResponse) UnsetUser()` UnsetUser ensures that no value is present for User, not even an explicit nil ### GetModuleData -`func (o *SaveCommentResponse) GetModuleData() map[string]interface{}` +`func (o *APISaveCommentResponse) GetModuleData() map[string]interface{}` GetModuleData returns the ModuleData field if non-nil, zero value otherwise. ### GetModuleDataOk -`func (o *SaveCommentResponse) GetModuleDataOk() (*map[string]interface{}, bool)` +`func (o *APISaveCommentResponse) GetModuleDataOk() (*map[string]interface{}, bool)` GetModuleDataOk returns a tuple with the ModuleData field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleData -`func (o *SaveCommentResponse) SetModuleData(v map[string]interface{})` +`func (o *APISaveCommentResponse) SetModuleData(v map[string]interface{})` SetModuleData sets ModuleData field to given value. ### HasModuleData -`func (o *SaveCommentResponse) HasModuleData() bool` +`func (o *APISaveCommentResponse) HasModuleData() bool` HasModuleData returns a boolean if a field has been set. diff --git a/client/docs/AddDomainConfig200Response.md b/client/docs/AddDomainConfigResponse.md similarity index 61% rename from client/docs/AddDomainConfig200Response.md rename to client/docs/AddDomainConfigResponse.md index 6c812b9..fbe4bd1 100644 --- a/client/docs/AddDomainConfig200Response.md +++ b/client/docs/AddDomainConfigResponse.md @@ -1,4 +1,4 @@ -# AddDomainConfig200Response +# AddDomainConfigResponse ## Properties @@ -11,121 +11,121 @@ Name | Type | Description | Notes ## Methods -### NewAddDomainConfig200Response +### NewAddDomainConfigResponse -`func NewAddDomainConfig200Response(reason string, code string, status interface{}, configuration interface{}, ) *AddDomainConfig200Response` +`func NewAddDomainConfigResponse(reason string, code string, status interface{}, configuration interface{}, ) *AddDomainConfigResponse` -NewAddDomainConfig200Response instantiates a new AddDomainConfig200Response object +NewAddDomainConfigResponse instantiates a new AddDomainConfigResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewAddDomainConfig200ResponseWithDefaults +### NewAddDomainConfigResponseWithDefaults -`func NewAddDomainConfig200ResponseWithDefaults() *AddDomainConfig200Response` +`func NewAddDomainConfigResponseWithDefaults() *AddDomainConfigResponse` -NewAddDomainConfig200ResponseWithDefaults instantiates a new AddDomainConfig200Response object +NewAddDomainConfigResponseWithDefaults instantiates a new AddDomainConfigResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetReason -`func (o *AddDomainConfig200Response) GetReason() string` +`func (o *AddDomainConfigResponse) GetReason() string` GetReason returns the Reason field if non-nil, zero value otherwise. ### GetReasonOk -`func (o *AddDomainConfig200Response) GetReasonOk() (*string, bool)` +`func (o *AddDomainConfigResponse) GetReasonOk() (*string, bool)` GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetReason -`func (o *AddDomainConfig200Response) SetReason(v string)` +`func (o *AddDomainConfigResponse) SetReason(v string)` SetReason sets Reason field to given value. ### GetCode -`func (o *AddDomainConfig200Response) GetCode() string` +`func (o *AddDomainConfigResponse) GetCode() string` GetCode returns the Code field if non-nil, zero value otherwise. ### GetCodeOk -`func (o *AddDomainConfig200Response) GetCodeOk() (*string, bool)` +`func (o *AddDomainConfigResponse) GetCodeOk() (*string, bool)` GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCode -`func (o *AddDomainConfig200Response) SetCode(v string)` +`func (o *AddDomainConfigResponse) SetCode(v string)` SetCode sets Code field to given value. ### GetStatus -`func (o *AddDomainConfig200Response) GetStatus() interface{}` +`func (o *AddDomainConfigResponse) GetStatus() interface{}` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *AddDomainConfig200Response) GetStatusOk() (*interface{}, bool)` +`func (o *AddDomainConfigResponse) GetStatusOk() (*interface{}, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *AddDomainConfig200Response) SetStatus(v interface{})` +`func (o *AddDomainConfigResponse) SetStatus(v interface{})` SetStatus sets Status field to given value. ### SetStatusNil -`func (o *AddDomainConfig200Response) SetStatusNil(b bool)` +`func (o *AddDomainConfigResponse) SetStatusNil(b bool)` SetStatusNil sets the value for Status to be an explicit nil ### UnsetStatus -`func (o *AddDomainConfig200Response) UnsetStatus()` +`func (o *AddDomainConfigResponse) UnsetStatus()` UnsetStatus ensures that no value is present for Status, not even an explicit nil ### GetConfiguration -`func (o *AddDomainConfig200Response) GetConfiguration() interface{}` +`func (o *AddDomainConfigResponse) GetConfiguration() interface{}` GetConfiguration returns the Configuration field if non-nil, zero value otherwise. ### GetConfigurationOk -`func (o *AddDomainConfig200Response) GetConfigurationOk() (*interface{}, bool)` +`func (o *AddDomainConfigResponse) GetConfigurationOk() (*interface{}, bool)` GetConfigurationOk returns a tuple with the Configuration field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfiguration -`func (o *AddDomainConfig200Response) SetConfiguration(v interface{})` +`func (o *AddDomainConfigResponse) SetConfiguration(v interface{})` SetConfiguration sets Configuration field to given value. ### SetConfigurationNil -`func (o *AddDomainConfig200Response) SetConfigurationNil(b bool)` +`func (o *AddDomainConfigResponse) SetConfigurationNil(b bool)` SetConfigurationNil sets the value for Configuration to be an explicit nil ### UnsetConfiguration -`func (o *AddDomainConfig200Response) UnsetConfiguration()` +`func (o *AddDomainConfigResponse) UnsetConfiguration()` UnsetConfiguration ensures that no value is present for Configuration, not even an explicit nil diff --git a/client/docs/AddDomainConfig200ResponseAnyOf.md b/client/docs/AddDomainConfigResponseAnyOf.md similarity index 59% rename from client/docs/AddDomainConfig200ResponseAnyOf.md rename to client/docs/AddDomainConfigResponseAnyOf.md index ca4a47a..3066d22 100644 --- a/client/docs/AddDomainConfig200ResponseAnyOf.md +++ b/client/docs/AddDomainConfigResponseAnyOf.md @@ -1,4 +1,4 @@ -# AddDomainConfig200ResponseAnyOf +# AddDomainConfigResponseAnyOf ## Properties @@ -9,81 +9,81 @@ Name | Type | Description | Notes ## Methods -### NewAddDomainConfig200ResponseAnyOf +### NewAddDomainConfigResponseAnyOf -`func NewAddDomainConfig200ResponseAnyOf(configuration interface{}, status interface{}, ) *AddDomainConfig200ResponseAnyOf` +`func NewAddDomainConfigResponseAnyOf(configuration interface{}, status interface{}, ) *AddDomainConfigResponseAnyOf` -NewAddDomainConfig200ResponseAnyOf instantiates a new AddDomainConfig200ResponseAnyOf object +NewAddDomainConfigResponseAnyOf instantiates a new AddDomainConfigResponseAnyOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewAddDomainConfig200ResponseAnyOfWithDefaults +### NewAddDomainConfigResponseAnyOfWithDefaults -`func NewAddDomainConfig200ResponseAnyOfWithDefaults() *AddDomainConfig200ResponseAnyOf` +`func NewAddDomainConfigResponseAnyOfWithDefaults() *AddDomainConfigResponseAnyOf` -NewAddDomainConfig200ResponseAnyOfWithDefaults instantiates a new AddDomainConfig200ResponseAnyOf object +NewAddDomainConfigResponseAnyOfWithDefaults instantiates a new AddDomainConfigResponseAnyOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetConfiguration -`func (o *AddDomainConfig200ResponseAnyOf) GetConfiguration() interface{}` +`func (o *AddDomainConfigResponseAnyOf) GetConfiguration() interface{}` GetConfiguration returns the Configuration field if non-nil, zero value otherwise. ### GetConfigurationOk -`func (o *AddDomainConfig200ResponseAnyOf) GetConfigurationOk() (*interface{}, bool)` +`func (o *AddDomainConfigResponseAnyOf) GetConfigurationOk() (*interface{}, bool)` GetConfigurationOk returns a tuple with the Configuration field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfiguration -`func (o *AddDomainConfig200ResponseAnyOf) SetConfiguration(v interface{})` +`func (o *AddDomainConfigResponseAnyOf) SetConfiguration(v interface{})` SetConfiguration sets Configuration field to given value. ### SetConfigurationNil -`func (o *AddDomainConfig200ResponseAnyOf) SetConfigurationNil(b bool)` +`func (o *AddDomainConfigResponseAnyOf) SetConfigurationNil(b bool)` SetConfigurationNil sets the value for Configuration to be an explicit nil ### UnsetConfiguration -`func (o *AddDomainConfig200ResponseAnyOf) UnsetConfiguration()` +`func (o *AddDomainConfigResponseAnyOf) UnsetConfiguration()` UnsetConfiguration ensures that no value is present for Configuration, not even an explicit nil ### GetStatus -`func (o *AddDomainConfig200ResponseAnyOf) GetStatus() interface{}` +`func (o *AddDomainConfigResponseAnyOf) GetStatus() interface{}` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *AddDomainConfig200ResponseAnyOf) GetStatusOk() (*interface{}, bool)` +`func (o *AddDomainConfigResponseAnyOf) GetStatusOk() (*interface{}, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *AddDomainConfig200ResponseAnyOf) SetStatus(v interface{})` +`func (o *AddDomainConfigResponseAnyOf) SetStatus(v interface{})` SetStatus sets Status field to given value. ### SetStatusNil -`func (o *AddDomainConfig200ResponseAnyOf) SetStatusNil(b bool)` +`func (o *AddDomainConfigResponseAnyOf) SetStatusNil(b bool)` SetStatusNil sets the value for Status to be an explicit nil ### UnsetStatus -`func (o *AddDomainConfig200ResponseAnyOf) UnsetStatus()` +`func (o *AddDomainConfigResponseAnyOf) UnsetStatus()` UnsetStatus ensures that no value is present for Status, not even an explicit nil diff --git a/client/docs/AddHashTag200Response.md b/client/docs/AddHashTag200Response.md deleted file mode 100644 index 1676e14..0000000 --- a/client/docs/AddHashTag200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# AddHashTag200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**HashTag** | [**TenantHashTag**](TenantHashTag.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewAddHashTag200Response - -`func NewAddHashTag200Response(status APIStatus, hashTag TenantHashTag, reason string, code string, ) *AddHashTag200Response` - -NewAddHashTag200Response instantiates a new AddHashTag200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewAddHashTag200ResponseWithDefaults - -`func NewAddHashTag200ResponseWithDefaults() *AddHashTag200Response` - -NewAddHashTag200ResponseWithDefaults instantiates a new AddHashTag200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *AddHashTag200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *AddHashTag200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *AddHashTag200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetHashTag - -`func (o *AddHashTag200Response) GetHashTag() TenantHashTag` - -GetHashTag returns the HashTag field if non-nil, zero value otherwise. - -### GetHashTagOk - -`func (o *AddHashTag200Response) GetHashTagOk() (*TenantHashTag, bool)` - -GetHashTagOk returns a tuple with the HashTag field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHashTag - -`func (o *AddHashTag200Response) SetHashTag(v TenantHashTag)` - -SetHashTag sets HashTag field to given value. - - -### GetReason - -`func (o *AddHashTag200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *AddHashTag200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *AddHashTag200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *AddHashTag200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *AddHashTag200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *AddHashTag200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *AddHashTag200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *AddHashTag200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *AddHashTag200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *AddHashTag200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *AddHashTag200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *AddHashTag200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *AddHashTag200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *AddHashTag200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *AddHashTag200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *AddHashTag200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *AddHashTag200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *AddHashTag200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *AddHashTag200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *AddHashTag200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *AddHashTag200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *AddHashTag200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *AddHashTag200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *AddHashTag200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *AddHashTag200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *AddHashTag200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/AddHashTagsBulk200Response.md b/client/docs/AddHashTagsBulk200Response.md deleted file mode 100644 index 2629f21..0000000 --- a/client/docs/AddHashTagsBulk200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# AddHashTagsBulk200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**Results** | [**[]AddHashTag200Response**](AddHashTag200Response.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewAddHashTagsBulk200Response - -`func NewAddHashTagsBulk200Response(status APIStatus, results []AddHashTag200Response, reason string, code string, ) *AddHashTagsBulk200Response` - -NewAddHashTagsBulk200Response instantiates a new AddHashTagsBulk200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewAddHashTagsBulk200ResponseWithDefaults - -`func NewAddHashTagsBulk200ResponseWithDefaults() *AddHashTagsBulk200Response` - -NewAddHashTagsBulk200ResponseWithDefaults instantiates a new AddHashTagsBulk200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *AddHashTagsBulk200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *AddHashTagsBulk200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *AddHashTagsBulk200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetResults - -`func (o *AddHashTagsBulk200Response) GetResults() []AddHashTag200Response` - -GetResults returns the Results field if non-nil, zero value otherwise. - -### GetResultsOk - -`func (o *AddHashTagsBulk200Response) GetResultsOk() (*[]AddHashTag200Response, bool)` - -GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResults - -`func (o *AddHashTagsBulk200Response) SetResults(v []AddHashTag200Response)` - -SetResults sets Results field to given value. - - -### GetReason - -`func (o *AddHashTagsBulk200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *AddHashTagsBulk200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *AddHashTagsBulk200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *AddHashTagsBulk200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *AddHashTagsBulk200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *AddHashTagsBulk200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *AddHashTagsBulk200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *AddHashTagsBulk200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *AddHashTagsBulk200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *AddHashTagsBulk200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *AddHashTagsBulk200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *AddHashTagsBulk200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *AddHashTagsBulk200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *AddHashTagsBulk200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *AddHashTagsBulk200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *AddHashTagsBulk200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *AddHashTagsBulk200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *AddHashTagsBulk200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *AddHashTagsBulk200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *AddHashTagsBulk200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *AddHashTagsBulk200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *AddHashTagsBulk200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *AddHashTagsBulk200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *AddHashTagsBulk200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *AddHashTagsBulk200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *AddHashTagsBulk200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/AdjustCommentVotesParams.md b/client/docs/AdjustCommentVotesParams.md new file mode 100644 index 0000000..9d1db2b --- /dev/null +++ b/client/docs/AdjustCommentVotesParams.md @@ -0,0 +1,51 @@ +# AdjustCommentVotesParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AdjustVoteAmount** | **float64** | | + +## Methods + +### NewAdjustCommentVotesParams + +`func NewAdjustCommentVotesParams(adjustVoteAmount float64, ) *AdjustCommentVotesParams` + +NewAdjustCommentVotesParams instantiates a new AdjustCommentVotesParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAdjustCommentVotesParamsWithDefaults + +`func NewAdjustCommentVotesParamsWithDefaults() *AdjustCommentVotesParams` + +NewAdjustCommentVotesParamsWithDefaults instantiates a new AdjustCommentVotesParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAdjustVoteAmount + +`func (o *AdjustCommentVotesParams) GetAdjustVoteAmount() float64` + +GetAdjustVoteAmount returns the AdjustVoteAmount field if non-nil, zero value otherwise. + +### GetAdjustVoteAmountOk + +`func (o *AdjustCommentVotesParams) GetAdjustVoteAmountOk() (*float64, bool)` + +GetAdjustVoteAmountOk returns a tuple with the AdjustVoteAmount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdjustVoteAmount + +`func (o *AdjustCommentVotesParams) SetAdjustVoteAmount(v float64)` + +SetAdjustVoteAmount sets AdjustVoteAmount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/AdjustVotesResponse.md b/client/docs/AdjustVotesResponse.md new file mode 100644 index 0000000..ed27232 --- /dev/null +++ b/client/docs/AdjustVotesResponse.md @@ -0,0 +1,72 @@ +# AdjustVotesResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **string** | | +**NewCommentVotes** | **int32** | | + +## Methods + +### NewAdjustVotesResponse + +`func NewAdjustVotesResponse(status string, newCommentVotes int32, ) *AdjustVotesResponse` + +NewAdjustVotesResponse instantiates a new AdjustVotesResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAdjustVotesResponseWithDefaults + +`func NewAdjustVotesResponseWithDefaults() *AdjustVotesResponse` + +NewAdjustVotesResponseWithDefaults instantiates a new AdjustVotesResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *AdjustVotesResponse) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *AdjustVotesResponse) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *AdjustVotesResponse) SetStatus(v string)` + +SetStatus sets Status field to given value. + + +### GetNewCommentVotes + +`func (o *AdjustVotesResponse) GetNewCommentVotes() int32` + +GetNewCommentVotes returns the NewCommentVotes field if non-nil, zero value otherwise. + +### GetNewCommentVotesOk + +`func (o *AdjustVotesResponse) GetNewCommentVotesOk() (*int32, bool)` + +GetNewCommentVotesOk returns a tuple with the NewCommentVotes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNewCommentVotes + +`func (o *AdjustVotesResponse) SetNewCommentVotes(v int32)` + +SetNewCommentVotes sets NewCommentVotes field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/AggregateQuestionResults200Response.md b/client/docs/AggregateQuestionResults200Response.md deleted file mode 100644 index be110a5..0000000 --- a/client/docs/AggregateQuestionResults200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# AggregateQuestionResults200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**Data** | [**QuestionResultAggregationOverall**](QuestionResultAggregationOverall.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewAggregateQuestionResults200Response - -`func NewAggregateQuestionResults200Response(status APIStatus, data QuestionResultAggregationOverall, reason string, code string, ) *AggregateQuestionResults200Response` - -NewAggregateQuestionResults200Response instantiates a new AggregateQuestionResults200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewAggregateQuestionResults200ResponseWithDefaults - -`func NewAggregateQuestionResults200ResponseWithDefaults() *AggregateQuestionResults200Response` - -NewAggregateQuestionResults200ResponseWithDefaults instantiates a new AggregateQuestionResults200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *AggregateQuestionResults200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *AggregateQuestionResults200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *AggregateQuestionResults200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetData - -`func (o *AggregateQuestionResults200Response) GetData() QuestionResultAggregationOverall` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *AggregateQuestionResults200Response) GetDataOk() (*QuestionResultAggregationOverall, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *AggregateQuestionResults200Response) SetData(v QuestionResultAggregationOverall)` - -SetData sets Data field to given value. - - -### GetReason - -`func (o *AggregateQuestionResults200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *AggregateQuestionResults200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *AggregateQuestionResults200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *AggregateQuestionResults200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *AggregateQuestionResults200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *AggregateQuestionResults200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *AggregateQuestionResults200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *AggregateQuestionResults200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *AggregateQuestionResults200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *AggregateQuestionResults200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *AggregateQuestionResults200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *AggregateQuestionResults200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *AggregateQuestionResults200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *AggregateQuestionResults200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *AggregateQuestionResults200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *AggregateQuestionResults200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *AggregateQuestionResults200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *AggregateQuestionResults200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *AggregateQuestionResults200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *AggregateQuestionResults200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *AggregateQuestionResults200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *AggregateQuestionResults200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *AggregateQuestionResults200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *AggregateQuestionResults200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *AggregateQuestionResults200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *AggregateQuestionResults200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/AggregateResponse.md b/client/docs/AggregateResponse.md new file mode 100644 index 0000000..969fda9 --- /dev/null +++ b/client/docs/AggregateResponse.md @@ -0,0 +1,166 @@ +# AggregateResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | [**APIStatus**](APIStatus.md) | | +**Data** | [**[]AggregationItem**](AggregationItem.md) | | +**Stats** | Pointer to [**AggregationResponseStats**](AggregationResponseStats.md) | | [optional] +**Reason** | **string** | | +**Code** | **string** | | +**ValidResourceNames** | Pointer to **[]string** | | [optional] + +## Methods + +### NewAggregateResponse + +`func NewAggregateResponse(status APIStatus, data []AggregationItem, reason string, code string, ) *AggregateResponse` + +NewAggregateResponse instantiates a new AggregateResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAggregateResponseWithDefaults + +`func NewAggregateResponseWithDefaults() *AggregateResponse` + +NewAggregateResponseWithDefaults instantiates a new AggregateResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *AggregateResponse) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *AggregateResponse) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *AggregateResponse) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + +### GetData + +`func (o *AggregateResponse) GetData() []AggregationItem` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AggregateResponse) GetDataOk() (*[]AggregationItem, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *AggregateResponse) SetData(v []AggregationItem)` + +SetData sets Data field to given value. + + +### GetStats + +`func (o *AggregateResponse) GetStats() AggregationResponseStats` + +GetStats returns the Stats field if non-nil, zero value otherwise. + +### GetStatsOk + +`func (o *AggregateResponse) GetStatsOk() (*AggregationResponseStats, bool)` + +GetStatsOk returns a tuple with the Stats field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStats + +`func (o *AggregateResponse) SetStats(v AggregationResponseStats)` + +SetStats sets Stats field to given value. + +### HasStats + +`func (o *AggregateResponse) HasStats() bool` + +HasStats returns a boolean if a field has been set. + +### GetReason + +`func (o *AggregateResponse) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AggregateResponse) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AggregateResponse) SetReason(v string)` + +SetReason sets Reason field to given value. + + +### GetCode + +`func (o *AggregateResponse) GetCode() string` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AggregateResponse) GetCodeOk() (*string, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AggregateResponse) SetCode(v string)` + +SetCode sets Code field to given value. + + +### GetValidResourceNames + +`func (o *AggregateResponse) GetValidResourceNames() []string` + +GetValidResourceNames returns the ValidResourceNames field if non-nil, zero value otherwise. + +### GetValidResourceNamesOk + +`func (o *AggregateResponse) GetValidResourceNamesOk() (*[]string, bool)` + +GetValidResourceNamesOk returns a tuple with the ValidResourceNames field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValidResourceNames + +`func (o *AggregateResponse) SetValidResourceNames(v []string)` + +SetValidResourceNames sets ValidResourceNames field to given value. + +### HasValidResourceNames + +`func (o *AggregateResponse) HasValidResourceNames() bool` + +HasValidResourceNames returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/AggregationAPIError.md b/client/docs/AggregationAPIError.md new file mode 100644 index 0000000..2b9c382 --- /dev/null +++ b/client/docs/AggregationAPIError.md @@ -0,0 +1,119 @@ +# AggregationAPIError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | [**APIStatus**](APIStatus.md) | | +**Reason** | **string** | | +**Code** | **string** | | +**ValidResourceNames** | Pointer to **[]string** | | [optional] + +## Methods + +### NewAggregationAPIError + +`func NewAggregationAPIError(status APIStatus, reason string, code string, ) *AggregationAPIError` + +NewAggregationAPIError instantiates a new AggregationAPIError object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAggregationAPIErrorWithDefaults + +`func NewAggregationAPIErrorWithDefaults() *AggregationAPIError` + +NewAggregationAPIErrorWithDefaults instantiates a new AggregationAPIError object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *AggregationAPIError) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *AggregationAPIError) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *AggregationAPIError) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + +### GetReason + +`func (o *AggregationAPIError) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AggregationAPIError) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AggregationAPIError) SetReason(v string)` + +SetReason sets Reason field to given value. + + +### GetCode + +`func (o *AggregationAPIError) GetCode() string` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AggregationAPIError) GetCodeOk() (*string, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AggregationAPIError) SetCode(v string)` + +SetCode sets Code field to given value. + + +### GetValidResourceNames + +`func (o *AggregationAPIError) GetValidResourceNames() []string` + +GetValidResourceNames returns the ValidResourceNames field if non-nil, zero value otherwise. + +### GetValidResourceNamesOk + +`func (o *AggregationAPIError) GetValidResourceNamesOk() (*[]string, bool)` + +GetValidResourceNamesOk returns a tuple with the ValidResourceNames field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValidResourceNames + +`func (o *AggregationAPIError) SetValidResourceNames(v []string)` + +SetValidResourceNames sets ValidResourceNames field to given value. + +### HasValidResourceNames + +`func (o *AggregationAPIError) HasValidResourceNames() bool` + +HasValidResourceNames returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/AwardUserBadgeResponse.md b/client/docs/AwardUserBadgeResponse.md new file mode 100644 index 0000000..0f18fb1 --- /dev/null +++ b/client/docs/AwardUserBadgeResponse.md @@ -0,0 +1,103 @@ +# AwardUserBadgeResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Notes** | Pointer to **[]string** | | [optional] +**Badges** | Pointer to [**[]CommentUserBadgeInfo**](CommentUserBadgeInfo.md) | | [optional] +**Status** | [**APIStatus**](APIStatus.md) | | + +## Methods + +### NewAwardUserBadgeResponse + +`func NewAwardUserBadgeResponse(status APIStatus, ) *AwardUserBadgeResponse` + +NewAwardUserBadgeResponse instantiates a new AwardUserBadgeResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAwardUserBadgeResponseWithDefaults + +`func NewAwardUserBadgeResponseWithDefaults() *AwardUserBadgeResponse` + +NewAwardUserBadgeResponseWithDefaults instantiates a new AwardUserBadgeResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNotes + +`func (o *AwardUserBadgeResponse) GetNotes() []string` + +GetNotes returns the Notes field if non-nil, zero value otherwise. + +### GetNotesOk + +`func (o *AwardUserBadgeResponse) GetNotesOk() (*[]string, bool)` + +GetNotesOk returns a tuple with the Notes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotes + +`func (o *AwardUserBadgeResponse) SetNotes(v []string)` + +SetNotes sets Notes field to given value. + +### HasNotes + +`func (o *AwardUserBadgeResponse) HasNotes() bool` + +HasNotes returns a boolean if a field has been set. + +### GetBadges + +`func (o *AwardUserBadgeResponse) GetBadges() []CommentUserBadgeInfo` + +GetBadges returns the Badges field if non-nil, zero value otherwise. + +### GetBadgesOk + +`func (o *AwardUserBadgeResponse) GetBadgesOk() (*[]CommentUserBadgeInfo, bool)` + +GetBadgesOk returns a tuple with the Badges field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBadges + +`func (o *AwardUserBadgeResponse) SetBadges(v []CommentUserBadgeInfo)` + +SetBadges sets Badges field to given value. + +### HasBadges + +`func (o *AwardUserBadgeResponse) HasBadges() bool` + +HasBadges returns a boolean if a field has been set. + +### GetStatus + +`func (o *AwardUserBadgeResponse) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *AwardUserBadgeResponse) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *AwardUserBadgeResponse) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/BanUserFromCommentResult.md b/client/docs/BanUserFromCommentResult.md new file mode 100644 index 0000000..a147b59 --- /dev/null +++ b/client/docs/BanUserFromCommentResult.md @@ -0,0 +1,129 @@ +# BanUserFromCommentResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **string** | | +**Changelog** | Pointer to [**APIBanUserChangeLog**](APIBanUserChangeLog.md) | | [optional] +**Code** | Pointer to **string** | | [optional] +**Reason** | Pointer to **string** | | [optional] + +## Methods + +### NewBanUserFromCommentResult + +`func NewBanUserFromCommentResult(status string, ) *BanUserFromCommentResult` + +NewBanUserFromCommentResult instantiates a new BanUserFromCommentResult object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBanUserFromCommentResultWithDefaults + +`func NewBanUserFromCommentResultWithDefaults() *BanUserFromCommentResult` + +NewBanUserFromCommentResultWithDefaults instantiates a new BanUserFromCommentResult object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *BanUserFromCommentResult) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *BanUserFromCommentResult) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *BanUserFromCommentResult) SetStatus(v string)` + +SetStatus sets Status field to given value. + + +### GetChangelog + +`func (o *BanUserFromCommentResult) GetChangelog() APIBanUserChangeLog` + +GetChangelog returns the Changelog field if non-nil, zero value otherwise. + +### GetChangelogOk + +`func (o *BanUserFromCommentResult) GetChangelogOk() (*APIBanUserChangeLog, bool)` + +GetChangelogOk returns a tuple with the Changelog field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChangelog + +`func (o *BanUserFromCommentResult) SetChangelog(v APIBanUserChangeLog)` + +SetChangelog sets Changelog field to given value. + +### HasChangelog + +`func (o *BanUserFromCommentResult) HasChangelog() bool` + +HasChangelog returns a boolean if a field has been set. + +### GetCode + +`func (o *BanUserFromCommentResult) GetCode() string` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *BanUserFromCommentResult) GetCodeOk() (*string, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *BanUserFromCommentResult) SetCode(v string)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *BanUserFromCommentResult) HasCode() bool` + +HasCode returns a boolean if a field has been set. + +### GetReason + +`func (o *BanUserFromCommentResult) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *BanUserFromCommentResult) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *BanUserFromCommentResult) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *BanUserFromCommentResult) HasReason() bool` + +HasReason returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/BanUserUndoParams.md b/client/docs/BanUserUndoParams.md new file mode 100644 index 0000000..94b6c2e --- /dev/null +++ b/client/docs/BanUserUndoParams.md @@ -0,0 +1,51 @@ +# BanUserUndoParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Changelog** | [**APIBanUserChangeLog**](APIBanUserChangeLog.md) | | + +## Methods + +### NewBanUserUndoParams + +`func NewBanUserUndoParams(changelog APIBanUserChangeLog, ) *BanUserUndoParams` + +NewBanUserUndoParams instantiates a new BanUserUndoParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBanUserUndoParamsWithDefaults + +`func NewBanUserUndoParamsWithDefaults() *BanUserUndoParams` + +NewBanUserUndoParamsWithDefaults instantiates a new BanUserUndoParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetChangelog + +`func (o *BanUserUndoParams) GetChangelog() APIBanUserChangeLog` + +GetChangelog returns the Changelog field if non-nil, zero value otherwise. + +### GetChangelogOk + +`func (o *BanUserUndoParams) GetChangelogOk() (*APIBanUserChangeLog, bool)` + +GetChangelogOk returns a tuple with the Changelog field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChangelog + +`func (o *BanUserUndoParams) SetChangelog(v APIBanUserChangeLog)` + +SetChangelog sets Changelog field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/BannedUserMatch.md b/client/docs/BannedUserMatch.md new file mode 100644 index 0000000..915a4f7 --- /dev/null +++ b/client/docs/BannedUserMatch.md @@ -0,0 +1,82 @@ +# BannedUserMatch + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MatchedOn** | [**BannedUserMatchType**](BannedUserMatchType.md) | | +**MatchedOnValue** | [**NullableBannedUserMatchMatchedOnValue**](BannedUserMatchMatchedOnValue.md) | | + +## Methods + +### NewBannedUserMatch + +`func NewBannedUserMatch(matchedOn BannedUserMatchType, matchedOnValue NullableBannedUserMatchMatchedOnValue, ) *BannedUserMatch` + +NewBannedUserMatch instantiates a new BannedUserMatch object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBannedUserMatchWithDefaults + +`func NewBannedUserMatchWithDefaults() *BannedUserMatch` + +NewBannedUserMatchWithDefaults instantiates a new BannedUserMatch object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMatchedOn + +`func (o *BannedUserMatch) GetMatchedOn() BannedUserMatchType` + +GetMatchedOn returns the MatchedOn field if non-nil, zero value otherwise. + +### GetMatchedOnOk + +`func (o *BannedUserMatch) GetMatchedOnOk() (*BannedUserMatchType, bool)` + +GetMatchedOnOk returns a tuple with the MatchedOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMatchedOn + +`func (o *BannedUserMatch) SetMatchedOn(v BannedUserMatchType)` + +SetMatchedOn sets MatchedOn field to given value. + + +### GetMatchedOnValue + +`func (o *BannedUserMatch) GetMatchedOnValue() BannedUserMatchMatchedOnValue` + +GetMatchedOnValue returns the MatchedOnValue field if non-nil, zero value otherwise. + +### GetMatchedOnValueOk + +`func (o *BannedUserMatch) GetMatchedOnValueOk() (*BannedUserMatchMatchedOnValue, bool)` + +GetMatchedOnValueOk returns a tuple with the MatchedOnValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMatchedOnValue + +`func (o *BannedUserMatch) SetMatchedOnValue(v BannedUserMatchMatchedOnValue)` + +SetMatchedOnValue sets MatchedOnValue field to given value. + + +### SetMatchedOnValueNil + +`func (o *BannedUserMatch) SetMatchedOnValueNil(b bool)` + + SetMatchedOnValueNil sets the value for MatchedOnValue to be an explicit nil + +### UnsetMatchedOnValue +`func (o *BannedUserMatch) UnsetMatchedOnValue()` + +UnsetMatchedOnValue ensures that no value is present for MatchedOnValue, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/RecordStringStringOrNumberValue.md b/client/docs/BannedUserMatchMatchedOnValue.md similarity index 57% rename from client/docs/RecordStringStringOrNumberValue.md rename to client/docs/BannedUserMatchMatchedOnValue.md index 1579ce8..0993cb9 100644 --- a/client/docs/RecordStringStringOrNumberValue.md +++ b/client/docs/BannedUserMatchMatchedOnValue.md @@ -1,4 +1,4 @@ -# RecordStringStringOrNumberValue +# BannedUserMatchMatchedOnValue ## Properties @@ -7,20 +7,20 @@ Name | Type | Description | Notes ## Methods -### NewRecordStringStringOrNumberValue +### NewBannedUserMatchMatchedOnValue -`func NewRecordStringStringOrNumberValue() *RecordStringStringOrNumberValue` +`func NewBannedUserMatchMatchedOnValue() *BannedUserMatchMatchedOnValue` -NewRecordStringStringOrNumberValue instantiates a new RecordStringStringOrNumberValue object +NewBannedUserMatchMatchedOnValue instantiates a new BannedUserMatchMatchedOnValue object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewRecordStringStringOrNumberValueWithDefaults +### NewBannedUserMatchMatchedOnValueWithDefaults -`func NewRecordStringStringOrNumberValueWithDefaults() *RecordStringStringOrNumberValue` +`func NewBannedUserMatchMatchedOnValueWithDefaults() *BannedUserMatchMatchedOnValue` -NewRecordStringStringOrNumberValueWithDefaults instantiates a new RecordStringStringOrNumberValue object +NewBannedUserMatchMatchedOnValueWithDefaults instantiates a new BannedUserMatchMatchedOnValue object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set diff --git a/client/docs/BannedUserMatchType.md b/client/docs/BannedUserMatchType.md new file mode 100644 index 0000000..b9ed5bf --- /dev/null +++ b/client/docs/BannedUserMatchType.md @@ -0,0 +1,17 @@ +# BannedUserMatchType + +## Enum + + +* `USER_ID` (value: `"userId"`) + +* `EMAIL` (value: `"email"`) + +* `EMAIL_WILDCARD` (value: `"email-wildcard"`) + +* `IP` (value: `"IP"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/BlockFromCommentPublic200Response.md b/client/docs/BlockFromCommentPublic200Response.md deleted file mode 100644 index e33faa3..0000000 --- a/client/docs/BlockFromCommentPublic200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# BlockFromCommentPublic200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**CommentStatuses** | **map[string]bool** | Construct a type with a set of properties K of type T | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewBlockFromCommentPublic200Response - -`func NewBlockFromCommentPublic200Response(status APIStatus, commentStatuses map[string]bool, reason string, code string, ) *BlockFromCommentPublic200Response` - -NewBlockFromCommentPublic200Response instantiates a new BlockFromCommentPublic200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewBlockFromCommentPublic200ResponseWithDefaults - -`func NewBlockFromCommentPublic200ResponseWithDefaults() *BlockFromCommentPublic200Response` - -NewBlockFromCommentPublic200ResponseWithDefaults instantiates a new BlockFromCommentPublic200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *BlockFromCommentPublic200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *BlockFromCommentPublic200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *BlockFromCommentPublic200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetCommentStatuses - -`func (o *BlockFromCommentPublic200Response) GetCommentStatuses() map[string]bool` - -GetCommentStatuses returns the CommentStatuses field if non-nil, zero value otherwise. - -### GetCommentStatusesOk - -`func (o *BlockFromCommentPublic200Response) GetCommentStatusesOk() (*map[string]bool, bool)` - -GetCommentStatusesOk returns a tuple with the CommentStatuses field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCommentStatuses - -`func (o *BlockFromCommentPublic200Response) SetCommentStatuses(v map[string]bool)` - -SetCommentStatuses sets CommentStatuses field to given value. - - -### GetReason - -`func (o *BlockFromCommentPublic200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *BlockFromCommentPublic200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *BlockFromCommentPublic200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *BlockFromCommentPublic200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *BlockFromCommentPublic200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *BlockFromCommentPublic200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *BlockFromCommentPublic200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *BlockFromCommentPublic200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *BlockFromCommentPublic200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *BlockFromCommentPublic200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *BlockFromCommentPublic200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *BlockFromCommentPublic200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *BlockFromCommentPublic200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *BlockFromCommentPublic200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *BlockFromCommentPublic200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *BlockFromCommentPublic200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *BlockFromCommentPublic200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *BlockFromCommentPublic200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *BlockFromCommentPublic200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *BlockFromCommentPublic200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *BlockFromCommentPublic200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *BlockFromCommentPublic200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *BlockFromCommentPublic200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *BlockFromCommentPublic200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *BlockFromCommentPublic200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *BlockFromCommentPublic200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/BuildModerationFilterParams.md b/client/docs/BuildModerationFilterParams.md new file mode 100644 index 0000000..bca7280 --- /dev/null +++ b/client/docs/BuildModerationFilterParams.md @@ -0,0 +1,150 @@ +# BuildModerationFilterParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UserId** | **string** | | +**TenantId** | **string** | | +**Filters** | Pointer to **string** | | [optional] +**SearchFilters** | Pointer to **string** | | [optional] +**TextSearch** | Pointer to **string** | | [optional] + +## Methods + +### NewBuildModerationFilterParams + +`func NewBuildModerationFilterParams(userId string, tenantId string, ) *BuildModerationFilterParams` + +NewBuildModerationFilterParams instantiates a new BuildModerationFilterParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBuildModerationFilterParamsWithDefaults + +`func NewBuildModerationFilterParamsWithDefaults() *BuildModerationFilterParams` + +NewBuildModerationFilterParamsWithDefaults instantiates a new BuildModerationFilterParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUserId + +`func (o *BuildModerationFilterParams) GetUserId() string` + +GetUserId returns the UserId field if non-nil, zero value otherwise. + +### GetUserIdOk + +`func (o *BuildModerationFilterParams) GetUserIdOk() (*string, bool)` + +GetUserIdOk returns a tuple with the UserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserId + +`func (o *BuildModerationFilterParams) SetUserId(v string)` + +SetUserId sets UserId field to given value. + + +### GetTenantId + +`func (o *BuildModerationFilterParams) GetTenantId() string` + +GetTenantId returns the TenantId field if non-nil, zero value otherwise. + +### GetTenantIdOk + +`func (o *BuildModerationFilterParams) GetTenantIdOk() (*string, bool)` + +GetTenantIdOk returns a tuple with the TenantId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenantId + +`func (o *BuildModerationFilterParams) SetTenantId(v string)` + +SetTenantId sets TenantId field to given value. + + +### GetFilters + +`func (o *BuildModerationFilterParams) GetFilters() string` + +GetFilters returns the Filters field if non-nil, zero value otherwise. + +### GetFiltersOk + +`func (o *BuildModerationFilterParams) GetFiltersOk() (*string, bool)` + +GetFiltersOk returns a tuple with the Filters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilters + +`func (o *BuildModerationFilterParams) SetFilters(v string)` + +SetFilters sets Filters field to given value. + +### HasFilters + +`func (o *BuildModerationFilterParams) HasFilters() bool` + +HasFilters returns a boolean if a field has been set. + +### GetSearchFilters + +`func (o *BuildModerationFilterParams) GetSearchFilters() string` + +GetSearchFilters returns the SearchFilters field if non-nil, zero value otherwise. + +### GetSearchFiltersOk + +`func (o *BuildModerationFilterParams) GetSearchFiltersOk() (*string, bool)` + +GetSearchFiltersOk returns a tuple with the SearchFilters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSearchFilters + +`func (o *BuildModerationFilterParams) SetSearchFilters(v string)` + +SetSearchFilters sets SearchFilters field to given value. + +### HasSearchFilters + +`func (o *BuildModerationFilterParams) HasSearchFilters() bool` + +HasSearchFilters returns a boolean if a field has been set. + +### GetTextSearch + +`func (o *BuildModerationFilterParams) GetTextSearch() string` + +GetTextSearch returns the TextSearch field if non-nil, zero value otherwise. + +### GetTextSearchOk + +`func (o *BuildModerationFilterParams) GetTextSearchOk() (*string, bool)` + +GetTextSearchOk returns a tuple with the TextSearch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTextSearch + +`func (o *BuildModerationFilterParams) SetTextSearch(v string)` + +SetTextSearch sets TextSearch field to given value. + +### HasTextSearch + +`func (o *BuildModerationFilterParams) HasTextSearch() bool` + +HasTextSearch returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/BuildModerationFilterResponse.md b/client/docs/BuildModerationFilterResponse.md new file mode 100644 index 0000000..5dea705 --- /dev/null +++ b/client/docs/BuildModerationFilterResponse.md @@ -0,0 +1,72 @@ +# BuildModerationFilterResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **string** | | +**ModerationFilter** | [**ModerationFilter**](ModerationFilter.md) | | + +## Methods + +### NewBuildModerationFilterResponse + +`func NewBuildModerationFilterResponse(status string, moderationFilter ModerationFilter, ) *BuildModerationFilterResponse` + +NewBuildModerationFilterResponse instantiates a new BuildModerationFilterResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBuildModerationFilterResponseWithDefaults + +`func NewBuildModerationFilterResponseWithDefaults() *BuildModerationFilterResponse` + +NewBuildModerationFilterResponseWithDefaults instantiates a new BuildModerationFilterResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *BuildModerationFilterResponse) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *BuildModerationFilterResponse) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *BuildModerationFilterResponse) SetStatus(v string)` + +SetStatus sets Status field to given value. + + +### GetModerationFilter + +`func (o *BuildModerationFilterResponse) GetModerationFilter() ModerationFilter` + +GetModerationFilter returns the ModerationFilter field if non-nil, zero value otherwise. + +### GetModerationFilterOk + +`func (o *BuildModerationFilterResponse) GetModerationFilterOk() (*ModerationFilter, bool)` + +GetModerationFilterOk returns a tuple with the ModerationFilter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModerationFilter + +`func (o *BuildModerationFilterResponse) SetModerationFilter(v ModerationFilter)` + +SetModerationFilter sets ModerationFilter field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/BulkAggregateQuestionResults200Response.md b/client/docs/BulkAggregateQuestionResults200Response.md deleted file mode 100644 index 40d8576..0000000 --- a/client/docs/BulkAggregateQuestionResults200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# BulkAggregateQuestionResults200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**Data** | [**map[string]QuestionResultAggregationOverall**](QuestionResultAggregationOverall.md) | Construct a type with a set of properties K of type T | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewBulkAggregateQuestionResults200Response - -`func NewBulkAggregateQuestionResults200Response(status APIStatus, data map[string]QuestionResultAggregationOverall, reason string, code string, ) *BulkAggregateQuestionResults200Response` - -NewBulkAggregateQuestionResults200Response instantiates a new BulkAggregateQuestionResults200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewBulkAggregateQuestionResults200ResponseWithDefaults - -`func NewBulkAggregateQuestionResults200ResponseWithDefaults() *BulkAggregateQuestionResults200Response` - -NewBulkAggregateQuestionResults200ResponseWithDefaults instantiates a new BulkAggregateQuestionResults200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *BulkAggregateQuestionResults200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *BulkAggregateQuestionResults200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *BulkAggregateQuestionResults200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetData - -`func (o *BulkAggregateQuestionResults200Response) GetData() map[string]QuestionResultAggregationOverall` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *BulkAggregateQuestionResults200Response) GetDataOk() (*map[string]QuestionResultAggregationOverall, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *BulkAggregateQuestionResults200Response) SetData(v map[string]QuestionResultAggregationOverall)` - -SetData sets Data field to given value. - - -### GetReason - -`func (o *BulkAggregateQuestionResults200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *BulkAggregateQuestionResults200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *BulkAggregateQuestionResults200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *BulkAggregateQuestionResults200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *BulkAggregateQuestionResults200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *BulkAggregateQuestionResults200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *BulkAggregateQuestionResults200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *BulkAggregateQuestionResults200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *BulkAggregateQuestionResults200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *BulkAggregateQuestionResults200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *BulkAggregateQuestionResults200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *BulkAggregateQuestionResults200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *BulkAggregateQuestionResults200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *BulkAggregateQuestionResults200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *BulkAggregateQuestionResults200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *BulkAggregateQuestionResults200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *BulkAggregateQuestionResults200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *BulkAggregateQuestionResults200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *BulkAggregateQuestionResults200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *BulkAggregateQuestionResults200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *BulkAggregateQuestionResults200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *BulkAggregateQuestionResults200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *BulkAggregateQuestionResults200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *BulkAggregateQuestionResults200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *BulkAggregateQuestionResults200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *BulkAggregateQuestionResults200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/BulkCreateHashTagsResponse.md b/client/docs/BulkCreateHashTagsResponse.md index 018ae9e..ee40f32 100644 --- a/client/docs/BulkCreateHashTagsResponse.md +++ b/client/docs/BulkCreateHashTagsResponse.md @@ -5,13 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Status** | [**APIStatus**](APIStatus.md) | | -**Results** | [**[]AddHashTag200Response**](AddHashTag200Response.md) | | +**Results** | [**[]BulkCreateHashTagsResponseResultsInner**](BulkCreateHashTagsResponseResultsInner.md) | | ## Methods ### NewBulkCreateHashTagsResponse -`func NewBulkCreateHashTagsResponse(status APIStatus, results []AddHashTag200Response, ) *BulkCreateHashTagsResponse` +`func NewBulkCreateHashTagsResponse(status APIStatus, results []BulkCreateHashTagsResponseResultsInner, ) *BulkCreateHashTagsResponse` NewBulkCreateHashTagsResponse instantiates a new BulkCreateHashTagsResponse object This constructor will assign default values to properties that have it defined, @@ -48,20 +48,20 @@ SetStatus sets Status field to given value. ### GetResults -`func (o *BulkCreateHashTagsResponse) GetResults() []AddHashTag200Response` +`func (o *BulkCreateHashTagsResponse) GetResults() []BulkCreateHashTagsResponseResultsInner` GetResults returns the Results field if non-nil, zero value otherwise. ### GetResultsOk -`func (o *BulkCreateHashTagsResponse) GetResultsOk() (*[]AddHashTag200Response, bool)` +`func (o *BulkCreateHashTagsResponse) GetResultsOk() (*[]BulkCreateHashTagsResponseResultsInner, bool)` GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetResults -`func (o *BulkCreateHashTagsResponse) SetResults(v []AddHashTag200Response)` +`func (o *BulkCreateHashTagsResponse) SetResults(v []BulkCreateHashTagsResponseResultsInner)` SetResults sets Results field to given value. diff --git a/client/docs/GetPendingWebhookEventCount200Response.md b/client/docs/BulkCreateHashTagsResponseResultsInner.md similarity index 61% rename from client/docs/GetPendingWebhookEventCount200Response.md rename to client/docs/BulkCreateHashTagsResponseResultsInner.md index 978ad7c..2ab6e7f 100644 --- a/client/docs/GetPendingWebhookEventCount200Response.md +++ b/client/docs/BulkCreateHashTagsResponseResultsInner.md @@ -1,11 +1,11 @@ -# GetPendingWebhookEventCount200Response +# BulkCreateHashTagsResponseResultsInner ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Status** | [**APIStatus**](APIStatus.md) | | -**Count** | **float64** | | +**HashTag** | [**TenantHashTag**](TenantHashTag.md) | | **Reason** | **string** | | **Code** | **string** | | **SecondaryCode** | Pointer to **string** | | [optional] @@ -16,225 +16,225 @@ Name | Type | Description | Notes ## Methods -### NewGetPendingWebhookEventCount200Response +### NewBulkCreateHashTagsResponseResultsInner -`func NewGetPendingWebhookEventCount200Response(status APIStatus, count float64, reason string, code string, ) *GetPendingWebhookEventCount200Response` +`func NewBulkCreateHashTagsResponseResultsInner(status APIStatus, hashTag TenantHashTag, reason string, code string, ) *BulkCreateHashTagsResponseResultsInner` -NewGetPendingWebhookEventCount200Response instantiates a new GetPendingWebhookEventCount200Response object +NewBulkCreateHashTagsResponseResultsInner instantiates a new BulkCreateHashTagsResponseResultsInner object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewGetPendingWebhookEventCount200ResponseWithDefaults +### NewBulkCreateHashTagsResponseResultsInnerWithDefaults -`func NewGetPendingWebhookEventCount200ResponseWithDefaults() *GetPendingWebhookEventCount200Response` +`func NewBulkCreateHashTagsResponseResultsInnerWithDefaults() *BulkCreateHashTagsResponseResultsInner` -NewGetPendingWebhookEventCount200ResponseWithDefaults instantiates a new GetPendingWebhookEventCount200Response object +NewBulkCreateHashTagsResponseResultsInnerWithDefaults instantiates a new BulkCreateHashTagsResponseResultsInner object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *GetPendingWebhookEventCount200Response) GetStatus() APIStatus` +`func (o *BulkCreateHashTagsResponseResultsInner) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *GetPendingWebhookEventCount200Response) GetStatusOk() (*APIStatus, bool)` +`func (o *BulkCreateHashTagsResponseResultsInner) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *GetPendingWebhookEventCount200Response) SetStatus(v APIStatus)` +`func (o *BulkCreateHashTagsResponseResultsInner) SetStatus(v APIStatus)` SetStatus sets Status field to given value. -### GetCount +### GetHashTag -`func (o *GetPendingWebhookEventCount200Response) GetCount() float64` +`func (o *BulkCreateHashTagsResponseResultsInner) GetHashTag() TenantHashTag` -GetCount returns the Count field if non-nil, zero value otherwise. +GetHashTag returns the HashTag field if non-nil, zero value otherwise. -### GetCountOk +### GetHashTagOk -`func (o *GetPendingWebhookEventCount200Response) GetCountOk() (*float64, bool)` +`func (o *BulkCreateHashTagsResponseResultsInner) GetHashTagOk() (*TenantHashTag, bool)` -GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +GetHashTagOk returns a tuple with the HashTag field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetCount +### SetHashTag -`func (o *GetPendingWebhookEventCount200Response) SetCount(v float64)` +`func (o *BulkCreateHashTagsResponseResultsInner) SetHashTag(v TenantHashTag)` -SetCount sets Count field to given value. +SetHashTag sets HashTag field to given value. ### GetReason -`func (o *GetPendingWebhookEventCount200Response) GetReason() string` +`func (o *BulkCreateHashTagsResponseResultsInner) GetReason() string` GetReason returns the Reason field if non-nil, zero value otherwise. ### GetReasonOk -`func (o *GetPendingWebhookEventCount200Response) GetReasonOk() (*string, bool)` +`func (o *BulkCreateHashTagsResponseResultsInner) GetReasonOk() (*string, bool)` GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetReason -`func (o *GetPendingWebhookEventCount200Response) SetReason(v string)` +`func (o *BulkCreateHashTagsResponseResultsInner) SetReason(v string)` SetReason sets Reason field to given value. ### GetCode -`func (o *GetPendingWebhookEventCount200Response) GetCode() string` +`func (o *BulkCreateHashTagsResponseResultsInner) GetCode() string` GetCode returns the Code field if non-nil, zero value otherwise. ### GetCodeOk -`func (o *GetPendingWebhookEventCount200Response) GetCodeOk() (*string, bool)` +`func (o *BulkCreateHashTagsResponseResultsInner) GetCodeOk() (*string, bool)` GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCode -`func (o *GetPendingWebhookEventCount200Response) SetCode(v string)` +`func (o *BulkCreateHashTagsResponseResultsInner) SetCode(v string)` SetCode sets Code field to given value. ### GetSecondaryCode -`func (o *GetPendingWebhookEventCount200Response) GetSecondaryCode() string` +`func (o *BulkCreateHashTagsResponseResultsInner) GetSecondaryCode() string` GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. ### GetSecondaryCodeOk -`func (o *GetPendingWebhookEventCount200Response) GetSecondaryCodeOk() (*string, bool)` +`func (o *BulkCreateHashTagsResponseResultsInner) GetSecondaryCodeOk() (*string, bool)` GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSecondaryCode -`func (o *GetPendingWebhookEventCount200Response) SetSecondaryCode(v string)` +`func (o *BulkCreateHashTagsResponseResultsInner) SetSecondaryCode(v string)` SetSecondaryCode sets SecondaryCode field to given value. ### HasSecondaryCode -`func (o *GetPendingWebhookEventCount200Response) HasSecondaryCode() bool` +`func (o *BulkCreateHashTagsResponseResultsInner) HasSecondaryCode() bool` HasSecondaryCode returns a boolean if a field has been set. ### GetBannedUntil -`func (o *GetPendingWebhookEventCount200Response) GetBannedUntil() int64` +`func (o *BulkCreateHashTagsResponseResultsInner) GetBannedUntil() int64` GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. ### GetBannedUntilOk -`func (o *GetPendingWebhookEventCount200Response) GetBannedUntilOk() (*int64, bool)` +`func (o *BulkCreateHashTagsResponseResultsInner) GetBannedUntilOk() (*int64, bool)` GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetBannedUntil -`func (o *GetPendingWebhookEventCount200Response) SetBannedUntil(v int64)` +`func (o *BulkCreateHashTagsResponseResultsInner) SetBannedUntil(v int64)` SetBannedUntil sets BannedUntil field to given value. ### HasBannedUntil -`func (o *GetPendingWebhookEventCount200Response) HasBannedUntil() bool` +`func (o *BulkCreateHashTagsResponseResultsInner) HasBannedUntil() bool` HasBannedUntil returns a boolean if a field has been set. ### GetMaxCharacterLength -`func (o *GetPendingWebhookEventCount200Response) GetMaxCharacterLength() int32` +`func (o *BulkCreateHashTagsResponseResultsInner) GetMaxCharacterLength() int32` GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. ### GetMaxCharacterLengthOk -`func (o *GetPendingWebhookEventCount200Response) GetMaxCharacterLengthOk() (*int32, bool)` +`func (o *BulkCreateHashTagsResponseResultsInner) GetMaxCharacterLengthOk() (*int32, bool)` GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetMaxCharacterLength -`func (o *GetPendingWebhookEventCount200Response) SetMaxCharacterLength(v int32)` +`func (o *BulkCreateHashTagsResponseResultsInner) SetMaxCharacterLength(v int32)` SetMaxCharacterLength sets MaxCharacterLength field to given value. ### HasMaxCharacterLength -`func (o *GetPendingWebhookEventCount200Response) HasMaxCharacterLength() bool` +`func (o *BulkCreateHashTagsResponseResultsInner) HasMaxCharacterLength() bool` HasMaxCharacterLength returns a boolean if a field has been set. ### GetTranslatedError -`func (o *GetPendingWebhookEventCount200Response) GetTranslatedError() string` +`func (o *BulkCreateHashTagsResponseResultsInner) GetTranslatedError() string` GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. ### GetTranslatedErrorOk -`func (o *GetPendingWebhookEventCount200Response) GetTranslatedErrorOk() (*string, bool)` +`func (o *BulkCreateHashTagsResponseResultsInner) GetTranslatedErrorOk() (*string, bool)` GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTranslatedError -`func (o *GetPendingWebhookEventCount200Response) SetTranslatedError(v string)` +`func (o *BulkCreateHashTagsResponseResultsInner) SetTranslatedError(v string)` SetTranslatedError sets TranslatedError field to given value. ### HasTranslatedError -`func (o *GetPendingWebhookEventCount200Response) HasTranslatedError() bool` +`func (o *BulkCreateHashTagsResponseResultsInner) HasTranslatedError() bool` HasTranslatedError returns a boolean if a field has been set. ### GetCustomConfig -`func (o *GetPendingWebhookEventCount200Response) GetCustomConfig() CustomConfigParameters` +`func (o *BulkCreateHashTagsResponseResultsInner) GetCustomConfig() CustomConfigParameters` GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. ### GetCustomConfigOk -`func (o *GetPendingWebhookEventCount200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` +`func (o *BulkCreateHashTagsResponseResultsInner) GetCustomConfigOk() (*CustomConfigParameters, bool)` GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCustomConfig -`func (o *GetPendingWebhookEventCount200Response) SetCustomConfig(v CustomConfigParameters)` +`func (o *BulkCreateHashTagsResponseResultsInner) SetCustomConfig(v CustomConfigParameters)` SetCustomConfig sets CustomConfig field to given value. ### HasCustomConfig -`func (o *GetPendingWebhookEventCount200Response) HasCustomConfig() bool` +`func (o *BulkCreateHashTagsResponseResultsInner) HasCustomConfig() bool` HasCustomConfig returns a boolean if a field has been set. diff --git a/client/docs/BulkPreBanParams.md b/client/docs/BulkPreBanParams.md new file mode 100644 index 0000000..1238573 --- /dev/null +++ b/client/docs/BulkPreBanParams.md @@ -0,0 +1,51 @@ +# BulkPreBanParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CommentIds** | **[]string** | | + +## Methods + +### NewBulkPreBanParams + +`func NewBulkPreBanParams(commentIds []string, ) *BulkPreBanParams` + +NewBulkPreBanParams instantiates a new BulkPreBanParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBulkPreBanParamsWithDefaults + +`func NewBulkPreBanParamsWithDefaults() *BulkPreBanParams` + +NewBulkPreBanParamsWithDefaults instantiates a new BulkPreBanParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCommentIds + +`func (o *BulkPreBanParams) GetCommentIds() []string` + +GetCommentIds returns the CommentIds field if non-nil, zero value otherwise. + +### GetCommentIdsOk + +`func (o *BulkPreBanParams) GetCommentIdsOk() (*[]string, bool)` + +GetCommentIdsOk returns a tuple with the CommentIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommentIds + +`func (o *BulkPreBanParams) SetCommentIds(v []string)` + +SetCommentIds sets CommentIds field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/BulkPreBanSummary.md b/client/docs/BulkPreBanSummary.md new file mode 100644 index 0000000..c7141a7 --- /dev/null +++ b/client/docs/BulkPreBanSummary.md @@ -0,0 +1,156 @@ +# BulkPreBanSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **string** | | +**TotalRelatedCommentCount** | **int32** | | +**EmailDomains** | **[]string** | | +**Emails** | **[]string** | | +**UserIds** | **[]string** | | +**IpHashes** | **[]string** | | + +## Methods + +### NewBulkPreBanSummary + +`func NewBulkPreBanSummary(status string, totalRelatedCommentCount int32, emailDomains []string, emails []string, userIds []string, ipHashes []string, ) *BulkPreBanSummary` + +NewBulkPreBanSummary instantiates a new BulkPreBanSummary object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBulkPreBanSummaryWithDefaults + +`func NewBulkPreBanSummaryWithDefaults() *BulkPreBanSummary` + +NewBulkPreBanSummaryWithDefaults instantiates a new BulkPreBanSummary object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *BulkPreBanSummary) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *BulkPreBanSummary) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *BulkPreBanSummary) SetStatus(v string)` + +SetStatus sets Status field to given value. + + +### GetTotalRelatedCommentCount + +`func (o *BulkPreBanSummary) GetTotalRelatedCommentCount() int32` + +GetTotalRelatedCommentCount returns the TotalRelatedCommentCount field if non-nil, zero value otherwise. + +### GetTotalRelatedCommentCountOk + +`func (o *BulkPreBanSummary) GetTotalRelatedCommentCountOk() (*int32, bool)` + +GetTotalRelatedCommentCountOk returns a tuple with the TotalRelatedCommentCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalRelatedCommentCount + +`func (o *BulkPreBanSummary) SetTotalRelatedCommentCount(v int32)` + +SetTotalRelatedCommentCount sets TotalRelatedCommentCount field to given value. + + +### GetEmailDomains + +`func (o *BulkPreBanSummary) GetEmailDomains() []string` + +GetEmailDomains returns the EmailDomains field if non-nil, zero value otherwise. + +### GetEmailDomainsOk + +`func (o *BulkPreBanSummary) GetEmailDomainsOk() (*[]string, bool)` + +GetEmailDomainsOk returns a tuple with the EmailDomains field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmailDomains + +`func (o *BulkPreBanSummary) SetEmailDomains(v []string)` + +SetEmailDomains sets EmailDomains field to given value. + + +### GetEmails + +`func (o *BulkPreBanSummary) GetEmails() []string` + +GetEmails returns the Emails field if non-nil, zero value otherwise. + +### GetEmailsOk + +`func (o *BulkPreBanSummary) GetEmailsOk() (*[]string, bool)` + +GetEmailsOk returns a tuple with the Emails field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmails + +`func (o *BulkPreBanSummary) SetEmails(v []string)` + +SetEmails sets Emails field to given value. + + +### GetUserIds + +`func (o *BulkPreBanSummary) GetUserIds() []string` + +GetUserIds returns the UserIds field if non-nil, zero value otherwise. + +### GetUserIdsOk + +`func (o *BulkPreBanSummary) GetUserIdsOk() (*[]string, bool)` + +GetUserIdsOk returns a tuple with the UserIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserIds + +`func (o *BulkPreBanSummary) SetUserIds(v []string)` + +SetUserIds sets UserIds field to given value. + + +### GetIpHashes + +`func (o *BulkPreBanSummary) GetIpHashes() []string` + +GetIpHashes returns the IpHashes field if non-nil, zero value otherwise. + +### GetIpHashesOk + +`func (o *BulkPreBanSummary) GetIpHashesOk() (*[]string, bool)` + +GetIpHashesOk returns a tuple with the IpHashes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpHashes + +`func (o *BulkPreBanSummary) SetIpHashes(v []string)` + +SetIpHashes sets IpHashes field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ChangeTicketState200Response.md b/client/docs/ChangeTicketState200Response.md deleted file mode 100644 index 1e12773..0000000 --- a/client/docs/ChangeTicketState200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# ChangeTicketState200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**Ticket** | [**APITicket**](APITicket.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewChangeTicketState200Response - -`func NewChangeTicketState200Response(status APIStatus, ticket APITicket, reason string, code string, ) *ChangeTicketState200Response` - -NewChangeTicketState200Response instantiates a new ChangeTicketState200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewChangeTicketState200ResponseWithDefaults - -`func NewChangeTicketState200ResponseWithDefaults() *ChangeTicketState200Response` - -NewChangeTicketState200ResponseWithDefaults instantiates a new ChangeTicketState200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *ChangeTicketState200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *ChangeTicketState200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *ChangeTicketState200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetTicket - -`func (o *ChangeTicketState200Response) GetTicket() APITicket` - -GetTicket returns the Ticket field if non-nil, zero value otherwise. - -### GetTicketOk - -`func (o *ChangeTicketState200Response) GetTicketOk() (*APITicket, bool)` - -GetTicketOk returns a tuple with the Ticket field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTicket - -`func (o *ChangeTicketState200Response) SetTicket(v APITicket)` - -SetTicket sets Ticket field to given value. - - -### GetReason - -`func (o *ChangeTicketState200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *ChangeTicketState200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *ChangeTicketState200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *ChangeTicketState200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ChangeTicketState200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ChangeTicketState200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *ChangeTicketState200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *ChangeTicketState200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *ChangeTicketState200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *ChangeTicketState200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *ChangeTicketState200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *ChangeTicketState200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *ChangeTicketState200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *ChangeTicketState200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *ChangeTicketState200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *ChangeTicketState200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *ChangeTicketState200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *ChangeTicketState200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *ChangeTicketState200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *ChangeTicketState200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *ChangeTicketState200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *ChangeTicketState200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *ChangeTicketState200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *ChangeTicketState200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *ChangeTicketState200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *ChangeTicketState200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CheckedCommentsForBlocked200Response.md b/client/docs/CheckedCommentsForBlocked200Response.md deleted file mode 100644 index 549deb3..0000000 --- a/client/docs/CheckedCommentsForBlocked200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# CheckedCommentsForBlocked200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CommentStatuses** | **map[string]bool** | Construct a type with a set of properties K of type T | -**Status** | [**APIStatus**](APIStatus.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewCheckedCommentsForBlocked200Response - -`func NewCheckedCommentsForBlocked200Response(commentStatuses map[string]bool, status APIStatus, reason string, code string, ) *CheckedCommentsForBlocked200Response` - -NewCheckedCommentsForBlocked200Response instantiates a new CheckedCommentsForBlocked200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewCheckedCommentsForBlocked200ResponseWithDefaults - -`func NewCheckedCommentsForBlocked200ResponseWithDefaults() *CheckedCommentsForBlocked200Response` - -NewCheckedCommentsForBlocked200ResponseWithDefaults instantiates a new CheckedCommentsForBlocked200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCommentStatuses - -`func (o *CheckedCommentsForBlocked200Response) GetCommentStatuses() map[string]bool` - -GetCommentStatuses returns the CommentStatuses field if non-nil, zero value otherwise. - -### GetCommentStatusesOk - -`func (o *CheckedCommentsForBlocked200Response) GetCommentStatusesOk() (*map[string]bool, bool)` - -GetCommentStatusesOk returns a tuple with the CommentStatuses field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCommentStatuses - -`func (o *CheckedCommentsForBlocked200Response) SetCommentStatuses(v map[string]bool)` - -SetCommentStatuses sets CommentStatuses field to given value. - - -### GetStatus - -`func (o *CheckedCommentsForBlocked200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *CheckedCommentsForBlocked200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *CheckedCommentsForBlocked200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetReason - -`func (o *CheckedCommentsForBlocked200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *CheckedCommentsForBlocked200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *CheckedCommentsForBlocked200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *CheckedCommentsForBlocked200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *CheckedCommentsForBlocked200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *CheckedCommentsForBlocked200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *CheckedCommentsForBlocked200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *CheckedCommentsForBlocked200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *CheckedCommentsForBlocked200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *CheckedCommentsForBlocked200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *CheckedCommentsForBlocked200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *CheckedCommentsForBlocked200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *CheckedCommentsForBlocked200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *CheckedCommentsForBlocked200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *CheckedCommentsForBlocked200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *CheckedCommentsForBlocked200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *CheckedCommentsForBlocked200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *CheckedCommentsForBlocked200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *CheckedCommentsForBlocked200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *CheckedCommentsForBlocked200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *CheckedCommentsForBlocked200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *CheckedCommentsForBlocked200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *CheckedCommentsForBlocked200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *CheckedCommentsForBlocked200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *CheckedCommentsForBlocked200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *CheckedCommentsForBlocked200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CombineCommentsWithQuestionResults200Response.md b/client/docs/CombineCommentsWithQuestionResults200Response.md deleted file mode 100644 index 9fd02c7..0000000 --- a/client/docs/CombineCommentsWithQuestionResults200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# CombineCommentsWithQuestionResults200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**Data** | [**FindCommentsByRangeResponse**](FindCommentsByRangeResponse.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewCombineCommentsWithQuestionResults200Response - -`func NewCombineCommentsWithQuestionResults200Response(status APIStatus, data FindCommentsByRangeResponse, reason string, code string, ) *CombineCommentsWithQuestionResults200Response` - -NewCombineCommentsWithQuestionResults200Response instantiates a new CombineCommentsWithQuestionResults200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewCombineCommentsWithQuestionResults200ResponseWithDefaults - -`func NewCombineCommentsWithQuestionResults200ResponseWithDefaults() *CombineCommentsWithQuestionResults200Response` - -NewCombineCommentsWithQuestionResults200ResponseWithDefaults instantiates a new CombineCommentsWithQuestionResults200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *CombineCommentsWithQuestionResults200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *CombineCommentsWithQuestionResults200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *CombineCommentsWithQuestionResults200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetData - -`func (o *CombineCommentsWithQuestionResults200Response) GetData() FindCommentsByRangeResponse` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *CombineCommentsWithQuestionResults200Response) GetDataOk() (*FindCommentsByRangeResponse, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *CombineCommentsWithQuestionResults200Response) SetData(v FindCommentsByRangeResponse)` - -SetData sets Data field to given value. - - -### GetReason - -`func (o *CombineCommentsWithQuestionResults200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *CombineCommentsWithQuestionResults200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *CombineCommentsWithQuestionResults200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *CombineCommentsWithQuestionResults200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *CombineCommentsWithQuestionResults200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *CombineCommentsWithQuestionResults200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *CombineCommentsWithQuestionResults200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *CombineCommentsWithQuestionResults200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *CombineCommentsWithQuestionResults200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *CombineCommentsWithQuestionResults200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *CombineCommentsWithQuestionResults200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *CombineCommentsWithQuestionResults200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *CombineCommentsWithQuestionResults200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *CombineCommentsWithQuestionResults200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *CombineCommentsWithQuestionResults200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *CombineCommentsWithQuestionResults200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *CombineCommentsWithQuestionResults200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *CombineCommentsWithQuestionResults200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *CombineCommentsWithQuestionResults200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *CombineCommentsWithQuestionResults200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *CombineCommentsWithQuestionResults200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *CombineCommentsWithQuestionResults200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *CombineCommentsWithQuestionResults200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *CombineCommentsWithQuestionResults200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *CombineCommentsWithQuestionResults200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *CombineCommentsWithQuestionResults200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CommentData.md b/client/docs/CommentData.md index 56dbfb1..6d0ad66 100644 --- a/client/docs/CommentData.md +++ b/client/docs/CommentData.md @@ -27,8 +27,9 @@ Name | Type | Description | Notes **FromOfflineRestore** | Pointer to **bool** | | [optional] **AutoplayDelayMS** | Pointer to **int64** | | [optional] **FeedbackIds** | Pointer to **[]string** | | [optional] -**QuestionValues** | Pointer to [**map[string]RecordStringStringOrNumberValue**](RecordStringStringOrNumberValue.md) | Construct a type with a set of properties K of type T | [optional] +**QuestionValues** | Pointer to [**map[string]GifSearchResponseImagesInnerInner**](GifSearchResponseImagesInnerInner.md) | Construct a type with a set of properties K of type T | [optional] **Tos** | Pointer to **bool** | | [optional] +**BotId** | Pointer to **string** | | [optional] ## Methods @@ -656,20 +657,20 @@ HasFeedbackIds returns a boolean if a field has been set. ### GetQuestionValues -`func (o *CommentData) GetQuestionValues() map[string]RecordStringStringOrNumberValue` +`func (o *CommentData) GetQuestionValues() map[string]GifSearchResponseImagesInnerInner` GetQuestionValues returns the QuestionValues field if non-nil, zero value otherwise. ### GetQuestionValuesOk -`func (o *CommentData) GetQuestionValuesOk() (*map[string]RecordStringStringOrNumberValue, bool)` +`func (o *CommentData) GetQuestionValuesOk() (*map[string]GifSearchResponseImagesInnerInner, bool)` GetQuestionValuesOk returns a tuple with the QuestionValues field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetQuestionValues -`func (o *CommentData) SetQuestionValues(v map[string]RecordStringStringOrNumberValue)` +`func (o *CommentData) SetQuestionValues(v map[string]GifSearchResponseImagesInnerInner)` SetQuestionValues sets QuestionValues field to given value. @@ -704,6 +705,31 @@ SetTos sets Tos field to given value. HasTos returns a boolean if a field has been set. +### GetBotId + +`func (o *CommentData) GetBotId() string` + +GetBotId returns the BotId field if non-nil, zero value otherwise. + +### GetBotIdOk + +`func (o *CommentData) GetBotIdOk() (*string, bool)` + +GetBotIdOk returns a tuple with the BotId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBotId + +`func (o *CommentData) SetBotId(v string)` + +SetBotId sets BotId field to given value. + +### HasBotId + +`func (o *CommentData) HasBotId() bool` + +HasBotId returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/CommentLogData.md b/client/docs/CommentLogData.md index e262dae..34b5167 100644 --- a/client/docs/CommentLogData.md +++ b/client/docs/CommentLogData.md @@ -19,6 +19,7 @@ Name | Type | Description | Notes **EngineResponse** | Pointer to **string** | | [optional] **EngineTokens** | Pointer to **float64** | | [optional] **TrustFactor** | Pointer to **float64** | | [optional] +**Source** | Pointer to **string** | | [optional] **Rule** | Pointer to [**SpamRule**](SpamRule.md) | | [optional] **UserId** | Pointer to **string** | | [optional] **Subscribers** | Pointer to **float64** | | [optional] @@ -445,6 +446,31 @@ SetTrustFactor sets TrustFactor field to given value. HasTrustFactor returns a boolean if a field has been set. +### GetSource + +`func (o *CommentLogData) GetSource() string` + +GetSource returns the Source field if non-nil, zero value otherwise. + +### GetSourceOk + +`func (o *CommentLogData) GetSourceOk() (*string, bool)` + +GetSourceOk returns a tuple with the Source field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSource + +`func (o *CommentLogData) SetSource(v string)` + +SetSource sets Source field to given value. + +### HasSource + +`func (o *CommentLogData) HasSource() bool` + +HasSource returns a boolean if a field has been set. + ### GetRule `func (o *CommentLogData) GetRule() SpamRule` diff --git a/client/docs/CommentsByIdsParams.md b/client/docs/CommentsByIdsParams.md new file mode 100644 index 0000000..cf610b9 --- /dev/null +++ b/client/docs/CommentsByIdsParams.md @@ -0,0 +1,51 @@ +# CommentsByIdsParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Ids** | **[]string** | | + +## Methods + +### NewCommentsByIdsParams + +`func NewCommentsByIdsParams(ids []string, ) *CommentsByIdsParams` + +NewCommentsByIdsParams instantiates a new CommentsByIdsParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCommentsByIdsParamsWithDefaults + +`func NewCommentsByIdsParamsWithDefaults() *CommentsByIdsParams` + +NewCommentsByIdsParamsWithDefaults instantiates a new CommentsByIdsParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIds + +`func (o *CommentsByIdsParams) GetIds() []string` + +GetIds returns the Ids field if non-nil, zero value otherwise. + +### GetIdsOk + +`func (o *CommentsByIdsParams) GetIdsOk() (*[]string, bool)` + +GetIdsOk returns a tuple with the Ids field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIds + +`func (o *CommentsByIdsParams) SetIds(v []string)` + +SetIds sets Ids field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/CreateCommentParams.md b/client/docs/CreateCommentParams.md index b2916d6..7bab688 100644 --- a/client/docs/CreateCommentParams.md +++ b/client/docs/CreateCommentParams.md @@ -27,8 +27,9 @@ Name | Type | Description | Notes **FromOfflineRestore** | Pointer to **bool** | | [optional] **AutoplayDelayMS** | Pointer to **int64** | | [optional] **FeedbackIds** | Pointer to **[]string** | | [optional] -**QuestionValues** | Pointer to [**map[string]RecordStringStringOrNumberValue**](RecordStringStringOrNumberValue.md) | Construct a type with a set of properties K of type T | [optional] +**QuestionValues** | Pointer to [**map[string]GifSearchResponseImagesInnerInner**](GifSearchResponseImagesInnerInner.md) | Construct a type with a set of properties K of type T | [optional] **Tos** | Pointer to **bool** | | [optional] +**BotId** | Pointer to **string** | | [optional] **Approved** | Pointer to **bool** | | [optional] **Domain** | Pointer to **string** | | [optional] **Ip** | Pointer to **string** | | [optional] @@ -666,20 +667,20 @@ HasFeedbackIds returns a boolean if a field has been set. ### GetQuestionValues -`func (o *CreateCommentParams) GetQuestionValues() map[string]RecordStringStringOrNumberValue` +`func (o *CreateCommentParams) GetQuestionValues() map[string]GifSearchResponseImagesInnerInner` GetQuestionValues returns the QuestionValues field if non-nil, zero value otherwise. ### GetQuestionValuesOk -`func (o *CreateCommentParams) GetQuestionValuesOk() (*map[string]RecordStringStringOrNumberValue, bool)` +`func (o *CreateCommentParams) GetQuestionValuesOk() (*map[string]GifSearchResponseImagesInnerInner, bool)` GetQuestionValuesOk returns a tuple with the QuestionValues field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetQuestionValues -`func (o *CreateCommentParams) SetQuestionValues(v map[string]RecordStringStringOrNumberValue)` +`func (o *CreateCommentParams) SetQuestionValues(v map[string]GifSearchResponseImagesInnerInner)` SetQuestionValues sets QuestionValues field to given value. @@ -714,6 +715,31 @@ SetTos sets Tos field to given value. HasTos returns a boolean if a field has been set. +### GetBotId + +`func (o *CreateCommentParams) GetBotId() string` + +GetBotId returns the BotId field if non-nil, zero value otherwise. + +### GetBotIdOk + +`func (o *CreateCommentParams) GetBotIdOk() (*string, bool)` + +GetBotIdOk returns a tuple with the BotId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBotId + +`func (o *CreateCommentParams) SetBotId(v string)` + +SetBotId sets BotId field to given value. + +### HasBotId + +`func (o *CreateCommentParams) HasBotId() bool` + +HasBotId returns a boolean if a field has been set. + ### GetApproved `func (o *CreateCommentParams) GetApproved() bool` diff --git a/client/docs/CreateCommentPublic200Response.md b/client/docs/CreateCommentPublic200Response.md deleted file mode 100644 index 73bdeb5..0000000 --- a/client/docs/CreateCommentPublic200Response.md +++ /dev/null @@ -1,327 +0,0 @@ -# CreateCommentPublic200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**Comment** | [**PublicComment**](PublicComment.md) | | -**User** | [**NullableUserSessionInfo**](UserSessionInfo.md) | | -**ModuleData** | Pointer to **map[string]map[string]interface{}** | Construct a type with a set of properties K of type T | [optional] -**UserIdWS** | Pointer to **string** | | [optional] -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewCreateCommentPublic200Response - -`func NewCreateCommentPublic200Response(status APIStatus, comment PublicComment, user NullableUserSessionInfo, reason string, code string, ) *CreateCommentPublic200Response` - -NewCreateCommentPublic200Response instantiates a new CreateCommentPublic200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewCreateCommentPublic200ResponseWithDefaults - -`func NewCreateCommentPublic200ResponseWithDefaults() *CreateCommentPublic200Response` - -NewCreateCommentPublic200ResponseWithDefaults instantiates a new CreateCommentPublic200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *CreateCommentPublic200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *CreateCommentPublic200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *CreateCommentPublic200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetComment - -`func (o *CreateCommentPublic200Response) GetComment() PublicComment` - -GetComment returns the Comment field if non-nil, zero value otherwise. - -### GetCommentOk - -`func (o *CreateCommentPublic200Response) GetCommentOk() (*PublicComment, bool)` - -GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComment - -`func (o *CreateCommentPublic200Response) SetComment(v PublicComment)` - -SetComment sets Comment field to given value. - - -### GetUser - -`func (o *CreateCommentPublic200Response) GetUser() UserSessionInfo` - -GetUser returns the User field if non-nil, zero value otherwise. - -### GetUserOk - -`func (o *CreateCommentPublic200Response) GetUserOk() (*UserSessionInfo, bool)` - -GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUser - -`func (o *CreateCommentPublic200Response) SetUser(v UserSessionInfo)` - -SetUser sets User field to given value. - - -### SetUserNil - -`func (o *CreateCommentPublic200Response) SetUserNil(b bool)` - - SetUserNil sets the value for User to be an explicit nil - -### UnsetUser -`func (o *CreateCommentPublic200Response) UnsetUser()` - -UnsetUser ensures that no value is present for User, not even an explicit nil -### GetModuleData - -`func (o *CreateCommentPublic200Response) GetModuleData() map[string]map[string]interface{}` - -GetModuleData returns the ModuleData field if non-nil, zero value otherwise. - -### GetModuleDataOk - -`func (o *CreateCommentPublic200Response) GetModuleDataOk() (*map[string]map[string]interface{}, bool)` - -GetModuleDataOk returns a tuple with the ModuleData field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetModuleData - -`func (o *CreateCommentPublic200Response) SetModuleData(v map[string]map[string]interface{})` - -SetModuleData sets ModuleData field to given value. - -### HasModuleData - -`func (o *CreateCommentPublic200Response) HasModuleData() bool` - -HasModuleData returns a boolean if a field has been set. - -### GetUserIdWS - -`func (o *CreateCommentPublic200Response) GetUserIdWS() string` - -GetUserIdWS returns the UserIdWS field if non-nil, zero value otherwise. - -### GetUserIdWSOk - -`func (o *CreateCommentPublic200Response) GetUserIdWSOk() (*string, bool)` - -GetUserIdWSOk returns a tuple with the UserIdWS field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUserIdWS - -`func (o *CreateCommentPublic200Response) SetUserIdWS(v string)` - -SetUserIdWS sets UserIdWS field to given value. - -### HasUserIdWS - -`func (o *CreateCommentPublic200Response) HasUserIdWS() bool` - -HasUserIdWS returns a boolean if a field has been set. - -### GetReason - -`func (o *CreateCommentPublic200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *CreateCommentPublic200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *CreateCommentPublic200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *CreateCommentPublic200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *CreateCommentPublic200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *CreateCommentPublic200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *CreateCommentPublic200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *CreateCommentPublic200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *CreateCommentPublic200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *CreateCommentPublic200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *CreateCommentPublic200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *CreateCommentPublic200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *CreateCommentPublic200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *CreateCommentPublic200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *CreateCommentPublic200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *CreateCommentPublic200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *CreateCommentPublic200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *CreateCommentPublic200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *CreateCommentPublic200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *CreateCommentPublic200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *CreateCommentPublic200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *CreateCommentPublic200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *CreateCommentPublic200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *CreateCommentPublic200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *CreateCommentPublic200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *CreateCommentPublic200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateEmailTemplate200Response.md b/client/docs/CreateEmailTemplate200Response.md deleted file mode 100644 index 3cec13f..0000000 --- a/client/docs/CreateEmailTemplate200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# CreateEmailTemplate200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**EmailTemplate** | [**CustomEmailTemplate**](CustomEmailTemplate.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewCreateEmailTemplate200Response - -`func NewCreateEmailTemplate200Response(status APIStatus, emailTemplate CustomEmailTemplate, reason string, code string, ) *CreateEmailTemplate200Response` - -NewCreateEmailTemplate200Response instantiates a new CreateEmailTemplate200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewCreateEmailTemplate200ResponseWithDefaults - -`func NewCreateEmailTemplate200ResponseWithDefaults() *CreateEmailTemplate200Response` - -NewCreateEmailTemplate200ResponseWithDefaults instantiates a new CreateEmailTemplate200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *CreateEmailTemplate200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *CreateEmailTemplate200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *CreateEmailTemplate200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetEmailTemplate - -`func (o *CreateEmailTemplate200Response) GetEmailTemplate() CustomEmailTemplate` - -GetEmailTemplate returns the EmailTemplate field if non-nil, zero value otherwise. - -### GetEmailTemplateOk - -`func (o *CreateEmailTemplate200Response) GetEmailTemplateOk() (*CustomEmailTemplate, bool)` - -GetEmailTemplateOk returns a tuple with the EmailTemplate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEmailTemplate - -`func (o *CreateEmailTemplate200Response) SetEmailTemplate(v CustomEmailTemplate)` - -SetEmailTemplate sets EmailTemplate field to given value. - - -### GetReason - -`func (o *CreateEmailTemplate200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *CreateEmailTemplate200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *CreateEmailTemplate200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *CreateEmailTemplate200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *CreateEmailTemplate200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *CreateEmailTemplate200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *CreateEmailTemplate200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *CreateEmailTemplate200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *CreateEmailTemplate200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *CreateEmailTemplate200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *CreateEmailTemplate200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *CreateEmailTemplate200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *CreateEmailTemplate200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *CreateEmailTemplate200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *CreateEmailTemplate200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *CreateEmailTemplate200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *CreateEmailTemplate200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *CreateEmailTemplate200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *CreateEmailTemplate200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *CreateEmailTemplate200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *CreateEmailTemplate200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *CreateEmailTemplate200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *CreateEmailTemplate200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *CreateEmailTemplate200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *CreateEmailTemplate200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *CreateEmailTemplate200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateFeedPost200Response.md b/client/docs/CreateFeedPost200Response.md deleted file mode 100644 index cc0c0f9..0000000 --- a/client/docs/CreateFeedPost200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# CreateFeedPost200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**FeedPost** | [**FeedPost**](FeedPost.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewCreateFeedPost200Response - -`func NewCreateFeedPost200Response(status APIStatus, feedPost FeedPost, reason string, code string, ) *CreateFeedPost200Response` - -NewCreateFeedPost200Response instantiates a new CreateFeedPost200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewCreateFeedPost200ResponseWithDefaults - -`func NewCreateFeedPost200ResponseWithDefaults() *CreateFeedPost200Response` - -NewCreateFeedPost200ResponseWithDefaults instantiates a new CreateFeedPost200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *CreateFeedPost200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *CreateFeedPost200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *CreateFeedPost200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetFeedPost - -`func (o *CreateFeedPost200Response) GetFeedPost() FeedPost` - -GetFeedPost returns the FeedPost field if non-nil, zero value otherwise. - -### GetFeedPostOk - -`func (o *CreateFeedPost200Response) GetFeedPostOk() (*FeedPost, bool)` - -GetFeedPostOk returns a tuple with the FeedPost field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFeedPost - -`func (o *CreateFeedPost200Response) SetFeedPost(v FeedPost)` - -SetFeedPost sets FeedPost field to given value. - - -### GetReason - -`func (o *CreateFeedPost200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *CreateFeedPost200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *CreateFeedPost200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *CreateFeedPost200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *CreateFeedPost200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *CreateFeedPost200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *CreateFeedPost200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *CreateFeedPost200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *CreateFeedPost200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *CreateFeedPost200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *CreateFeedPost200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *CreateFeedPost200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *CreateFeedPost200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *CreateFeedPost200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *CreateFeedPost200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *CreateFeedPost200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *CreateFeedPost200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *CreateFeedPost200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *CreateFeedPost200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *CreateFeedPost200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *CreateFeedPost200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *CreateFeedPost200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *CreateFeedPost200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *CreateFeedPost200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *CreateFeedPost200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *CreateFeedPost200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateFeedPostPublic200Response.md b/client/docs/CreateFeedPostPublic200Response.md deleted file mode 100644 index c55f9a9..0000000 --- a/client/docs/CreateFeedPostPublic200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# CreateFeedPostPublic200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**FeedPost** | [**FeedPost**](FeedPost.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewCreateFeedPostPublic200Response - -`func NewCreateFeedPostPublic200Response(status APIStatus, feedPost FeedPost, reason string, code string, ) *CreateFeedPostPublic200Response` - -NewCreateFeedPostPublic200Response instantiates a new CreateFeedPostPublic200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewCreateFeedPostPublic200ResponseWithDefaults - -`func NewCreateFeedPostPublic200ResponseWithDefaults() *CreateFeedPostPublic200Response` - -NewCreateFeedPostPublic200ResponseWithDefaults instantiates a new CreateFeedPostPublic200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *CreateFeedPostPublic200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *CreateFeedPostPublic200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *CreateFeedPostPublic200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetFeedPost - -`func (o *CreateFeedPostPublic200Response) GetFeedPost() FeedPost` - -GetFeedPost returns the FeedPost field if non-nil, zero value otherwise. - -### GetFeedPostOk - -`func (o *CreateFeedPostPublic200Response) GetFeedPostOk() (*FeedPost, bool)` - -GetFeedPostOk returns a tuple with the FeedPost field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFeedPost - -`func (o *CreateFeedPostPublic200Response) SetFeedPost(v FeedPost)` - -SetFeedPost sets FeedPost field to given value. - - -### GetReason - -`func (o *CreateFeedPostPublic200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *CreateFeedPostPublic200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *CreateFeedPostPublic200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *CreateFeedPostPublic200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *CreateFeedPostPublic200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *CreateFeedPostPublic200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *CreateFeedPostPublic200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *CreateFeedPostPublic200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *CreateFeedPostPublic200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *CreateFeedPostPublic200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *CreateFeedPostPublic200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *CreateFeedPostPublic200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *CreateFeedPostPublic200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *CreateFeedPostPublic200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *CreateFeedPostPublic200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *CreateFeedPostPublic200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *CreateFeedPostPublic200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *CreateFeedPostPublic200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *CreateFeedPostPublic200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *CreateFeedPostPublic200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *CreateFeedPostPublic200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *CreateFeedPostPublic200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *CreateFeedPostPublic200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *CreateFeedPostPublic200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *CreateFeedPostPublic200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *CreateFeedPostPublic200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateModerator200Response.md b/client/docs/CreateModerator200Response.md deleted file mode 100644 index 3a1851f..0000000 --- a/client/docs/CreateModerator200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# CreateModerator200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**Moderator** | [**Moderator**](Moderator.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewCreateModerator200Response - -`func NewCreateModerator200Response(status APIStatus, moderator Moderator, reason string, code string, ) *CreateModerator200Response` - -NewCreateModerator200Response instantiates a new CreateModerator200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewCreateModerator200ResponseWithDefaults - -`func NewCreateModerator200ResponseWithDefaults() *CreateModerator200Response` - -NewCreateModerator200ResponseWithDefaults instantiates a new CreateModerator200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *CreateModerator200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *CreateModerator200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *CreateModerator200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetModerator - -`func (o *CreateModerator200Response) GetModerator() Moderator` - -GetModerator returns the Moderator field if non-nil, zero value otherwise. - -### GetModeratorOk - -`func (o *CreateModerator200Response) GetModeratorOk() (*Moderator, bool)` - -GetModeratorOk returns a tuple with the Moderator field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetModerator - -`func (o *CreateModerator200Response) SetModerator(v Moderator)` - -SetModerator sets Moderator field to given value. - - -### GetReason - -`func (o *CreateModerator200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *CreateModerator200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *CreateModerator200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *CreateModerator200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *CreateModerator200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *CreateModerator200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *CreateModerator200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *CreateModerator200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *CreateModerator200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *CreateModerator200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *CreateModerator200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *CreateModerator200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *CreateModerator200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *CreateModerator200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *CreateModerator200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *CreateModerator200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *CreateModerator200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *CreateModerator200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *CreateModerator200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *CreateModerator200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *CreateModerator200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *CreateModerator200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *CreateModerator200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *CreateModerator200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *CreateModerator200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *CreateModerator200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateQuestionConfig200Response.md b/client/docs/CreateQuestionConfig200Response.md deleted file mode 100644 index 9345f8a..0000000 --- a/client/docs/CreateQuestionConfig200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# CreateQuestionConfig200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**QuestionConfig** | [**QuestionConfig**](QuestionConfig.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewCreateQuestionConfig200Response - -`func NewCreateQuestionConfig200Response(status APIStatus, questionConfig QuestionConfig, reason string, code string, ) *CreateQuestionConfig200Response` - -NewCreateQuestionConfig200Response instantiates a new CreateQuestionConfig200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewCreateQuestionConfig200ResponseWithDefaults - -`func NewCreateQuestionConfig200ResponseWithDefaults() *CreateQuestionConfig200Response` - -NewCreateQuestionConfig200ResponseWithDefaults instantiates a new CreateQuestionConfig200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *CreateQuestionConfig200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *CreateQuestionConfig200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *CreateQuestionConfig200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetQuestionConfig - -`func (o *CreateQuestionConfig200Response) GetQuestionConfig() QuestionConfig` - -GetQuestionConfig returns the QuestionConfig field if non-nil, zero value otherwise. - -### GetQuestionConfigOk - -`func (o *CreateQuestionConfig200Response) GetQuestionConfigOk() (*QuestionConfig, bool)` - -GetQuestionConfigOk returns a tuple with the QuestionConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetQuestionConfig - -`func (o *CreateQuestionConfig200Response) SetQuestionConfig(v QuestionConfig)` - -SetQuestionConfig sets QuestionConfig field to given value. - - -### GetReason - -`func (o *CreateQuestionConfig200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *CreateQuestionConfig200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *CreateQuestionConfig200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *CreateQuestionConfig200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *CreateQuestionConfig200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *CreateQuestionConfig200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *CreateQuestionConfig200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *CreateQuestionConfig200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *CreateQuestionConfig200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *CreateQuestionConfig200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *CreateQuestionConfig200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *CreateQuestionConfig200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *CreateQuestionConfig200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *CreateQuestionConfig200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *CreateQuestionConfig200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *CreateQuestionConfig200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *CreateQuestionConfig200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *CreateQuestionConfig200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *CreateQuestionConfig200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *CreateQuestionConfig200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *CreateQuestionConfig200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *CreateQuestionConfig200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *CreateQuestionConfig200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *CreateQuestionConfig200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *CreateQuestionConfig200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *CreateQuestionConfig200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateQuestionResult200Response.md b/client/docs/CreateQuestionResult200Response.md deleted file mode 100644 index 0e5b1bf..0000000 --- a/client/docs/CreateQuestionResult200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# CreateQuestionResult200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**QuestionResult** | [**QuestionResult**](QuestionResult.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewCreateQuestionResult200Response - -`func NewCreateQuestionResult200Response(status APIStatus, questionResult QuestionResult, reason string, code string, ) *CreateQuestionResult200Response` - -NewCreateQuestionResult200Response instantiates a new CreateQuestionResult200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewCreateQuestionResult200ResponseWithDefaults - -`func NewCreateQuestionResult200ResponseWithDefaults() *CreateQuestionResult200Response` - -NewCreateQuestionResult200ResponseWithDefaults instantiates a new CreateQuestionResult200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *CreateQuestionResult200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *CreateQuestionResult200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *CreateQuestionResult200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetQuestionResult - -`func (o *CreateQuestionResult200Response) GetQuestionResult() QuestionResult` - -GetQuestionResult returns the QuestionResult field if non-nil, zero value otherwise. - -### GetQuestionResultOk - -`func (o *CreateQuestionResult200Response) GetQuestionResultOk() (*QuestionResult, bool)` - -GetQuestionResultOk returns a tuple with the QuestionResult field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetQuestionResult - -`func (o *CreateQuestionResult200Response) SetQuestionResult(v QuestionResult)` - -SetQuestionResult sets QuestionResult field to given value. - - -### GetReason - -`func (o *CreateQuestionResult200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *CreateQuestionResult200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *CreateQuestionResult200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *CreateQuestionResult200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *CreateQuestionResult200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *CreateQuestionResult200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *CreateQuestionResult200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *CreateQuestionResult200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *CreateQuestionResult200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *CreateQuestionResult200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *CreateQuestionResult200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *CreateQuestionResult200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *CreateQuestionResult200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *CreateQuestionResult200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *CreateQuestionResult200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *CreateQuestionResult200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *CreateQuestionResult200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *CreateQuestionResult200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *CreateQuestionResult200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *CreateQuestionResult200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *CreateQuestionResult200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *CreateQuestionResult200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *CreateQuestionResult200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *CreateQuestionResult200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *CreateQuestionResult200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *CreateQuestionResult200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateTenant200Response.md b/client/docs/CreateTenant200Response.md deleted file mode 100644 index e43a417..0000000 --- a/client/docs/CreateTenant200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# CreateTenant200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**Tenant** | [**APITenant**](APITenant.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewCreateTenant200Response - -`func NewCreateTenant200Response(status APIStatus, tenant APITenant, reason string, code string, ) *CreateTenant200Response` - -NewCreateTenant200Response instantiates a new CreateTenant200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewCreateTenant200ResponseWithDefaults - -`func NewCreateTenant200ResponseWithDefaults() *CreateTenant200Response` - -NewCreateTenant200ResponseWithDefaults instantiates a new CreateTenant200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *CreateTenant200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *CreateTenant200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *CreateTenant200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetTenant - -`func (o *CreateTenant200Response) GetTenant() APITenant` - -GetTenant returns the Tenant field if non-nil, zero value otherwise. - -### GetTenantOk - -`func (o *CreateTenant200Response) GetTenantOk() (*APITenant, bool)` - -GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenant - -`func (o *CreateTenant200Response) SetTenant(v APITenant)` - -SetTenant sets Tenant field to given value. - - -### GetReason - -`func (o *CreateTenant200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *CreateTenant200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *CreateTenant200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *CreateTenant200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *CreateTenant200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *CreateTenant200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *CreateTenant200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *CreateTenant200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *CreateTenant200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *CreateTenant200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *CreateTenant200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *CreateTenant200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *CreateTenant200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *CreateTenant200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *CreateTenant200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *CreateTenant200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *CreateTenant200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *CreateTenant200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *CreateTenant200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *CreateTenant200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *CreateTenant200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *CreateTenant200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *CreateTenant200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *CreateTenant200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *CreateTenant200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *CreateTenant200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateTenantPackage200Response.md b/client/docs/CreateTenantPackage200Response.md deleted file mode 100644 index 9ff0b8d..0000000 --- a/client/docs/CreateTenantPackage200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# CreateTenantPackage200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**TenantPackage** | [**TenantPackage**](TenantPackage.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewCreateTenantPackage200Response - -`func NewCreateTenantPackage200Response(status APIStatus, tenantPackage TenantPackage, reason string, code string, ) *CreateTenantPackage200Response` - -NewCreateTenantPackage200Response instantiates a new CreateTenantPackage200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewCreateTenantPackage200ResponseWithDefaults - -`func NewCreateTenantPackage200ResponseWithDefaults() *CreateTenantPackage200Response` - -NewCreateTenantPackage200ResponseWithDefaults instantiates a new CreateTenantPackage200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *CreateTenantPackage200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *CreateTenantPackage200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *CreateTenantPackage200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetTenantPackage - -`func (o *CreateTenantPackage200Response) GetTenantPackage() TenantPackage` - -GetTenantPackage returns the TenantPackage field if non-nil, zero value otherwise. - -### GetTenantPackageOk - -`func (o *CreateTenantPackage200Response) GetTenantPackageOk() (*TenantPackage, bool)` - -GetTenantPackageOk returns a tuple with the TenantPackage field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenantPackage - -`func (o *CreateTenantPackage200Response) SetTenantPackage(v TenantPackage)` - -SetTenantPackage sets TenantPackage field to given value. - - -### GetReason - -`func (o *CreateTenantPackage200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *CreateTenantPackage200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *CreateTenantPackage200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *CreateTenantPackage200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *CreateTenantPackage200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *CreateTenantPackage200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *CreateTenantPackage200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *CreateTenantPackage200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *CreateTenantPackage200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *CreateTenantPackage200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *CreateTenantPackage200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *CreateTenantPackage200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *CreateTenantPackage200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *CreateTenantPackage200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *CreateTenantPackage200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *CreateTenantPackage200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *CreateTenantPackage200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *CreateTenantPackage200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *CreateTenantPackage200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *CreateTenantPackage200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *CreateTenantPackage200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *CreateTenantPackage200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *CreateTenantPackage200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *CreateTenantPackage200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *CreateTenantPackage200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *CreateTenantPackage200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateTenantPackageBody.md b/client/docs/CreateTenantPackageBody.md index 0b9d57f..e62c37a 100644 --- a/client/docs/CreateTenantPackageBody.md +++ b/client/docs/CreateTenantPackageBody.md @@ -45,8 +45,8 @@ Name | Type | Description | Notes **FlexAdminUnit** | Pointer to **float64** | | [optional] **FlexDomainCostCents** | Pointer to **float64** | | [optional] **FlexDomainUnit** | Pointer to **float64** | | [optional] -**FlexChatGPTCostCents** | Pointer to **float64** | | [optional] -**FlexChatGPTUnit** | Pointer to **float64** | | [optional] +**FlexLLMCostCents** | Pointer to **float64** | | [optional] +**FlexLLMUnit** | Pointer to **float64** | | [optional] **FlexMinimumCostCents** | Pointer to **float64** | | [optional] **FlexManagedTenantCostCents** | Pointer to **float64** | | [optional] **FlexSSOAdminCostCents** | Pointer to **float64** | | [optional] @@ -1073,55 +1073,55 @@ SetFlexDomainUnit sets FlexDomainUnit field to given value. HasFlexDomainUnit returns a boolean if a field has been set. -### GetFlexChatGPTCostCents +### GetFlexLLMCostCents -`func (o *CreateTenantPackageBody) GetFlexChatGPTCostCents() float64` +`func (o *CreateTenantPackageBody) GetFlexLLMCostCents() float64` -GetFlexChatGPTCostCents returns the FlexChatGPTCostCents field if non-nil, zero value otherwise. +GetFlexLLMCostCents returns the FlexLLMCostCents field if non-nil, zero value otherwise. -### GetFlexChatGPTCostCentsOk +### GetFlexLLMCostCentsOk -`func (o *CreateTenantPackageBody) GetFlexChatGPTCostCentsOk() (*float64, bool)` +`func (o *CreateTenantPackageBody) GetFlexLLMCostCentsOk() (*float64, bool)` -GetFlexChatGPTCostCentsOk returns a tuple with the FlexChatGPTCostCents field if it's non-nil, zero value otherwise +GetFlexLLMCostCentsOk returns a tuple with the FlexLLMCostCents field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetFlexChatGPTCostCents +### SetFlexLLMCostCents -`func (o *CreateTenantPackageBody) SetFlexChatGPTCostCents(v float64)` +`func (o *CreateTenantPackageBody) SetFlexLLMCostCents(v float64)` -SetFlexChatGPTCostCents sets FlexChatGPTCostCents field to given value. +SetFlexLLMCostCents sets FlexLLMCostCents field to given value. -### HasFlexChatGPTCostCents +### HasFlexLLMCostCents -`func (o *CreateTenantPackageBody) HasFlexChatGPTCostCents() bool` +`func (o *CreateTenantPackageBody) HasFlexLLMCostCents() bool` -HasFlexChatGPTCostCents returns a boolean if a field has been set. +HasFlexLLMCostCents returns a boolean if a field has been set. -### GetFlexChatGPTUnit +### GetFlexLLMUnit -`func (o *CreateTenantPackageBody) GetFlexChatGPTUnit() float64` +`func (o *CreateTenantPackageBody) GetFlexLLMUnit() float64` -GetFlexChatGPTUnit returns the FlexChatGPTUnit field if non-nil, zero value otherwise. +GetFlexLLMUnit returns the FlexLLMUnit field if non-nil, zero value otherwise. -### GetFlexChatGPTUnitOk +### GetFlexLLMUnitOk -`func (o *CreateTenantPackageBody) GetFlexChatGPTUnitOk() (*float64, bool)` +`func (o *CreateTenantPackageBody) GetFlexLLMUnitOk() (*float64, bool)` -GetFlexChatGPTUnitOk returns a tuple with the FlexChatGPTUnit field if it's non-nil, zero value otherwise +GetFlexLLMUnitOk returns a tuple with the FlexLLMUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetFlexChatGPTUnit +### SetFlexLLMUnit -`func (o *CreateTenantPackageBody) SetFlexChatGPTUnit(v float64)` +`func (o *CreateTenantPackageBody) SetFlexLLMUnit(v float64)` -SetFlexChatGPTUnit sets FlexChatGPTUnit field to given value. +SetFlexLLMUnit sets FlexLLMUnit field to given value. -### HasFlexChatGPTUnit +### HasFlexLLMUnit -`func (o *CreateTenantPackageBody) HasFlexChatGPTUnit() bool` +`func (o *CreateTenantPackageBody) HasFlexLLMUnit() bool` -HasFlexChatGPTUnit returns a boolean if a field has been set. +HasFlexLLMUnit returns a boolean if a field has been set. ### GetFlexMinimumCostCents diff --git a/client/docs/CreateTenantUser200Response.md b/client/docs/CreateTenantUser200Response.md deleted file mode 100644 index 9e3c052..0000000 --- a/client/docs/CreateTenantUser200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# CreateTenantUser200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**TenantUser** | [**User**](User.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewCreateTenantUser200Response - -`func NewCreateTenantUser200Response(status APIStatus, tenantUser User, reason string, code string, ) *CreateTenantUser200Response` - -NewCreateTenantUser200Response instantiates a new CreateTenantUser200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewCreateTenantUser200ResponseWithDefaults - -`func NewCreateTenantUser200ResponseWithDefaults() *CreateTenantUser200Response` - -NewCreateTenantUser200ResponseWithDefaults instantiates a new CreateTenantUser200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *CreateTenantUser200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *CreateTenantUser200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *CreateTenantUser200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetTenantUser - -`func (o *CreateTenantUser200Response) GetTenantUser() User` - -GetTenantUser returns the TenantUser field if non-nil, zero value otherwise. - -### GetTenantUserOk - -`func (o *CreateTenantUser200Response) GetTenantUserOk() (*User, bool)` - -GetTenantUserOk returns a tuple with the TenantUser field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenantUser - -`func (o *CreateTenantUser200Response) SetTenantUser(v User)` - -SetTenantUser sets TenantUser field to given value. - - -### GetReason - -`func (o *CreateTenantUser200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *CreateTenantUser200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *CreateTenantUser200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *CreateTenantUser200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *CreateTenantUser200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *CreateTenantUser200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *CreateTenantUser200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *CreateTenantUser200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *CreateTenantUser200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *CreateTenantUser200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *CreateTenantUser200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *CreateTenantUser200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *CreateTenantUser200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *CreateTenantUser200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *CreateTenantUser200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *CreateTenantUser200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *CreateTenantUser200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *CreateTenantUser200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *CreateTenantUser200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *CreateTenantUser200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *CreateTenantUser200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *CreateTenantUser200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *CreateTenantUser200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *CreateTenantUser200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *CreateTenantUser200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *CreateTenantUser200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateTicket200Response.md b/client/docs/CreateTicket200Response.md deleted file mode 100644 index f4fad89..0000000 --- a/client/docs/CreateTicket200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# CreateTicket200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**Ticket** | [**APITicket**](APITicket.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewCreateTicket200Response - -`func NewCreateTicket200Response(status APIStatus, ticket APITicket, reason string, code string, ) *CreateTicket200Response` - -NewCreateTicket200Response instantiates a new CreateTicket200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewCreateTicket200ResponseWithDefaults - -`func NewCreateTicket200ResponseWithDefaults() *CreateTicket200Response` - -NewCreateTicket200ResponseWithDefaults instantiates a new CreateTicket200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *CreateTicket200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *CreateTicket200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *CreateTicket200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetTicket - -`func (o *CreateTicket200Response) GetTicket() APITicket` - -GetTicket returns the Ticket field if non-nil, zero value otherwise. - -### GetTicketOk - -`func (o *CreateTicket200Response) GetTicketOk() (*APITicket, bool)` - -GetTicketOk returns a tuple with the Ticket field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTicket - -`func (o *CreateTicket200Response) SetTicket(v APITicket)` - -SetTicket sets Ticket field to given value. - - -### GetReason - -`func (o *CreateTicket200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *CreateTicket200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *CreateTicket200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *CreateTicket200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *CreateTicket200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *CreateTicket200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *CreateTicket200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *CreateTicket200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *CreateTicket200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *CreateTicket200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *CreateTicket200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *CreateTicket200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *CreateTicket200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *CreateTicket200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *CreateTicket200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *CreateTicket200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *CreateTicket200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *CreateTicket200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *CreateTicket200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *CreateTicket200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *CreateTicket200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *CreateTicket200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *CreateTicket200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *CreateTicket200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *CreateTicket200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *CreateTicket200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateUserBadge200Response.md b/client/docs/CreateUserBadge200Response.md deleted file mode 100644 index fbac3c2..0000000 --- a/client/docs/CreateUserBadge200Response.md +++ /dev/null @@ -1,270 +0,0 @@ -# CreateUserBadge200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**UserBadge** | [**UserBadge**](UserBadge.md) | | -**Notes** | Pointer to **[]string** | | [optional] -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewCreateUserBadge200Response - -`func NewCreateUserBadge200Response(status APIStatus, userBadge UserBadge, reason string, code string, ) *CreateUserBadge200Response` - -NewCreateUserBadge200Response instantiates a new CreateUserBadge200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewCreateUserBadge200ResponseWithDefaults - -`func NewCreateUserBadge200ResponseWithDefaults() *CreateUserBadge200Response` - -NewCreateUserBadge200ResponseWithDefaults instantiates a new CreateUserBadge200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *CreateUserBadge200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *CreateUserBadge200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *CreateUserBadge200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetUserBadge - -`func (o *CreateUserBadge200Response) GetUserBadge() UserBadge` - -GetUserBadge returns the UserBadge field if non-nil, zero value otherwise. - -### GetUserBadgeOk - -`func (o *CreateUserBadge200Response) GetUserBadgeOk() (*UserBadge, bool)` - -GetUserBadgeOk returns a tuple with the UserBadge field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUserBadge - -`func (o *CreateUserBadge200Response) SetUserBadge(v UserBadge)` - -SetUserBadge sets UserBadge field to given value. - - -### GetNotes - -`func (o *CreateUserBadge200Response) GetNotes() []string` - -GetNotes returns the Notes field if non-nil, zero value otherwise. - -### GetNotesOk - -`func (o *CreateUserBadge200Response) GetNotesOk() (*[]string, bool)` - -GetNotesOk returns a tuple with the Notes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNotes - -`func (o *CreateUserBadge200Response) SetNotes(v []string)` - -SetNotes sets Notes field to given value. - -### HasNotes - -`func (o *CreateUserBadge200Response) HasNotes() bool` - -HasNotes returns a boolean if a field has been set. - -### GetReason - -`func (o *CreateUserBadge200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *CreateUserBadge200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *CreateUserBadge200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *CreateUserBadge200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *CreateUserBadge200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *CreateUserBadge200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *CreateUserBadge200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *CreateUserBadge200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *CreateUserBadge200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *CreateUserBadge200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *CreateUserBadge200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *CreateUserBadge200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *CreateUserBadge200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *CreateUserBadge200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *CreateUserBadge200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *CreateUserBadge200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *CreateUserBadge200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *CreateUserBadge200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *CreateUserBadge200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *CreateUserBadge200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *CreateUserBadge200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *CreateUserBadge200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *CreateUserBadge200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *CreateUserBadge200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *CreateUserBadge200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *CreateUserBadge200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateV1PageReact.md b/client/docs/CreateV1PageReact.md new file mode 100644 index 0000000..06b10bc --- /dev/null +++ b/client/docs/CreateV1PageReact.md @@ -0,0 +1,77 @@ +# CreateV1PageReact + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **string** | | [optional] +**Status** | [**APIStatus**](APIStatus.md) | | + +## Methods + +### NewCreateV1PageReact + +`func NewCreateV1PageReact(status APIStatus, ) *CreateV1PageReact` + +NewCreateV1PageReact instantiates a new CreateV1PageReact object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateV1PageReactWithDefaults + +`func NewCreateV1PageReactWithDefaults() *CreateV1PageReact` + +NewCreateV1PageReactWithDefaults instantiates a new CreateV1PageReact object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCode + +`func (o *CreateV1PageReact) GetCode() string` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *CreateV1PageReact) GetCodeOk() (*string, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *CreateV1PageReact) SetCode(v string)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *CreateV1PageReact) HasCode() bool` + +HasCode returns a boolean if a field has been set. + +### GetStatus + +`func (o *CreateV1PageReact) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *CreateV1PageReact) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *CreateV1PageReact) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/CustomConfigParameters.md b/client/docs/CustomConfigParameters.md index a294228..cc46c12 100644 --- a/client/docs/CustomConfigParameters.md +++ b/client/docs/CustomConfigParameters.md @@ -56,11 +56,14 @@ Name | Type | Description | Notes **NoCustomConfig** | Pointer to **bool** | | [optional] **MentionAutoCompleteMode** | Pointer to [**NullableMentionAutoCompleteMode**](MentionAutoCompleteMode.md) | | [optional] **NoImageUploads** | Pointer to **bool** | | [optional] +**AllowEmbeds** | Pointer to **bool** | | [optional] +**AllowedEmbedDomains** | Pointer to **[]string** | | [optional] **NoStyles** | Pointer to **bool** | | [optional] **PageSize** | Pointer to **NullableInt32** | | [optional] **Readonly** | Pointer to **bool** | | [optional] **NoNewRootComments** | Pointer to **bool** | | [optional] **RequireSSO** | Pointer to **bool** | | [optional] +**EnableFChat** | Pointer to **bool** | | [optional] **EnableResizeHandle** | Pointer to **bool** | | [optional] **RestrictedLinkDomains** | Pointer to **[]string** | | [optional] **ShowBadgesInTopBar** | Pointer to **bool** | | [optional] @@ -81,6 +84,8 @@ Name | Type | Description | Notes **WidgetQuestionsRequired** | Pointer to [**CommentQuestionsRequired**](CommentQuestionsRequired.md) | | [optional] **WidgetSubQuestionVisibility** | Pointer to [**QuestionSubQuestionVisibility**](QuestionSubQuestionVisibility.md) | | [optional] **Wrap** | Pointer to **bool** | | [optional] +**UsersListLocation** | Pointer to [**UsersListLocation**](UsersListLocation.md) | | [optional] +**UsersListIncludeOffline** | Pointer to **bool** | | [optional] **TicketBaseUrl** | Pointer to **string** | | [optional] **TicketKBSearchEndpoint** | Pointer to **string** | | [optional] **TicketFileUploadsEnabled** | Pointer to **bool** | | [optional] @@ -1547,6 +1552,66 @@ SetNoImageUploads sets NoImageUploads field to given value. HasNoImageUploads returns a boolean if a field has been set. +### GetAllowEmbeds + +`func (o *CustomConfigParameters) GetAllowEmbeds() bool` + +GetAllowEmbeds returns the AllowEmbeds field if non-nil, zero value otherwise. + +### GetAllowEmbedsOk + +`func (o *CustomConfigParameters) GetAllowEmbedsOk() (*bool, bool)` + +GetAllowEmbedsOk returns a tuple with the AllowEmbeds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowEmbeds + +`func (o *CustomConfigParameters) SetAllowEmbeds(v bool)` + +SetAllowEmbeds sets AllowEmbeds field to given value. + +### HasAllowEmbeds + +`func (o *CustomConfigParameters) HasAllowEmbeds() bool` + +HasAllowEmbeds returns a boolean if a field has been set. + +### GetAllowedEmbedDomains + +`func (o *CustomConfigParameters) GetAllowedEmbedDomains() []string` + +GetAllowedEmbedDomains returns the AllowedEmbedDomains field if non-nil, zero value otherwise. + +### GetAllowedEmbedDomainsOk + +`func (o *CustomConfigParameters) GetAllowedEmbedDomainsOk() (*[]string, bool)` + +GetAllowedEmbedDomainsOk returns a tuple with the AllowedEmbedDomains field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedEmbedDomains + +`func (o *CustomConfigParameters) SetAllowedEmbedDomains(v []string)` + +SetAllowedEmbedDomains sets AllowedEmbedDomains field to given value. + +### HasAllowedEmbedDomains + +`func (o *CustomConfigParameters) HasAllowedEmbedDomains() bool` + +HasAllowedEmbedDomains returns a boolean if a field has been set. + +### SetAllowedEmbedDomainsNil + +`func (o *CustomConfigParameters) SetAllowedEmbedDomainsNil(b bool)` + + SetAllowedEmbedDomainsNil sets the value for AllowedEmbedDomains to be an explicit nil + +### UnsetAllowedEmbedDomains +`func (o *CustomConfigParameters) UnsetAllowedEmbedDomains()` + +UnsetAllowedEmbedDomains ensures that no value is present for AllowedEmbedDomains, not even an explicit nil ### GetNoStyles `func (o *CustomConfigParameters) GetNoStyles() bool` @@ -1682,6 +1747,31 @@ SetRequireSSO sets RequireSSO field to given value. HasRequireSSO returns a boolean if a field has been set. +### GetEnableFChat + +`func (o *CustomConfigParameters) GetEnableFChat() bool` + +GetEnableFChat returns the EnableFChat field if non-nil, zero value otherwise. + +### GetEnableFChatOk + +`func (o *CustomConfigParameters) GetEnableFChatOk() (*bool, bool)` + +GetEnableFChatOk returns a tuple with the EnableFChat field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnableFChat + +`func (o *CustomConfigParameters) SetEnableFChat(v bool)` + +SetEnableFChat sets EnableFChat field to given value. + +### HasEnableFChat + +`func (o *CustomConfigParameters) HasEnableFChat() bool` + +HasEnableFChat returns a boolean if a field has been set. + ### GetEnableResizeHandle `func (o *CustomConfigParameters) GetEnableResizeHandle() bool` @@ -2202,6 +2292,56 @@ SetWrap sets Wrap field to given value. HasWrap returns a boolean if a field has been set. +### GetUsersListLocation + +`func (o *CustomConfigParameters) GetUsersListLocation() UsersListLocation` + +GetUsersListLocation returns the UsersListLocation field if non-nil, zero value otherwise. + +### GetUsersListLocationOk + +`func (o *CustomConfigParameters) GetUsersListLocationOk() (*UsersListLocation, bool)` + +GetUsersListLocationOk returns a tuple with the UsersListLocation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsersListLocation + +`func (o *CustomConfigParameters) SetUsersListLocation(v UsersListLocation)` + +SetUsersListLocation sets UsersListLocation field to given value. + +### HasUsersListLocation + +`func (o *CustomConfigParameters) HasUsersListLocation() bool` + +HasUsersListLocation returns a boolean if a field has been set. + +### GetUsersListIncludeOffline + +`func (o *CustomConfigParameters) GetUsersListIncludeOffline() bool` + +GetUsersListIncludeOffline returns the UsersListIncludeOffline field if non-nil, zero value otherwise. + +### GetUsersListIncludeOfflineOk + +`func (o *CustomConfigParameters) GetUsersListIncludeOfflineOk() (*bool, bool)` + +GetUsersListIncludeOfflineOk returns a tuple with the UsersListIncludeOffline field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsersListIncludeOffline + +`func (o *CustomConfigParameters) SetUsersListIncludeOffline(v bool)` + +SetUsersListIncludeOffline sets UsersListIncludeOffline field to given value. + +### HasUsersListIncludeOffline + +`func (o *CustomConfigParameters) HasUsersListIncludeOffline() bool` + +HasUsersListIncludeOffline returns a boolean if a field has been set. + ### GetTicketBaseUrl `func (o *CustomConfigParameters) GetTicketBaseUrl() string` diff --git a/client/docs/DefaultAPI.md b/client/docs/DefaultAPI.md index 4936f53..fdbe0e8 100644 --- a/client/docs/DefaultAPI.md +++ b/client/docs/DefaultAPI.md @@ -123,7 +123,7 @@ Method | HTTP request | Description ## AddDomainConfig -> AddDomainConfig200Response AddDomainConfig(ctx).TenantId(tenantId).AddDomainConfigParams(addDomainConfigParams).Execute() +> AddDomainConfigResponse AddDomainConfig(ctx).TenantId(tenantId).AddDomainConfigParams(addDomainConfigParams).Execute() @@ -150,7 +150,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AddDomainConfig``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `AddDomainConfig`: AddDomainConfig200Response + // response from `AddDomainConfig`: AddDomainConfigResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AddDomainConfig`: %v\n", resp) } ``` @@ -171,7 +171,7 @@ Name | Type | Description | Notes ### Return type -[**AddDomainConfig200Response**](AddDomainConfig200Response.md) +[**AddDomainConfigResponse**](AddDomainConfigResponse.md) ### Authorization @@ -189,7 +189,7 @@ Name | Type | Description | Notes ## AddHashTag -> AddHashTag200Response AddHashTag(ctx).TenantId(tenantId).CreateHashTagBody(createHashTagBody).Execute() +> CreateHashTagResponse AddHashTag(ctx).TenantId(tenantId).CreateHashTagBody(createHashTagBody).Execute() @@ -216,7 +216,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AddHashTag``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `AddHashTag`: AddHashTag200Response + // response from `AddHashTag`: CreateHashTagResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AddHashTag`: %v\n", resp) } ``` @@ -237,7 +237,7 @@ Name | Type | Description | Notes ### Return type -[**AddHashTag200Response**](AddHashTag200Response.md) +[**CreateHashTagResponse**](CreateHashTagResponse.md) ### Authorization @@ -255,7 +255,7 @@ Name | Type | Description | Notes ## AddHashTagsBulk -> AddHashTagsBulk200Response AddHashTagsBulk(ctx).TenantId(tenantId).BulkCreateHashTagsBody(bulkCreateHashTagsBody).Execute() +> BulkCreateHashTagsResponse AddHashTagsBulk(ctx).TenantId(tenantId).BulkCreateHashTagsBody(bulkCreateHashTagsBody).Execute() @@ -282,7 +282,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AddHashTagsBulk``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `AddHashTagsBulk`: AddHashTagsBulk200Response + // response from `AddHashTagsBulk`: BulkCreateHashTagsResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AddHashTagsBulk`: %v\n", resp) } ``` @@ -303,7 +303,7 @@ Name | Type | Description | Notes ### Return type -[**AddHashTagsBulk200Response**](AddHashTagsBulk200Response.md) +[**BulkCreateHashTagsResponse**](BulkCreateHashTagsResponse.md) ### Authorization @@ -453,7 +453,7 @@ Name | Type | Description | Notes ## Aggregate -> AggregationResponse Aggregate(ctx).TenantId(tenantId).AggregationRequest(aggregationRequest).ParentTenantId(parentTenantId).IncludeStats(includeStats).Execute() +> AggregateResponse Aggregate(ctx).TenantId(tenantId).AggregationRequest(aggregationRequest).ParentTenantId(parentTenantId).IncludeStats(includeStats).Execute() @@ -484,7 +484,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.Aggregate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `Aggregate`: AggregationResponse + // response from `Aggregate`: AggregateResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.Aggregate`: %v\n", resp) } ``` @@ -507,7 +507,7 @@ Name | Type | Description | Notes ### Return type -[**AggregationResponse**](AggregationResponse.md) +[**AggregateResponse**](AggregateResponse.md) ### Authorization @@ -525,7 +525,7 @@ Name | Type | Description | Notes ## AggregateQuestionResults -> AggregateQuestionResults200Response AggregateQuestionResults(ctx).TenantId(tenantId).QuestionId(questionId).QuestionIds(questionIds).UrlId(urlId).TimeBucket(timeBucket).StartDate(startDate).ForceRecalculate(forceRecalculate).Execute() +> AggregateQuestionResultsResponse AggregateQuestionResults(ctx).TenantId(tenantId).QuestionId(questionId).QuestionIds(questionIds).UrlId(urlId).TimeBucket(timeBucket).StartDate(startDate).ForceRecalculate(forceRecalculate).Execute() @@ -558,7 +558,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AggregateQuestionResults``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `AggregateQuestionResults`: AggregateQuestionResults200Response + // response from `AggregateQuestionResults`: AggregateQuestionResultsResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AggregateQuestionResults`: %v\n", resp) } ``` @@ -584,7 +584,7 @@ Name | Type | Description | Notes ### Return type -[**AggregateQuestionResults200Response**](AggregateQuestionResults200Response.md) +[**AggregateQuestionResultsResponse**](AggregateQuestionResultsResponse.md) ### Authorization @@ -602,7 +602,7 @@ Name | Type | Description | Notes ## BlockUserFromComment -> BlockFromCommentPublic200Response BlockUserFromComment(ctx, id).TenantId(tenantId).BlockFromCommentParams(blockFromCommentParams).UserId(userId).AnonUserId(anonUserId).Execute() +> BlockSuccess BlockUserFromComment(ctx, id).TenantId(tenantId).BlockFromCommentParams(blockFromCommentParams).UserId(userId).AnonUserId(anonUserId).Execute() @@ -632,7 +632,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.BlockUserFromComment``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `BlockUserFromComment`: BlockFromCommentPublic200Response + // response from `BlockUserFromComment`: BlockSuccess fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.BlockUserFromComment`: %v\n", resp) } ``` @@ -660,7 +660,7 @@ Name | Type | Description | Notes ### Return type -[**BlockFromCommentPublic200Response**](BlockFromCommentPublic200Response.md) +[**BlockSuccess**](BlockSuccess.md) ### Authorization @@ -678,7 +678,7 @@ Name | Type | Description | Notes ## BulkAggregateQuestionResults -> BulkAggregateQuestionResults200Response BulkAggregateQuestionResults(ctx).TenantId(tenantId).BulkAggregateQuestionResultsRequest(bulkAggregateQuestionResultsRequest).ForceRecalculate(forceRecalculate).Execute() +> BulkAggregateQuestionResultsResponse BulkAggregateQuestionResults(ctx).TenantId(tenantId).BulkAggregateQuestionResultsRequest(bulkAggregateQuestionResultsRequest).ForceRecalculate(forceRecalculate).Execute() @@ -706,7 +706,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.BulkAggregateQuestionResults``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `BulkAggregateQuestionResults`: BulkAggregateQuestionResults200Response + // response from `BulkAggregateQuestionResults`: BulkAggregateQuestionResultsResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.BulkAggregateQuestionResults`: %v\n", resp) } ``` @@ -728,7 +728,7 @@ Name | Type | Description | Notes ### Return type -[**BulkAggregateQuestionResults200Response**](BulkAggregateQuestionResults200Response.md) +[**BulkAggregateQuestionResultsResponse**](BulkAggregateQuestionResultsResponse.md) ### Authorization @@ -746,7 +746,7 @@ Name | Type | Description | Notes ## ChangeTicketState -> ChangeTicketState200Response ChangeTicketState(ctx, id).TenantId(tenantId).UserId(userId).ChangeTicketStateBody(changeTicketStateBody).Execute() +> ChangeTicketStateResponse ChangeTicketState(ctx, id).TenantId(tenantId).UserId(userId).ChangeTicketStateBody(changeTicketStateBody).Execute() @@ -775,7 +775,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.ChangeTicketState``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ChangeTicketState`: ChangeTicketState200Response + // response from `ChangeTicketState`: ChangeTicketStateResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.ChangeTicketState`: %v\n", resp) } ``` @@ -802,7 +802,7 @@ Name | Type | Description | Notes ### Return type -[**ChangeTicketState200Response**](ChangeTicketState200Response.md) +[**ChangeTicketStateResponse**](ChangeTicketStateResponse.md) ### Authorization @@ -820,7 +820,7 @@ Name | Type | Description | Notes ## CombineCommentsWithQuestionResults -> CombineCommentsWithQuestionResults200Response CombineCommentsWithQuestionResults(ctx).TenantId(tenantId).QuestionId(questionId).QuestionIds(questionIds).UrlId(urlId).StartDate(startDate).ForceRecalculate(forceRecalculate).MinValue(minValue).MaxValue(maxValue).Limit(limit).Execute() +> CombineQuestionResultsWithCommentsResponse CombineCommentsWithQuestionResults(ctx).TenantId(tenantId).QuestionId(questionId).QuestionIds(questionIds).UrlId(urlId).StartDate(startDate).ForceRecalculate(forceRecalculate).MinValue(minValue).MaxValue(maxValue).Limit(limit).Execute() @@ -855,7 +855,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.CombineCommentsWithQuestionResults``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `CombineCommentsWithQuestionResults`: CombineCommentsWithQuestionResults200Response + // response from `CombineCommentsWithQuestionResults`: CombineQuestionResultsWithCommentsResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CombineCommentsWithQuestionResults`: %v\n", resp) } ``` @@ -883,7 +883,7 @@ Name | Type | Description | Notes ### Return type -[**CombineCommentsWithQuestionResults200Response**](CombineCommentsWithQuestionResults200Response.md) +[**CombineQuestionResultsWithCommentsResponse**](CombineQuestionResultsWithCommentsResponse.md) ### Authorization @@ -901,7 +901,7 @@ Name | Type | Description | Notes ## CreateEmailTemplate -> CreateEmailTemplate200Response CreateEmailTemplate(ctx).TenantId(tenantId).CreateEmailTemplateBody(createEmailTemplateBody).Execute() +> CreateEmailTemplateResponse CreateEmailTemplate(ctx).TenantId(tenantId).CreateEmailTemplateBody(createEmailTemplateBody).Execute() @@ -928,7 +928,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.CreateEmailTemplate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `CreateEmailTemplate`: CreateEmailTemplate200Response + // response from `CreateEmailTemplate`: CreateEmailTemplateResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateEmailTemplate`: %v\n", resp) } ``` @@ -949,7 +949,7 @@ Name | Type | Description | Notes ### Return type -[**CreateEmailTemplate200Response**](CreateEmailTemplate200Response.md) +[**CreateEmailTemplateResponse**](CreateEmailTemplateResponse.md) ### Authorization @@ -967,7 +967,7 @@ Name | Type | Description | Notes ## CreateFeedPost -> CreateFeedPost200Response CreateFeedPost(ctx).TenantId(tenantId).CreateFeedPostParams(createFeedPostParams).BroadcastId(broadcastId).IsLive(isLive).DoSpamCheck(doSpamCheck).SkipDupCheck(skipDupCheck).Execute() +> CreateFeedPostsResponse CreateFeedPost(ctx).TenantId(tenantId).CreateFeedPostParams(createFeedPostParams).BroadcastId(broadcastId).IsLive(isLive).DoSpamCheck(doSpamCheck).SkipDupCheck(skipDupCheck).Execute() @@ -998,7 +998,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.CreateFeedPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `CreateFeedPost`: CreateFeedPost200Response + // response from `CreateFeedPost`: CreateFeedPostsResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateFeedPost`: %v\n", resp) } ``` @@ -1023,7 +1023,7 @@ Name | Type | Description | Notes ### Return type -[**CreateFeedPost200Response**](CreateFeedPost200Response.md) +[**CreateFeedPostsResponse**](CreateFeedPostsResponse.md) ### Authorization @@ -1041,7 +1041,7 @@ Name | Type | Description | Notes ## CreateModerator -> CreateModerator200Response CreateModerator(ctx).TenantId(tenantId).CreateModeratorBody(createModeratorBody).Execute() +> CreateModeratorResponse CreateModerator(ctx).TenantId(tenantId).CreateModeratorBody(createModeratorBody).Execute() @@ -1068,7 +1068,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.CreateModerator``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `CreateModerator`: CreateModerator200Response + // response from `CreateModerator`: CreateModeratorResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateModerator`: %v\n", resp) } ``` @@ -1089,7 +1089,7 @@ Name | Type | Description | Notes ### Return type -[**CreateModerator200Response**](CreateModerator200Response.md) +[**CreateModeratorResponse**](CreateModeratorResponse.md) ### Authorization @@ -1107,7 +1107,7 @@ Name | Type | Description | Notes ## CreateQuestionConfig -> CreateQuestionConfig200Response CreateQuestionConfig(ctx).TenantId(tenantId).CreateQuestionConfigBody(createQuestionConfigBody).Execute() +> CreateQuestionConfigResponse CreateQuestionConfig(ctx).TenantId(tenantId).CreateQuestionConfigBody(createQuestionConfigBody).Execute() @@ -1134,7 +1134,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.CreateQuestionConfig``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `CreateQuestionConfig`: CreateQuestionConfig200Response + // response from `CreateQuestionConfig`: CreateQuestionConfigResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateQuestionConfig`: %v\n", resp) } ``` @@ -1155,7 +1155,7 @@ Name | Type | Description | Notes ### Return type -[**CreateQuestionConfig200Response**](CreateQuestionConfig200Response.md) +[**CreateQuestionConfigResponse**](CreateQuestionConfigResponse.md) ### Authorization @@ -1173,7 +1173,7 @@ Name | Type | Description | Notes ## CreateQuestionResult -> CreateQuestionResult200Response CreateQuestionResult(ctx).TenantId(tenantId).CreateQuestionResultBody(createQuestionResultBody).Execute() +> CreateQuestionResultResponse CreateQuestionResult(ctx).TenantId(tenantId).CreateQuestionResultBody(createQuestionResultBody).Execute() @@ -1200,7 +1200,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.CreateQuestionResult``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `CreateQuestionResult`: CreateQuestionResult200Response + // response from `CreateQuestionResult`: CreateQuestionResultResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateQuestionResult`: %v\n", resp) } ``` @@ -1221,7 +1221,7 @@ Name | Type | Description | Notes ### Return type -[**CreateQuestionResult200Response**](CreateQuestionResult200Response.md) +[**CreateQuestionResultResponse**](CreateQuestionResultResponse.md) ### Authorization @@ -1305,7 +1305,7 @@ Name | Type | Description | Notes ## CreateTenant -> CreateTenant200Response CreateTenant(ctx).TenantId(tenantId).CreateTenantBody(createTenantBody).Execute() +> CreateTenantResponse CreateTenant(ctx).TenantId(tenantId).CreateTenantBody(createTenantBody).Execute() @@ -1333,7 +1333,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.CreateTenant``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `CreateTenant`: CreateTenant200Response + // response from `CreateTenant`: CreateTenantResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateTenant`: %v\n", resp) } ``` @@ -1354,7 +1354,7 @@ Name | Type | Description | Notes ### Return type -[**CreateTenant200Response**](CreateTenant200Response.md) +[**CreateTenantResponse**](CreateTenantResponse.md) ### Authorization @@ -1372,7 +1372,7 @@ Name | Type | Description | Notes ## CreateTenantPackage -> CreateTenantPackage200Response CreateTenantPackage(ctx).TenantId(tenantId).CreateTenantPackageBody(createTenantPackageBody).Execute() +> CreateTenantPackageResponse CreateTenantPackage(ctx).TenantId(tenantId).CreateTenantPackageBody(createTenantPackageBody).Execute() @@ -1399,7 +1399,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.CreateTenantPackage``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `CreateTenantPackage`: CreateTenantPackage200Response + // response from `CreateTenantPackage`: CreateTenantPackageResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateTenantPackage`: %v\n", resp) } ``` @@ -1420,7 +1420,7 @@ Name | Type | Description | Notes ### Return type -[**CreateTenantPackage200Response**](CreateTenantPackage200Response.md) +[**CreateTenantPackageResponse**](CreateTenantPackageResponse.md) ### Authorization @@ -1438,7 +1438,7 @@ Name | Type | Description | Notes ## CreateTenantUser -> CreateTenantUser200Response CreateTenantUser(ctx).TenantId(tenantId).CreateTenantUserBody(createTenantUserBody).Execute() +> CreateTenantUserResponse CreateTenantUser(ctx).TenantId(tenantId).CreateTenantUserBody(createTenantUserBody).Execute() @@ -1465,7 +1465,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.CreateTenantUser``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `CreateTenantUser`: CreateTenantUser200Response + // response from `CreateTenantUser`: CreateTenantUserResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateTenantUser`: %v\n", resp) } ``` @@ -1486,7 +1486,7 @@ Name | Type | Description | Notes ### Return type -[**CreateTenantUser200Response**](CreateTenantUser200Response.md) +[**CreateTenantUserResponse**](CreateTenantUserResponse.md) ### Authorization @@ -1504,7 +1504,7 @@ Name | Type | Description | Notes ## CreateTicket -> CreateTicket200Response CreateTicket(ctx).TenantId(tenantId).UserId(userId).CreateTicketBody(createTicketBody).Execute() +> CreateTicketResponse CreateTicket(ctx).TenantId(tenantId).UserId(userId).CreateTicketBody(createTicketBody).Execute() @@ -1532,7 +1532,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.CreateTicket``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `CreateTicket`: CreateTicket200Response + // response from `CreateTicket`: CreateTicketResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateTicket`: %v\n", resp) } ``` @@ -1554,7 +1554,7 @@ Name | Type | Description | Notes ### Return type -[**CreateTicket200Response**](CreateTicket200Response.md) +[**CreateTicketResponse**](CreateTicketResponse.md) ### Authorization @@ -1572,7 +1572,7 @@ Name | Type | Description | Notes ## CreateUserBadge -> CreateUserBadge200Response CreateUserBadge(ctx).TenantId(tenantId).CreateUserBadgeParams(createUserBadgeParams).Execute() +> APICreateUserBadgeResponse CreateUserBadge(ctx).TenantId(tenantId).CreateUserBadgeParams(createUserBadgeParams).Execute() @@ -1599,7 +1599,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.CreateUserBadge``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `CreateUserBadge`: CreateUserBadge200Response + // response from `CreateUserBadge`: APICreateUserBadgeResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateUserBadge`: %v\n", resp) } ``` @@ -1620,7 +1620,7 @@ Name | Type | Description | Notes ### Return type -[**CreateUserBadge200Response**](CreateUserBadge200Response.md) +[**APICreateUserBadgeResponse**](APICreateUserBadgeResponse.md) ### Authorization @@ -1638,7 +1638,7 @@ Name | Type | Description | Notes ## CreateVote -> VoteComment200Response CreateVote(ctx).TenantId(tenantId).CommentId(commentId).Direction(direction).UserId(userId).AnonUserId(anonUserId).Execute() +> VoteResponse CreateVote(ctx).TenantId(tenantId).CommentId(commentId).Direction(direction).UserId(userId).AnonUserId(anonUserId).Execute() @@ -1668,7 +1668,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.CreateVote``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `CreateVote`: VoteComment200Response + // response from `CreateVote`: VoteResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateVote`: %v\n", resp) } ``` @@ -1692,7 +1692,7 @@ Name | Type | Description | Notes ### Return type -[**VoteComment200Response**](VoteComment200Response.md) +[**VoteResponse**](VoteResponse.md) ### Authorization @@ -1710,7 +1710,7 @@ Name | Type | Description | Notes ## DeleteComment -> DeleteComment200Response DeleteComment(ctx, id).TenantId(tenantId).ContextUserId(contextUserId).IsLive(isLive).Execute() +> DeleteCommentResult DeleteComment(ctx, id).TenantId(tenantId).ContextUserId(contextUserId).IsLive(isLive).Execute() @@ -1739,7 +1739,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.DeleteComment``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DeleteComment`: DeleteComment200Response + // response from `DeleteComment`: DeleteCommentResult fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteComment`: %v\n", resp) } ``` @@ -1766,7 +1766,7 @@ Name | Type | Description | Notes ### Return type -[**DeleteComment200Response**](DeleteComment200Response.md) +[**DeleteCommentResult**](DeleteCommentResult.md) ### Authorization @@ -1784,7 +1784,7 @@ Name | Type | Description | Notes ## DeleteDomainConfig -> DeleteDomainConfig200Response DeleteDomainConfig(ctx, domain).TenantId(tenantId).Execute() +> DeleteDomainConfigResponse DeleteDomainConfig(ctx, domain).TenantId(tenantId).Execute() @@ -1811,7 +1811,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.DeleteDomainConfig``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DeleteDomainConfig`: DeleteDomainConfig200Response + // response from `DeleteDomainConfig`: DeleteDomainConfigResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteDomainConfig`: %v\n", resp) } ``` @@ -1836,7 +1836,7 @@ Name | Type | Description | Notes ### Return type -[**DeleteDomainConfig200Response**](DeleteDomainConfig200Response.md) +[**DeleteDomainConfigResponse**](DeleteDomainConfigResponse.md) ### Authorization @@ -1854,7 +1854,7 @@ Name | Type | Description | Notes ## DeleteEmailTemplate -> FlagCommentPublic200Response DeleteEmailTemplate(ctx, id).TenantId(tenantId).Execute() +> APIEmptyResponse DeleteEmailTemplate(ctx, id).TenantId(tenantId).Execute() @@ -1881,7 +1881,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.DeleteEmailTemplate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DeleteEmailTemplate`: FlagCommentPublic200Response + // response from `DeleteEmailTemplate`: APIEmptyResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteEmailTemplate`: %v\n", resp) } ``` @@ -1906,7 +1906,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1924,7 +1924,7 @@ Name | Type | Description | Notes ## DeleteEmailTemplateRenderError -> FlagCommentPublic200Response DeleteEmailTemplateRenderError(ctx, id, errorId).TenantId(tenantId).Execute() +> APIEmptyResponse DeleteEmailTemplateRenderError(ctx, id, errorId).TenantId(tenantId).Execute() @@ -1952,7 +1952,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.DeleteEmailTemplateRenderError``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DeleteEmailTemplateRenderError`: FlagCommentPublic200Response + // response from `DeleteEmailTemplateRenderError`: APIEmptyResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteEmailTemplateRenderError`: %v\n", resp) } ``` @@ -1979,7 +1979,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1997,7 +1997,7 @@ Name | Type | Description | Notes ## DeleteHashTag -> FlagCommentPublic200Response DeleteHashTag(ctx, tag).TenantId(tenantId).DeleteHashTagRequest(deleteHashTagRequest).Execute() +> APIEmptyResponse DeleteHashTag(ctx, tag).TenantId(tenantId).DeleteHashTagRequestBody(deleteHashTagRequestBody).Execute() @@ -2016,16 +2016,16 @@ import ( func main() { tag := "tag_example" // string | tenantId := "tenantId_example" // string | (optional) - deleteHashTagRequest := *openapiclient.NewDeleteHashTagRequest() // DeleteHashTagRequest | (optional) + deleteHashTagRequestBody := *openapiclient.NewDeleteHashTagRequestBody() // DeleteHashTagRequestBody | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DefaultAPI.DeleteHashTag(context.Background(), tag).TenantId(tenantId).DeleteHashTagRequest(deleteHashTagRequest).Execute() + resp, r, err := apiClient.DefaultAPI.DeleteHashTag(context.Background(), tag).TenantId(tenantId).DeleteHashTagRequestBody(deleteHashTagRequestBody).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.DeleteHashTag``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DeleteHashTag`: FlagCommentPublic200Response + // response from `DeleteHashTag`: APIEmptyResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteHashTag`: %v\n", resp) } ``` @@ -2047,11 +2047,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tenantId** | **string** | | - **deleteHashTagRequest** | [**DeleteHashTagRequest**](DeleteHashTagRequest.md) | | + **deleteHashTagRequestBody** | [**DeleteHashTagRequestBody**](DeleteHashTagRequestBody.md) | | ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2069,7 +2069,7 @@ Name | Type | Description | Notes ## DeleteModerator -> FlagCommentPublic200Response DeleteModerator(ctx, id).TenantId(tenantId).SendEmail(sendEmail).Execute() +> APIEmptyResponse DeleteModerator(ctx, id).TenantId(tenantId).SendEmail(sendEmail).Execute() @@ -2097,7 +2097,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.DeleteModerator``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DeleteModerator`: FlagCommentPublic200Response + // response from `DeleteModerator`: APIEmptyResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteModerator`: %v\n", resp) } ``` @@ -2123,7 +2123,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2141,7 +2141,7 @@ Name | Type | Description | Notes ## DeleteNotificationCount -> FlagCommentPublic200Response DeleteNotificationCount(ctx, id).TenantId(tenantId).Execute() +> APIEmptyResponse DeleteNotificationCount(ctx, id).TenantId(tenantId).Execute() @@ -2168,7 +2168,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.DeleteNotificationCount``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DeleteNotificationCount`: FlagCommentPublic200Response + // response from `DeleteNotificationCount`: APIEmptyResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteNotificationCount`: %v\n", resp) } ``` @@ -2193,7 +2193,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2281,7 +2281,7 @@ Name | Type | Description | Notes ## DeletePendingWebhookEvent -> FlagCommentPublic200Response DeletePendingWebhookEvent(ctx, id).TenantId(tenantId).Execute() +> APIEmptyResponse DeletePendingWebhookEvent(ctx, id).TenantId(tenantId).Execute() @@ -2308,7 +2308,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.DeletePendingWebhookEvent``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DeletePendingWebhookEvent`: FlagCommentPublic200Response + // response from `DeletePendingWebhookEvent`: APIEmptyResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeletePendingWebhookEvent`: %v\n", resp) } ``` @@ -2333,7 +2333,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2351,7 +2351,7 @@ Name | Type | Description | Notes ## DeleteQuestionConfig -> FlagCommentPublic200Response DeleteQuestionConfig(ctx, id).TenantId(tenantId).Execute() +> APIEmptyResponse DeleteQuestionConfig(ctx, id).TenantId(tenantId).Execute() @@ -2378,7 +2378,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.DeleteQuestionConfig``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DeleteQuestionConfig`: FlagCommentPublic200Response + // response from `DeleteQuestionConfig`: APIEmptyResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteQuestionConfig`: %v\n", resp) } ``` @@ -2403,7 +2403,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2421,7 +2421,7 @@ Name | Type | Description | Notes ## DeleteQuestionResult -> FlagCommentPublic200Response DeleteQuestionResult(ctx, id).TenantId(tenantId).Execute() +> APIEmptyResponse DeleteQuestionResult(ctx, id).TenantId(tenantId).Execute() @@ -2448,7 +2448,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.DeleteQuestionResult``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DeleteQuestionResult`: FlagCommentPublic200Response + // response from `DeleteQuestionResult`: APIEmptyResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteQuestionResult`: %v\n", resp) } ``` @@ -2473,7 +2473,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2637,7 +2637,7 @@ Name | Type | Description | Notes ## DeleteTenant -> FlagCommentPublic200Response DeleteTenant(ctx, id).TenantId(tenantId).Sure(sure).Execute() +> APIEmptyResponse DeleteTenant(ctx, id).TenantId(tenantId).Sure(sure).Execute() @@ -2665,7 +2665,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.DeleteTenant``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DeleteTenant`: FlagCommentPublic200Response + // response from `DeleteTenant`: APIEmptyResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteTenant`: %v\n", resp) } ``` @@ -2691,7 +2691,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2709,7 +2709,7 @@ Name | Type | Description | Notes ## DeleteTenantPackage -> FlagCommentPublic200Response DeleteTenantPackage(ctx, id).TenantId(tenantId).Execute() +> APIEmptyResponse DeleteTenantPackage(ctx, id).TenantId(tenantId).Execute() @@ -2736,7 +2736,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.DeleteTenantPackage``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DeleteTenantPackage`: FlagCommentPublic200Response + // response from `DeleteTenantPackage`: APIEmptyResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteTenantPackage`: %v\n", resp) } ``` @@ -2761,7 +2761,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2779,7 +2779,7 @@ Name | Type | Description | Notes ## DeleteTenantUser -> FlagCommentPublic200Response DeleteTenantUser(ctx, id).TenantId(tenantId).DeleteComments(deleteComments).CommentDeleteMode(commentDeleteMode).Execute() +> APIEmptyResponse DeleteTenantUser(ctx, id).TenantId(tenantId).DeleteComments(deleteComments).CommentDeleteMode(commentDeleteMode).Execute() @@ -2808,7 +2808,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.DeleteTenantUser``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DeleteTenantUser`: FlagCommentPublic200Response + // response from `DeleteTenantUser`: APIEmptyResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteTenantUser`: %v\n", resp) } ``` @@ -2835,7 +2835,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2853,7 +2853,7 @@ Name | Type | Description | Notes ## DeleteUserBadge -> UpdateUserBadge200Response DeleteUserBadge(ctx, id).TenantId(tenantId).Execute() +> APIEmptySuccessResponse DeleteUserBadge(ctx, id).TenantId(tenantId).Execute() @@ -2880,7 +2880,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.DeleteUserBadge``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DeleteUserBadge`: UpdateUserBadge200Response + // response from `DeleteUserBadge`: APIEmptySuccessResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteUserBadge`: %v\n", resp) } ``` @@ -2905,7 +2905,7 @@ Name | Type | Description | Notes ### Return type -[**UpdateUserBadge200Response**](UpdateUserBadge200Response.md) +[**APIEmptySuccessResponse**](APIEmptySuccessResponse.md) ### Authorization @@ -2923,7 +2923,7 @@ Name | Type | Description | Notes ## DeleteVote -> DeleteCommentVote200Response DeleteVote(ctx, id).TenantId(tenantId).EditKey(editKey).Execute() +> VoteDeleteResponse DeleteVote(ctx, id).TenantId(tenantId).EditKey(editKey).Execute() @@ -2951,7 +2951,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.DeleteVote``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DeleteVote`: DeleteCommentVote200Response + // response from `DeleteVote`: VoteDeleteResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteVote`: %v\n", resp) } ``` @@ -2977,7 +2977,7 @@ Name | Type | Description | Notes ### Return type -[**DeleteCommentVote200Response**](DeleteCommentVote200Response.md) +[**VoteDeleteResponse**](VoteDeleteResponse.md) ### Authorization @@ -2995,7 +2995,7 @@ Name | Type | Description | Notes ## FlagComment -> FlagComment200Response FlagComment(ctx, id).TenantId(tenantId).UserId(userId).AnonUserId(anonUserId).Execute() +> FlagCommentResponse FlagComment(ctx, id).TenantId(tenantId).UserId(userId).AnonUserId(anonUserId).Execute() @@ -3024,7 +3024,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.FlagComment``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `FlagComment`: FlagComment200Response + // response from `FlagComment`: FlagCommentResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.FlagComment`: %v\n", resp) } ``` @@ -3051,7 +3051,7 @@ Name | Type | Description | Notes ### Return type -[**FlagComment200Response**](FlagComment200Response.md) +[**FlagCommentResponse**](FlagCommentResponse.md) ### Authorization @@ -3069,7 +3069,7 @@ Name | Type | Description | Notes ## GetAuditLogs -> GetAuditLogs200Response GetAuditLogs(ctx).TenantId(tenantId).Limit(limit).Skip(skip).Order(order).After(after).Before(before).Execute() +> GetAuditLogsResponse GetAuditLogs(ctx).TenantId(tenantId).Limit(limit).Skip(skip).Order(order).After(after).Before(before).Execute() @@ -3100,7 +3100,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetAuditLogs``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetAuditLogs`: GetAuditLogs200Response + // response from `GetAuditLogs`: GetAuditLogsResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetAuditLogs`: %v\n", resp) } ``` @@ -3125,7 +3125,7 @@ Name | Type | Description | Notes ### Return type -[**GetAuditLogs200Response**](GetAuditLogs200Response.md) +[**GetAuditLogsResponse**](GetAuditLogsResponse.md) ### Authorization @@ -3143,7 +3143,7 @@ Name | Type | Description | Notes ## GetCachedNotificationCount -> GetCachedNotificationCount200Response GetCachedNotificationCount(ctx, id).TenantId(tenantId).Execute() +> GetCachedNotificationCountResponse GetCachedNotificationCount(ctx, id).TenantId(tenantId).Execute() @@ -3170,7 +3170,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetCachedNotificationCount``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetCachedNotificationCount`: GetCachedNotificationCount200Response + // response from `GetCachedNotificationCount`: GetCachedNotificationCountResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetCachedNotificationCount`: %v\n", resp) } ``` @@ -3195,7 +3195,7 @@ Name | Type | Description | Notes ### Return type -[**GetCachedNotificationCount200Response**](GetCachedNotificationCount200Response.md) +[**GetCachedNotificationCountResponse**](GetCachedNotificationCountResponse.md) ### Authorization @@ -3213,7 +3213,7 @@ Name | Type | Description | Notes ## GetComment -> GetComment200Response GetComment(ctx, id).TenantId(tenantId).Execute() +> APIGetCommentResponse GetComment(ctx, id).TenantId(tenantId).Execute() @@ -3240,7 +3240,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetComment``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetComment`: GetComment200Response + // response from `GetComment`: APIGetCommentResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetComment`: %v\n", resp) } ``` @@ -3265,7 +3265,7 @@ Name | Type | Description | Notes ### Return type -[**GetComment200Response**](GetComment200Response.md) +[**APIGetCommentResponse**](APIGetCommentResponse.md) ### Authorization @@ -3283,7 +3283,7 @@ Name | Type | Description | Notes ## GetComments -> GetComments200Response GetComments(ctx).TenantId(tenantId).Page(page).Limit(limit).Skip(skip).AsTree(asTree).SkipChildren(skipChildren).LimitChildren(limitChildren).MaxTreeDepth(maxTreeDepth).UrlId(urlId).UserId(userId).AnonUserId(anonUserId).ContextUserId(contextUserId).HashTag(hashTag).ParentId(parentId).Direction(direction).Execute() +> APIGetCommentsResponse GetComments(ctx).TenantId(tenantId).Page(page).Limit(limit).Skip(skip).AsTree(asTree).SkipChildren(skipChildren).LimitChildren(limitChildren).MaxTreeDepth(maxTreeDepth).UrlId(urlId).UserId(userId).AnonUserId(anonUserId).ContextUserId(contextUserId).HashTag(hashTag).ParentId(parentId).Direction(direction).FromDate(fromDate).ToDate(toDate).Execute() @@ -3315,15 +3315,17 @@ func main() { hashTag := "hashTag_example" // string | (optional) parentId := "parentId_example" // string | (optional) direction := openapiclient.SortDirections("OF") // SortDirections | (optional) + fromDate := int64(789) // int64 | (optional) + toDate := int64(789) // int64 | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DefaultAPI.GetComments(context.Background()).TenantId(tenantId).Page(page).Limit(limit).Skip(skip).AsTree(asTree).SkipChildren(skipChildren).LimitChildren(limitChildren).MaxTreeDepth(maxTreeDepth).UrlId(urlId).UserId(userId).AnonUserId(anonUserId).ContextUserId(contextUserId).HashTag(hashTag).ParentId(parentId).Direction(direction).Execute() + resp, r, err := apiClient.DefaultAPI.GetComments(context.Background()).TenantId(tenantId).Page(page).Limit(limit).Skip(skip).AsTree(asTree).SkipChildren(skipChildren).LimitChildren(limitChildren).MaxTreeDepth(maxTreeDepth).UrlId(urlId).UserId(userId).AnonUserId(anonUserId).ContextUserId(contextUserId).HashTag(hashTag).ParentId(parentId).Direction(direction).FromDate(fromDate).ToDate(toDate).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetComments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetComments`: GetComments200Response + // response from `GetComments`: APIGetCommentsResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetComments`: %v\n", resp) } ``` @@ -3354,10 +3356,12 @@ Name | Type | Description | Notes **hashTag** | **string** | | **parentId** | **string** | | **direction** | [**SortDirections**](SortDirections.md) | | + **fromDate** | **int64** | | + **toDate** | **int64** | | ### Return type -[**GetComments200Response**](GetComments200Response.md) +[**APIGetCommentsResponse**](APIGetCommentsResponse.md) ### Authorization @@ -3375,7 +3379,7 @@ Name | Type | Description | Notes ## GetDomainConfig -> GetDomainConfig200Response GetDomainConfig(ctx, domain).TenantId(tenantId).Execute() +> GetDomainConfigResponse GetDomainConfig(ctx, domain).TenantId(tenantId).Execute() @@ -3402,7 +3406,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetDomainConfig``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetDomainConfig`: GetDomainConfig200Response + // response from `GetDomainConfig`: GetDomainConfigResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetDomainConfig`: %v\n", resp) } ``` @@ -3427,7 +3431,7 @@ Name | Type | Description | Notes ### Return type -[**GetDomainConfig200Response**](GetDomainConfig200Response.md) +[**GetDomainConfigResponse**](GetDomainConfigResponse.md) ### Authorization @@ -3445,7 +3449,7 @@ Name | Type | Description | Notes ## GetDomainConfigs -> GetDomainConfigs200Response GetDomainConfigs(ctx).TenantId(tenantId).Execute() +> GetDomainConfigsResponse GetDomainConfigs(ctx).TenantId(tenantId).Execute() @@ -3471,7 +3475,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetDomainConfigs``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetDomainConfigs`: GetDomainConfigs200Response + // response from `GetDomainConfigs`: GetDomainConfigsResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetDomainConfigs`: %v\n", resp) } ``` @@ -3491,7 +3495,7 @@ Name | Type | Description | Notes ### Return type -[**GetDomainConfigs200Response**](GetDomainConfigs200Response.md) +[**GetDomainConfigsResponse**](GetDomainConfigsResponse.md) ### Authorization @@ -3509,7 +3513,7 @@ Name | Type | Description | Notes ## GetEmailTemplate -> GetEmailTemplate200Response GetEmailTemplate(ctx, id).TenantId(tenantId).Execute() +> GetEmailTemplateResponse GetEmailTemplate(ctx, id).TenantId(tenantId).Execute() @@ -3536,7 +3540,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetEmailTemplate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetEmailTemplate`: GetEmailTemplate200Response + // response from `GetEmailTemplate`: GetEmailTemplateResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetEmailTemplate`: %v\n", resp) } ``` @@ -3561,7 +3565,7 @@ Name | Type | Description | Notes ### Return type -[**GetEmailTemplate200Response**](GetEmailTemplate200Response.md) +[**GetEmailTemplateResponse**](GetEmailTemplateResponse.md) ### Authorization @@ -3579,7 +3583,7 @@ Name | Type | Description | Notes ## GetEmailTemplateDefinitions -> GetEmailTemplateDefinitions200Response GetEmailTemplateDefinitions(ctx).TenantId(tenantId).Execute() +> GetEmailTemplateDefinitionsResponse GetEmailTemplateDefinitions(ctx).TenantId(tenantId).Execute() @@ -3605,7 +3609,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetEmailTemplateDefinitions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetEmailTemplateDefinitions`: GetEmailTemplateDefinitions200Response + // response from `GetEmailTemplateDefinitions`: GetEmailTemplateDefinitionsResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetEmailTemplateDefinitions`: %v\n", resp) } ``` @@ -3625,7 +3629,7 @@ Name | Type | Description | Notes ### Return type -[**GetEmailTemplateDefinitions200Response**](GetEmailTemplateDefinitions200Response.md) +[**GetEmailTemplateDefinitionsResponse**](GetEmailTemplateDefinitionsResponse.md) ### Authorization @@ -3643,7 +3647,7 @@ Name | Type | Description | Notes ## GetEmailTemplateRenderErrors -> GetEmailTemplateRenderErrors200Response GetEmailTemplateRenderErrors(ctx, id).TenantId(tenantId).Skip(skip).Execute() +> GetEmailTemplateRenderErrorsResponse GetEmailTemplateRenderErrors(ctx, id).TenantId(tenantId).Skip(skip).Execute() @@ -3671,7 +3675,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetEmailTemplateRenderErrors``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetEmailTemplateRenderErrors`: GetEmailTemplateRenderErrors200Response + // response from `GetEmailTemplateRenderErrors`: GetEmailTemplateRenderErrorsResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetEmailTemplateRenderErrors`: %v\n", resp) } ``` @@ -3697,7 +3701,7 @@ Name | Type | Description | Notes ### Return type -[**GetEmailTemplateRenderErrors200Response**](GetEmailTemplateRenderErrors200Response.md) +[**GetEmailTemplateRenderErrorsResponse**](GetEmailTemplateRenderErrorsResponse.md) ### Authorization @@ -3715,7 +3719,7 @@ Name | Type | Description | Notes ## GetEmailTemplates -> GetEmailTemplates200Response GetEmailTemplates(ctx).TenantId(tenantId).Skip(skip).Execute() +> GetEmailTemplatesResponse GetEmailTemplates(ctx).TenantId(tenantId).Skip(skip).Execute() @@ -3742,7 +3746,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetEmailTemplates``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetEmailTemplates`: GetEmailTemplates200Response + // response from `GetEmailTemplates`: GetEmailTemplatesResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetEmailTemplates`: %v\n", resp) } ``` @@ -3763,7 +3767,7 @@ Name | Type | Description | Notes ### Return type -[**GetEmailTemplates200Response**](GetEmailTemplates200Response.md) +[**GetEmailTemplatesResponse**](GetEmailTemplatesResponse.md) ### Authorization @@ -3781,7 +3785,7 @@ Name | Type | Description | Notes ## GetFeedPosts -> GetFeedPosts200Response GetFeedPosts(ctx).TenantId(tenantId).AfterId(afterId).Limit(limit).Tags(tags).Execute() +> GetFeedPostsResponse GetFeedPosts(ctx).TenantId(tenantId).AfterId(afterId).Limit(limit).Tags(tags).Execute() @@ -3812,7 +3816,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetFeedPosts``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetFeedPosts`: GetFeedPosts200Response + // response from `GetFeedPosts`: GetFeedPostsResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetFeedPosts`: %v\n", resp) } ``` @@ -3835,7 +3839,7 @@ Name | Type | Description | Notes ### Return type -[**GetFeedPosts200Response**](GetFeedPosts200Response.md) +[**GetFeedPostsResponse**](GetFeedPostsResponse.md) ### Authorization @@ -3853,7 +3857,7 @@ Name | Type | Description | Notes ## GetHashTags -> GetHashTags200Response GetHashTags(ctx).TenantId(tenantId).Page(page).Execute() +> GetHashTagsResponse GetHashTags(ctx).TenantId(tenantId).Page(page).Execute() @@ -3880,7 +3884,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetHashTags``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetHashTags`: GetHashTags200Response + // response from `GetHashTags`: GetHashTagsResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetHashTags`: %v\n", resp) } ``` @@ -3901,7 +3905,7 @@ Name | Type | Description | Notes ### Return type -[**GetHashTags200Response**](GetHashTags200Response.md) +[**GetHashTagsResponse**](GetHashTagsResponse.md) ### Authorization @@ -3919,7 +3923,7 @@ Name | Type | Description | Notes ## GetModerator -> GetModerator200Response GetModerator(ctx, id).TenantId(tenantId).Execute() +> GetModeratorResponse GetModerator(ctx, id).TenantId(tenantId).Execute() @@ -3946,7 +3950,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetModerator``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetModerator`: GetModerator200Response + // response from `GetModerator`: GetModeratorResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetModerator`: %v\n", resp) } ``` @@ -3971,7 +3975,7 @@ Name | Type | Description | Notes ### Return type -[**GetModerator200Response**](GetModerator200Response.md) +[**GetModeratorResponse**](GetModeratorResponse.md) ### Authorization @@ -3989,7 +3993,7 @@ Name | Type | Description | Notes ## GetModerators -> GetModerators200Response GetModerators(ctx).TenantId(tenantId).Skip(skip).Execute() +> GetModeratorsResponse GetModerators(ctx).TenantId(tenantId).Skip(skip).Execute() @@ -4016,7 +4020,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetModerators``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetModerators`: GetModerators200Response + // response from `GetModerators`: GetModeratorsResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetModerators`: %v\n", resp) } ``` @@ -4037,7 +4041,7 @@ Name | Type | Description | Notes ### Return type -[**GetModerators200Response**](GetModerators200Response.md) +[**GetModeratorsResponse**](GetModeratorsResponse.md) ### Authorization @@ -4055,7 +4059,7 @@ Name | Type | Description | Notes ## GetNotificationCount -> GetNotificationCount200Response GetNotificationCount(ctx).TenantId(tenantId).UserId(userId).UrlId(urlId).FromCommentId(fromCommentId).Viewed(viewed).Type_(type_).Execute() +> GetNotificationCountResponse GetNotificationCount(ctx).TenantId(tenantId).UserId(userId).UrlId(urlId).FromCommentId(fromCommentId).Viewed(viewed).Type_(type_).Execute() @@ -4086,7 +4090,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetNotificationCount``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetNotificationCount`: GetNotificationCount200Response + // response from `GetNotificationCount`: GetNotificationCountResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetNotificationCount`: %v\n", resp) } ``` @@ -4111,7 +4115,7 @@ Name | Type | Description | Notes ### Return type -[**GetNotificationCount200Response**](GetNotificationCount200Response.md) +[**GetNotificationCountResponse**](GetNotificationCountResponse.md) ### Authorization @@ -4129,7 +4133,7 @@ Name | Type | Description | Notes ## GetNotifications -> GetNotifications200Response GetNotifications(ctx).TenantId(tenantId).UserId(userId).UrlId(urlId).FromCommentId(fromCommentId).Viewed(viewed).Type_(type_).Skip(skip).Execute() +> GetNotificationsResponse GetNotifications(ctx).TenantId(tenantId).UserId(userId).UrlId(urlId).FromCommentId(fromCommentId).Viewed(viewed).Type_(type_).Skip(skip).Execute() @@ -4161,7 +4165,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetNotifications``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetNotifications`: GetNotifications200Response + // response from `GetNotifications`: GetNotificationsResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetNotifications`: %v\n", resp) } ``` @@ -4187,7 +4191,7 @@ Name | Type | Description | Notes ### Return type -[**GetNotifications200Response**](GetNotifications200Response.md) +[**GetNotificationsResponse**](GetNotificationsResponse.md) ### Authorization @@ -4335,7 +4339,7 @@ Name | Type | Description | Notes ## GetPendingWebhookEventCount -> GetPendingWebhookEventCount200Response GetPendingWebhookEventCount(ctx).TenantId(tenantId).CommentId(commentId).ExternalId(externalId).EventType(eventType).Type_(type_).Domain(domain).AttemptCountGT(attemptCountGT).Execute() +> GetPendingWebhookEventCountResponse GetPendingWebhookEventCount(ctx).TenantId(tenantId).CommentId(commentId).ExternalId(externalId).EventType(eventType).Type_(type_).Domain(domain).AttemptCountGT(attemptCountGT).Execute() @@ -4367,7 +4371,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetPendingWebhookEventCount``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetPendingWebhookEventCount`: GetPendingWebhookEventCount200Response + // response from `GetPendingWebhookEventCount`: GetPendingWebhookEventCountResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetPendingWebhookEventCount`: %v\n", resp) } ``` @@ -4393,7 +4397,7 @@ Name | Type | Description | Notes ### Return type -[**GetPendingWebhookEventCount200Response**](GetPendingWebhookEventCount200Response.md) +[**GetPendingWebhookEventCountResponse**](GetPendingWebhookEventCountResponse.md) ### Authorization @@ -4411,7 +4415,7 @@ Name | Type | Description | Notes ## GetPendingWebhookEvents -> GetPendingWebhookEvents200Response GetPendingWebhookEvents(ctx).TenantId(tenantId).CommentId(commentId).ExternalId(externalId).EventType(eventType).Type_(type_).Domain(domain).AttemptCountGT(attemptCountGT).Skip(skip).Execute() +> GetPendingWebhookEventsResponse GetPendingWebhookEvents(ctx).TenantId(tenantId).CommentId(commentId).ExternalId(externalId).EventType(eventType).Type_(type_).Domain(domain).AttemptCountGT(attemptCountGT).Skip(skip).Execute() @@ -4444,7 +4448,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetPendingWebhookEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetPendingWebhookEvents`: GetPendingWebhookEvents200Response + // response from `GetPendingWebhookEvents`: GetPendingWebhookEventsResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetPendingWebhookEvents`: %v\n", resp) } ``` @@ -4471,7 +4475,7 @@ Name | Type | Description | Notes ### Return type -[**GetPendingWebhookEvents200Response**](GetPendingWebhookEvents200Response.md) +[**GetPendingWebhookEventsResponse**](GetPendingWebhookEventsResponse.md) ### Authorization @@ -4489,7 +4493,7 @@ Name | Type | Description | Notes ## GetQuestionConfig -> GetQuestionConfig200Response GetQuestionConfig(ctx, id).TenantId(tenantId).Execute() +> GetQuestionConfigResponse GetQuestionConfig(ctx, id).TenantId(tenantId).Execute() @@ -4516,7 +4520,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetQuestionConfig``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetQuestionConfig`: GetQuestionConfig200Response + // response from `GetQuestionConfig`: GetQuestionConfigResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetQuestionConfig`: %v\n", resp) } ``` @@ -4541,7 +4545,7 @@ Name | Type | Description | Notes ### Return type -[**GetQuestionConfig200Response**](GetQuestionConfig200Response.md) +[**GetQuestionConfigResponse**](GetQuestionConfigResponse.md) ### Authorization @@ -4559,7 +4563,7 @@ Name | Type | Description | Notes ## GetQuestionConfigs -> GetQuestionConfigs200Response GetQuestionConfigs(ctx).TenantId(tenantId).Skip(skip).Execute() +> GetQuestionConfigsResponse GetQuestionConfigs(ctx).TenantId(tenantId).Skip(skip).Execute() @@ -4586,7 +4590,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetQuestionConfigs``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetQuestionConfigs`: GetQuestionConfigs200Response + // response from `GetQuestionConfigs`: GetQuestionConfigsResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetQuestionConfigs`: %v\n", resp) } ``` @@ -4607,7 +4611,7 @@ Name | Type | Description | Notes ### Return type -[**GetQuestionConfigs200Response**](GetQuestionConfigs200Response.md) +[**GetQuestionConfigsResponse**](GetQuestionConfigsResponse.md) ### Authorization @@ -4625,7 +4629,7 @@ Name | Type | Description | Notes ## GetQuestionResult -> GetQuestionResult200Response GetQuestionResult(ctx, id).TenantId(tenantId).Execute() +> GetQuestionResultResponse GetQuestionResult(ctx, id).TenantId(tenantId).Execute() @@ -4652,7 +4656,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetQuestionResult``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetQuestionResult`: GetQuestionResult200Response + // response from `GetQuestionResult`: GetQuestionResultResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetQuestionResult`: %v\n", resp) } ``` @@ -4677,7 +4681,7 @@ Name | Type | Description | Notes ### Return type -[**GetQuestionResult200Response**](GetQuestionResult200Response.md) +[**GetQuestionResultResponse**](GetQuestionResultResponse.md) ### Authorization @@ -4695,7 +4699,7 @@ Name | Type | Description | Notes ## GetQuestionResults -> GetQuestionResults200Response GetQuestionResults(ctx).TenantId(tenantId).UrlId(urlId).UserId(userId).StartDate(startDate).QuestionId(questionId).QuestionIds(questionIds).Skip(skip).Execute() +> GetQuestionResultsResponse GetQuestionResults(ctx).TenantId(tenantId).UrlId(urlId).UserId(userId).StartDate(startDate).QuestionId(questionId).QuestionIds(questionIds).Skip(skip).Execute() @@ -4727,7 +4731,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetQuestionResults``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetQuestionResults`: GetQuestionResults200Response + // response from `GetQuestionResults`: GetQuestionResultsResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetQuestionResults`: %v\n", resp) } ``` @@ -4753,7 +4757,7 @@ Name | Type | Description | Notes ### Return type -[**GetQuestionResults200Response**](GetQuestionResults200Response.md) +[**GetQuestionResultsResponse**](GetQuestionResultsResponse.md) ### Authorization @@ -4911,7 +4915,7 @@ Name | Type | Description | Notes ## GetSSOUsers -> GetSSOUsers200Response GetSSOUsers(ctx).TenantId(tenantId).Skip(skip).Execute() +> GetSSOUsersResponse GetSSOUsers(ctx).TenantId(tenantId).Skip(skip).Execute() @@ -4938,7 +4942,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetSSOUsers``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetSSOUsers`: GetSSOUsers200Response + // response from `GetSSOUsers`: GetSSOUsersResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetSSOUsers`: %v\n", resp) } ``` @@ -4959,7 +4963,7 @@ Name | Type | Description | Notes ### Return type -[**GetSSOUsers200Response**](GetSSOUsers200Response.md) +[**GetSSOUsersResponse**](GetSSOUsersResponse.md) ### Authorization @@ -5043,7 +5047,7 @@ Name | Type | Description | Notes ## GetTenant -> GetTenant200Response GetTenant(ctx, id).TenantId(tenantId).Execute() +> GetTenantResponse GetTenant(ctx, id).TenantId(tenantId).Execute() @@ -5070,7 +5074,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetTenant``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetTenant`: GetTenant200Response + // response from `GetTenant`: GetTenantResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetTenant`: %v\n", resp) } ``` @@ -5095,7 +5099,7 @@ Name | Type | Description | Notes ### Return type -[**GetTenant200Response**](GetTenant200Response.md) +[**GetTenantResponse**](GetTenantResponse.md) ### Authorization @@ -5113,7 +5117,7 @@ Name | Type | Description | Notes ## GetTenantDailyUsages -> GetTenantDailyUsages200Response GetTenantDailyUsages(ctx).TenantId(tenantId).YearNumber(yearNumber).MonthNumber(monthNumber).DayNumber(dayNumber).Skip(skip).Execute() +> GetTenantDailyUsagesResponse GetTenantDailyUsages(ctx).TenantId(tenantId).YearNumber(yearNumber).MonthNumber(monthNumber).DayNumber(dayNumber).Skip(skip).Execute() @@ -5143,7 +5147,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetTenantDailyUsages``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetTenantDailyUsages`: GetTenantDailyUsages200Response + // response from `GetTenantDailyUsages`: GetTenantDailyUsagesResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetTenantDailyUsages`: %v\n", resp) } ``` @@ -5167,7 +5171,7 @@ Name | Type | Description | Notes ### Return type -[**GetTenantDailyUsages200Response**](GetTenantDailyUsages200Response.md) +[**GetTenantDailyUsagesResponse**](GetTenantDailyUsagesResponse.md) ### Authorization @@ -5185,7 +5189,7 @@ Name | Type | Description | Notes ## GetTenantPackage -> GetTenantPackage200Response GetTenantPackage(ctx, id).TenantId(tenantId).Execute() +> GetTenantPackageResponse GetTenantPackage(ctx, id).TenantId(tenantId).Execute() @@ -5212,7 +5216,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetTenantPackage``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetTenantPackage`: GetTenantPackage200Response + // response from `GetTenantPackage`: GetTenantPackageResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetTenantPackage`: %v\n", resp) } ``` @@ -5237,7 +5241,7 @@ Name | Type | Description | Notes ### Return type -[**GetTenantPackage200Response**](GetTenantPackage200Response.md) +[**GetTenantPackageResponse**](GetTenantPackageResponse.md) ### Authorization @@ -5255,7 +5259,7 @@ Name | Type | Description | Notes ## GetTenantPackages -> GetTenantPackages200Response GetTenantPackages(ctx).TenantId(tenantId).Skip(skip).Execute() +> GetTenantPackagesResponse GetTenantPackages(ctx).TenantId(tenantId).Skip(skip).Execute() @@ -5282,7 +5286,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetTenantPackages``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetTenantPackages`: GetTenantPackages200Response + // response from `GetTenantPackages`: GetTenantPackagesResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetTenantPackages`: %v\n", resp) } ``` @@ -5303,7 +5307,7 @@ Name | Type | Description | Notes ### Return type -[**GetTenantPackages200Response**](GetTenantPackages200Response.md) +[**GetTenantPackagesResponse**](GetTenantPackagesResponse.md) ### Authorization @@ -5321,7 +5325,7 @@ Name | Type | Description | Notes ## GetTenantUser -> GetTenantUser200Response GetTenantUser(ctx, id).TenantId(tenantId).Execute() +> GetTenantUserResponse GetTenantUser(ctx, id).TenantId(tenantId).Execute() @@ -5348,7 +5352,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetTenantUser``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetTenantUser`: GetTenantUser200Response + // response from `GetTenantUser`: GetTenantUserResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetTenantUser`: %v\n", resp) } ``` @@ -5373,7 +5377,7 @@ Name | Type | Description | Notes ### Return type -[**GetTenantUser200Response**](GetTenantUser200Response.md) +[**GetTenantUserResponse**](GetTenantUserResponse.md) ### Authorization @@ -5391,7 +5395,7 @@ Name | Type | Description | Notes ## GetTenantUsers -> GetTenantUsers200Response GetTenantUsers(ctx).TenantId(tenantId).Skip(skip).Execute() +> GetTenantUsersResponse GetTenantUsers(ctx).TenantId(tenantId).Skip(skip).Execute() @@ -5418,7 +5422,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetTenantUsers``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetTenantUsers`: GetTenantUsers200Response + // response from `GetTenantUsers`: GetTenantUsersResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetTenantUsers`: %v\n", resp) } ``` @@ -5439,7 +5443,7 @@ Name | Type | Description | Notes ### Return type -[**GetTenantUsers200Response**](GetTenantUsers200Response.md) +[**GetTenantUsersResponse**](GetTenantUsersResponse.md) ### Authorization @@ -5457,7 +5461,7 @@ Name | Type | Description | Notes ## GetTenants -> GetTenants200Response GetTenants(ctx).TenantId(tenantId).Meta(meta).Skip(skip).Execute() +> GetTenantsResponse GetTenants(ctx).TenantId(tenantId).Meta(meta).Skip(skip).Execute() @@ -5485,7 +5489,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetTenants``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetTenants`: GetTenants200Response + // response from `GetTenants`: GetTenantsResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetTenants`: %v\n", resp) } ``` @@ -5507,7 +5511,7 @@ Name | Type | Description | Notes ### Return type -[**GetTenants200Response**](GetTenants200Response.md) +[**GetTenantsResponse**](GetTenantsResponse.md) ### Authorization @@ -5525,7 +5529,7 @@ Name | Type | Description | Notes ## GetTicket -> GetTicket200Response GetTicket(ctx, id).TenantId(tenantId).UserId(userId).Execute() +> GetTicketResponse GetTicket(ctx, id).TenantId(tenantId).UserId(userId).Execute() @@ -5553,7 +5557,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetTicket``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetTicket`: GetTicket200Response + // response from `GetTicket`: GetTicketResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetTicket`: %v\n", resp) } ``` @@ -5579,7 +5583,7 @@ Name | Type | Description | Notes ### Return type -[**GetTicket200Response**](GetTicket200Response.md) +[**GetTicketResponse**](GetTicketResponse.md) ### Authorization @@ -5597,7 +5601,7 @@ Name | Type | Description | Notes ## GetTickets -> GetTickets200Response GetTickets(ctx).TenantId(tenantId).UserId(userId).State(state).Skip(skip).Limit(limit).Execute() +> GetTicketsResponse GetTickets(ctx).TenantId(tenantId).UserId(userId).State(state).Skip(skip).Limit(limit).Execute() @@ -5627,7 +5631,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetTickets``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetTickets`: GetTickets200Response + // response from `GetTickets`: GetTicketsResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetTickets`: %v\n", resp) } ``` @@ -5651,7 +5655,7 @@ Name | Type | Description | Notes ### Return type -[**GetTickets200Response**](GetTickets200Response.md) +[**GetTicketsResponse**](GetTicketsResponse.md) ### Authorization @@ -5669,7 +5673,7 @@ Name | Type | Description | Notes ## GetUser -> GetUser200Response GetUser(ctx, id).TenantId(tenantId).Execute() +> GetUserResponse GetUser(ctx, id).TenantId(tenantId).Execute() @@ -5696,7 +5700,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetUser``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetUser`: GetUser200Response + // response from `GetUser`: GetUserResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetUser`: %v\n", resp) } ``` @@ -5721,7 +5725,7 @@ Name | Type | Description | Notes ### Return type -[**GetUser200Response**](GetUser200Response.md) +[**GetUserResponse**](GetUserResponse.md) ### Authorization @@ -5739,7 +5743,7 @@ Name | Type | Description | Notes ## GetUserBadge -> GetUserBadge200Response GetUserBadge(ctx, id).TenantId(tenantId).Execute() +> APIGetUserBadgeResponse GetUserBadge(ctx, id).TenantId(tenantId).Execute() @@ -5766,7 +5770,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetUserBadge``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetUserBadge`: GetUserBadge200Response + // response from `GetUserBadge`: APIGetUserBadgeResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetUserBadge`: %v\n", resp) } ``` @@ -5791,7 +5795,7 @@ Name | Type | Description | Notes ### Return type -[**GetUserBadge200Response**](GetUserBadge200Response.md) +[**APIGetUserBadgeResponse**](APIGetUserBadgeResponse.md) ### Authorization @@ -5809,7 +5813,7 @@ Name | Type | Description | Notes ## GetUserBadgeProgressById -> GetUserBadgeProgressById200Response GetUserBadgeProgressById(ctx, id).TenantId(tenantId).Execute() +> APIGetUserBadgeProgressResponse GetUserBadgeProgressById(ctx, id).TenantId(tenantId).Execute() @@ -5836,7 +5840,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetUserBadgeProgressById``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetUserBadgeProgressById`: GetUserBadgeProgressById200Response + // response from `GetUserBadgeProgressById`: APIGetUserBadgeProgressResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetUserBadgeProgressById`: %v\n", resp) } ``` @@ -5861,7 +5865,7 @@ Name | Type | Description | Notes ### Return type -[**GetUserBadgeProgressById200Response**](GetUserBadgeProgressById200Response.md) +[**APIGetUserBadgeProgressResponse**](APIGetUserBadgeProgressResponse.md) ### Authorization @@ -5879,7 +5883,7 @@ Name | Type | Description | Notes ## GetUserBadgeProgressByUserId -> GetUserBadgeProgressById200Response GetUserBadgeProgressByUserId(ctx, userId).TenantId(tenantId).Execute() +> APIGetUserBadgeProgressResponse GetUserBadgeProgressByUserId(ctx, userId).TenantId(tenantId).Execute() @@ -5906,7 +5910,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetUserBadgeProgressByUserId``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetUserBadgeProgressByUserId`: GetUserBadgeProgressById200Response + // response from `GetUserBadgeProgressByUserId`: APIGetUserBadgeProgressResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetUserBadgeProgressByUserId`: %v\n", resp) } ``` @@ -5931,7 +5935,7 @@ Name | Type | Description | Notes ### Return type -[**GetUserBadgeProgressById200Response**](GetUserBadgeProgressById200Response.md) +[**APIGetUserBadgeProgressResponse**](APIGetUserBadgeProgressResponse.md) ### Authorization @@ -5949,7 +5953,7 @@ Name | Type | Description | Notes ## GetUserBadgeProgressList -> GetUserBadgeProgressList200Response GetUserBadgeProgressList(ctx).TenantId(tenantId).UserId(userId).Limit(limit).Skip(skip).Execute() +> APIGetUserBadgeProgressListResponse GetUserBadgeProgressList(ctx).TenantId(tenantId).UserId(userId).Limit(limit).Skip(skip).Execute() @@ -5978,7 +5982,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetUserBadgeProgressList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetUserBadgeProgressList`: GetUserBadgeProgressList200Response + // response from `GetUserBadgeProgressList`: APIGetUserBadgeProgressListResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetUserBadgeProgressList`: %v\n", resp) } ``` @@ -6001,7 +6005,7 @@ Name | Type | Description | Notes ### Return type -[**GetUserBadgeProgressList200Response**](GetUserBadgeProgressList200Response.md) +[**APIGetUserBadgeProgressListResponse**](APIGetUserBadgeProgressListResponse.md) ### Authorization @@ -6019,7 +6023,7 @@ Name | Type | Description | Notes ## GetUserBadges -> GetUserBadges200Response GetUserBadges(ctx).TenantId(tenantId).UserId(userId).BadgeId(badgeId).Type_(type_).DisplayedOnComments(displayedOnComments).Limit(limit).Skip(skip).Execute() +> APIGetUserBadgesResponse GetUserBadges(ctx).TenantId(tenantId).UserId(userId).BadgeId(badgeId).Type_(type_).DisplayedOnComments(displayedOnComments).Limit(limit).Skip(skip).Execute() @@ -6051,7 +6055,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetUserBadges``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetUserBadges`: GetUserBadges200Response + // response from `GetUserBadges`: APIGetUserBadgesResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetUserBadges`: %v\n", resp) } ``` @@ -6077,7 +6081,7 @@ Name | Type | Description | Notes ### Return type -[**GetUserBadges200Response**](GetUserBadges200Response.md) +[**APIGetUserBadgesResponse**](APIGetUserBadgesResponse.md) ### Authorization @@ -6095,7 +6099,7 @@ Name | Type | Description | Notes ## GetVotes -> GetVotes200Response GetVotes(ctx).TenantId(tenantId).UrlId(urlId).Execute() +> GetVotesResponse GetVotes(ctx).TenantId(tenantId).UrlId(urlId).Execute() @@ -6122,7 +6126,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetVotes``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetVotes`: GetVotes200Response + // response from `GetVotes`: GetVotesResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetVotes`: %v\n", resp) } ``` @@ -6143,7 +6147,7 @@ Name | Type | Description | Notes ### Return type -[**GetVotes200Response**](GetVotes200Response.md) +[**GetVotesResponse**](GetVotesResponse.md) ### Authorization @@ -6161,7 +6165,7 @@ Name | Type | Description | Notes ## GetVotesForUser -> GetVotesForUser200Response GetVotesForUser(ctx).TenantId(tenantId).UrlId(urlId).UserId(userId).AnonUserId(anonUserId).Execute() +> GetVotesForUserResponse GetVotesForUser(ctx).TenantId(tenantId).UrlId(urlId).UserId(userId).AnonUserId(anonUserId).Execute() @@ -6190,7 +6194,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetVotesForUser``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetVotesForUser`: GetVotesForUser200Response + // response from `GetVotesForUser`: GetVotesForUserResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetVotesForUser`: %v\n", resp) } ``` @@ -6213,7 +6217,7 @@ Name | Type | Description | Notes ### Return type -[**GetVotesForUser200Response**](GetVotesForUser200Response.md) +[**GetVotesForUserResponse**](GetVotesForUserResponse.md) ### Authorization @@ -6231,7 +6235,7 @@ Name | Type | Description | Notes ## PatchDomainConfig -> GetDomainConfig200Response PatchDomainConfig(ctx, domainToUpdate).TenantId(tenantId).PatchDomainConfigParams(patchDomainConfigParams).Execute() +> PatchDomainConfigResponse PatchDomainConfig(ctx, domainToUpdate).TenantId(tenantId).PatchDomainConfigParams(patchDomainConfigParams).Execute() @@ -6259,7 +6263,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.PatchDomainConfig``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `PatchDomainConfig`: GetDomainConfig200Response + // response from `PatchDomainConfig`: PatchDomainConfigResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.PatchDomainConfig`: %v\n", resp) } ``` @@ -6285,7 +6289,7 @@ Name | Type | Description | Notes ### Return type -[**GetDomainConfig200Response**](GetDomainConfig200Response.md) +[**PatchDomainConfigResponse**](PatchDomainConfigResponse.md) ### Authorization @@ -6303,7 +6307,7 @@ Name | Type | Description | Notes ## PatchHashTag -> PatchHashTag200Response PatchHashTag(ctx, tag).TenantId(tenantId).UpdateHashTagBody(updateHashTagBody).Execute() +> UpdateHashTagResponse PatchHashTag(ctx, tag).TenantId(tenantId).UpdateHashTagBody(updateHashTagBody).Execute() @@ -6331,7 +6335,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.PatchHashTag``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `PatchHashTag`: PatchHashTag200Response + // response from `PatchHashTag`: UpdateHashTagResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.PatchHashTag`: %v\n", resp) } ``` @@ -6357,7 +6361,7 @@ Name | Type | Description | Notes ### Return type -[**PatchHashTag200Response**](PatchHashTag200Response.md) +[**UpdateHashTagResponse**](UpdateHashTagResponse.md) ### Authorization @@ -6521,7 +6525,7 @@ Name | Type | Description | Notes ## PutDomainConfig -> GetDomainConfig200Response PutDomainConfig(ctx, domainToUpdate).TenantId(tenantId).UpdateDomainConfigParams(updateDomainConfigParams).Execute() +> PutDomainConfigResponse PutDomainConfig(ctx, domainToUpdate).TenantId(tenantId).UpdateDomainConfigParams(updateDomainConfigParams).Execute() @@ -6549,7 +6553,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.PutDomainConfig``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `PutDomainConfig`: GetDomainConfig200Response + // response from `PutDomainConfig`: PutDomainConfigResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.PutDomainConfig`: %v\n", resp) } ``` @@ -6575,7 +6579,7 @@ Name | Type | Description | Notes ### Return type -[**GetDomainConfig200Response**](GetDomainConfig200Response.md) +[**PutDomainConfigResponse**](PutDomainConfigResponse.md) ### Authorization @@ -6667,7 +6671,7 @@ Name | Type | Description | Notes ## RenderEmailTemplate -> RenderEmailTemplate200Response RenderEmailTemplate(ctx).TenantId(tenantId).RenderEmailTemplateBody(renderEmailTemplateBody).Locale(locale).Execute() +> RenderEmailTemplateResponse RenderEmailTemplate(ctx).TenantId(tenantId).RenderEmailTemplateBody(renderEmailTemplateBody).Locale(locale).Execute() @@ -6695,7 +6699,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.RenderEmailTemplate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `RenderEmailTemplate`: RenderEmailTemplate200Response + // response from `RenderEmailTemplate`: RenderEmailTemplateResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.RenderEmailTemplate`: %v\n", resp) } ``` @@ -6717,7 +6721,7 @@ Name | Type | Description | Notes ### Return type -[**RenderEmailTemplate200Response**](RenderEmailTemplate200Response.md) +[**RenderEmailTemplateResponse**](RenderEmailTemplateResponse.md) ### Authorization @@ -6735,7 +6739,7 @@ Name | Type | Description | Notes ## ReplaceTenantPackage -> FlagCommentPublic200Response ReplaceTenantPackage(ctx, id).TenantId(tenantId).ReplaceTenantPackageBody(replaceTenantPackageBody).Execute() +> APIEmptyResponse ReplaceTenantPackage(ctx, id).TenantId(tenantId).ReplaceTenantPackageBody(replaceTenantPackageBody).Execute() @@ -6763,7 +6767,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.ReplaceTenantPackage``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReplaceTenantPackage`: FlagCommentPublic200Response + // response from `ReplaceTenantPackage`: APIEmptyResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.ReplaceTenantPackage`: %v\n", resp) } ``` @@ -6789,7 +6793,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -6807,7 +6811,7 @@ Name | Type | Description | Notes ## ReplaceTenantUser -> FlagCommentPublic200Response ReplaceTenantUser(ctx, id).TenantId(tenantId).ReplaceTenantUserBody(replaceTenantUserBody).UpdateComments(updateComments).Execute() +> APIEmptyResponse ReplaceTenantUser(ctx, id).TenantId(tenantId).ReplaceTenantUserBody(replaceTenantUserBody).UpdateComments(updateComments).Execute() @@ -6836,7 +6840,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.ReplaceTenantUser``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReplaceTenantUser`: FlagCommentPublic200Response + // response from `ReplaceTenantUser`: APIEmptyResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.ReplaceTenantUser`: %v\n", resp) } ``` @@ -6863,7 +6867,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -6881,7 +6885,7 @@ Name | Type | Description | Notes ## SaveComment -> SaveComment200Response SaveComment(ctx).TenantId(tenantId).CreateCommentParams(createCommentParams).IsLive(isLive).DoSpamCheck(doSpamCheck).SendEmails(sendEmails).PopulateNotifications(populateNotifications).Execute() +> APISaveCommentResponse SaveComment(ctx).TenantId(tenantId).CreateCommentParams(createCommentParams).IsLive(isLive).DoSpamCheck(doSpamCheck).SendEmails(sendEmails).PopulateNotifications(populateNotifications).Execute() @@ -6912,7 +6916,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.SaveComment``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `SaveComment`: SaveComment200Response + // response from `SaveComment`: APISaveCommentResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.SaveComment`: %v\n", resp) } ``` @@ -6937,7 +6941,7 @@ Name | Type | Description | Notes ### Return type -[**SaveComment200Response**](SaveComment200Response.md) +[**APISaveCommentResponse**](APISaveCommentResponse.md) ### Authorization @@ -6955,7 +6959,7 @@ Name | Type | Description | Notes ## SaveCommentsBulk -> []SaveComment200Response SaveCommentsBulk(ctx).TenantId(tenantId).CreateCommentParams(createCommentParams).IsLive(isLive).DoSpamCheck(doSpamCheck).SendEmails(sendEmails).PopulateNotifications(populateNotifications).Execute() +> []SaveCommentsBulkResponse SaveCommentsBulk(ctx).TenantId(tenantId).CreateCommentParams(createCommentParams).IsLive(isLive).DoSpamCheck(doSpamCheck).SendEmails(sendEmails).PopulateNotifications(populateNotifications).Execute() @@ -6986,7 +6990,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.SaveCommentsBulk``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `SaveCommentsBulk`: []SaveComment200Response + // response from `SaveCommentsBulk`: []SaveCommentsBulkResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.SaveCommentsBulk`: %v\n", resp) } ``` @@ -7011,7 +7015,7 @@ Name | Type | Description | Notes ### Return type -[**[]SaveComment200Response**](SaveComment200Response.md) +[**[]SaveCommentsBulkResponse**](SaveCommentsBulkResponse.md) ### Authorization @@ -7029,7 +7033,7 @@ Name | Type | Description | Notes ## SendInvite -> FlagCommentPublic200Response SendInvite(ctx, id).TenantId(tenantId).FromName(fromName).Execute() +> APIEmptyResponse SendInvite(ctx, id).TenantId(tenantId).FromName(fromName).Execute() @@ -7057,7 +7061,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.SendInvite``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `SendInvite`: FlagCommentPublic200Response + // response from `SendInvite`: APIEmptyResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.SendInvite`: %v\n", resp) } ``` @@ -7083,7 +7087,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -7101,7 +7105,7 @@ Name | Type | Description | Notes ## SendLoginLink -> FlagCommentPublic200Response SendLoginLink(ctx, id).TenantId(tenantId).RedirectURL(redirectURL).Execute() +> APIEmptyResponse SendLoginLink(ctx, id).TenantId(tenantId).RedirectURL(redirectURL).Execute() @@ -7129,7 +7133,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.SendLoginLink``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `SendLoginLink`: FlagCommentPublic200Response + // response from `SendLoginLink`: APIEmptyResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.SendLoginLink`: %v\n", resp) } ``` @@ -7155,7 +7159,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -7173,7 +7177,7 @@ Name | Type | Description | Notes ## UnBlockUserFromComment -> UnBlockCommentPublic200Response UnBlockUserFromComment(ctx, id).TenantId(tenantId).UnBlockFromCommentParams(unBlockFromCommentParams).UserId(userId).AnonUserId(anonUserId).Execute() +> UnblockSuccess UnBlockUserFromComment(ctx, id).TenantId(tenantId).UnBlockFromCommentParams(unBlockFromCommentParams).UserId(userId).AnonUserId(anonUserId).Execute() @@ -7203,7 +7207,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.UnBlockUserFromComment``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `UnBlockUserFromComment`: UnBlockCommentPublic200Response + // response from `UnBlockUserFromComment`: UnblockSuccess fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UnBlockUserFromComment`: %v\n", resp) } ``` @@ -7231,7 +7235,7 @@ Name | Type | Description | Notes ### Return type -[**UnBlockCommentPublic200Response**](UnBlockCommentPublic200Response.md) +[**UnblockSuccess**](UnblockSuccess.md) ### Authorization @@ -7249,7 +7253,7 @@ Name | Type | Description | Notes ## UnFlagComment -> FlagComment200Response UnFlagComment(ctx, id).TenantId(tenantId).UserId(userId).AnonUserId(anonUserId).Execute() +> FlagCommentResponse UnFlagComment(ctx, id).TenantId(tenantId).UserId(userId).AnonUserId(anonUserId).Execute() @@ -7278,7 +7282,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.UnFlagComment``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `UnFlagComment`: FlagComment200Response + // response from `UnFlagComment`: FlagCommentResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UnFlagComment`: %v\n", resp) } ``` @@ -7305,7 +7309,7 @@ Name | Type | Description | Notes ### Return type -[**FlagComment200Response**](FlagComment200Response.md) +[**FlagCommentResponse**](FlagCommentResponse.md) ### Authorization @@ -7323,7 +7327,7 @@ Name | Type | Description | Notes ## UpdateComment -> FlagCommentPublic200Response UpdateComment(ctx, id).TenantId(tenantId).UpdatableCommentParams(updatableCommentParams).ContextUserId(contextUserId).DoSpamCheck(doSpamCheck).IsLive(isLive).Execute() +> APIEmptyResponse UpdateComment(ctx, id).TenantId(tenantId).UpdatableCommentParams(updatableCommentParams).ContextUserId(contextUserId).DoSpamCheck(doSpamCheck).IsLive(isLive).Execute() @@ -7354,7 +7358,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.UpdateComment``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `UpdateComment`: FlagCommentPublic200Response + // response from `UpdateComment`: APIEmptyResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UpdateComment`: %v\n", resp) } ``` @@ -7383,7 +7387,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -7401,7 +7405,7 @@ Name | Type | Description | Notes ## UpdateEmailTemplate -> FlagCommentPublic200Response UpdateEmailTemplate(ctx, id).TenantId(tenantId).UpdateEmailTemplateBody(updateEmailTemplateBody).Execute() +> APIEmptyResponse UpdateEmailTemplate(ctx, id).TenantId(tenantId).UpdateEmailTemplateBody(updateEmailTemplateBody).Execute() @@ -7429,7 +7433,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.UpdateEmailTemplate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `UpdateEmailTemplate`: FlagCommentPublic200Response + // response from `UpdateEmailTemplate`: APIEmptyResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UpdateEmailTemplate`: %v\n", resp) } ``` @@ -7455,7 +7459,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -7473,7 +7477,7 @@ Name | Type | Description | Notes ## UpdateFeedPost -> FlagCommentPublic200Response UpdateFeedPost(ctx, id).TenantId(tenantId).FeedPost(feedPost).Execute() +> APIEmptyResponse UpdateFeedPost(ctx, id).TenantId(tenantId).FeedPost(feedPost).Execute() @@ -7502,7 +7506,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.UpdateFeedPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `UpdateFeedPost`: FlagCommentPublic200Response + // response from `UpdateFeedPost`: APIEmptyResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UpdateFeedPost`: %v\n", resp) } ``` @@ -7528,7 +7532,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -7546,7 +7550,7 @@ Name | Type | Description | Notes ## UpdateModerator -> FlagCommentPublic200Response UpdateModerator(ctx, id).TenantId(tenantId).UpdateModeratorBody(updateModeratorBody).Execute() +> APIEmptyResponse UpdateModerator(ctx, id).TenantId(tenantId).UpdateModeratorBody(updateModeratorBody).Execute() @@ -7574,7 +7578,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.UpdateModerator``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `UpdateModerator`: FlagCommentPublic200Response + // response from `UpdateModerator`: APIEmptyResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UpdateModerator`: %v\n", resp) } ``` @@ -7600,7 +7604,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -7618,7 +7622,7 @@ Name | Type | Description | Notes ## UpdateNotification -> FlagCommentPublic200Response UpdateNotification(ctx, id).TenantId(tenantId).UpdateNotificationBody(updateNotificationBody).UserId(userId).Execute() +> APIEmptyResponse UpdateNotification(ctx, id).TenantId(tenantId).UpdateNotificationBody(updateNotificationBody).UserId(userId).Execute() @@ -7647,7 +7651,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.UpdateNotification``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `UpdateNotification`: FlagCommentPublic200Response + // response from `UpdateNotification`: APIEmptyResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UpdateNotification`: %v\n", resp) } ``` @@ -7674,7 +7678,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -7692,7 +7696,7 @@ Name | Type | Description | Notes ## UpdateQuestionConfig -> FlagCommentPublic200Response UpdateQuestionConfig(ctx, id).TenantId(tenantId).UpdateQuestionConfigBody(updateQuestionConfigBody).Execute() +> APIEmptyResponse UpdateQuestionConfig(ctx, id).TenantId(tenantId).UpdateQuestionConfigBody(updateQuestionConfigBody).Execute() @@ -7720,7 +7724,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.UpdateQuestionConfig``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `UpdateQuestionConfig`: FlagCommentPublic200Response + // response from `UpdateQuestionConfig`: APIEmptyResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UpdateQuestionConfig`: %v\n", resp) } ``` @@ -7746,7 +7750,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -7764,7 +7768,7 @@ Name | Type | Description | Notes ## UpdateQuestionResult -> FlagCommentPublic200Response UpdateQuestionResult(ctx, id).TenantId(tenantId).UpdateQuestionResultBody(updateQuestionResultBody).Execute() +> APIEmptyResponse UpdateQuestionResult(ctx, id).TenantId(tenantId).UpdateQuestionResultBody(updateQuestionResultBody).Execute() @@ -7792,7 +7796,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.UpdateQuestionResult``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `UpdateQuestionResult`: FlagCommentPublic200Response + // response from `UpdateQuestionResult`: APIEmptyResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UpdateQuestionResult`: %v\n", resp) } ``` @@ -7818,7 +7822,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -7910,7 +7914,7 @@ Name | Type | Description | Notes ## UpdateTenant -> FlagCommentPublic200Response UpdateTenant(ctx, id).TenantId(tenantId).UpdateTenantBody(updateTenantBody).Execute() +> APIEmptyResponse UpdateTenant(ctx, id).TenantId(tenantId).UpdateTenantBody(updateTenantBody).Execute() @@ -7938,7 +7942,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.UpdateTenant``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `UpdateTenant`: FlagCommentPublic200Response + // response from `UpdateTenant`: APIEmptyResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UpdateTenant`: %v\n", resp) } ``` @@ -7964,7 +7968,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -7982,7 +7986,7 @@ Name | Type | Description | Notes ## UpdateTenantPackage -> FlagCommentPublic200Response UpdateTenantPackage(ctx, id).TenantId(tenantId).UpdateTenantPackageBody(updateTenantPackageBody).Execute() +> APIEmptyResponse UpdateTenantPackage(ctx, id).TenantId(tenantId).UpdateTenantPackageBody(updateTenantPackageBody).Execute() @@ -8010,7 +8014,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.UpdateTenantPackage``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `UpdateTenantPackage`: FlagCommentPublic200Response + // response from `UpdateTenantPackage`: APIEmptyResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UpdateTenantPackage`: %v\n", resp) } ``` @@ -8036,7 +8040,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -8054,7 +8058,7 @@ Name | Type | Description | Notes ## UpdateTenantUser -> FlagCommentPublic200Response UpdateTenantUser(ctx, id).TenantId(tenantId).UpdateTenantUserBody(updateTenantUserBody).UpdateComments(updateComments).Execute() +> APIEmptyResponse UpdateTenantUser(ctx, id).TenantId(tenantId).UpdateTenantUserBody(updateTenantUserBody).UpdateComments(updateComments).Execute() @@ -8083,7 +8087,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.UpdateTenantUser``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `UpdateTenantUser`: FlagCommentPublic200Response + // response from `UpdateTenantUser`: APIEmptyResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UpdateTenantUser`: %v\n", resp) } ``` @@ -8110,7 +8114,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -8128,7 +8132,7 @@ Name | Type | Description | Notes ## UpdateUserBadge -> UpdateUserBadge200Response UpdateUserBadge(ctx, id).TenantId(tenantId).UpdateUserBadgeParams(updateUserBadgeParams).Execute() +> APIEmptySuccessResponse UpdateUserBadge(ctx, id).TenantId(tenantId).UpdateUserBadgeParams(updateUserBadgeParams).Execute() @@ -8156,7 +8160,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.UpdateUserBadge``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `UpdateUserBadge`: UpdateUserBadge200Response + // response from `UpdateUserBadge`: APIEmptySuccessResponse fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UpdateUserBadge`: %v\n", resp) } ``` @@ -8182,7 +8186,7 @@ Name | Type | Description | Notes ### Return type -[**UpdateUserBadge200Response**](UpdateUserBadge200Response.md) +[**APIEmptySuccessResponse**](APIEmptySuccessResponse.md) ### Authorization diff --git a/client/docs/DeleteComment200Response.md b/client/docs/DeleteComment200Response.md deleted file mode 100644 index 2e3834a..0000000 --- a/client/docs/DeleteComment200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# DeleteComment200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Action** | [**DeleteCommentAction**](DeleteCommentAction.md) | | -**Status** | [**APIStatus**](APIStatus.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewDeleteComment200Response - -`func NewDeleteComment200Response(action DeleteCommentAction, status APIStatus, reason string, code string, ) *DeleteComment200Response` - -NewDeleteComment200Response instantiates a new DeleteComment200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDeleteComment200ResponseWithDefaults - -`func NewDeleteComment200ResponseWithDefaults() *DeleteComment200Response` - -NewDeleteComment200ResponseWithDefaults instantiates a new DeleteComment200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAction - -`func (o *DeleteComment200Response) GetAction() DeleteCommentAction` - -GetAction returns the Action field if non-nil, zero value otherwise. - -### GetActionOk - -`func (o *DeleteComment200Response) GetActionOk() (*DeleteCommentAction, bool)` - -GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAction - -`func (o *DeleteComment200Response) SetAction(v DeleteCommentAction)` - -SetAction sets Action field to given value. - - -### GetStatus - -`func (o *DeleteComment200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *DeleteComment200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *DeleteComment200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetReason - -`func (o *DeleteComment200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *DeleteComment200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *DeleteComment200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *DeleteComment200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *DeleteComment200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *DeleteComment200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *DeleteComment200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *DeleteComment200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *DeleteComment200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *DeleteComment200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *DeleteComment200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *DeleteComment200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *DeleteComment200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *DeleteComment200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *DeleteComment200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *DeleteComment200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *DeleteComment200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *DeleteComment200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *DeleteComment200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *DeleteComment200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *DeleteComment200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *DeleteComment200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *DeleteComment200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *DeleteComment200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *DeleteComment200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *DeleteComment200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/DeleteCommentPublic200Response.md b/client/docs/DeleteCommentPublic200Response.md deleted file mode 100644 index 98e92fa..0000000 --- a/client/docs/DeleteCommentPublic200Response.md +++ /dev/null @@ -1,270 +0,0 @@ -# DeleteCommentPublic200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Comment** | Pointer to [**DeletedCommentResultComment**](DeletedCommentResultComment.md) | | [optional] -**HardRemoved** | **bool** | | -**Status** | [**APIStatus**](APIStatus.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewDeleteCommentPublic200Response - -`func NewDeleteCommentPublic200Response(hardRemoved bool, status APIStatus, reason string, code string, ) *DeleteCommentPublic200Response` - -NewDeleteCommentPublic200Response instantiates a new DeleteCommentPublic200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDeleteCommentPublic200ResponseWithDefaults - -`func NewDeleteCommentPublic200ResponseWithDefaults() *DeleteCommentPublic200Response` - -NewDeleteCommentPublic200ResponseWithDefaults instantiates a new DeleteCommentPublic200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetComment - -`func (o *DeleteCommentPublic200Response) GetComment() DeletedCommentResultComment` - -GetComment returns the Comment field if non-nil, zero value otherwise. - -### GetCommentOk - -`func (o *DeleteCommentPublic200Response) GetCommentOk() (*DeletedCommentResultComment, bool)` - -GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComment - -`func (o *DeleteCommentPublic200Response) SetComment(v DeletedCommentResultComment)` - -SetComment sets Comment field to given value. - -### HasComment - -`func (o *DeleteCommentPublic200Response) HasComment() bool` - -HasComment returns a boolean if a field has been set. - -### GetHardRemoved - -`func (o *DeleteCommentPublic200Response) GetHardRemoved() bool` - -GetHardRemoved returns the HardRemoved field if non-nil, zero value otherwise. - -### GetHardRemovedOk - -`func (o *DeleteCommentPublic200Response) GetHardRemovedOk() (*bool, bool)` - -GetHardRemovedOk returns a tuple with the HardRemoved field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHardRemoved - -`func (o *DeleteCommentPublic200Response) SetHardRemoved(v bool)` - -SetHardRemoved sets HardRemoved field to given value. - - -### GetStatus - -`func (o *DeleteCommentPublic200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *DeleteCommentPublic200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *DeleteCommentPublic200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetReason - -`func (o *DeleteCommentPublic200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *DeleteCommentPublic200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *DeleteCommentPublic200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *DeleteCommentPublic200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *DeleteCommentPublic200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *DeleteCommentPublic200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *DeleteCommentPublic200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *DeleteCommentPublic200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *DeleteCommentPublic200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *DeleteCommentPublic200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *DeleteCommentPublic200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *DeleteCommentPublic200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *DeleteCommentPublic200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *DeleteCommentPublic200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *DeleteCommentPublic200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *DeleteCommentPublic200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *DeleteCommentPublic200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *DeleteCommentPublic200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *DeleteCommentPublic200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *DeleteCommentPublic200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *DeleteCommentPublic200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *DeleteCommentPublic200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *DeleteCommentPublic200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *DeleteCommentPublic200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *DeleteCommentPublic200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *DeleteCommentPublic200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/DeleteCommentVote200Response.md b/client/docs/DeleteCommentVote200Response.md deleted file mode 100644 index ce8ec12..0000000 --- a/client/docs/DeleteCommentVote200Response.md +++ /dev/null @@ -1,249 +0,0 @@ -# DeleteCommentVote200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**WasPendingVote** | Pointer to **bool** | | [optional] -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewDeleteCommentVote200Response - -`func NewDeleteCommentVote200Response(status APIStatus, reason string, code string, ) *DeleteCommentVote200Response` - -NewDeleteCommentVote200Response instantiates a new DeleteCommentVote200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDeleteCommentVote200ResponseWithDefaults - -`func NewDeleteCommentVote200ResponseWithDefaults() *DeleteCommentVote200Response` - -NewDeleteCommentVote200ResponseWithDefaults instantiates a new DeleteCommentVote200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *DeleteCommentVote200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *DeleteCommentVote200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *DeleteCommentVote200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetWasPendingVote - -`func (o *DeleteCommentVote200Response) GetWasPendingVote() bool` - -GetWasPendingVote returns the WasPendingVote field if non-nil, zero value otherwise. - -### GetWasPendingVoteOk - -`func (o *DeleteCommentVote200Response) GetWasPendingVoteOk() (*bool, bool)` - -GetWasPendingVoteOk returns a tuple with the WasPendingVote field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWasPendingVote - -`func (o *DeleteCommentVote200Response) SetWasPendingVote(v bool)` - -SetWasPendingVote sets WasPendingVote field to given value. - -### HasWasPendingVote - -`func (o *DeleteCommentVote200Response) HasWasPendingVote() bool` - -HasWasPendingVote returns a boolean if a field has been set. - -### GetReason - -`func (o *DeleteCommentVote200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *DeleteCommentVote200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *DeleteCommentVote200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *DeleteCommentVote200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *DeleteCommentVote200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *DeleteCommentVote200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *DeleteCommentVote200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *DeleteCommentVote200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *DeleteCommentVote200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *DeleteCommentVote200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *DeleteCommentVote200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *DeleteCommentVote200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *DeleteCommentVote200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *DeleteCommentVote200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *DeleteCommentVote200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *DeleteCommentVote200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *DeleteCommentVote200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *DeleteCommentVote200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *DeleteCommentVote200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *DeleteCommentVote200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *DeleteCommentVote200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *DeleteCommentVote200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *DeleteCommentVote200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *DeleteCommentVote200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *DeleteCommentVote200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *DeleteCommentVote200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/DeleteDomainConfig200Response.md b/client/docs/DeleteDomainConfigResponse.md similarity index 59% rename from client/docs/DeleteDomainConfig200Response.md rename to client/docs/DeleteDomainConfigResponse.md index 5cab032..fa5ab00 100644 --- a/client/docs/DeleteDomainConfig200Response.md +++ b/client/docs/DeleteDomainConfigResponse.md @@ -1,4 +1,4 @@ -# DeleteDomainConfig200Response +# DeleteDomainConfigResponse ## Properties @@ -8,51 +8,51 @@ Name | Type | Description | Notes ## Methods -### NewDeleteDomainConfig200Response +### NewDeleteDomainConfigResponse -`func NewDeleteDomainConfig200Response(status interface{}, ) *DeleteDomainConfig200Response` +`func NewDeleteDomainConfigResponse(status interface{}, ) *DeleteDomainConfigResponse` -NewDeleteDomainConfig200Response instantiates a new DeleteDomainConfig200Response object +NewDeleteDomainConfigResponse instantiates a new DeleteDomainConfigResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewDeleteDomainConfig200ResponseWithDefaults +### NewDeleteDomainConfigResponseWithDefaults -`func NewDeleteDomainConfig200ResponseWithDefaults() *DeleteDomainConfig200Response` +`func NewDeleteDomainConfigResponseWithDefaults() *DeleteDomainConfigResponse` -NewDeleteDomainConfig200ResponseWithDefaults instantiates a new DeleteDomainConfig200Response object +NewDeleteDomainConfigResponseWithDefaults instantiates a new DeleteDomainConfigResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *DeleteDomainConfig200Response) GetStatus() interface{}` +`func (o *DeleteDomainConfigResponse) GetStatus() interface{}` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *DeleteDomainConfig200Response) GetStatusOk() (*interface{}, bool)` +`func (o *DeleteDomainConfigResponse) GetStatusOk() (*interface{}, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *DeleteDomainConfig200Response) SetStatus(v interface{})` +`func (o *DeleteDomainConfigResponse) SetStatus(v interface{})` SetStatus sets Status field to given value. ### SetStatusNil -`func (o *DeleteDomainConfig200Response) SetStatusNil(b bool)` +`func (o *DeleteDomainConfigResponse) SetStatusNil(b bool)` SetStatusNil sets the value for Status to be an explicit nil ### UnsetStatus -`func (o *DeleteDomainConfig200Response) UnsetStatus()` +`func (o *DeleteDomainConfigResponse) UnsetStatus()` UnsetStatus ensures that no value is present for Status, not even an explicit nil diff --git a/client/docs/DeleteFeedPostPublic200Response.md b/client/docs/DeleteFeedPostPublic200Response.md deleted file mode 100644 index a49020a..0000000 --- a/client/docs/DeleteFeedPostPublic200Response.md +++ /dev/null @@ -1,223 +0,0 @@ -# DeleteFeedPostPublic200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewDeleteFeedPostPublic200Response - -`func NewDeleteFeedPostPublic200Response(status APIStatus, reason string, code string, ) *DeleteFeedPostPublic200Response` - -NewDeleteFeedPostPublic200Response instantiates a new DeleteFeedPostPublic200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDeleteFeedPostPublic200ResponseWithDefaults - -`func NewDeleteFeedPostPublic200ResponseWithDefaults() *DeleteFeedPostPublic200Response` - -NewDeleteFeedPostPublic200ResponseWithDefaults instantiates a new DeleteFeedPostPublic200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *DeleteFeedPostPublic200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *DeleteFeedPostPublic200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *DeleteFeedPostPublic200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetReason - -`func (o *DeleteFeedPostPublic200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *DeleteFeedPostPublic200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *DeleteFeedPostPublic200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *DeleteFeedPostPublic200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *DeleteFeedPostPublic200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *DeleteFeedPostPublic200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *DeleteFeedPostPublic200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *DeleteFeedPostPublic200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *DeleteFeedPostPublic200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *DeleteFeedPostPublic200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *DeleteFeedPostPublic200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *DeleteFeedPostPublic200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *DeleteFeedPostPublic200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *DeleteFeedPostPublic200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *DeleteFeedPostPublic200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *DeleteFeedPostPublic200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *DeleteFeedPostPublic200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *DeleteFeedPostPublic200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *DeleteFeedPostPublic200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *DeleteFeedPostPublic200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *DeleteFeedPostPublic200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *DeleteFeedPostPublic200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *DeleteFeedPostPublic200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *DeleteFeedPostPublic200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *DeleteFeedPostPublic200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *DeleteFeedPostPublic200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/DeleteFeedPostPublic200ResponseAnyOf.md b/client/docs/DeleteFeedPostPublicResponse.md similarity index 56% rename from client/docs/DeleteFeedPostPublic200ResponseAnyOf.md rename to client/docs/DeleteFeedPostPublicResponse.md index 2840c6b..5cb168d 100644 --- a/client/docs/DeleteFeedPostPublic200ResponseAnyOf.md +++ b/client/docs/DeleteFeedPostPublicResponse.md @@ -1,4 +1,4 @@ -# DeleteFeedPostPublic200ResponseAnyOf +# DeleteFeedPostPublicResponse ## Properties @@ -8,39 +8,39 @@ Name | Type | Description | Notes ## Methods -### NewDeleteFeedPostPublic200ResponseAnyOf +### NewDeleteFeedPostPublicResponse -`func NewDeleteFeedPostPublic200ResponseAnyOf(status APIStatus, ) *DeleteFeedPostPublic200ResponseAnyOf` +`func NewDeleteFeedPostPublicResponse(status APIStatus, ) *DeleteFeedPostPublicResponse` -NewDeleteFeedPostPublic200ResponseAnyOf instantiates a new DeleteFeedPostPublic200ResponseAnyOf object +NewDeleteFeedPostPublicResponse instantiates a new DeleteFeedPostPublicResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewDeleteFeedPostPublic200ResponseAnyOfWithDefaults +### NewDeleteFeedPostPublicResponseWithDefaults -`func NewDeleteFeedPostPublic200ResponseAnyOfWithDefaults() *DeleteFeedPostPublic200ResponseAnyOf` +`func NewDeleteFeedPostPublicResponseWithDefaults() *DeleteFeedPostPublicResponse` -NewDeleteFeedPostPublic200ResponseAnyOfWithDefaults instantiates a new DeleteFeedPostPublic200ResponseAnyOf object +NewDeleteFeedPostPublicResponseWithDefaults instantiates a new DeleteFeedPostPublicResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *DeleteFeedPostPublic200ResponseAnyOf) GetStatus() APIStatus` +`func (o *DeleteFeedPostPublicResponse) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *DeleteFeedPostPublic200ResponseAnyOf) GetStatusOk() (*APIStatus, bool)` +`func (o *DeleteFeedPostPublicResponse) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *DeleteFeedPostPublic200ResponseAnyOf) SetStatus(v APIStatus)` +`func (o *DeleteFeedPostPublicResponse) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/DeleteHashTagRequest.md b/client/docs/DeleteHashTagRequestBody.md similarity index 62% rename from client/docs/DeleteHashTagRequest.md rename to client/docs/DeleteHashTagRequestBody.md index 33176c6..05ac714 100644 --- a/client/docs/DeleteHashTagRequest.md +++ b/client/docs/DeleteHashTagRequestBody.md @@ -1,4 +1,4 @@ -# DeleteHashTagRequest +# DeleteHashTagRequestBody ## Properties @@ -8,45 +8,45 @@ Name | Type | Description | Notes ## Methods -### NewDeleteHashTagRequest +### NewDeleteHashTagRequestBody -`func NewDeleteHashTagRequest() *DeleteHashTagRequest` +`func NewDeleteHashTagRequestBody() *DeleteHashTagRequestBody` -NewDeleteHashTagRequest instantiates a new DeleteHashTagRequest object +NewDeleteHashTagRequestBody instantiates a new DeleteHashTagRequestBody object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewDeleteHashTagRequestWithDefaults +### NewDeleteHashTagRequestBodyWithDefaults -`func NewDeleteHashTagRequestWithDefaults() *DeleteHashTagRequest` +`func NewDeleteHashTagRequestBodyWithDefaults() *DeleteHashTagRequestBody` -NewDeleteHashTagRequestWithDefaults instantiates a new DeleteHashTagRequest object +NewDeleteHashTagRequestBodyWithDefaults instantiates a new DeleteHashTagRequestBody object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetTenantId -`func (o *DeleteHashTagRequest) GetTenantId() string` +`func (o *DeleteHashTagRequestBody) GetTenantId() string` GetTenantId returns the TenantId field if non-nil, zero value otherwise. ### GetTenantIdOk -`func (o *DeleteHashTagRequest) GetTenantIdOk() (*string, bool)` +`func (o *DeleteHashTagRequestBody) GetTenantIdOk() (*string, bool)` GetTenantIdOk returns a tuple with the TenantId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenantId -`func (o *DeleteHashTagRequest) SetTenantId(v string)` +`func (o *DeleteHashTagRequestBody) SetTenantId(v string)` SetTenantId sets TenantId field to given value. ### HasTenantId -`func (o *DeleteHashTagRequest) HasTenantId() bool` +`func (o *DeleteHashTagRequestBody) HasTenantId() bool` HasTenantId returns a boolean if a field has been set. diff --git a/client/docs/FComment.md b/client/docs/FComment.md index 9adc3f1..7900c5e 100644 --- a/client/docs/FComment.md +++ b/client/docs/FComment.md @@ -76,6 +76,7 @@ Name | Type | Description | Notes **RequiresVerification** | Pointer to **bool** | | [optional] **EditKey** | Pointer to **string** | | [optional] **TosAcceptedAt** | Pointer to **time.Time** | | [optional] +**BotId** | Pointer to **string** | | [optional] ## Methods @@ -2171,6 +2172,31 @@ SetTosAcceptedAt sets TosAcceptedAt field to given value. HasTosAcceptedAt returns a boolean if a field has been set. +### GetBotId + +`func (o *FComment) GetBotId() string` + +GetBotId returns the BotId field if non-nil, zero value otherwise. + +### GetBotIdOk + +`func (o *FComment) GetBotIdOk() (*string, bool)` + +GetBotIdOk returns a tuple with the BotId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBotId + +`func (o *FComment) SetBotId(v string)` + +SetBotId sets BotId field to given value. + +### HasBotId + +`func (o *FComment) HasBotId() bool` + +HasBotId returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/FlagComment200Response.md b/client/docs/FlagComment200Response.md deleted file mode 100644 index e5691cb..0000000 --- a/client/docs/FlagComment200Response.md +++ /dev/null @@ -1,275 +0,0 @@ -# FlagComment200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**StatusCode** | Pointer to **int32** | | [optional] -**Status** | [**APIStatus**](APIStatus.md) | | -**Code** | **string** | | -**Reason** | **string** | | -**WasUnapproved** | Pointer to **bool** | | [optional] -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewFlagComment200Response - -`func NewFlagComment200Response(status APIStatus, code string, reason string, ) *FlagComment200Response` - -NewFlagComment200Response instantiates a new FlagComment200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewFlagComment200ResponseWithDefaults - -`func NewFlagComment200ResponseWithDefaults() *FlagComment200Response` - -NewFlagComment200ResponseWithDefaults instantiates a new FlagComment200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatusCode - -`func (o *FlagComment200Response) GetStatusCode() int32` - -GetStatusCode returns the StatusCode field if non-nil, zero value otherwise. - -### GetStatusCodeOk - -`func (o *FlagComment200Response) GetStatusCodeOk() (*int32, bool)` - -GetStatusCodeOk returns a tuple with the StatusCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatusCode - -`func (o *FlagComment200Response) SetStatusCode(v int32)` - -SetStatusCode sets StatusCode field to given value. - -### HasStatusCode - -`func (o *FlagComment200Response) HasStatusCode() bool` - -HasStatusCode returns a boolean if a field has been set. - -### GetStatus - -`func (o *FlagComment200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *FlagComment200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *FlagComment200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetCode - -`func (o *FlagComment200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *FlagComment200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *FlagComment200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetReason - -`func (o *FlagComment200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *FlagComment200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *FlagComment200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetWasUnapproved - -`func (o *FlagComment200Response) GetWasUnapproved() bool` - -GetWasUnapproved returns the WasUnapproved field if non-nil, zero value otherwise. - -### GetWasUnapprovedOk - -`func (o *FlagComment200Response) GetWasUnapprovedOk() (*bool, bool)` - -GetWasUnapprovedOk returns a tuple with the WasUnapproved field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWasUnapproved - -`func (o *FlagComment200Response) SetWasUnapproved(v bool)` - -SetWasUnapproved sets WasUnapproved field to given value. - -### HasWasUnapproved - -`func (o *FlagComment200Response) HasWasUnapproved() bool` - -HasWasUnapproved returns a boolean if a field has been set. - -### GetSecondaryCode - -`func (o *FlagComment200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *FlagComment200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *FlagComment200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *FlagComment200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *FlagComment200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *FlagComment200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *FlagComment200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *FlagComment200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *FlagComment200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *FlagComment200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *FlagComment200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *FlagComment200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *FlagComment200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *FlagComment200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *FlagComment200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *FlagComment200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *FlagComment200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *FlagComment200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *FlagComment200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *FlagComment200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/FlagCommentPublic200Response.md b/client/docs/FlagCommentPublic200Response.md deleted file mode 100644 index e03c143..0000000 --- a/client/docs/FlagCommentPublic200Response.md +++ /dev/null @@ -1,223 +0,0 @@ -# FlagCommentPublic200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewFlagCommentPublic200Response - -`func NewFlagCommentPublic200Response(status APIStatus, reason string, code string, ) *FlagCommentPublic200Response` - -NewFlagCommentPublic200Response instantiates a new FlagCommentPublic200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewFlagCommentPublic200ResponseWithDefaults - -`func NewFlagCommentPublic200ResponseWithDefaults() *FlagCommentPublic200Response` - -NewFlagCommentPublic200ResponseWithDefaults instantiates a new FlagCommentPublic200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *FlagCommentPublic200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *FlagCommentPublic200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *FlagCommentPublic200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetReason - -`func (o *FlagCommentPublic200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *FlagCommentPublic200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *FlagCommentPublic200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *FlagCommentPublic200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *FlagCommentPublic200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *FlagCommentPublic200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *FlagCommentPublic200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *FlagCommentPublic200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *FlagCommentPublic200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *FlagCommentPublic200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *FlagCommentPublic200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *FlagCommentPublic200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *FlagCommentPublic200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *FlagCommentPublic200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *FlagCommentPublic200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *FlagCommentPublic200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *FlagCommentPublic200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *FlagCommentPublic200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *FlagCommentPublic200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *FlagCommentPublic200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *FlagCommentPublic200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *FlagCommentPublic200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *FlagCommentPublic200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *FlagCommentPublic200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *FlagCommentPublic200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *FlagCommentPublic200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetAuditLogs200Response.md b/client/docs/GetAuditLogs200Response.md deleted file mode 100644 index df67a70..0000000 --- a/client/docs/GetAuditLogs200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetAuditLogs200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**AuditLogs** | [**[]APIAuditLog**](APIAuditLog.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetAuditLogs200Response - -`func NewGetAuditLogs200Response(status APIStatus, auditLogs []APIAuditLog, reason string, code string, ) *GetAuditLogs200Response` - -NewGetAuditLogs200Response instantiates a new GetAuditLogs200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetAuditLogs200ResponseWithDefaults - -`func NewGetAuditLogs200ResponseWithDefaults() *GetAuditLogs200Response` - -NewGetAuditLogs200ResponseWithDefaults instantiates a new GetAuditLogs200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetAuditLogs200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetAuditLogs200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetAuditLogs200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetAuditLogs - -`func (o *GetAuditLogs200Response) GetAuditLogs() []APIAuditLog` - -GetAuditLogs returns the AuditLogs field if non-nil, zero value otherwise. - -### GetAuditLogsOk - -`func (o *GetAuditLogs200Response) GetAuditLogsOk() (*[]APIAuditLog, bool)` - -GetAuditLogsOk returns a tuple with the AuditLogs field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAuditLogs - -`func (o *GetAuditLogs200Response) SetAuditLogs(v []APIAuditLog)` - -SetAuditLogs sets AuditLogs field to given value. - - -### GetReason - -`func (o *GetAuditLogs200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetAuditLogs200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetAuditLogs200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetAuditLogs200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetAuditLogs200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetAuditLogs200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetAuditLogs200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetAuditLogs200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetAuditLogs200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetAuditLogs200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetAuditLogs200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetAuditLogs200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetAuditLogs200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetAuditLogs200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetAuditLogs200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetAuditLogs200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetAuditLogs200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetAuditLogs200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetAuditLogs200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetAuditLogs200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetAuditLogs200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetAuditLogs200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetAuditLogs200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetAuditLogs200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetAuditLogs200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetAuditLogs200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetBannedUsersCountResponse.md b/client/docs/GetBannedUsersCountResponse.md new file mode 100644 index 0000000..cfd3ed6 --- /dev/null +++ b/client/docs/GetBannedUsersCountResponse.md @@ -0,0 +1,72 @@ +# GetBannedUsersCountResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TotalCount** | **float64** | | +**Status** | **string** | | + +## Methods + +### NewGetBannedUsersCountResponse + +`func NewGetBannedUsersCountResponse(totalCount float64, status string, ) *GetBannedUsersCountResponse` + +NewGetBannedUsersCountResponse instantiates a new GetBannedUsersCountResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetBannedUsersCountResponseWithDefaults + +`func NewGetBannedUsersCountResponseWithDefaults() *GetBannedUsersCountResponse` + +NewGetBannedUsersCountResponseWithDefaults instantiates a new GetBannedUsersCountResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTotalCount + +`func (o *GetBannedUsersCountResponse) GetTotalCount() float64` + +GetTotalCount returns the TotalCount field if non-nil, zero value otherwise. + +### GetTotalCountOk + +`func (o *GetBannedUsersCountResponse) GetTotalCountOk() (*float64, bool)` + +GetTotalCountOk returns a tuple with the TotalCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalCount + +`func (o *GetBannedUsersCountResponse) SetTotalCount(v float64)` + +SetTotalCount sets TotalCount field to given value. + + +### GetStatus + +`func (o *GetBannedUsersCountResponse) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GetBannedUsersCountResponse) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *GetBannedUsersCountResponse) SetStatus(v string)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetBannedUsersFromCommentResponse.md b/client/docs/GetBannedUsersFromCommentResponse.md new file mode 100644 index 0000000..818514d --- /dev/null +++ b/client/docs/GetBannedUsersFromCommentResponse.md @@ -0,0 +1,98 @@ +# GetBannedUsersFromCommentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BannedUsers** | [**[]APIBannedUserWithMultiMatchInfo**](APIBannedUserWithMultiMatchInfo.md) | | +**Code** | Pointer to **string** | | [optional] +**Status** | [**APIStatus**](APIStatus.md) | | + +## Methods + +### NewGetBannedUsersFromCommentResponse + +`func NewGetBannedUsersFromCommentResponse(bannedUsers []APIBannedUserWithMultiMatchInfo, status APIStatus, ) *GetBannedUsersFromCommentResponse` + +NewGetBannedUsersFromCommentResponse instantiates a new GetBannedUsersFromCommentResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetBannedUsersFromCommentResponseWithDefaults + +`func NewGetBannedUsersFromCommentResponseWithDefaults() *GetBannedUsersFromCommentResponse` + +NewGetBannedUsersFromCommentResponseWithDefaults instantiates a new GetBannedUsersFromCommentResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBannedUsers + +`func (o *GetBannedUsersFromCommentResponse) GetBannedUsers() []APIBannedUserWithMultiMatchInfo` + +GetBannedUsers returns the BannedUsers field if non-nil, zero value otherwise. + +### GetBannedUsersOk + +`func (o *GetBannedUsersFromCommentResponse) GetBannedUsersOk() (*[]APIBannedUserWithMultiMatchInfo, bool)` + +GetBannedUsersOk returns a tuple with the BannedUsers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBannedUsers + +`func (o *GetBannedUsersFromCommentResponse) SetBannedUsers(v []APIBannedUserWithMultiMatchInfo)` + +SetBannedUsers sets BannedUsers field to given value. + + +### GetCode + +`func (o *GetBannedUsersFromCommentResponse) GetCode() string` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *GetBannedUsersFromCommentResponse) GetCodeOk() (*string, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *GetBannedUsersFromCommentResponse) SetCode(v string)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *GetBannedUsersFromCommentResponse) HasCode() bool` + +HasCode returns a boolean if a field has been set. + +### GetStatus + +`func (o *GetBannedUsersFromCommentResponse) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GetBannedUsersFromCommentResponse) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *GetBannedUsersFromCommentResponse) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetCachedNotificationCount200Response.md b/client/docs/GetCachedNotificationCount200Response.md deleted file mode 100644 index 8201523..0000000 --- a/client/docs/GetCachedNotificationCount200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetCachedNotificationCount200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**Data** | [**UserNotificationCount**](UserNotificationCount.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetCachedNotificationCount200Response - -`func NewGetCachedNotificationCount200Response(status APIStatus, data UserNotificationCount, reason string, code string, ) *GetCachedNotificationCount200Response` - -NewGetCachedNotificationCount200Response instantiates a new GetCachedNotificationCount200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetCachedNotificationCount200ResponseWithDefaults - -`func NewGetCachedNotificationCount200ResponseWithDefaults() *GetCachedNotificationCount200Response` - -NewGetCachedNotificationCount200ResponseWithDefaults instantiates a new GetCachedNotificationCount200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetCachedNotificationCount200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetCachedNotificationCount200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetCachedNotificationCount200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetData - -`func (o *GetCachedNotificationCount200Response) GetData() UserNotificationCount` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *GetCachedNotificationCount200Response) GetDataOk() (*UserNotificationCount, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *GetCachedNotificationCount200Response) SetData(v UserNotificationCount)` - -SetData sets Data field to given value. - - -### GetReason - -`func (o *GetCachedNotificationCount200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetCachedNotificationCount200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetCachedNotificationCount200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetCachedNotificationCount200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetCachedNotificationCount200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetCachedNotificationCount200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetCachedNotificationCount200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetCachedNotificationCount200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetCachedNotificationCount200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetCachedNotificationCount200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetCachedNotificationCount200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetCachedNotificationCount200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetCachedNotificationCount200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetCachedNotificationCount200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetCachedNotificationCount200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetCachedNotificationCount200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetCachedNotificationCount200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetCachedNotificationCount200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetCachedNotificationCount200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetCachedNotificationCount200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetCachedNotificationCount200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetCachedNotificationCount200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetCachedNotificationCount200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetCachedNotificationCount200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetCachedNotificationCount200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetCachedNotificationCount200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetComment200Response.md b/client/docs/GetComment200Response.md deleted file mode 100644 index 1c2c0a1..0000000 --- a/client/docs/GetComment200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetComment200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**Comment** | [**APIComment**](APIComment.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetComment200Response - -`func NewGetComment200Response(status APIStatus, comment APIComment, reason string, code string, ) *GetComment200Response` - -NewGetComment200Response instantiates a new GetComment200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetComment200ResponseWithDefaults - -`func NewGetComment200ResponseWithDefaults() *GetComment200Response` - -NewGetComment200ResponseWithDefaults instantiates a new GetComment200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetComment200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetComment200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetComment200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetComment - -`func (o *GetComment200Response) GetComment() APIComment` - -GetComment returns the Comment field if non-nil, zero value otherwise. - -### GetCommentOk - -`func (o *GetComment200Response) GetCommentOk() (*APIComment, bool)` - -GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComment - -`func (o *GetComment200Response) SetComment(v APIComment)` - -SetComment sets Comment field to given value. - - -### GetReason - -`func (o *GetComment200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetComment200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetComment200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetComment200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetComment200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetComment200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetComment200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetComment200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetComment200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetComment200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetComment200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetComment200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetComment200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetComment200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetComment200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetComment200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetComment200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetComment200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetComment200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetComment200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetComment200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetComment200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetComment200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetComment200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetComment200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetComment200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetCommentBanStatusResponse.md b/client/docs/GetCommentBanStatusResponse.md new file mode 100644 index 0000000..526df75 --- /dev/null +++ b/client/docs/GetCommentBanStatusResponse.md @@ -0,0 +1,113 @@ +# GetCommentBanStatusResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **string** | | +**EmailDomain** | **NullableString** | | +**CanIPBan** | **NullableBool** | | + +## Methods + +### NewGetCommentBanStatusResponse + +`func NewGetCommentBanStatusResponse(status string, emailDomain NullableString, canIPBan NullableBool, ) *GetCommentBanStatusResponse` + +NewGetCommentBanStatusResponse instantiates a new GetCommentBanStatusResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetCommentBanStatusResponseWithDefaults + +`func NewGetCommentBanStatusResponseWithDefaults() *GetCommentBanStatusResponse` + +NewGetCommentBanStatusResponseWithDefaults instantiates a new GetCommentBanStatusResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *GetCommentBanStatusResponse) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GetCommentBanStatusResponse) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *GetCommentBanStatusResponse) SetStatus(v string)` + +SetStatus sets Status field to given value. + + +### GetEmailDomain + +`func (o *GetCommentBanStatusResponse) GetEmailDomain() string` + +GetEmailDomain returns the EmailDomain field if non-nil, zero value otherwise. + +### GetEmailDomainOk + +`func (o *GetCommentBanStatusResponse) GetEmailDomainOk() (*string, bool)` + +GetEmailDomainOk returns a tuple with the EmailDomain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmailDomain + +`func (o *GetCommentBanStatusResponse) SetEmailDomain(v string)` + +SetEmailDomain sets EmailDomain field to given value. + + +### SetEmailDomainNil + +`func (o *GetCommentBanStatusResponse) SetEmailDomainNil(b bool)` + + SetEmailDomainNil sets the value for EmailDomain to be an explicit nil + +### UnsetEmailDomain +`func (o *GetCommentBanStatusResponse) UnsetEmailDomain()` + +UnsetEmailDomain ensures that no value is present for EmailDomain, not even an explicit nil +### GetCanIPBan + +`func (o *GetCommentBanStatusResponse) GetCanIPBan() bool` + +GetCanIPBan returns the CanIPBan field if non-nil, zero value otherwise. + +### GetCanIPBanOk + +`func (o *GetCommentBanStatusResponse) GetCanIPBanOk() (*bool, bool)` + +GetCanIPBanOk returns a tuple with the CanIPBan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCanIPBan + +`func (o *GetCommentBanStatusResponse) SetCanIPBan(v bool)` + +SetCanIPBan sets CanIPBan field to given value. + + +### SetCanIPBanNil + +`func (o *GetCommentBanStatusResponse) SetCanIPBanNil(b bool)` + + SetCanIPBanNil sets the value for CanIPBan to be an explicit nil + +### UnsetCanIPBan +`func (o *GetCommentBanStatusResponse) UnsetCanIPBan()` + +UnsetCanIPBan ensures that no value is present for CanIPBan, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetCommentText200Response.md b/client/docs/GetCommentText200Response.md deleted file mode 100644 index 3b450cb..0000000 --- a/client/docs/GetCommentText200Response.md +++ /dev/null @@ -1,265 +0,0 @@ -# GetCommentText200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**CommentText** | **string** | | -**SanitizedCommentText** | **string** | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetCommentText200Response - -`func NewGetCommentText200Response(status APIStatus, commentText string, sanitizedCommentText string, reason string, code string, ) *GetCommentText200Response` - -NewGetCommentText200Response instantiates a new GetCommentText200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetCommentText200ResponseWithDefaults - -`func NewGetCommentText200ResponseWithDefaults() *GetCommentText200Response` - -NewGetCommentText200ResponseWithDefaults instantiates a new GetCommentText200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetCommentText200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetCommentText200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetCommentText200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetCommentText - -`func (o *GetCommentText200Response) GetCommentText() string` - -GetCommentText returns the CommentText field if non-nil, zero value otherwise. - -### GetCommentTextOk - -`func (o *GetCommentText200Response) GetCommentTextOk() (*string, bool)` - -GetCommentTextOk returns a tuple with the CommentText field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCommentText - -`func (o *GetCommentText200Response) SetCommentText(v string)` - -SetCommentText sets CommentText field to given value. - - -### GetSanitizedCommentText - -`func (o *GetCommentText200Response) GetSanitizedCommentText() string` - -GetSanitizedCommentText returns the SanitizedCommentText field if non-nil, zero value otherwise. - -### GetSanitizedCommentTextOk - -`func (o *GetCommentText200Response) GetSanitizedCommentTextOk() (*string, bool)` - -GetSanitizedCommentTextOk returns a tuple with the SanitizedCommentText field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSanitizedCommentText - -`func (o *GetCommentText200Response) SetSanitizedCommentText(v string)` - -SetSanitizedCommentText sets SanitizedCommentText field to given value. - - -### GetReason - -`func (o *GetCommentText200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetCommentText200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetCommentText200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetCommentText200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetCommentText200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetCommentText200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetCommentText200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetCommentText200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetCommentText200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetCommentText200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetCommentText200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetCommentText200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetCommentText200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetCommentText200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetCommentText200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetCommentText200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetCommentText200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetCommentText200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetCommentText200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetCommentText200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetCommentText200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetCommentText200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetCommentText200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetCommentText200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetCommentText200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetCommentText200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetCommentTextResponse.md b/client/docs/GetCommentTextResponse.md new file mode 100644 index 0000000..a27eaf9 --- /dev/null +++ b/client/docs/GetCommentTextResponse.md @@ -0,0 +1,87 @@ +# GetCommentTextResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Comment** | Pointer to **NullableString** | | [optional] +**Status** | [**APIStatus**](APIStatus.md) | | + +## Methods + +### NewGetCommentTextResponse + +`func NewGetCommentTextResponse(status APIStatus, ) *GetCommentTextResponse` + +NewGetCommentTextResponse instantiates a new GetCommentTextResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetCommentTextResponseWithDefaults + +`func NewGetCommentTextResponseWithDefaults() *GetCommentTextResponse` + +NewGetCommentTextResponseWithDefaults instantiates a new GetCommentTextResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetComment + +`func (o *GetCommentTextResponse) GetComment() string` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *GetCommentTextResponse) GetCommentOk() (*string, bool)` + +GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComment + +`func (o *GetCommentTextResponse) SetComment(v string)` + +SetComment sets Comment field to given value. + +### HasComment + +`func (o *GetCommentTextResponse) HasComment() bool` + +HasComment returns a boolean if a field has been set. + +### SetCommentNil + +`func (o *GetCommentTextResponse) SetCommentNil(b bool)` + + SetCommentNil sets the value for Comment to be an explicit nil + +### UnsetComment +`func (o *GetCommentTextResponse) UnsetComment()` + +UnsetComment ensures that no value is present for Comment, not even an explicit nil +### GetStatus + +`func (o *GetCommentTextResponse) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GetCommentTextResponse) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *GetCommentTextResponse) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetCommentVoteUserNames200Response.md b/client/docs/GetCommentVoteUserNames200Response.md deleted file mode 100644 index 55ff204..0000000 --- a/client/docs/GetCommentVoteUserNames200Response.md +++ /dev/null @@ -1,265 +0,0 @@ -# GetCommentVoteUserNames200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**VoteUserNames** | **[]string** | | -**HasMore** | **bool** | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetCommentVoteUserNames200Response - -`func NewGetCommentVoteUserNames200Response(status APIStatus, voteUserNames []string, hasMore bool, reason string, code string, ) *GetCommentVoteUserNames200Response` - -NewGetCommentVoteUserNames200Response instantiates a new GetCommentVoteUserNames200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetCommentVoteUserNames200ResponseWithDefaults - -`func NewGetCommentVoteUserNames200ResponseWithDefaults() *GetCommentVoteUserNames200Response` - -NewGetCommentVoteUserNames200ResponseWithDefaults instantiates a new GetCommentVoteUserNames200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetCommentVoteUserNames200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetCommentVoteUserNames200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetCommentVoteUserNames200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetVoteUserNames - -`func (o *GetCommentVoteUserNames200Response) GetVoteUserNames() []string` - -GetVoteUserNames returns the VoteUserNames field if non-nil, zero value otherwise. - -### GetVoteUserNamesOk - -`func (o *GetCommentVoteUserNames200Response) GetVoteUserNamesOk() (*[]string, bool)` - -GetVoteUserNamesOk returns a tuple with the VoteUserNames field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVoteUserNames - -`func (o *GetCommentVoteUserNames200Response) SetVoteUserNames(v []string)` - -SetVoteUserNames sets VoteUserNames field to given value. - - -### GetHasMore - -`func (o *GetCommentVoteUserNames200Response) GetHasMore() bool` - -GetHasMore returns the HasMore field if non-nil, zero value otherwise. - -### GetHasMoreOk - -`func (o *GetCommentVoteUserNames200Response) GetHasMoreOk() (*bool, bool)` - -GetHasMoreOk returns a tuple with the HasMore field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHasMore - -`func (o *GetCommentVoteUserNames200Response) SetHasMore(v bool)` - -SetHasMore sets HasMore field to given value. - - -### GetReason - -`func (o *GetCommentVoteUserNames200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetCommentVoteUserNames200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetCommentVoteUserNames200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetCommentVoteUserNames200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetCommentVoteUserNames200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetCommentVoteUserNames200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetCommentVoteUserNames200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetCommentVoteUserNames200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetCommentVoteUserNames200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetCommentVoteUserNames200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetCommentVoteUserNames200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetCommentVoteUserNames200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetCommentVoteUserNames200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetCommentVoteUserNames200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetCommentVoteUserNames200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetCommentVoteUserNames200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetCommentVoteUserNames200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetCommentVoteUserNames200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetCommentVoteUserNames200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetCommentVoteUserNames200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetCommentVoteUserNames200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetCommentVoteUserNames200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetCommentVoteUserNames200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetCommentVoteUserNames200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetCommentVoteUserNames200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetCommentVoteUserNames200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetComments200Response.md b/client/docs/GetComments200Response.md deleted file mode 100644 index 10cbef7..0000000 --- a/client/docs/GetComments200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetComments200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**Comments** | [**[]APIComment**](APIComment.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetComments200Response - -`func NewGetComments200Response(status APIStatus, comments []APIComment, reason string, code string, ) *GetComments200Response` - -NewGetComments200Response instantiates a new GetComments200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetComments200ResponseWithDefaults - -`func NewGetComments200ResponseWithDefaults() *GetComments200Response` - -NewGetComments200ResponseWithDefaults instantiates a new GetComments200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetComments200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetComments200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetComments200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetComments - -`func (o *GetComments200Response) GetComments() []APIComment` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *GetComments200Response) GetCommentsOk() (*[]APIComment, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *GetComments200Response) SetComments(v []APIComment)` - -SetComments sets Comments field to given value. - - -### GetReason - -`func (o *GetComments200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetComments200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetComments200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetComments200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetComments200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetComments200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetComments200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetComments200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetComments200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetComments200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetComments200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetComments200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetComments200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetComments200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetComments200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetComments200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetComments200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetComments200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetComments200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetComments200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetComments200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetComments200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetComments200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetComments200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetComments200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetComments200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetCommentsForUserResponse.md b/client/docs/GetCommentsForUserResponse.md new file mode 100644 index 0000000..55f0287 --- /dev/null +++ b/client/docs/GetCommentsForUserResponse.md @@ -0,0 +1,56 @@ +# GetCommentsForUserResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ModeratingTenantIds** | Pointer to **[]string** | | [optional] + +## Methods + +### NewGetCommentsForUserResponse + +`func NewGetCommentsForUserResponse() *GetCommentsForUserResponse` + +NewGetCommentsForUserResponse instantiates a new GetCommentsForUserResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetCommentsForUserResponseWithDefaults + +`func NewGetCommentsForUserResponseWithDefaults() *GetCommentsForUserResponse` + +NewGetCommentsForUserResponseWithDefaults instantiates a new GetCommentsForUserResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetModeratingTenantIds + +`func (o *GetCommentsForUserResponse) GetModeratingTenantIds() []string` + +GetModeratingTenantIds returns the ModeratingTenantIds field if non-nil, zero value otherwise. + +### GetModeratingTenantIdsOk + +`func (o *GetCommentsForUserResponse) GetModeratingTenantIdsOk() (*[]string, bool)` + +GetModeratingTenantIdsOk returns a tuple with the ModeratingTenantIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModeratingTenantIds + +`func (o *GetCommentsForUserResponse) SetModeratingTenantIds(v []string)` + +SetModeratingTenantIds sets ModeratingTenantIds field to given value. + +### HasModeratingTenantIds + +`func (o *GetCommentsForUserResponse) HasModeratingTenantIds() bool` + +HasModeratingTenantIds returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetCommentsPublic200Response.md b/client/docs/GetCommentsPublic200Response.md deleted file mode 100644 index 1298873..0000000 --- a/client/docs/GetCommentsPublic200Response.md +++ /dev/null @@ -1,826 +0,0 @@ -# GetCommentsPublic200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**StatusCode** | Pointer to **int32** | | [optional] -**Status** | [**APIStatus**](APIStatus.md) | | -**Code** | **string** | | -**Reason** | **string** | | -**TranslatedWarning** | Pointer to **string** | | [optional] -**Comments** | [**[]PublicComment**](PublicComment.md) | | -**User** | [**NullableUserSessionInfo**](UserSessionInfo.md) | | -**UrlIdClean** | Pointer to **string** | | [optional] -**LastGenDate** | Pointer to **NullableInt64** | | [optional] -**IncludesPastPages** | Pointer to **bool** | | [optional] -**IsDemo** | Pointer to **bool** | | [optional] -**CommentCount** | Pointer to **int32** | | [optional] -**IsSiteAdmin** | Pointer to **bool** | | [optional] -**HasBillingIssue** | Pointer to **bool** | | [optional] -**ModuleData** | Pointer to **map[string]map[string]interface{}** | Construct a type with a set of properties K of type T | [optional] -**PageNumber** | **int32** | | -**IsWhiteLabeled** | Pointer to **bool** | | [optional] -**IsProd** | Pointer to **bool** | | [optional] -**IsCrawler** | Pointer to **bool** | | [optional] -**NotificationCount** | Pointer to **int32** | | [optional] -**HasMore** | Pointer to **bool** | | [optional] -**IsClosed** | Pointer to **bool** | | [optional] -**PresencePollState** | Pointer to **int32** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] -**UrlIdWS** | Pointer to **string** | | [optional] -**UserIdWS** | Pointer to **string** | | [optional] -**TenantIdWS** | Pointer to **string** | | [optional] -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] - -## Methods - -### NewGetCommentsPublic200Response - -`func NewGetCommentsPublic200Response(status APIStatus, code string, reason string, comments []PublicComment, user NullableUserSessionInfo, pageNumber int32, ) *GetCommentsPublic200Response` - -NewGetCommentsPublic200Response instantiates a new GetCommentsPublic200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetCommentsPublic200ResponseWithDefaults - -`func NewGetCommentsPublic200ResponseWithDefaults() *GetCommentsPublic200Response` - -NewGetCommentsPublic200ResponseWithDefaults instantiates a new GetCommentsPublic200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatusCode - -`func (o *GetCommentsPublic200Response) GetStatusCode() int32` - -GetStatusCode returns the StatusCode field if non-nil, zero value otherwise. - -### GetStatusCodeOk - -`func (o *GetCommentsPublic200Response) GetStatusCodeOk() (*int32, bool)` - -GetStatusCodeOk returns a tuple with the StatusCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatusCode - -`func (o *GetCommentsPublic200Response) SetStatusCode(v int32)` - -SetStatusCode sets StatusCode field to given value. - -### HasStatusCode - -`func (o *GetCommentsPublic200Response) HasStatusCode() bool` - -HasStatusCode returns a boolean if a field has been set. - -### GetStatus - -`func (o *GetCommentsPublic200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetCommentsPublic200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetCommentsPublic200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetCode - -`func (o *GetCommentsPublic200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetCommentsPublic200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetCommentsPublic200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetReason - -`func (o *GetCommentsPublic200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetCommentsPublic200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetCommentsPublic200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetTranslatedWarning - -`func (o *GetCommentsPublic200Response) GetTranslatedWarning() string` - -GetTranslatedWarning returns the TranslatedWarning field if non-nil, zero value otherwise. - -### GetTranslatedWarningOk - -`func (o *GetCommentsPublic200Response) GetTranslatedWarningOk() (*string, bool)` - -GetTranslatedWarningOk returns a tuple with the TranslatedWarning field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedWarning - -`func (o *GetCommentsPublic200Response) SetTranslatedWarning(v string)` - -SetTranslatedWarning sets TranslatedWarning field to given value. - -### HasTranslatedWarning - -`func (o *GetCommentsPublic200Response) HasTranslatedWarning() bool` - -HasTranslatedWarning returns a boolean if a field has been set. - -### GetComments - -`func (o *GetCommentsPublic200Response) GetComments() []PublicComment` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *GetCommentsPublic200Response) GetCommentsOk() (*[]PublicComment, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *GetCommentsPublic200Response) SetComments(v []PublicComment)` - -SetComments sets Comments field to given value. - - -### GetUser - -`func (o *GetCommentsPublic200Response) GetUser() UserSessionInfo` - -GetUser returns the User field if non-nil, zero value otherwise. - -### GetUserOk - -`func (o *GetCommentsPublic200Response) GetUserOk() (*UserSessionInfo, bool)` - -GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUser - -`func (o *GetCommentsPublic200Response) SetUser(v UserSessionInfo)` - -SetUser sets User field to given value. - - -### SetUserNil - -`func (o *GetCommentsPublic200Response) SetUserNil(b bool)` - - SetUserNil sets the value for User to be an explicit nil - -### UnsetUser -`func (o *GetCommentsPublic200Response) UnsetUser()` - -UnsetUser ensures that no value is present for User, not even an explicit nil -### GetUrlIdClean - -`func (o *GetCommentsPublic200Response) GetUrlIdClean() string` - -GetUrlIdClean returns the UrlIdClean field if non-nil, zero value otherwise. - -### GetUrlIdCleanOk - -`func (o *GetCommentsPublic200Response) GetUrlIdCleanOk() (*string, bool)` - -GetUrlIdCleanOk returns a tuple with the UrlIdClean field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUrlIdClean - -`func (o *GetCommentsPublic200Response) SetUrlIdClean(v string)` - -SetUrlIdClean sets UrlIdClean field to given value. - -### HasUrlIdClean - -`func (o *GetCommentsPublic200Response) HasUrlIdClean() bool` - -HasUrlIdClean returns a boolean if a field has been set. - -### GetLastGenDate - -`func (o *GetCommentsPublic200Response) GetLastGenDate() int64` - -GetLastGenDate returns the LastGenDate field if non-nil, zero value otherwise. - -### GetLastGenDateOk - -`func (o *GetCommentsPublic200Response) GetLastGenDateOk() (*int64, bool)` - -GetLastGenDateOk returns a tuple with the LastGenDate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastGenDate - -`func (o *GetCommentsPublic200Response) SetLastGenDate(v int64)` - -SetLastGenDate sets LastGenDate field to given value. - -### HasLastGenDate - -`func (o *GetCommentsPublic200Response) HasLastGenDate() bool` - -HasLastGenDate returns a boolean if a field has been set. - -### SetLastGenDateNil - -`func (o *GetCommentsPublic200Response) SetLastGenDateNil(b bool)` - - SetLastGenDateNil sets the value for LastGenDate to be an explicit nil - -### UnsetLastGenDate -`func (o *GetCommentsPublic200Response) UnsetLastGenDate()` - -UnsetLastGenDate ensures that no value is present for LastGenDate, not even an explicit nil -### GetIncludesPastPages - -`func (o *GetCommentsPublic200Response) GetIncludesPastPages() bool` - -GetIncludesPastPages returns the IncludesPastPages field if non-nil, zero value otherwise. - -### GetIncludesPastPagesOk - -`func (o *GetCommentsPublic200Response) GetIncludesPastPagesOk() (*bool, bool)` - -GetIncludesPastPagesOk returns a tuple with the IncludesPastPages field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIncludesPastPages - -`func (o *GetCommentsPublic200Response) SetIncludesPastPages(v bool)` - -SetIncludesPastPages sets IncludesPastPages field to given value. - -### HasIncludesPastPages - -`func (o *GetCommentsPublic200Response) HasIncludesPastPages() bool` - -HasIncludesPastPages returns a boolean if a field has been set. - -### GetIsDemo - -`func (o *GetCommentsPublic200Response) GetIsDemo() bool` - -GetIsDemo returns the IsDemo field if non-nil, zero value otherwise. - -### GetIsDemoOk - -`func (o *GetCommentsPublic200Response) GetIsDemoOk() (*bool, bool)` - -GetIsDemoOk returns a tuple with the IsDemo field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsDemo - -`func (o *GetCommentsPublic200Response) SetIsDemo(v bool)` - -SetIsDemo sets IsDemo field to given value. - -### HasIsDemo - -`func (o *GetCommentsPublic200Response) HasIsDemo() bool` - -HasIsDemo returns a boolean if a field has been set. - -### GetCommentCount - -`func (o *GetCommentsPublic200Response) GetCommentCount() int32` - -GetCommentCount returns the CommentCount field if non-nil, zero value otherwise. - -### GetCommentCountOk - -`func (o *GetCommentsPublic200Response) GetCommentCountOk() (*int32, bool)` - -GetCommentCountOk returns a tuple with the CommentCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCommentCount - -`func (o *GetCommentsPublic200Response) SetCommentCount(v int32)` - -SetCommentCount sets CommentCount field to given value. - -### HasCommentCount - -`func (o *GetCommentsPublic200Response) HasCommentCount() bool` - -HasCommentCount returns a boolean if a field has been set. - -### GetIsSiteAdmin - -`func (o *GetCommentsPublic200Response) GetIsSiteAdmin() bool` - -GetIsSiteAdmin returns the IsSiteAdmin field if non-nil, zero value otherwise. - -### GetIsSiteAdminOk - -`func (o *GetCommentsPublic200Response) GetIsSiteAdminOk() (*bool, bool)` - -GetIsSiteAdminOk returns a tuple with the IsSiteAdmin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsSiteAdmin - -`func (o *GetCommentsPublic200Response) SetIsSiteAdmin(v bool)` - -SetIsSiteAdmin sets IsSiteAdmin field to given value. - -### HasIsSiteAdmin - -`func (o *GetCommentsPublic200Response) HasIsSiteAdmin() bool` - -HasIsSiteAdmin returns a boolean if a field has been set. - -### GetHasBillingIssue - -`func (o *GetCommentsPublic200Response) GetHasBillingIssue() bool` - -GetHasBillingIssue returns the HasBillingIssue field if non-nil, zero value otherwise. - -### GetHasBillingIssueOk - -`func (o *GetCommentsPublic200Response) GetHasBillingIssueOk() (*bool, bool)` - -GetHasBillingIssueOk returns a tuple with the HasBillingIssue field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHasBillingIssue - -`func (o *GetCommentsPublic200Response) SetHasBillingIssue(v bool)` - -SetHasBillingIssue sets HasBillingIssue field to given value. - -### HasHasBillingIssue - -`func (o *GetCommentsPublic200Response) HasHasBillingIssue() bool` - -HasHasBillingIssue returns a boolean if a field has been set. - -### GetModuleData - -`func (o *GetCommentsPublic200Response) GetModuleData() map[string]map[string]interface{}` - -GetModuleData returns the ModuleData field if non-nil, zero value otherwise. - -### GetModuleDataOk - -`func (o *GetCommentsPublic200Response) GetModuleDataOk() (*map[string]map[string]interface{}, bool)` - -GetModuleDataOk returns a tuple with the ModuleData field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetModuleData - -`func (o *GetCommentsPublic200Response) SetModuleData(v map[string]map[string]interface{})` - -SetModuleData sets ModuleData field to given value. - -### HasModuleData - -`func (o *GetCommentsPublic200Response) HasModuleData() bool` - -HasModuleData returns a boolean if a field has been set. - -### GetPageNumber - -`func (o *GetCommentsPublic200Response) GetPageNumber() int32` - -GetPageNumber returns the PageNumber field if non-nil, zero value otherwise. - -### GetPageNumberOk - -`func (o *GetCommentsPublic200Response) GetPageNumberOk() (*int32, bool)` - -GetPageNumberOk returns a tuple with the PageNumber field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPageNumber - -`func (o *GetCommentsPublic200Response) SetPageNumber(v int32)` - -SetPageNumber sets PageNumber field to given value. - - -### GetIsWhiteLabeled - -`func (o *GetCommentsPublic200Response) GetIsWhiteLabeled() bool` - -GetIsWhiteLabeled returns the IsWhiteLabeled field if non-nil, zero value otherwise. - -### GetIsWhiteLabeledOk - -`func (o *GetCommentsPublic200Response) GetIsWhiteLabeledOk() (*bool, bool)` - -GetIsWhiteLabeledOk returns a tuple with the IsWhiteLabeled field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsWhiteLabeled - -`func (o *GetCommentsPublic200Response) SetIsWhiteLabeled(v bool)` - -SetIsWhiteLabeled sets IsWhiteLabeled field to given value. - -### HasIsWhiteLabeled - -`func (o *GetCommentsPublic200Response) HasIsWhiteLabeled() bool` - -HasIsWhiteLabeled returns a boolean if a field has been set. - -### GetIsProd - -`func (o *GetCommentsPublic200Response) GetIsProd() bool` - -GetIsProd returns the IsProd field if non-nil, zero value otherwise. - -### GetIsProdOk - -`func (o *GetCommentsPublic200Response) GetIsProdOk() (*bool, bool)` - -GetIsProdOk returns a tuple with the IsProd field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsProd - -`func (o *GetCommentsPublic200Response) SetIsProd(v bool)` - -SetIsProd sets IsProd field to given value. - -### HasIsProd - -`func (o *GetCommentsPublic200Response) HasIsProd() bool` - -HasIsProd returns a boolean if a field has been set. - -### GetIsCrawler - -`func (o *GetCommentsPublic200Response) GetIsCrawler() bool` - -GetIsCrawler returns the IsCrawler field if non-nil, zero value otherwise. - -### GetIsCrawlerOk - -`func (o *GetCommentsPublic200Response) GetIsCrawlerOk() (*bool, bool)` - -GetIsCrawlerOk returns a tuple with the IsCrawler field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsCrawler - -`func (o *GetCommentsPublic200Response) SetIsCrawler(v bool)` - -SetIsCrawler sets IsCrawler field to given value. - -### HasIsCrawler - -`func (o *GetCommentsPublic200Response) HasIsCrawler() bool` - -HasIsCrawler returns a boolean if a field has been set. - -### GetNotificationCount - -`func (o *GetCommentsPublic200Response) GetNotificationCount() int32` - -GetNotificationCount returns the NotificationCount field if non-nil, zero value otherwise. - -### GetNotificationCountOk - -`func (o *GetCommentsPublic200Response) GetNotificationCountOk() (*int32, bool)` - -GetNotificationCountOk returns a tuple with the NotificationCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNotificationCount - -`func (o *GetCommentsPublic200Response) SetNotificationCount(v int32)` - -SetNotificationCount sets NotificationCount field to given value. - -### HasNotificationCount - -`func (o *GetCommentsPublic200Response) HasNotificationCount() bool` - -HasNotificationCount returns a boolean if a field has been set. - -### GetHasMore - -`func (o *GetCommentsPublic200Response) GetHasMore() bool` - -GetHasMore returns the HasMore field if non-nil, zero value otherwise. - -### GetHasMoreOk - -`func (o *GetCommentsPublic200Response) GetHasMoreOk() (*bool, bool)` - -GetHasMoreOk returns a tuple with the HasMore field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHasMore - -`func (o *GetCommentsPublic200Response) SetHasMore(v bool)` - -SetHasMore sets HasMore field to given value. - -### HasHasMore - -`func (o *GetCommentsPublic200Response) HasHasMore() bool` - -HasHasMore returns a boolean if a field has been set. - -### GetIsClosed - -`func (o *GetCommentsPublic200Response) GetIsClosed() bool` - -GetIsClosed returns the IsClosed field if non-nil, zero value otherwise. - -### GetIsClosedOk - -`func (o *GetCommentsPublic200Response) GetIsClosedOk() (*bool, bool)` - -GetIsClosedOk returns a tuple with the IsClosed field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsClosed - -`func (o *GetCommentsPublic200Response) SetIsClosed(v bool)` - -SetIsClosed sets IsClosed field to given value. - -### HasIsClosed - -`func (o *GetCommentsPublic200Response) HasIsClosed() bool` - -HasIsClosed returns a boolean if a field has been set. - -### GetPresencePollState - -`func (o *GetCommentsPublic200Response) GetPresencePollState() int32` - -GetPresencePollState returns the PresencePollState field if non-nil, zero value otherwise. - -### GetPresencePollStateOk - -`func (o *GetCommentsPublic200Response) GetPresencePollStateOk() (*int32, bool)` - -GetPresencePollStateOk returns a tuple with the PresencePollState field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPresencePollState - -`func (o *GetCommentsPublic200Response) SetPresencePollState(v int32)` - -SetPresencePollState sets PresencePollState field to given value. - -### HasPresencePollState - -`func (o *GetCommentsPublic200Response) HasPresencePollState() bool` - -HasPresencePollState returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetCommentsPublic200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetCommentsPublic200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetCommentsPublic200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetCommentsPublic200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - -### GetUrlIdWS - -`func (o *GetCommentsPublic200Response) GetUrlIdWS() string` - -GetUrlIdWS returns the UrlIdWS field if non-nil, zero value otherwise. - -### GetUrlIdWSOk - -`func (o *GetCommentsPublic200Response) GetUrlIdWSOk() (*string, bool)` - -GetUrlIdWSOk returns a tuple with the UrlIdWS field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUrlIdWS - -`func (o *GetCommentsPublic200Response) SetUrlIdWS(v string)` - -SetUrlIdWS sets UrlIdWS field to given value. - -### HasUrlIdWS - -`func (o *GetCommentsPublic200Response) HasUrlIdWS() bool` - -HasUrlIdWS returns a boolean if a field has been set. - -### GetUserIdWS - -`func (o *GetCommentsPublic200Response) GetUserIdWS() string` - -GetUserIdWS returns the UserIdWS field if non-nil, zero value otherwise. - -### GetUserIdWSOk - -`func (o *GetCommentsPublic200Response) GetUserIdWSOk() (*string, bool)` - -GetUserIdWSOk returns a tuple with the UserIdWS field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUserIdWS - -`func (o *GetCommentsPublic200Response) SetUserIdWS(v string)` - -SetUserIdWS sets UserIdWS field to given value. - -### HasUserIdWS - -`func (o *GetCommentsPublic200Response) HasUserIdWS() bool` - -HasUserIdWS returns a boolean if a field has been set. - -### GetTenantIdWS - -`func (o *GetCommentsPublic200Response) GetTenantIdWS() string` - -GetTenantIdWS returns the TenantIdWS field if non-nil, zero value otherwise. - -### GetTenantIdWSOk - -`func (o *GetCommentsPublic200Response) GetTenantIdWSOk() (*string, bool)` - -GetTenantIdWSOk returns a tuple with the TenantIdWS field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenantIdWS - -`func (o *GetCommentsPublic200Response) SetTenantIdWS(v string)` - -SetTenantIdWS sets TenantIdWS field to given value. - -### HasTenantIdWS - -`func (o *GetCommentsPublic200Response) HasTenantIdWS() bool` - -HasTenantIdWS returns a boolean if a field has been set. - -### GetSecondaryCode - -`func (o *GetCommentsPublic200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetCommentsPublic200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetCommentsPublic200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetCommentsPublic200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetCommentsPublic200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetCommentsPublic200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetCommentsPublic200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetCommentsPublic200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetCommentsPublic200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetCommentsPublic200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetCommentsPublic200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetCommentsPublic200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetCommentsPublic200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetCommentsPublic200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetCommentsPublic200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetCommentsPublic200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetDomainConfig200Response.md b/client/docs/GetDomainConfigResponse.md similarity index 61% rename from client/docs/GetDomainConfig200Response.md rename to client/docs/GetDomainConfigResponse.md index e24de8c..8c636c7 100644 --- a/client/docs/GetDomainConfig200Response.md +++ b/client/docs/GetDomainConfigResponse.md @@ -1,4 +1,4 @@ -# GetDomainConfig200Response +# GetDomainConfigResponse ## Properties @@ -11,119 +11,119 @@ Name | Type | Description | Notes ## Methods -### NewGetDomainConfig200Response +### NewGetDomainConfigResponse -`func NewGetDomainConfig200Response(configuration interface{}, status interface{}, reason string, code string, ) *GetDomainConfig200Response` +`func NewGetDomainConfigResponse(configuration interface{}, status interface{}, reason string, code string, ) *GetDomainConfigResponse` -NewGetDomainConfig200Response instantiates a new GetDomainConfig200Response object +NewGetDomainConfigResponse instantiates a new GetDomainConfigResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewGetDomainConfig200ResponseWithDefaults +### NewGetDomainConfigResponseWithDefaults -`func NewGetDomainConfig200ResponseWithDefaults() *GetDomainConfig200Response` +`func NewGetDomainConfigResponseWithDefaults() *GetDomainConfigResponse` -NewGetDomainConfig200ResponseWithDefaults instantiates a new GetDomainConfig200Response object +NewGetDomainConfigResponseWithDefaults instantiates a new GetDomainConfigResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetConfiguration -`func (o *GetDomainConfig200Response) GetConfiguration() interface{}` +`func (o *GetDomainConfigResponse) GetConfiguration() interface{}` GetConfiguration returns the Configuration field if non-nil, zero value otherwise. ### GetConfigurationOk -`func (o *GetDomainConfig200Response) GetConfigurationOk() (*interface{}, bool)` +`func (o *GetDomainConfigResponse) GetConfigurationOk() (*interface{}, bool)` GetConfigurationOk returns a tuple with the Configuration field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfiguration -`func (o *GetDomainConfig200Response) SetConfiguration(v interface{})` +`func (o *GetDomainConfigResponse) SetConfiguration(v interface{})` SetConfiguration sets Configuration field to given value. ### SetConfigurationNil -`func (o *GetDomainConfig200Response) SetConfigurationNil(b bool)` +`func (o *GetDomainConfigResponse) SetConfigurationNil(b bool)` SetConfigurationNil sets the value for Configuration to be an explicit nil ### UnsetConfiguration -`func (o *GetDomainConfig200Response) UnsetConfiguration()` +`func (o *GetDomainConfigResponse) UnsetConfiguration()` UnsetConfiguration ensures that no value is present for Configuration, not even an explicit nil ### GetStatus -`func (o *GetDomainConfig200Response) GetStatus() interface{}` +`func (o *GetDomainConfigResponse) GetStatus() interface{}` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *GetDomainConfig200Response) GetStatusOk() (*interface{}, bool)` +`func (o *GetDomainConfigResponse) GetStatusOk() (*interface{}, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *GetDomainConfig200Response) SetStatus(v interface{})` +`func (o *GetDomainConfigResponse) SetStatus(v interface{})` SetStatus sets Status field to given value. ### SetStatusNil -`func (o *GetDomainConfig200Response) SetStatusNil(b bool)` +`func (o *GetDomainConfigResponse) SetStatusNil(b bool)` SetStatusNil sets the value for Status to be an explicit nil ### UnsetStatus -`func (o *GetDomainConfig200Response) UnsetStatus()` +`func (o *GetDomainConfigResponse) UnsetStatus()` UnsetStatus ensures that no value is present for Status, not even an explicit nil ### GetReason -`func (o *GetDomainConfig200Response) GetReason() string` +`func (o *GetDomainConfigResponse) GetReason() string` GetReason returns the Reason field if non-nil, zero value otherwise. ### GetReasonOk -`func (o *GetDomainConfig200Response) GetReasonOk() (*string, bool)` +`func (o *GetDomainConfigResponse) GetReasonOk() (*string, bool)` GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetReason -`func (o *GetDomainConfig200Response) SetReason(v string)` +`func (o *GetDomainConfigResponse) SetReason(v string)` SetReason sets Reason field to given value. ### GetCode -`func (o *GetDomainConfig200Response) GetCode() string` +`func (o *GetDomainConfigResponse) GetCode() string` GetCode returns the Code field if non-nil, zero value otherwise. ### GetCodeOk -`func (o *GetDomainConfig200Response) GetCodeOk() (*string, bool)` +`func (o *GetDomainConfigResponse) GetCodeOk() (*string, bool)` GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCode -`func (o *GetDomainConfig200Response) SetCode(v string)` +`func (o *GetDomainConfigResponse) SetCode(v string)` SetCode sets Code field to given value. diff --git a/client/docs/GetDomainConfigs200Response.md b/client/docs/GetDomainConfigsResponse.md similarity index 61% rename from client/docs/GetDomainConfigs200Response.md rename to client/docs/GetDomainConfigsResponse.md index 10c7b29..43e77af 100644 --- a/client/docs/GetDomainConfigs200Response.md +++ b/client/docs/GetDomainConfigsResponse.md @@ -1,4 +1,4 @@ -# GetDomainConfigs200Response +# GetDomainConfigsResponse ## Properties @@ -11,119 +11,119 @@ Name | Type | Description | Notes ## Methods -### NewGetDomainConfigs200Response +### NewGetDomainConfigsResponse -`func NewGetDomainConfigs200Response(configurations interface{}, status interface{}, reason string, code string, ) *GetDomainConfigs200Response` +`func NewGetDomainConfigsResponse(configurations interface{}, status interface{}, reason string, code string, ) *GetDomainConfigsResponse` -NewGetDomainConfigs200Response instantiates a new GetDomainConfigs200Response object +NewGetDomainConfigsResponse instantiates a new GetDomainConfigsResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewGetDomainConfigs200ResponseWithDefaults +### NewGetDomainConfigsResponseWithDefaults -`func NewGetDomainConfigs200ResponseWithDefaults() *GetDomainConfigs200Response` +`func NewGetDomainConfigsResponseWithDefaults() *GetDomainConfigsResponse` -NewGetDomainConfigs200ResponseWithDefaults instantiates a new GetDomainConfigs200Response object +NewGetDomainConfigsResponseWithDefaults instantiates a new GetDomainConfigsResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetConfigurations -`func (o *GetDomainConfigs200Response) GetConfigurations() interface{}` +`func (o *GetDomainConfigsResponse) GetConfigurations() interface{}` GetConfigurations returns the Configurations field if non-nil, zero value otherwise. ### GetConfigurationsOk -`func (o *GetDomainConfigs200Response) GetConfigurationsOk() (*interface{}, bool)` +`func (o *GetDomainConfigsResponse) GetConfigurationsOk() (*interface{}, bool)` GetConfigurationsOk returns a tuple with the Configurations field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigurations -`func (o *GetDomainConfigs200Response) SetConfigurations(v interface{})` +`func (o *GetDomainConfigsResponse) SetConfigurations(v interface{})` SetConfigurations sets Configurations field to given value. ### SetConfigurationsNil -`func (o *GetDomainConfigs200Response) SetConfigurationsNil(b bool)` +`func (o *GetDomainConfigsResponse) SetConfigurationsNil(b bool)` SetConfigurationsNil sets the value for Configurations to be an explicit nil ### UnsetConfigurations -`func (o *GetDomainConfigs200Response) UnsetConfigurations()` +`func (o *GetDomainConfigsResponse) UnsetConfigurations()` UnsetConfigurations ensures that no value is present for Configurations, not even an explicit nil ### GetStatus -`func (o *GetDomainConfigs200Response) GetStatus() interface{}` +`func (o *GetDomainConfigsResponse) GetStatus() interface{}` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *GetDomainConfigs200Response) GetStatusOk() (*interface{}, bool)` +`func (o *GetDomainConfigsResponse) GetStatusOk() (*interface{}, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *GetDomainConfigs200Response) SetStatus(v interface{})` +`func (o *GetDomainConfigsResponse) SetStatus(v interface{})` SetStatus sets Status field to given value. ### SetStatusNil -`func (o *GetDomainConfigs200Response) SetStatusNil(b bool)` +`func (o *GetDomainConfigsResponse) SetStatusNil(b bool)` SetStatusNil sets the value for Status to be an explicit nil ### UnsetStatus -`func (o *GetDomainConfigs200Response) UnsetStatus()` +`func (o *GetDomainConfigsResponse) UnsetStatus()` UnsetStatus ensures that no value is present for Status, not even an explicit nil ### GetReason -`func (o *GetDomainConfigs200Response) GetReason() string` +`func (o *GetDomainConfigsResponse) GetReason() string` GetReason returns the Reason field if non-nil, zero value otherwise. ### GetReasonOk -`func (o *GetDomainConfigs200Response) GetReasonOk() (*string, bool)` +`func (o *GetDomainConfigsResponse) GetReasonOk() (*string, bool)` GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetReason -`func (o *GetDomainConfigs200Response) SetReason(v string)` +`func (o *GetDomainConfigsResponse) SetReason(v string)` SetReason sets Reason field to given value. ### GetCode -`func (o *GetDomainConfigs200Response) GetCode() string` +`func (o *GetDomainConfigsResponse) GetCode() string` GetCode returns the Code field if non-nil, zero value otherwise. ### GetCodeOk -`func (o *GetDomainConfigs200Response) GetCodeOk() (*string, bool)` +`func (o *GetDomainConfigsResponse) GetCodeOk() (*string, bool)` GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCode -`func (o *GetDomainConfigs200Response) SetCode(v string)` +`func (o *GetDomainConfigsResponse) SetCode(v string)` SetCode sets Code field to given value. diff --git a/client/docs/GetDomainConfigs200ResponseAnyOf.md b/client/docs/GetDomainConfigsResponseAnyOf.md similarity index 59% rename from client/docs/GetDomainConfigs200ResponseAnyOf.md rename to client/docs/GetDomainConfigsResponseAnyOf.md index cb9fba6..b41c34e 100644 --- a/client/docs/GetDomainConfigs200ResponseAnyOf.md +++ b/client/docs/GetDomainConfigsResponseAnyOf.md @@ -1,4 +1,4 @@ -# GetDomainConfigs200ResponseAnyOf +# GetDomainConfigsResponseAnyOf ## Properties @@ -9,81 +9,81 @@ Name | Type | Description | Notes ## Methods -### NewGetDomainConfigs200ResponseAnyOf +### NewGetDomainConfigsResponseAnyOf -`func NewGetDomainConfigs200ResponseAnyOf(configurations interface{}, status interface{}, ) *GetDomainConfigs200ResponseAnyOf` +`func NewGetDomainConfigsResponseAnyOf(configurations interface{}, status interface{}, ) *GetDomainConfigsResponseAnyOf` -NewGetDomainConfigs200ResponseAnyOf instantiates a new GetDomainConfigs200ResponseAnyOf object +NewGetDomainConfigsResponseAnyOf instantiates a new GetDomainConfigsResponseAnyOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewGetDomainConfigs200ResponseAnyOfWithDefaults +### NewGetDomainConfigsResponseAnyOfWithDefaults -`func NewGetDomainConfigs200ResponseAnyOfWithDefaults() *GetDomainConfigs200ResponseAnyOf` +`func NewGetDomainConfigsResponseAnyOfWithDefaults() *GetDomainConfigsResponseAnyOf` -NewGetDomainConfigs200ResponseAnyOfWithDefaults instantiates a new GetDomainConfigs200ResponseAnyOf object +NewGetDomainConfigsResponseAnyOfWithDefaults instantiates a new GetDomainConfigsResponseAnyOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetConfigurations -`func (o *GetDomainConfigs200ResponseAnyOf) GetConfigurations() interface{}` +`func (o *GetDomainConfigsResponseAnyOf) GetConfigurations() interface{}` GetConfigurations returns the Configurations field if non-nil, zero value otherwise. ### GetConfigurationsOk -`func (o *GetDomainConfigs200ResponseAnyOf) GetConfigurationsOk() (*interface{}, bool)` +`func (o *GetDomainConfigsResponseAnyOf) GetConfigurationsOk() (*interface{}, bool)` GetConfigurationsOk returns a tuple with the Configurations field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigurations -`func (o *GetDomainConfigs200ResponseAnyOf) SetConfigurations(v interface{})` +`func (o *GetDomainConfigsResponseAnyOf) SetConfigurations(v interface{})` SetConfigurations sets Configurations field to given value. ### SetConfigurationsNil -`func (o *GetDomainConfigs200ResponseAnyOf) SetConfigurationsNil(b bool)` +`func (o *GetDomainConfigsResponseAnyOf) SetConfigurationsNil(b bool)` SetConfigurationsNil sets the value for Configurations to be an explicit nil ### UnsetConfigurations -`func (o *GetDomainConfigs200ResponseAnyOf) UnsetConfigurations()` +`func (o *GetDomainConfigsResponseAnyOf) UnsetConfigurations()` UnsetConfigurations ensures that no value is present for Configurations, not even an explicit nil ### GetStatus -`func (o *GetDomainConfigs200ResponseAnyOf) GetStatus() interface{}` +`func (o *GetDomainConfigsResponseAnyOf) GetStatus() interface{}` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *GetDomainConfigs200ResponseAnyOf) GetStatusOk() (*interface{}, bool)` +`func (o *GetDomainConfigsResponseAnyOf) GetStatusOk() (*interface{}, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *GetDomainConfigs200ResponseAnyOf) SetStatus(v interface{})` +`func (o *GetDomainConfigsResponseAnyOf) SetStatus(v interface{})` SetStatus sets Status field to given value. ### SetStatusNil -`func (o *GetDomainConfigs200ResponseAnyOf) SetStatusNil(b bool)` +`func (o *GetDomainConfigsResponseAnyOf) SetStatusNil(b bool)` SetStatusNil sets the value for Status to be an explicit nil ### UnsetStatus -`func (o *GetDomainConfigs200ResponseAnyOf) UnsetStatus()` +`func (o *GetDomainConfigsResponseAnyOf) UnsetStatus()` UnsetStatus ensures that no value is present for Status, not even an explicit nil diff --git a/client/docs/GetDomainConfigs200ResponseAnyOf1.md b/client/docs/GetDomainConfigsResponseAnyOf1.md similarity index 58% rename from client/docs/GetDomainConfigs200ResponseAnyOf1.md rename to client/docs/GetDomainConfigsResponseAnyOf1.md index cef718b..b2b70aa 100644 --- a/client/docs/GetDomainConfigs200ResponseAnyOf1.md +++ b/client/docs/GetDomainConfigsResponseAnyOf1.md @@ -1,4 +1,4 @@ -# GetDomainConfigs200ResponseAnyOf1 +# GetDomainConfigsResponseAnyOf1 ## Properties @@ -10,91 +10,91 @@ Name | Type | Description | Notes ## Methods -### NewGetDomainConfigs200ResponseAnyOf1 +### NewGetDomainConfigsResponseAnyOf1 -`func NewGetDomainConfigs200ResponseAnyOf1(reason string, code string, status interface{}, ) *GetDomainConfigs200ResponseAnyOf1` +`func NewGetDomainConfigsResponseAnyOf1(reason string, code string, status interface{}, ) *GetDomainConfigsResponseAnyOf1` -NewGetDomainConfigs200ResponseAnyOf1 instantiates a new GetDomainConfigs200ResponseAnyOf1 object +NewGetDomainConfigsResponseAnyOf1 instantiates a new GetDomainConfigsResponseAnyOf1 object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewGetDomainConfigs200ResponseAnyOf1WithDefaults +### NewGetDomainConfigsResponseAnyOf1WithDefaults -`func NewGetDomainConfigs200ResponseAnyOf1WithDefaults() *GetDomainConfigs200ResponseAnyOf1` +`func NewGetDomainConfigsResponseAnyOf1WithDefaults() *GetDomainConfigsResponseAnyOf1` -NewGetDomainConfigs200ResponseAnyOf1WithDefaults instantiates a new GetDomainConfigs200ResponseAnyOf1 object +NewGetDomainConfigsResponseAnyOf1WithDefaults instantiates a new GetDomainConfigsResponseAnyOf1 object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetReason -`func (o *GetDomainConfigs200ResponseAnyOf1) GetReason() string` +`func (o *GetDomainConfigsResponseAnyOf1) GetReason() string` GetReason returns the Reason field if non-nil, zero value otherwise. ### GetReasonOk -`func (o *GetDomainConfigs200ResponseAnyOf1) GetReasonOk() (*string, bool)` +`func (o *GetDomainConfigsResponseAnyOf1) GetReasonOk() (*string, bool)` GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetReason -`func (o *GetDomainConfigs200ResponseAnyOf1) SetReason(v string)` +`func (o *GetDomainConfigsResponseAnyOf1) SetReason(v string)` SetReason sets Reason field to given value. ### GetCode -`func (o *GetDomainConfigs200ResponseAnyOf1) GetCode() string` +`func (o *GetDomainConfigsResponseAnyOf1) GetCode() string` GetCode returns the Code field if non-nil, zero value otherwise. ### GetCodeOk -`func (o *GetDomainConfigs200ResponseAnyOf1) GetCodeOk() (*string, bool)` +`func (o *GetDomainConfigsResponseAnyOf1) GetCodeOk() (*string, bool)` GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCode -`func (o *GetDomainConfigs200ResponseAnyOf1) SetCode(v string)` +`func (o *GetDomainConfigsResponseAnyOf1) SetCode(v string)` SetCode sets Code field to given value. ### GetStatus -`func (o *GetDomainConfigs200ResponseAnyOf1) GetStatus() interface{}` +`func (o *GetDomainConfigsResponseAnyOf1) GetStatus() interface{}` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *GetDomainConfigs200ResponseAnyOf1) GetStatusOk() (*interface{}, bool)` +`func (o *GetDomainConfigsResponseAnyOf1) GetStatusOk() (*interface{}, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *GetDomainConfigs200ResponseAnyOf1) SetStatus(v interface{})` +`func (o *GetDomainConfigsResponseAnyOf1) SetStatus(v interface{})` SetStatus sets Status field to given value. ### SetStatusNil -`func (o *GetDomainConfigs200ResponseAnyOf1) SetStatusNil(b bool)` +`func (o *GetDomainConfigsResponseAnyOf1) SetStatusNil(b bool)` SetStatusNil sets the value for Status to be an explicit nil ### UnsetStatus -`func (o *GetDomainConfigs200ResponseAnyOf1) UnsetStatus()` +`func (o *GetDomainConfigsResponseAnyOf1) UnsetStatus()` UnsetStatus ensures that no value is present for Status, not even an explicit nil diff --git a/client/docs/GetEmailTemplate200Response.md b/client/docs/GetEmailTemplate200Response.md deleted file mode 100644 index ecb26f5..0000000 --- a/client/docs/GetEmailTemplate200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetEmailTemplate200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**EmailTemplate** | [**CustomEmailTemplate**](CustomEmailTemplate.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetEmailTemplate200Response - -`func NewGetEmailTemplate200Response(status APIStatus, emailTemplate CustomEmailTemplate, reason string, code string, ) *GetEmailTemplate200Response` - -NewGetEmailTemplate200Response instantiates a new GetEmailTemplate200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetEmailTemplate200ResponseWithDefaults - -`func NewGetEmailTemplate200ResponseWithDefaults() *GetEmailTemplate200Response` - -NewGetEmailTemplate200ResponseWithDefaults instantiates a new GetEmailTemplate200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetEmailTemplate200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetEmailTemplate200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetEmailTemplate200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetEmailTemplate - -`func (o *GetEmailTemplate200Response) GetEmailTemplate() CustomEmailTemplate` - -GetEmailTemplate returns the EmailTemplate field if non-nil, zero value otherwise. - -### GetEmailTemplateOk - -`func (o *GetEmailTemplate200Response) GetEmailTemplateOk() (*CustomEmailTemplate, bool)` - -GetEmailTemplateOk returns a tuple with the EmailTemplate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEmailTemplate - -`func (o *GetEmailTemplate200Response) SetEmailTemplate(v CustomEmailTemplate)` - -SetEmailTemplate sets EmailTemplate field to given value. - - -### GetReason - -`func (o *GetEmailTemplate200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetEmailTemplate200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetEmailTemplate200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetEmailTemplate200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetEmailTemplate200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetEmailTemplate200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetEmailTemplate200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetEmailTemplate200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetEmailTemplate200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetEmailTemplate200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetEmailTemplate200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetEmailTemplate200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetEmailTemplate200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetEmailTemplate200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetEmailTemplate200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetEmailTemplate200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetEmailTemplate200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetEmailTemplate200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetEmailTemplate200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetEmailTemplate200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetEmailTemplate200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetEmailTemplate200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetEmailTemplate200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetEmailTemplate200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetEmailTemplate200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetEmailTemplate200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetEmailTemplateDefinitions200Response.md b/client/docs/GetEmailTemplateDefinitions200Response.md deleted file mode 100644 index 855adae..0000000 --- a/client/docs/GetEmailTemplateDefinitions200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetEmailTemplateDefinitions200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**Definitions** | [**[]EmailTemplateDefinition**](EmailTemplateDefinition.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetEmailTemplateDefinitions200Response - -`func NewGetEmailTemplateDefinitions200Response(status APIStatus, definitions []EmailTemplateDefinition, reason string, code string, ) *GetEmailTemplateDefinitions200Response` - -NewGetEmailTemplateDefinitions200Response instantiates a new GetEmailTemplateDefinitions200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetEmailTemplateDefinitions200ResponseWithDefaults - -`func NewGetEmailTemplateDefinitions200ResponseWithDefaults() *GetEmailTemplateDefinitions200Response` - -NewGetEmailTemplateDefinitions200ResponseWithDefaults instantiates a new GetEmailTemplateDefinitions200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetEmailTemplateDefinitions200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetEmailTemplateDefinitions200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetEmailTemplateDefinitions200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetDefinitions - -`func (o *GetEmailTemplateDefinitions200Response) GetDefinitions() []EmailTemplateDefinition` - -GetDefinitions returns the Definitions field if non-nil, zero value otherwise. - -### GetDefinitionsOk - -`func (o *GetEmailTemplateDefinitions200Response) GetDefinitionsOk() (*[]EmailTemplateDefinition, bool)` - -GetDefinitionsOk returns a tuple with the Definitions field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDefinitions - -`func (o *GetEmailTemplateDefinitions200Response) SetDefinitions(v []EmailTemplateDefinition)` - -SetDefinitions sets Definitions field to given value. - - -### GetReason - -`func (o *GetEmailTemplateDefinitions200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetEmailTemplateDefinitions200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetEmailTemplateDefinitions200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetEmailTemplateDefinitions200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetEmailTemplateDefinitions200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetEmailTemplateDefinitions200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetEmailTemplateDefinitions200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetEmailTemplateDefinitions200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetEmailTemplateDefinitions200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetEmailTemplateDefinitions200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetEmailTemplateDefinitions200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetEmailTemplateDefinitions200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetEmailTemplateDefinitions200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetEmailTemplateDefinitions200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetEmailTemplateDefinitions200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetEmailTemplateDefinitions200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetEmailTemplateDefinitions200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetEmailTemplateDefinitions200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetEmailTemplateDefinitions200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetEmailTemplateDefinitions200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetEmailTemplateDefinitions200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetEmailTemplateDefinitions200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetEmailTemplateDefinitions200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetEmailTemplateDefinitions200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetEmailTemplateDefinitions200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetEmailTemplateDefinitions200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetEmailTemplateRenderErrors200Response.md b/client/docs/GetEmailTemplateRenderErrors200Response.md deleted file mode 100644 index 486eec8..0000000 --- a/client/docs/GetEmailTemplateRenderErrors200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetEmailTemplateRenderErrors200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**RenderErrors** | [**[]EmailTemplateRenderErrorResponse**](EmailTemplateRenderErrorResponse.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetEmailTemplateRenderErrors200Response - -`func NewGetEmailTemplateRenderErrors200Response(status APIStatus, renderErrors []EmailTemplateRenderErrorResponse, reason string, code string, ) *GetEmailTemplateRenderErrors200Response` - -NewGetEmailTemplateRenderErrors200Response instantiates a new GetEmailTemplateRenderErrors200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetEmailTemplateRenderErrors200ResponseWithDefaults - -`func NewGetEmailTemplateRenderErrors200ResponseWithDefaults() *GetEmailTemplateRenderErrors200Response` - -NewGetEmailTemplateRenderErrors200ResponseWithDefaults instantiates a new GetEmailTemplateRenderErrors200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetEmailTemplateRenderErrors200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetEmailTemplateRenderErrors200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetEmailTemplateRenderErrors200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetRenderErrors - -`func (o *GetEmailTemplateRenderErrors200Response) GetRenderErrors() []EmailTemplateRenderErrorResponse` - -GetRenderErrors returns the RenderErrors field if non-nil, zero value otherwise. - -### GetRenderErrorsOk - -`func (o *GetEmailTemplateRenderErrors200Response) GetRenderErrorsOk() (*[]EmailTemplateRenderErrorResponse, bool)` - -GetRenderErrorsOk returns a tuple with the RenderErrors field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRenderErrors - -`func (o *GetEmailTemplateRenderErrors200Response) SetRenderErrors(v []EmailTemplateRenderErrorResponse)` - -SetRenderErrors sets RenderErrors field to given value. - - -### GetReason - -`func (o *GetEmailTemplateRenderErrors200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetEmailTemplateRenderErrors200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetEmailTemplateRenderErrors200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetEmailTemplateRenderErrors200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetEmailTemplateRenderErrors200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetEmailTemplateRenderErrors200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetEmailTemplateRenderErrors200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetEmailTemplateRenderErrors200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetEmailTemplateRenderErrors200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetEmailTemplateRenderErrors200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetEmailTemplateRenderErrors200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetEmailTemplateRenderErrors200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetEmailTemplateRenderErrors200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetEmailTemplateRenderErrors200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetEmailTemplateRenderErrors200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetEmailTemplateRenderErrors200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetEmailTemplateRenderErrors200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetEmailTemplateRenderErrors200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetEmailTemplateRenderErrors200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetEmailTemplateRenderErrors200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetEmailTemplateRenderErrors200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetEmailTemplateRenderErrors200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetEmailTemplateRenderErrors200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetEmailTemplateRenderErrors200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetEmailTemplateRenderErrors200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetEmailTemplateRenderErrors200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetEmailTemplates200Response.md b/client/docs/GetEmailTemplates200Response.md deleted file mode 100644 index 860db24..0000000 --- a/client/docs/GetEmailTemplates200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetEmailTemplates200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**EmailTemplates** | [**[]CustomEmailTemplate**](CustomEmailTemplate.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetEmailTemplates200Response - -`func NewGetEmailTemplates200Response(status APIStatus, emailTemplates []CustomEmailTemplate, reason string, code string, ) *GetEmailTemplates200Response` - -NewGetEmailTemplates200Response instantiates a new GetEmailTemplates200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetEmailTemplates200ResponseWithDefaults - -`func NewGetEmailTemplates200ResponseWithDefaults() *GetEmailTemplates200Response` - -NewGetEmailTemplates200ResponseWithDefaults instantiates a new GetEmailTemplates200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetEmailTemplates200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetEmailTemplates200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetEmailTemplates200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetEmailTemplates - -`func (o *GetEmailTemplates200Response) GetEmailTemplates() []CustomEmailTemplate` - -GetEmailTemplates returns the EmailTemplates field if non-nil, zero value otherwise. - -### GetEmailTemplatesOk - -`func (o *GetEmailTemplates200Response) GetEmailTemplatesOk() (*[]CustomEmailTemplate, bool)` - -GetEmailTemplatesOk returns a tuple with the EmailTemplates field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEmailTemplates - -`func (o *GetEmailTemplates200Response) SetEmailTemplates(v []CustomEmailTemplate)` - -SetEmailTemplates sets EmailTemplates field to given value. - - -### GetReason - -`func (o *GetEmailTemplates200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetEmailTemplates200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetEmailTemplates200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetEmailTemplates200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetEmailTemplates200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetEmailTemplates200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetEmailTemplates200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetEmailTemplates200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetEmailTemplates200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetEmailTemplates200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetEmailTemplates200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetEmailTemplates200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetEmailTemplates200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetEmailTemplates200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetEmailTemplates200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetEmailTemplates200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetEmailTemplates200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetEmailTemplates200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetEmailTemplates200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetEmailTemplates200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetEmailTemplates200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetEmailTemplates200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetEmailTemplates200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetEmailTemplates200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetEmailTemplates200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetEmailTemplates200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetEventLog200Response.md b/client/docs/GetEventLog200Response.md deleted file mode 100644 index 880f927..0000000 --- a/client/docs/GetEventLog200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetEventLog200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Events** | [**[]EventLogEntry**](EventLogEntry.md) | | -**Status** | [**APIStatus**](APIStatus.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetEventLog200Response - -`func NewGetEventLog200Response(events []EventLogEntry, status APIStatus, reason string, code string, ) *GetEventLog200Response` - -NewGetEventLog200Response instantiates a new GetEventLog200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetEventLog200ResponseWithDefaults - -`func NewGetEventLog200ResponseWithDefaults() *GetEventLog200Response` - -NewGetEventLog200ResponseWithDefaults instantiates a new GetEventLog200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetEvents - -`func (o *GetEventLog200Response) GetEvents() []EventLogEntry` - -GetEvents returns the Events field if non-nil, zero value otherwise. - -### GetEventsOk - -`func (o *GetEventLog200Response) GetEventsOk() (*[]EventLogEntry, bool)` - -GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEvents - -`func (o *GetEventLog200Response) SetEvents(v []EventLogEntry)` - -SetEvents sets Events field to given value. - - -### GetStatus - -`func (o *GetEventLog200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetEventLog200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetEventLog200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetReason - -`func (o *GetEventLog200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetEventLog200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetEventLog200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetEventLog200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetEventLog200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetEventLog200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetEventLog200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetEventLog200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetEventLog200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetEventLog200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetEventLog200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetEventLog200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetEventLog200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetEventLog200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetEventLog200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetEventLog200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetEventLog200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetEventLog200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetEventLog200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetEventLog200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetEventLog200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetEventLog200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetEventLog200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetEventLog200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetEventLog200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetEventLog200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetFeedPosts200Response.md b/client/docs/GetFeedPosts200Response.md deleted file mode 100644 index 4a79960..0000000 --- a/client/docs/GetFeedPosts200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetFeedPosts200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**FeedPosts** | [**[]FeedPost**](FeedPost.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetFeedPosts200Response - -`func NewGetFeedPosts200Response(status APIStatus, feedPosts []FeedPost, reason string, code string, ) *GetFeedPosts200Response` - -NewGetFeedPosts200Response instantiates a new GetFeedPosts200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetFeedPosts200ResponseWithDefaults - -`func NewGetFeedPosts200ResponseWithDefaults() *GetFeedPosts200Response` - -NewGetFeedPosts200ResponseWithDefaults instantiates a new GetFeedPosts200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetFeedPosts200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetFeedPosts200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetFeedPosts200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetFeedPosts - -`func (o *GetFeedPosts200Response) GetFeedPosts() []FeedPost` - -GetFeedPosts returns the FeedPosts field if non-nil, zero value otherwise. - -### GetFeedPostsOk - -`func (o *GetFeedPosts200Response) GetFeedPostsOk() (*[]FeedPost, bool)` - -GetFeedPostsOk returns a tuple with the FeedPosts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFeedPosts - -`func (o *GetFeedPosts200Response) SetFeedPosts(v []FeedPost)` - -SetFeedPosts sets FeedPosts field to given value. - - -### GetReason - -`func (o *GetFeedPosts200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetFeedPosts200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetFeedPosts200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetFeedPosts200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetFeedPosts200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetFeedPosts200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetFeedPosts200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetFeedPosts200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetFeedPosts200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetFeedPosts200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetFeedPosts200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetFeedPosts200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetFeedPosts200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetFeedPosts200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetFeedPosts200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetFeedPosts200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetFeedPosts200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetFeedPosts200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetFeedPosts200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetFeedPosts200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetFeedPosts200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetFeedPosts200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetFeedPosts200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetFeedPosts200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetFeedPosts200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetFeedPosts200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetFeedPostsPublic200Response.md b/client/docs/GetFeedPostsPublic200Response.md deleted file mode 100644 index 3809e10..0000000 --- a/client/docs/GetFeedPostsPublic200Response.md +++ /dev/null @@ -1,384 +0,0 @@ -# GetFeedPostsPublic200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**MyReacts** | Pointer to **map[string]map[string]bool** | | [optional] -**Status** | [**APIStatus**](APIStatus.md) | | -**FeedPosts** | [**[]FeedPost**](FeedPost.md) | | -**User** | Pointer to [**NullableUserSessionInfo**](UserSessionInfo.md) | | [optional] -**UrlIdWS** | Pointer to **string** | | [optional] -**UserIdWS** | Pointer to **string** | | [optional] -**TenantIdWS** | Pointer to **string** | | [optional] -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetFeedPostsPublic200Response - -`func NewGetFeedPostsPublic200Response(status APIStatus, feedPosts []FeedPost, reason string, code string, ) *GetFeedPostsPublic200Response` - -NewGetFeedPostsPublic200Response instantiates a new GetFeedPostsPublic200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetFeedPostsPublic200ResponseWithDefaults - -`func NewGetFeedPostsPublic200ResponseWithDefaults() *GetFeedPostsPublic200Response` - -NewGetFeedPostsPublic200ResponseWithDefaults instantiates a new GetFeedPostsPublic200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetMyReacts - -`func (o *GetFeedPostsPublic200Response) GetMyReacts() map[string]map[string]bool` - -GetMyReacts returns the MyReacts field if non-nil, zero value otherwise. - -### GetMyReactsOk - -`func (o *GetFeedPostsPublic200Response) GetMyReactsOk() (*map[string]map[string]bool, bool)` - -GetMyReactsOk returns a tuple with the MyReacts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMyReacts - -`func (o *GetFeedPostsPublic200Response) SetMyReacts(v map[string]map[string]bool)` - -SetMyReacts sets MyReacts field to given value. - -### HasMyReacts - -`func (o *GetFeedPostsPublic200Response) HasMyReacts() bool` - -HasMyReacts returns a boolean if a field has been set. - -### GetStatus - -`func (o *GetFeedPostsPublic200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetFeedPostsPublic200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetFeedPostsPublic200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetFeedPosts - -`func (o *GetFeedPostsPublic200Response) GetFeedPosts() []FeedPost` - -GetFeedPosts returns the FeedPosts field if non-nil, zero value otherwise. - -### GetFeedPostsOk - -`func (o *GetFeedPostsPublic200Response) GetFeedPostsOk() (*[]FeedPost, bool)` - -GetFeedPostsOk returns a tuple with the FeedPosts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFeedPosts - -`func (o *GetFeedPostsPublic200Response) SetFeedPosts(v []FeedPost)` - -SetFeedPosts sets FeedPosts field to given value. - - -### GetUser - -`func (o *GetFeedPostsPublic200Response) GetUser() UserSessionInfo` - -GetUser returns the User field if non-nil, zero value otherwise. - -### GetUserOk - -`func (o *GetFeedPostsPublic200Response) GetUserOk() (*UserSessionInfo, bool)` - -GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUser - -`func (o *GetFeedPostsPublic200Response) SetUser(v UserSessionInfo)` - -SetUser sets User field to given value. - -### HasUser - -`func (o *GetFeedPostsPublic200Response) HasUser() bool` - -HasUser returns a boolean if a field has been set. - -### SetUserNil - -`func (o *GetFeedPostsPublic200Response) SetUserNil(b bool)` - - SetUserNil sets the value for User to be an explicit nil - -### UnsetUser -`func (o *GetFeedPostsPublic200Response) UnsetUser()` - -UnsetUser ensures that no value is present for User, not even an explicit nil -### GetUrlIdWS - -`func (o *GetFeedPostsPublic200Response) GetUrlIdWS() string` - -GetUrlIdWS returns the UrlIdWS field if non-nil, zero value otherwise. - -### GetUrlIdWSOk - -`func (o *GetFeedPostsPublic200Response) GetUrlIdWSOk() (*string, bool)` - -GetUrlIdWSOk returns a tuple with the UrlIdWS field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUrlIdWS - -`func (o *GetFeedPostsPublic200Response) SetUrlIdWS(v string)` - -SetUrlIdWS sets UrlIdWS field to given value. - -### HasUrlIdWS - -`func (o *GetFeedPostsPublic200Response) HasUrlIdWS() bool` - -HasUrlIdWS returns a boolean if a field has been set. - -### GetUserIdWS - -`func (o *GetFeedPostsPublic200Response) GetUserIdWS() string` - -GetUserIdWS returns the UserIdWS field if non-nil, zero value otherwise. - -### GetUserIdWSOk - -`func (o *GetFeedPostsPublic200Response) GetUserIdWSOk() (*string, bool)` - -GetUserIdWSOk returns a tuple with the UserIdWS field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUserIdWS - -`func (o *GetFeedPostsPublic200Response) SetUserIdWS(v string)` - -SetUserIdWS sets UserIdWS field to given value. - -### HasUserIdWS - -`func (o *GetFeedPostsPublic200Response) HasUserIdWS() bool` - -HasUserIdWS returns a boolean if a field has been set. - -### GetTenantIdWS - -`func (o *GetFeedPostsPublic200Response) GetTenantIdWS() string` - -GetTenantIdWS returns the TenantIdWS field if non-nil, zero value otherwise. - -### GetTenantIdWSOk - -`func (o *GetFeedPostsPublic200Response) GetTenantIdWSOk() (*string, bool)` - -GetTenantIdWSOk returns a tuple with the TenantIdWS field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenantIdWS - -`func (o *GetFeedPostsPublic200Response) SetTenantIdWS(v string)` - -SetTenantIdWS sets TenantIdWS field to given value. - -### HasTenantIdWS - -`func (o *GetFeedPostsPublic200Response) HasTenantIdWS() bool` - -HasTenantIdWS returns a boolean if a field has been set. - -### GetReason - -`func (o *GetFeedPostsPublic200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetFeedPostsPublic200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetFeedPostsPublic200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetFeedPostsPublic200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetFeedPostsPublic200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetFeedPostsPublic200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetFeedPostsPublic200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetFeedPostsPublic200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetFeedPostsPublic200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetFeedPostsPublic200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetFeedPostsPublic200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetFeedPostsPublic200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetFeedPostsPublic200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetFeedPostsPublic200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetFeedPostsPublic200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetFeedPostsPublic200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetFeedPostsPublic200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetFeedPostsPublic200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetFeedPostsPublic200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetFeedPostsPublic200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetFeedPostsPublic200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetFeedPostsPublic200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetFeedPostsPublic200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetFeedPostsPublic200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetFeedPostsPublic200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetFeedPostsPublic200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetFeedPostsStats200Response.md b/client/docs/GetFeedPostsStats200Response.md deleted file mode 100644 index a7a11ff..0000000 --- a/client/docs/GetFeedPostsStats200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetFeedPostsStats200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**Stats** | [**map[string]FeedPostStats**](FeedPostStats.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetFeedPostsStats200Response - -`func NewGetFeedPostsStats200Response(status APIStatus, stats map[string]FeedPostStats, reason string, code string, ) *GetFeedPostsStats200Response` - -NewGetFeedPostsStats200Response instantiates a new GetFeedPostsStats200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetFeedPostsStats200ResponseWithDefaults - -`func NewGetFeedPostsStats200ResponseWithDefaults() *GetFeedPostsStats200Response` - -NewGetFeedPostsStats200ResponseWithDefaults instantiates a new GetFeedPostsStats200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetFeedPostsStats200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetFeedPostsStats200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetFeedPostsStats200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetStats - -`func (o *GetFeedPostsStats200Response) GetStats() map[string]FeedPostStats` - -GetStats returns the Stats field if non-nil, zero value otherwise. - -### GetStatsOk - -`func (o *GetFeedPostsStats200Response) GetStatsOk() (*map[string]FeedPostStats, bool)` - -GetStatsOk returns a tuple with the Stats field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStats - -`func (o *GetFeedPostsStats200Response) SetStats(v map[string]FeedPostStats)` - -SetStats sets Stats field to given value. - - -### GetReason - -`func (o *GetFeedPostsStats200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetFeedPostsStats200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetFeedPostsStats200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetFeedPostsStats200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetFeedPostsStats200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetFeedPostsStats200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetFeedPostsStats200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetFeedPostsStats200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetFeedPostsStats200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetFeedPostsStats200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetFeedPostsStats200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetFeedPostsStats200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetFeedPostsStats200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetFeedPostsStats200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetFeedPostsStats200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetFeedPostsStats200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetFeedPostsStats200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetFeedPostsStats200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetFeedPostsStats200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetFeedPostsStats200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetFeedPostsStats200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetFeedPostsStats200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetFeedPostsStats200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetFeedPostsStats200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetFeedPostsStats200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetFeedPostsStats200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetGifsSearchResponse.md b/client/docs/GetGifsSearchResponse.md new file mode 100644 index 0000000..02c764b --- /dev/null +++ b/client/docs/GetGifsSearchResponse.md @@ -0,0 +1,93 @@ +# GetGifsSearchResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Images** | [**[][]GifSearchResponseImagesInnerInner**]([]GifSearchResponseImagesInnerInner.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | +**Code** | **string** | | + +## Methods + +### NewGetGifsSearchResponse + +`func NewGetGifsSearchResponse(images [][]GifSearchResponseImagesInnerInner, status APIStatus, code string, ) *GetGifsSearchResponse` + +NewGetGifsSearchResponse instantiates a new GetGifsSearchResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetGifsSearchResponseWithDefaults + +`func NewGetGifsSearchResponseWithDefaults() *GetGifsSearchResponse` + +NewGetGifsSearchResponseWithDefaults instantiates a new GetGifsSearchResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetImages + +`func (o *GetGifsSearchResponse) GetImages() [][]GifSearchResponseImagesInnerInner` + +GetImages returns the Images field if non-nil, zero value otherwise. + +### GetImagesOk + +`func (o *GetGifsSearchResponse) GetImagesOk() (*[][]GifSearchResponseImagesInnerInner, bool)` + +GetImagesOk returns a tuple with the Images field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImages + +`func (o *GetGifsSearchResponse) SetImages(v [][]GifSearchResponseImagesInnerInner)` + +SetImages sets Images field to given value. + + +### GetStatus + +`func (o *GetGifsSearchResponse) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GetGifsSearchResponse) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *GetGifsSearchResponse) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + +### GetCode + +`func (o *GetGifsSearchResponse) GetCode() string` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *GetGifsSearchResponse) GetCodeOk() (*string, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *GetGifsSearchResponse) SetCode(v string)` + +SetCode sets Code field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetGifsTrendingResponse.md b/client/docs/GetGifsTrendingResponse.md new file mode 100644 index 0000000..704113c --- /dev/null +++ b/client/docs/GetGifsTrendingResponse.md @@ -0,0 +1,93 @@ +# GetGifsTrendingResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Images** | [**[][]GifSearchResponseImagesInnerInner**]([]GifSearchResponseImagesInnerInner.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | +**Code** | **string** | | + +## Methods + +### NewGetGifsTrendingResponse + +`func NewGetGifsTrendingResponse(images [][]GifSearchResponseImagesInnerInner, status APIStatus, code string, ) *GetGifsTrendingResponse` + +NewGetGifsTrendingResponse instantiates a new GetGifsTrendingResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetGifsTrendingResponseWithDefaults + +`func NewGetGifsTrendingResponseWithDefaults() *GetGifsTrendingResponse` + +NewGetGifsTrendingResponseWithDefaults instantiates a new GetGifsTrendingResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetImages + +`func (o *GetGifsTrendingResponse) GetImages() [][]GifSearchResponseImagesInnerInner` + +GetImages returns the Images field if non-nil, zero value otherwise. + +### GetImagesOk + +`func (o *GetGifsTrendingResponse) GetImagesOk() (*[][]GifSearchResponseImagesInnerInner, bool)` + +GetImagesOk returns a tuple with the Images field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImages + +`func (o *GetGifsTrendingResponse) SetImages(v [][]GifSearchResponseImagesInnerInner)` + +SetImages sets Images field to given value. + + +### GetStatus + +`func (o *GetGifsTrendingResponse) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GetGifsTrendingResponse) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *GetGifsTrendingResponse) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + +### GetCode + +`func (o *GetGifsTrendingResponse) GetCode() string` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *GetGifsTrendingResponse) GetCodeOk() (*string, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *GetGifsTrendingResponse) SetCode(v string)` + +SetCode sets Code field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetHashTags200Response.md b/client/docs/GetHashTags200Response.md deleted file mode 100644 index be5131d..0000000 --- a/client/docs/GetHashTags200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetHashTags200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**HashTags** | [**[]TenantHashTag**](TenantHashTag.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetHashTags200Response - -`func NewGetHashTags200Response(status APIStatus, hashTags []TenantHashTag, reason string, code string, ) *GetHashTags200Response` - -NewGetHashTags200Response instantiates a new GetHashTags200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetHashTags200ResponseWithDefaults - -`func NewGetHashTags200ResponseWithDefaults() *GetHashTags200Response` - -NewGetHashTags200ResponseWithDefaults instantiates a new GetHashTags200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetHashTags200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetHashTags200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetHashTags200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetHashTags - -`func (o *GetHashTags200Response) GetHashTags() []TenantHashTag` - -GetHashTags returns the HashTags field if non-nil, zero value otherwise. - -### GetHashTagsOk - -`func (o *GetHashTags200Response) GetHashTagsOk() (*[]TenantHashTag, bool)` - -GetHashTagsOk returns a tuple with the HashTags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHashTags - -`func (o *GetHashTags200Response) SetHashTags(v []TenantHashTag)` - -SetHashTags sets HashTags field to given value. - - -### GetReason - -`func (o *GetHashTags200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetHashTags200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetHashTags200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetHashTags200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetHashTags200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetHashTags200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetHashTags200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetHashTags200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetHashTags200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetHashTags200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetHashTags200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetHashTags200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetHashTags200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetHashTags200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetHashTags200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetHashTags200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetHashTags200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetHashTags200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetHashTags200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetHashTags200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetHashTags200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetHashTags200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetHashTags200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetHashTags200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetHashTags200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetHashTags200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetModerator200Response.md b/client/docs/GetModerator200Response.md deleted file mode 100644 index e494cd9..0000000 --- a/client/docs/GetModerator200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetModerator200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**Moderator** | [**Moderator**](Moderator.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetModerator200Response - -`func NewGetModerator200Response(status APIStatus, moderator Moderator, reason string, code string, ) *GetModerator200Response` - -NewGetModerator200Response instantiates a new GetModerator200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetModerator200ResponseWithDefaults - -`func NewGetModerator200ResponseWithDefaults() *GetModerator200Response` - -NewGetModerator200ResponseWithDefaults instantiates a new GetModerator200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetModerator200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetModerator200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetModerator200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetModerator - -`func (o *GetModerator200Response) GetModerator() Moderator` - -GetModerator returns the Moderator field if non-nil, zero value otherwise. - -### GetModeratorOk - -`func (o *GetModerator200Response) GetModeratorOk() (*Moderator, bool)` - -GetModeratorOk returns a tuple with the Moderator field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetModerator - -`func (o *GetModerator200Response) SetModerator(v Moderator)` - -SetModerator sets Moderator field to given value. - - -### GetReason - -`func (o *GetModerator200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetModerator200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetModerator200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetModerator200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetModerator200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetModerator200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetModerator200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetModerator200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetModerator200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetModerator200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetModerator200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetModerator200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetModerator200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetModerator200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetModerator200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetModerator200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetModerator200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetModerator200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetModerator200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetModerator200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetModerator200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetModerator200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetModerator200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetModerator200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetModerator200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetModerator200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetModerators200Response.md b/client/docs/GetModerators200Response.md deleted file mode 100644 index 77b5cd2..0000000 --- a/client/docs/GetModerators200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetModerators200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**Moderators** | [**[]Moderator**](Moderator.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetModerators200Response - -`func NewGetModerators200Response(status APIStatus, moderators []Moderator, reason string, code string, ) *GetModerators200Response` - -NewGetModerators200Response instantiates a new GetModerators200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetModerators200ResponseWithDefaults - -`func NewGetModerators200ResponseWithDefaults() *GetModerators200Response` - -NewGetModerators200ResponseWithDefaults instantiates a new GetModerators200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetModerators200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetModerators200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetModerators200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetModerators - -`func (o *GetModerators200Response) GetModerators() []Moderator` - -GetModerators returns the Moderators field if non-nil, zero value otherwise. - -### GetModeratorsOk - -`func (o *GetModerators200Response) GetModeratorsOk() (*[]Moderator, bool)` - -GetModeratorsOk returns a tuple with the Moderators field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetModerators - -`func (o *GetModerators200Response) SetModerators(v []Moderator)` - -SetModerators sets Moderators field to given value. - - -### GetReason - -`func (o *GetModerators200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetModerators200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetModerators200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetModerators200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetModerators200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetModerators200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetModerators200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetModerators200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetModerators200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetModerators200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetModerators200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetModerators200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetModerators200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetModerators200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetModerators200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetModerators200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetModerators200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetModerators200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetModerators200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetModerators200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetModerators200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetModerators200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetModerators200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetModerators200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetModerators200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetModerators200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetNotificationCount200Response.md b/client/docs/GetNotificationCount200Response.md deleted file mode 100644 index 5d9f688..0000000 --- a/client/docs/GetNotificationCount200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetNotificationCount200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**Count** | **float64** | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetNotificationCount200Response - -`func NewGetNotificationCount200Response(status APIStatus, count float64, reason string, code string, ) *GetNotificationCount200Response` - -NewGetNotificationCount200Response instantiates a new GetNotificationCount200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetNotificationCount200ResponseWithDefaults - -`func NewGetNotificationCount200ResponseWithDefaults() *GetNotificationCount200Response` - -NewGetNotificationCount200ResponseWithDefaults instantiates a new GetNotificationCount200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetNotificationCount200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetNotificationCount200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetNotificationCount200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetCount - -`func (o *GetNotificationCount200Response) GetCount() float64` - -GetCount returns the Count field if non-nil, zero value otherwise. - -### GetCountOk - -`func (o *GetNotificationCount200Response) GetCountOk() (*float64, bool)` - -GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCount - -`func (o *GetNotificationCount200Response) SetCount(v float64)` - -SetCount sets Count field to given value. - - -### GetReason - -`func (o *GetNotificationCount200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetNotificationCount200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetNotificationCount200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetNotificationCount200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetNotificationCount200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetNotificationCount200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetNotificationCount200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetNotificationCount200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetNotificationCount200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetNotificationCount200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetNotificationCount200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetNotificationCount200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetNotificationCount200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetNotificationCount200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetNotificationCount200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetNotificationCount200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetNotificationCount200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetNotificationCount200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetNotificationCount200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetNotificationCount200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetNotificationCount200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetNotificationCount200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetNotificationCount200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetNotificationCount200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetNotificationCount200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetNotificationCount200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetNotifications200Response.md b/client/docs/GetNotifications200Response.md deleted file mode 100644 index 08336df..0000000 --- a/client/docs/GetNotifications200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetNotifications200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**Notifications** | [**[]UserNotification**](UserNotification.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetNotifications200Response - -`func NewGetNotifications200Response(status APIStatus, notifications []UserNotification, reason string, code string, ) *GetNotifications200Response` - -NewGetNotifications200Response instantiates a new GetNotifications200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetNotifications200ResponseWithDefaults - -`func NewGetNotifications200ResponseWithDefaults() *GetNotifications200Response` - -NewGetNotifications200ResponseWithDefaults instantiates a new GetNotifications200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetNotifications200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetNotifications200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetNotifications200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetNotifications - -`func (o *GetNotifications200Response) GetNotifications() []UserNotification` - -GetNotifications returns the Notifications field if non-nil, zero value otherwise. - -### GetNotificationsOk - -`func (o *GetNotifications200Response) GetNotificationsOk() (*[]UserNotification, bool)` - -GetNotificationsOk returns a tuple with the Notifications field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNotifications - -`func (o *GetNotifications200Response) SetNotifications(v []UserNotification)` - -SetNotifications sets Notifications field to given value. - - -### GetReason - -`func (o *GetNotifications200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetNotifications200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetNotifications200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetNotifications200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetNotifications200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetNotifications200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetNotifications200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetNotifications200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetNotifications200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetNotifications200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetNotifications200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetNotifications200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetNotifications200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetNotifications200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetNotifications200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetNotifications200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetNotifications200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetNotifications200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetNotifications200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetNotifications200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetNotifications200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetNotifications200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetNotifications200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetNotifications200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetNotifications200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetNotifications200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetPendingWebhookEvents200Response.md b/client/docs/GetPendingWebhookEvents200Response.md deleted file mode 100644 index 248e12b..0000000 --- a/client/docs/GetPendingWebhookEvents200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetPendingWebhookEvents200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**PendingWebhookEvents** | [**[]PendingCommentToSyncOutbound**](PendingCommentToSyncOutbound.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetPendingWebhookEvents200Response - -`func NewGetPendingWebhookEvents200Response(status APIStatus, pendingWebhookEvents []PendingCommentToSyncOutbound, reason string, code string, ) *GetPendingWebhookEvents200Response` - -NewGetPendingWebhookEvents200Response instantiates a new GetPendingWebhookEvents200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetPendingWebhookEvents200ResponseWithDefaults - -`func NewGetPendingWebhookEvents200ResponseWithDefaults() *GetPendingWebhookEvents200Response` - -NewGetPendingWebhookEvents200ResponseWithDefaults instantiates a new GetPendingWebhookEvents200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetPendingWebhookEvents200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetPendingWebhookEvents200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetPendingWebhookEvents200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetPendingWebhookEvents - -`func (o *GetPendingWebhookEvents200Response) GetPendingWebhookEvents() []PendingCommentToSyncOutbound` - -GetPendingWebhookEvents returns the PendingWebhookEvents field if non-nil, zero value otherwise. - -### GetPendingWebhookEventsOk - -`func (o *GetPendingWebhookEvents200Response) GetPendingWebhookEventsOk() (*[]PendingCommentToSyncOutbound, bool)` - -GetPendingWebhookEventsOk returns a tuple with the PendingWebhookEvents field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPendingWebhookEvents - -`func (o *GetPendingWebhookEvents200Response) SetPendingWebhookEvents(v []PendingCommentToSyncOutbound)` - -SetPendingWebhookEvents sets PendingWebhookEvents field to given value. - - -### GetReason - -`func (o *GetPendingWebhookEvents200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetPendingWebhookEvents200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetPendingWebhookEvents200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetPendingWebhookEvents200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetPendingWebhookEvents200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetPendingWebhookEvents200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetPendingWebhookEvents200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetPendingWebhookEvents200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetPendingWebhookEvents200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetPendingWebhookEvents200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetPendingWebhookEvents200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetPendingWebhookEvents200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetPendingWebhookEvents200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetPendingWebhookEvents200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetPendingWebhookEvents200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetPendingWebhookEvents200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetPendingWebhookEvents200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetPendingWebhookEvents200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetPendingWebhookEvents200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetPendingWebhookEvents200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetPendingWebhookEvents200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetPendingWebhookEvents200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetPendingWebhookEvents200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetPendingWebhookEvents200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetPendingWebhookEvents200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetPendingWebhookEvents200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetPublicPagesResponse.md b/client/docs/GetPublicPagesResponse.md new file mode 100644 index 0000000..575f4f0 --- /dev/null +++ b/client/docs/GetPublicPagesResponse.md @@ -0,0 +1,103 @@ +# GetPublicPagesResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NextCursor** | **NullableString** | | +**Pages** | [**[]PublicPage**](PublicPage.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | + +## Methods + +### NewGetPublicPagesResponse + +`func NewGetPublicPagesResponse(nextCursor NullableString, pages []PublicPage, status APIStatus, ) *GetPublicPagesResponse` + +NewGetPublicPagesResponse instantiates a new GetPublicPagesResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetPublicPagesResponseWithDefaults + +`func NewGetPublicPagesResponseWithDefaults() *GetPublicPagesResponse` + +NewGetPublicPagesResponseWithDefaults instantiates a new GetPublicPagesResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNextCursor + +`func (o *GetPublicPagesResponse) GetNextCursor() string` + +GetNextCursor returns the NextCursor field if non-nil, zero value otherwise. + +### GetNextCursorOk + +`func (o *GetPublicPagesResponse) GetNextCursorOk() (*string, bool)` + +GetNextCursorOk returns a tuple with the NextCursor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNextCursor + +`func (o *GetPublicPagesResponse) SetNextCursor(v string)` + +SetNextCursor sets NextCursor field to given value. + + +### SetNextCursorNil + +`func (o *GetPublicPagesResponse) SetNextCursorNil(b bool)` + + SetNextCursorNil sets the value for NextCursor to be an explicit nil + +### UnsetNextCursor +`func (o *GetPublicPagesResponse) UnsetNextCursor()` + +UnsetNextCursor ensures that no value is present for NextCursor, not even an explicit nil +### GetPages + +`func (o *GetPublicPagesResponse) GetPages() []PublicPage` + +GetPages returns the Pages field if non-nil, zero value otherwise. + +### GetPagesOk + +`func (o *GetPublicPagesResponse) GetPagesOk() (*[]PublicPage, bool)` + +GetPagesOk returns a tuple with the Pages field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPages + +`func (o *GetPublicPagesResponse) SetPages(v []PublicPage)` + +SetPages sets Pages field to given value. + + +### GetStatus + +`func (o *GetPublicPagesResponse) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GetPublicPagesResponse) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *GetPublicPagesResponse) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetQuestionConfig200Response.md b/client/docs/GetQuestionConfig200Response.md deleted file mode 100644 index c27e249..0000000 --- a/client/docs/GetQuestionConfig200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetQuestionConfig200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**QuestionConfig** | [**QuestionConfig**](QuestionConfig.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetQuestionConfig200Response - -`func NewGetQuestionConfig200Response(status APIStatus, questionConfig QuestionConfig, reason string, code string, ) *GetQuestionConfig200Response` - -NewGetQuestionConfig200Response instantiates a new GetQuestionConfig200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetQuestionConfig200ResponseWithDefaults - -`func NewGetQuestionConfig200ResponseWithDefaults() *GetQuestionConfig200Response` - -NewGetQuestionConfig200ResponseWithDefaults instantiates a new GetQuestionConfig200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetQuestionConfig200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetQuestionConfig200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetQuestionConfig200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetQuestionConfig - -`func (o *GetQuestionConfig200Response) GetQuestionConfig() QuestionConfig` - -GetQuestionConfig returns the QuestionConfig field if non-nil, zero value otherwise. - -### GetQuestionConfigOk - -`func (o *GetQuestionConfig200Response) GetQuestionConfigOk() (*QuestionConfig, bool)` - -GetQuestionConfigOk returns a tuple with the QuestionConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetQuestionConfig - -`func (o *GetQuestionConfig200Response) SetQuestionConfig(v QuestionConfig)` - -SetQuestionConfig sets QuestionConfig field to given value. - - -### GetReason - -`func (o *GetQuestionConfig200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetQuestionConfig200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetQuestionConfig200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetQuestionConfig200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetQuestionConfig200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetQuestionConfig200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetQuestionConfig200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetQuestionConfig200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetQuestionConfig200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetQuestionConfig200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetQuestionConfig200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetQuestionConfig200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetQuestionConfig200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetQuestionConfig200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetQuestionConfig200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetQuestionConfig200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetQuestionConfig200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetQuestionConfig200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetQuestionConfig200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetQuestionConfig200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetQuestionConfig200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetQuestionConfig200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetQuestionConfig200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetQuestionConfig200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetQuestionConfig200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetQuestionConfig200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetQuestionConfigs200Response.md b/client/docs/GetQuestionConfigs200Response.md deleted file mode 100644 index 79de821..0000000 --- a/client/docs/GetQuestionConfigs200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetQuestionConfigs200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**QuestionConfigs** | [**[]QuestionConfig**](QuestionConfig.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetQuestionConfigs200Response - -`func NewGetQuestionConfigs200Response(status APIStatus, questionConfigs []QuestionConfig, reason string, code string, ) *GetQuestionConfigs200Response` - -NewGetQuestionConfigs200Response instantiates a new GetQuestionConfigs200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetQuestionConfigs200ResponseWithDefaults - -`func NewGetQuestionConfigs200ResponseWithDefaults() *GetQuestionConfigs200Response` - -NewGetQuestionConfigs200ResponseWithDefaults instantiates a new GetQuestionConfigs200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetQuestionConfigs200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetQuestionConfigs200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetQuestionConfigs200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetQuestionConfigs - -`func (o *GetQuestionConfigs200Response) GetQuestionConfigs() []QuestionConfig` - -GetQuestionConfigs returns the QuestionConfigs field if non-nil, zero value otherwise. - -### GetQuestionConfigsOk - -`func (o *GetQuestionConfigs200Response) GetQuestionConfigsOk() (*[]QuestionConfig, bool)` - -GetQuestionConfigsOk returns a tuple with the QuestionConfigs field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetQuestionConfigs - -`func (o *GetQuestionConfigs200Response) SetQuestionConfigs(v []QuestionConfig)` - -SetQuestionConfigs sets QuestionConfigs field to given value. - - -### GetReason - -`func (o *GetQuestionConfigs200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetQuestionConfigs200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetQuestionConfigs200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetQuestionConfigs200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetQuestionConfigs200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetQuestionConfigs200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetQuestionConfigs200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetQuestionConfigs200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetQuestionConfigs200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetQuestionConfigs200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetQuestionConfigs200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetQuestionConfigs200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetQuestionConfigs200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetQuestionConfigs200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetQuestionConfigs200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetQuestionConfigs200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetQuestionConfigs200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetQuestionConfigs200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetQuestionConfigs200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetQuestionConfigs200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetQuestionConfigs200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetQuestionConfigs200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetQuestionConfigs200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetQuestionConfigs200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetQuestionConfigs200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetQuestionConfigs200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetQuestionResult200Response.md b/client/docs/GetQuestionResult200Response.md deleted file mode 100644 index 125eca9..0000000 --- a/client/docs/GetQuestionResult200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetQuestionResult200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**QuestionResult** | [**QuestionResult**](QuestionResult.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetQuestionResult200Response - -`func NewGetQuestionResult200Response(status APIStatus, questionResult QuestionResult, reason string, code string, ) *GetQuestionResult200Response` - -NewGetQuestionResult200Response instantiates a new GetQuestionResult200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetQuestionResult200ResponseWithDefaults - -`func NewGetQuestionResult200ResponseWithDefaults() *GetQuestionResult200Response` - -NewGetQuestionResult200ResponseWithDefaults instantiates a new GetQuestionResult200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetQuestionResult200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetQuestionResult200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetQuestionResult200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetQuestionResult - -`func (o *GetQuestionResult200Response) GetQuestionResult() QuestionResult` - -GetQuestionResult returns the QuestionResult field if non-nil, zero value otherwise. - -### GetQuestionResultOk - -`func (o *GetQuestionResult200Response) GetQuestionResultOk() (*QuestionResult, bool)` - -GetQuestionResultOk returns a tuple with the QuestionResult field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetQuestionResult - -`func (o *GetQuestionResult200Response) SetQuestionResult(v QuestionResult)` - -SetQuestionResult sets QuestionResult field to given value. - - -### GetReason - -`func (o *GetQuestionResult200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetQuestionResult200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetQuestionResult200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetQuestionResult200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetQuestionResult200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetQuestionResult200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetQuestionResult200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetQuestionResult200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetQuestionResult200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetQuestionResult200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetQuestionResult200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetQuestionResult200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetQuestionResult200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetQuestionResult200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetQuestionResult200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetQuestionResult200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetQuestionResult200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetQuestionResult200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetQuestionResult200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetQuestionResult200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetQuestionResult200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetQuestionResult200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetQuestionResult200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetQuestionResult200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetQuestionResult200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetQuestionResult200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetQuestionResults200Response.md b/client/docs/GetQuestionResults200Response.md deleted file mode 100644 index e1eabb3..0000000 --- a/client/docs/GetQuestionResults200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetQuestionResults200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**QuestionResults** | [**[]QuestionResult**](QuestionResult.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetQuestionResults200Response - -`func NewGetQuestionResults200Response(status APIStatus, questionResults []QuestionResult, reason string, code string, ) *GetQuestionResults200Response` - -NewGetQuestionResults200Response instantiates a new GetQuestionResults200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetQuestionResults200ResponseWithDefaults - -`func NewGetQuestionResults200ResponseWithDefaults() *GetQuestionResults200Response` - -NewGetQuestionResults200ResponseWithDefaults instantiates a new GetQuestionResults200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetQuestionResults200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetQuestionResults200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetQuestionResults200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetQuestionResults - -`func (o *GetQuestionResults200Response) GetQuestionResults() []QuestionResult` - -GetQuestionResults returns the QuestionResults field if non-nil, zero value otherwise. - -### GetQuestionResultsOk - -`func (o *GetQuestionResults200Response) GetQuestionResultsOk() (*[]QuestionResult, bool)` - -GetQuestionResultsOk returns a tuple with the QuestionResults field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetQuestionResults - -`func (o *GetQuestionResults200Response) SetQuestionResults(v []QuestionResult)` - -SetQuestionResults sets QuestionResults field to given value. - - -### GetReason - -`func (o *GetQuestionResults200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetQuestionResults200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetQuestionResults200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetQuestionResults200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetQuestionResults200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetQuestionResults200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetQuestionResults200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetQuestionResults200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetQuestionResults200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetQuestionResults200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetQuestionResults200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetQuestionResults200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetQuestionResults200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetQuestionResults200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetQuestionResults200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetQuestionResults200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetQuestionResults200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetQuestionResults200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetQuestionResults200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetQuestionResults200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetQuestionResults200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetQuestionResults200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetQuestionResults200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetQuestionResults200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetQuestionResults200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetQuestionResults200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetSSOUsers200Response.md b/client/docs/GetSSOUsersResponse.md similarity index 63% rename from client/docs/GetSSOUsers200Response.md rename to client/docs/GetSSOUsersResponse.md index babac41..2b2d92e 100644 --- a/client/docs/GetSSOUsers200Response.md +++ b/client/docs/GetSSOUsersResponse.md @@ -1,4 +1,4 @@ -# GetSSOUsers200Response +# GetSSOUsersResponse ## Properties @@ -9,59 +9,59 @@ Name | Type | Description | Notes ## Methods -### NewGetSSOUsers200Response +### NewGetSSOUsersResponse -`func NewGetSSOUsers200Response(users []APISSOUser, status string, ) *GetSSOUsers200Response` +`func NewGetSSOUsersResponse(users []APISSOUser, status string, ) *GetSSOUsersResponse` -NewGetSSOUsers200Response instantiates a new GetSSOUsers200Response object +NewGetSSOUsersResponse instantiates a new GetSSOUsersResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewGetSSOUsers200ResponseWithDefaults +### NewGetSSOUsersResponseWithDefaults -`func NewGetSSOUsers200ResponseWithDefaults() *GetSSOUsers200Response` +`func NewGetSSOUsersResponseWithDefaults() *GetSSOUsersResponse` -NewGetSSOUsers200ResponseWithDefaults instantiates a new GetSSOUsers200Response object +NewGetSSOUsersResponseWithDefaults instantiates a new GetSSOUsersResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetUsers -`func (o *GetSSOUsers200Response) GetUsers() []APISSOUser` +`func (o *GetSSOUsersResponse) GetUsers() []APISSOUser` GetUsers returns the Users field if non-nil, zero value otherwise. ### GetUsersOk -`func (o *GetSSOUsers200Response) GetUsersOk() (*[]APISSOUser, bool)` +`func (o *GetSSOUsersResponse) GetUsersOk() (*[]APISSOUser, bool)` GetUsersOk returns a tuple with the Users field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUsers -`func (o *GetSSOUsers200Response) SetUsers(v []APISSOUser)` +`func (o *GetSSOUsersResponse) SetUsers(v []APISSOUser)` SetUsers sets Users field to given value. ### GetStatus -`func (o *GetSSOUsers200Response) GetStatus() string` +`func (o *GetSSOUsersResponse) GetStatus() string` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *GetSSOUsers200Response) GetStatusOk() (*string, bool)` +`func (o *GetSSOUsersResponse) GetStatusOk() (*string, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *GetSSOUsers200Response) SetStatus(v string)` +`func (o *GetSSOUsersResponse) SetStatus(v string)` SetStatus sets Status field to given value. diff --git a/client/docs/GetTenant200Response.md b/client/docs/GetTenant200Response.md deleted file mode 100644 index 2c4ad98..0000000 --- a/client/docs/GetTenant200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetTenant200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**Tenant** | [**APITenant**](APITenant.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetTenant200Response - -`func NewGetTenant200Response(status APIStatus, tenant APITenant, reason string, code string, ) *GetTenant200Response` - -NewGetTenant200Response instantiates a new GetTenant200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetTenant200ResponseWithDefaults - -`func NewGetTenant200ResponseWithDefaults() *GetTenant200Response` - -NewGetTenant200ResponseWithDefaults instantiates a new GetTenant200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetTenant200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetTenant200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetTenant200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetTenant - -`func (o *GetTenant200Response) GetTenant() APITenant` - -GetTenant returns the Tenant field if non-nil, zero value otherwise. - -### GetTenantOk - -`func (o *GetTenant200Response) GetTenantOk() (*APITenant, bool)` - -GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenant - -`func (o *GetTenant200Response) SetTenant(v APITenant)` - -SetTenant sets Tenant field to given value. - - -### GetReason - -`func (o *GetTenant200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetTenant200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetTenant200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetTenant200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetTenant200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetTenant200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetTenant200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetTenant200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetTenant200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetTenant200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetTenant200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetTenant200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetTenant200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetTenant200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetTenant200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetTenant200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetTenant200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetTenant200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetTenant200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetTenant200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetTenant200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetTenant200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetTenant200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetTenant200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetTenant200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetTenant200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetTenantDailyUsages200Response.md b/client/docs/GetTenantDailyUsages200Response.md deleted file mode 100644 index 3e906ce..0000000 --- a/client/docs/GetTenantDailyUsages200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetTenantDailyUsages200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**TenantDailyUsages** | [**[]APITenantDailyUsage**](APITenantDailyUsage.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetTenantDailyUsages200Response - -`func NewGetTenantDailyUsages200Response(status APIStatus, tenantDailyUsages []APITenantDailyUsage, reason string, code string, ) *GetTenantDailyUsages200Response` - -NewGetTenantDailyUsages200Response instantiates a new GetTenantDailyUsages200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetTenantDailyUsages200ResponseWithDefaults - -`func NewGetTenantDailyUsages200ResponseWithDefaults() *GetTenantDailyUsages200Response` - -NewGetTenantDailyUsages200ResponseWithDefaults instantiates a new GetTenantDailyUsages200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetTenantDailyUsages200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetTenantDailyUsages200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetTenantDailyUsages200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetTenantDailyUsages - -`func (o *GetTenantDailyUsages200Response) GetTenantDailyUsages() []APITenantDailyUsage` - -GetTenantDailyUsages returns the TenantDailyUsages field if non-nil, zero value otherwise. - -### GetTenantDailyUsagesOk - -`func (o *GetTenantDailyUsages200Response) GetTenantDailyUsagesOk() (*[]APITenantDailyUsage, bool)` - -GetTenantDailyUsagesOk returns a tuple with the TenantDailyUsages field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenantDailyUsages - -`func (o *GetTenantDailyUsages200Response) SetTenantDailyUsages(v []APITenantDailyUsage)` - -SetTenantDailyUsages sets TenantDailyUsages field to given value. - - -### GetReason - -`func (o *GetTenantDailyUsages200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetTenantDailyUsages200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetTenantDailyUsages200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetTenantDailyUsages200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetTenantDailyUsages200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetTenantDailyUsages200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetTenantDailyUsages200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetTenantDailyUsages200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetTenantDailyUsages200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetTenantDailyUsages200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetTenantDailyUsages200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetTenantDailyUsages200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetTenantDailyUsages200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetTenantDailyUsages200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetTenantDailyUsages200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetTenantDailyUsages200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetTenantDailyUsages200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetTenantDailyUsages200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetTenantDailyUsages200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetTenantDailyUsages200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetTenantDailyUsages200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetTenantDailyUsages200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetTenantDailyUsages200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetTenantDailyUsages200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetTenantDailyUsages200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetTenantDailyUsages200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetTenantManualBadgesResponse.md b/client/docs/GetTenantManualBadgesResponse.md new file mode 100644 index 0000000..fea5942 --- /dev/null +++ b/client/docs/GetTenantManualBadgesResponse.md @@ -0,0 +1,72 @@ +# GetTenantManualBadgesResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Badges** | [**[]TenantBadge**](TenantBadge.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | + +## Methods + +### NewGetTenantManualBadgesResponse + +`func NewGetTenantManualBadgesResponse(badges []TenantBadge, status APIStatus, ) *GetTenantManualBadgesResponse` + +NewGetTenantManualBadgesResponse instantiates a new GetTenantManualBadgesResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetTenantManualBadgesResponseWithDefaults + +`func NewGetTenantManualBadgesResponseWithDefaults() *GetTenantManualBadgesResponse` + +NewGetTenantManualBadgesResponseWithDefaults instantiates a new GetTenantManualBadgesResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBadges + +`func (o *GetTenantManualBadgesResponse) GetBadges() []TenantBadge` + +GetBadges returns the Badges field if non-nil, zero value otherwise. + +### GetBadgesOk + +`func (o *GetTenantManualBadgesResponse) GetBadgesOk() (*[]TenantBadge, bool)` + +GetBadgesOk returns a tuple with the Badges field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBadges + +`func (o *GetTenantManualBadgesResponse) SetBadges(v []TenantBadge)` + +SetBadges sets Badges field to given value. + + +### GetStatus + +`func (o *GetTenantManualBadgesResponse) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GetTenantManualBadgesResponse) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *GetTenantManualBadgesResponse) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetTenantPackage200Response.md b/client/docs/GetTenantPackage200Response.md deleted file mode 100644 index ff55c7a..0000000 --- a/client/docs/GetTenantPackage200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetTenantPackage200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**TenantPackage** | [**TenantPackage**](TenantPackage.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetTenantPackage200Response - -`func NewGetTenantPackage200Response(status APIStatus, tenantPackage TenantPackage, reason string, code string, ) *GetTenantPackage200Response` - -NewGetTenantPackage200Response instantiates a new GetTenantPackage200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetTenantPackage200ResponseWithDefaults - -`func NewGetTenantPackage200ResponseWithDefaults() *GetTenantPackage200Response` - -NewGetTenantPackage200ResponseWithDefaults instantiates a new GetTenantPackage200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetTenantPackage200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetTenantPackage200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetTenantPackage200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetTenantPackage - -`func (o *GetTenantPackage200Response) GetTenantPackage() TenantPackage` - -GetTenantPackage returns the TenantPackage field if non-nil, zero value otherwise. - -### GetTenantPackageOk - -`func (o *GetTenantPackage200Response) GetTenantPackageOk() (*TenantPackage, bool)` - -GetTenantPackageOk returns a tuple with the TenantPackage field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenantPackage - -`func (o *GetTenantPackage200Response) SetTenantPackage(v TenantPackage)` - -SetTenantPackage sets TenantPackage field to given value. - - -### GetReason - -`func (o *GetTenantPackage200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetTenantPackage200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetTenantPackage200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetTenantPackage200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetTenantPackage200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetTenantPackage200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetTenantPackage200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetTenantPackage200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetTenantPackage200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetTenantPackage200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetTenantPackage200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetTenantPackage200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetTenantPackage200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetTenantPackage200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetTenantPackage200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetTenantPackage200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetTenantPackage200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetTenantPackage200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetTenantPackage200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetTenantPackage200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetTenantPackage200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetTenantPackage200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetTenantPackage200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetTenantPackage200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetTenantPackage200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetTenantPackage200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetTenantPackages200Response.md b/client/docs/GetTenantPackages200Response.md deleted file mode 100644 index 454609b..0000000 --- a/client/docs/GetTenantPackages200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetTenantPackages200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**TenantPackages** | [**[]TenantPackage**](TenantPackage.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetTenantPackages200Response - -`func NewGetTenantPackages200Response(status APIStatus, tenantPackages []TenantPackage, reason string, code string, ) *GetTenantPackages200Response` - -NewGetTenantPackages200Response instantiates a new GetTenantPackages200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetTenantPackages200ResponseWithDefaults - -`func NewGetTenantPackages200ResponseWithDefaults() *GetTenantPackages200Response` - -NewGetTenantPackages200ResponseWithDefaults instantiates a new GetTenantPackages200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetTenantPackages200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetTenantPackages200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetTenantPackages200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetTenantPackages - -`func (o *GetTenantPackages200Response) GetTenantPackages() []TenantPackage` - -GetTenantPackages returns the TenantPackages field if non-nil, zero value otherwise. - -### GetTenantPackagesOk - -`func (o *GetTenantPackages200Response) GetTenantPackagesOk() (*[]TenantPackage, bool)` - -GetTenantPackagesOk returns a tuple with the TenantPackages field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenantPackages - -`func (o *GetTenantPackages200Response) SetTenantPackages(v []TenantPackage)` - -SetTenantPackages sets TenantPackages field to given value. - - -### GetReason - -`func (o *GetTenantPackages200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetTenantPackages200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetTenantPackages200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetTenantPackages200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetTenantPackages200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetTenantPackages200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetTenantPackages200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetTenantPackages200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetTenantPackages200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetTenantPackages200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetTenantPackages200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetTenantPackages200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetTenantPackages200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetTenantPackages200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetTenantPackages200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetTenantPackages200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetTenantPackages200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetTenantPackages200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetTenantPackages200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetTenantPackages200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetTenantPackages200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetTenantPackages200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetTenantPackages200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetTenantPackages200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetTenantPackages200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetTenantPackages200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetTenantUser200Response.md b/client/docs/GetTenantUser200Response.md deleted file mode 100644 index 928205d..0000000 --- a/client/docs/GetTenantUser200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetTenantUser200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**TenantUser** | [**User**](User.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetTenantUser200Response - -`func NewGetTenantUser200Response(status APIStatus, tenantUser User, reason string, code string, ) *GetTenantUser200Response` - -NewGetTenantUser200Response instantiates a new GetTenantUser200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetTenantUser200ResponseWithDefaults - -`func NewGetTenantUser200ResponseWithDefaults() *GetTenantUser200Response` - -NewGetTenantUser200ResponseWithDefaults instantiates a new GetTenantUser200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetTenantUser200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetTenantUser200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetTenantUser200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetTenantUser - -`func (o *GetTenantUser200Response) GetTenantUser() User` - -GetTenantUser returns the TenantUser field if non-nil, zero value otherwise. - -### GetTenantUserOk - -`func (o *GetTenantUser200Response) GetTenantUserOk() (*User, bool)` - -GetTenantUserOk returns a tuple with the TenantUser field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenantUser - -`func (o *GetTenantUser200Response) SetTenantUser(v User)` - -SetTenantUser sets TenantUser field to given value. - - -### GetReason - -`func (o *GetTenantUser200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetTenantUser200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetTenantUser200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetTenantUser200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetTenantUser200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetTenantUser200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetTenantUser200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetTenantUser200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetTenantUser200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetTenantUser200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetTenantUser200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetTenantUser200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetTenantUser200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetTenantUser200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetTenantUser200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetTenantUser200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetTenantUser200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetTenantUser200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetTenantUser200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetTenantUser200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetTenantUser200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetTenantUser200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetTenantUser200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetTenantUser200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetTenantUser200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetTenantUser200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetTenantUsers200Response.md b/client/docs/GetTenantUsers200Response.md deleted file mode 100644 index 9f6319b..0000000 --- a/client/docs/GetTenantUsers200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetTenantUsers200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**TenantUsers** | [**[]User**](User.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetTenantUsers200Response - -`func NewGetTenantUsers200Response(status APIStatus, tenantUsers []User, reason string, code string, ) *GetTenantUsers200Response` - -NewGetTenantUsers200Response instantiates a new GetTenantUsers200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetTenantUsers200ResponseWithDefaults - -`func NewGetTenantUsers200ResponseWithDefaults() *GetTenantUsers200Response` - -NewGetTenantUsers200ResponseWithDefaults instantiates a new GetTenantUsers200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetTenantUsers200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetTenantUsers200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetTenantUsers200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetTenantUsers - -`func (o *GetTenantUsers200Response) GetTenantUsers() []User` - -GetTenantUsers returns the TenantUsers field if non-nil, zero value otherwise. - -### GetTenantUsersOk - -`func (o *GetTenantUsers200Response) GetTenantUsersOk() (*[]User, bool)` - -GetTenantUsersOk returns a tuple with the TenantUsers field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenantUsers - -`func (o *GetTenantUsers200Response) SetTenantUsers(v []User)` - -SetTenantUsers sets TenantUsers field to given value. - - -### GetReason - -`func (o *GetTenantUsers200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetTenantUsers200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetTenantUsers200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetTenantUsers200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetTenantUsers200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetTenantUsers200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetTenantUsers200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetTenantUsers200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetTenantUsers200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetTenantUsers200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetTenantUsers200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetTenantUsers200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetTenantUsers200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetTenantUsers200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetTenantUsers200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetTenantUsers200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetTenantUsers200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetTenantUsers200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetTenantUsers200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetTenantUsers200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetTenantUsers200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetTenantUsers200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetTenantUsers200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetTenantUsers200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetTenantUsers200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetTenantUsers200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetTenants200Response.md b/client/docs/GetTenants200Response.md deleted file mode 100644 index 8ad026f..0000000 --- a/client/docs/GetTenants200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetTenants200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**Tenants** | [**[]APITenant**](APITenant.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetTenants200Response - -`func NewGetTenants200Response(status APIStatus, tenants []APITenant, reason string, code string, ) *GetTenants200Response` - -NewGetTenants200Response instantiates a new GetTenants200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetTenants200ResponseWithDefaults - -`func NewGetTenants200ResponseWithDefaults() *GetTenants200Response` - -NewGetTenants200ResponseWithDefaults instantiates a new GetTenants200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetTenants200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetTenants200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetTenants200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetTenants - -`func (o *GetTenants200Response) GetTenants() []APITenant` - -GetTenants returns the Tenants field if non-nil, zero value otherwise. - -### GetTenantsOk - -`func (o *GetTenants200Response) GetTenantsOk() (*[]APITenant, bool)` - -GetTenantsOk returns a tuple with the Tenants field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenants - -`func (o *GetTenants200Response) SetTenants(v []APITenant)` - -SetTenants sets Tenants field to given value. - - -### GetReason - -`func (o *GetTenants200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetTenants200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetTenants200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetTenants200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetTenants200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetTenants200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetTenants200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetTenants200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetTenants200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetTenants200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetTenants200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetTenants200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetTenants200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetTenants200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetTenants200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetTenants200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetTenants200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetTenants200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetTenants200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetTenants200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetTenants200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetTenants200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetTenants200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetTenants200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetTenants200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetTenants200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetTicket200Response.md b/client/docs/GetTicket200Response.md deleted file mode 100644 index ca68037..0000000 --- a/client/docs/GetTicket200Response.md +++ /dev/null @@ -1,265 +0,0 @@ -# GetTicket200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**Ticket** | [**APITicketDetail**](APITicketDetail.md) | | -**AvailableStates** | **[]float64** | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetTicket200Response - -`func NewGetTicket200Response(status APIStatus, ticket APITicketDetail, availableStates []float64, reason string, code string, ) *GetTicket200Response` - -NewGetTicket200Response instantiates a new GetTicket200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetTicket200ResponseWithDefaults - -`func NewGetTicket200ResponseWithDefaults() *GetTicket200Response` - -NewGetTicket200ResponseWithDefaults instantiates a new GetTicket200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetTicket200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetTicket200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetTicket200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetTicket - -`func (o *GetTicket200Response) GetTicket() APITicketDetail` - -GetTicket returns the Ticket field if non-nil, zero value otherwise. - -### GetTicketOk - -`func (o *GetTicket200Response) GetTicketOk() (*APITicketDetail, bool)` - -GetTicketOk returns a tuple with the Ticket field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTicket - -`func (o *GetTicket200Response) SetTicket(v APITicketDetail)` - -SetTicket sets Ticket field to given value. - - -### GetAvailableStates - -`func (o *GetTicket200Response) GetAvailableStates() []float64` - -GetAvailableStates returns the AvailableStates field if non-nil, zero value otherwise. - -### GetAvailableStatesOk - -`func (o *GetTicket200Response) GetAvailableStatesOk() (*[]float64, bool)` - -GetAvailableStatesOk returns a tuple with the AvailableStates field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAvailableStates - -`func (o *GetTicket200Response) SetAvailableStates(v []float64)` - -SetAvailableStates sets AvailableStates field to given value. - - -### GetReason - -`func (o *GetTicket200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetTicket200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetTicket200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetTicket200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetTicket200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetTicket200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetTicket200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetTicket200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetTicket200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetTicket200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetTicket200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetTicket200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetTicket200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetTicket200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetTicket200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetTicket200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetTicket200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetTicket200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetTicket200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetTicket200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetTicket200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetTicket200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetTicket200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetTicket200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetTicket200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetTicket200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetTickets200Response.md b/client/docs/GetTickets200Response.md deleted file mode 100644 index e51a1e0..0000000 --- a/client/docs/GetTickets200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetTickets200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**Tickets** | [**[]APITicket**](APITicket.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetTickets200Response - -`func NewGetTickets200Response(status APIStatus, tickets []APITicket, reason string, code string, ) *GetTickets200Response` - -NewGetTickets200Response instantiates a new GetTickets200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetTickets200ResponseWithDefaults - -`func NewGetTickets200ResponseWithDefaults() *GetTickets200Response` - -NewGetTickets200ResponseWithDefaults instantiates a new GetTickets200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetTickets200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetTickets200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetTickets200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetTickets - -`func (o *GetTickets200Response) GetTickets() []APITicket` - -GetTickets returns the Tickets field if non-nil, zero value otherwise. - -### GetTicketsOk - -`func (o *GetTickets200Response) GetTicketsOk() (*[]APITicket, bool)` - -GetTicketsOk returns a tuple with the Tickets field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTickets - -`func (o *GetTickets200Response) SetTickets(v []APITicket)` - -SetTickets sets Tickets field to given value. - - -### GetReason - -`func (o *GetTickets200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetTickets200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetTickets200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetTickets200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetTickets200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetTickets200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetTickets200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetTickets200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetTickets200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetTickets200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetTickets200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetTickets200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetTickets200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetTickets200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetTickets200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetTickets200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetTickets200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetTickets200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetTickets200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetTickets200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetTickets200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetTickets200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetTickets200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetTickets200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetTickets200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetTickets200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetTranslationsResponse.md b/client/docs/GetTranslationsResponse.md new file mode 100644 index 0000000..2d66925 --- /dev/null +++ b/client/docs/GetTranslationsResponse.md @@ -0,0 +1,72 @@ +# GetTranslationsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Translations** | **map[string]string** | Construct a type with a set of properties K of type T | +**Status** | [**APIStatus**](APIStatus.md) | | + +## Methods + +### NewGetTranslationsResponse + +`func NewGetTranslationsResponse(translations map[string]string, status APIStatus, ) *GetTranslationsResponse` + +NewGetTranslationsResponse instantiates a new GetTranslationsResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetTranslationsResponseWithDefaults + +`func NewGetTranslationsResponseWithDefaults() *GetTranslationsResponse` + +NewGetTranslationsResponseWithDefaults instantiates a new GetTranslationsResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTranslations + +`func (o *GetTranslationsResponse) GetTranslations() map[string]string` + +GetTranslations returns the Translations field if non-nil, zero value otherwise. + +### GetTranslationsOk + +`func (o *GetTranslationsResponse) GetTranslationsOk() (*map[string]string, bool)` + +GetTranslationsOk returns a tuple with the Translations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTranslations + +`func (o *GetTranslationsResponse) SetTranslations(v map[string]string)` + +SetTranslations sets Translations field to given value. + + +### GetStatus + +`func (o *GetTranslationsResponse) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GetTranslationsResponse) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *GetTranslationsResponse) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetUser200Response.md b/client/docs/GetUser200Response.md deleted file mode 100644 index 419a6dc..0000000 --- a/client/docs/GetUser200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetUser200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**User** | [**User**](User.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetUser200Response - -`func NewGetUser200Response(status APIStatus, user User, reason string, code string, ) *GetUser200Response` - -NewGetUser200Response instantiates a new GetUser200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetUser200ResponseWithDefaults - -`func NewGetUser200ResponseWithDefaults() *GetUser200Response` - -NewGetUser200ResponseWithDefaults instantiates a new GetUser200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetUser200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetUser200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetUser200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetUser - -`func (o *GetUser200Response) GetUser() User` - -GetUser returns the User field if non-nil, zero value otherwise. - -### GetUserOk - -`func (o *GetUser200Response) GetUserOk() (*User, bool)` - -GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUser - -`func (o *GetUser200Response) SetUser(v User)` - -SetUser sets User field to given value. - - -### GetReason - -`func (o *GetUser200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetUser200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetUser200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetUser200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetUser200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetUser200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetUser200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetUser200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetUser200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetUser200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetUser200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetUser200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetUser200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetUser200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetUser200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetUser200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetUser200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetUser200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetUser200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetUser200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetUser200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetUser200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetUser200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetUser200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetUser200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetUser200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetUserBadge200Response.md b/client/docs/GetUserBadge200Response.md deleted file mode 100644 index bcb3ec0..0000000 --- a/client/docs/GetUserBadge200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetUserBadge200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**UserBadge** | [**UserBadge**](UserBadge.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetUserBadge200Response - -`func NewGetUserBadge200Response(status APIStatus, userBadge UserBadge, reason string, code string, ) *GetUserBadge200Response` - -NewGetUserBadge200Response instantiates a new GetUserBadge200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetUserBadge200ResponseWithDefaults - -`func NewGetUserBadge200ResponseWithDefaults() *GetUserBadge200Response` - -NewGetUserBadge200ResponseWithDefaults instantiates a new GetUserBadge200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetUserBadge200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetUserBadge200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetUserBadge200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetUserBadge - -`func (o *GetUserBadge200Response) GetUserBadge() UserBadge` - -GetUserBadge returns the UserBadge field if non-nil, zero value otherwise. - -### GetUserBadgeOk - -`func (o *GetUserBadge200Response) GetUserBadgeOk() (*UserBadge, bool)` - -GetUserBadgeOk returns a tuple with the UserBadge field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUserBadge - -`func (o *GetUserBadge200Response) SetUserBadge(v UserBadge)` - -SetUserBadge sets UserBadge field to given value. - - -### GetReason - -`func (o *GetUserBadge200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetUserBadge200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetUserBadge200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetUserBadge200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetUserBadge200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetUserBadge200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetUserBadge200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetUserBadge200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetUserBadge200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetUserBadge200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetUserBadge200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetUserBadge200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetUserBadge200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetUserBadge200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetUserBadge200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetUserBadge200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetUserBadge200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetUserBadge200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetUserBadge200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetUserBadge200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetUserBadge200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetUserBadge200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetUserBadge200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetUserBadge200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetUserBadge200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetUserBadge200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetUserBadgeProgressById200Response.md b/client/docs/GetUserBadgeProgressById200Response.md deleted file mode 100644 index af2d18c..0000000 --- a/client/docs/GetUserBadgeProgressById200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetUserBadgeProgressById200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**UserBadgeProgress** | [**UserBadgeProgress**](UserBadgeProgress.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetUserBadgeProgressById200Response - -`func NewGetUserBadgeProgressById200Response(status APIStatus, userBadgeProgress UserBadgeProgress, reason string, code string, ) *GetUserBadgeProgressById200Response` - -NewGetUserBadgeProgressById200Response instantiates a new GetUserBadgeProgressById200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetUserBadgeProgressById200ResponseWithDefaults - -`func NewGetUserBadgeProgressById200ResponseWithDefaults() *GetUserBadgeProgressById200Response` - -NewGetUserBadgeProgressById200ResponseWithDefaults instantiates a new GetUserBadgeProgressById200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetUserBadgeProgressById200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetUserBadgeProgressById200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetUserBadgeProgressById200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetUserBadgeProgress - -`func (o *GetUserBadgeProgressById200Response) GetUserBadgeProgress() UserBadgeProgress` - -GetUserBadgeProgress returns the UserBadgeProgress field if non-nil, zero value otherwise. - -### GetUserBadgeProgressOk - -`func (o *GetUserBadgeProgressById200Response) GetUserBadgeProgressOk() (*UserBadgeProgress, bool)` - -GetUserBadgeProgressOk returns a tuple with the UserBadgeProgress field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUserBadgeProgress - -`func (o *GetUserBadgeProgressById200Response) SetUserBadgeProgress(v UserBadgeProgress)` - -SetUserBadgeProgress sets UserBadgeProgress field to given value. - - -### GetReason - -`func (o *GetUserBadgeProgressById200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetUserBadgeProgressById200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetUserBadgeProgressById200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetUserBadgeProgressById200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetUserBadgeProgressById200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetUserBadgeProgressById200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetUserBadgeProgressById200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetUserBadgeProgressById200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetUserBadgeProgressById200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetUserBadgeProgressById200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetUserBadgeProgressById200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetUserBadgeProgressById200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetUserBadgeProgressById200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetUserBadgeProgressById200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetUserBadgeProgressById200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetUserBadgeProgressById200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetUserBadgeProgressById200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetUserBadgeProgressById200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetUserBadgeProgressById200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetUserBadgeProgressById200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetUserBadgeProgressById200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetUserBadgeProgressById200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetUserBadgeProgressById200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetUserBadgeProgressById200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetUserBadgeProgressById200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetUserBadgeProgressById200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetUserBadgeProgressList200Response.md b/client/docs/GetUserBadgeProgressList200Response.md deleted file mode 100644 index ae1300d..0000000 --- a/client/docs/GetUserBadgeProgressList200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetUserBadgeProgressList200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**UserBadgeProgresses** | [**[]UserBadgeProgress**](UserBadgeProgress.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetUserBadgeProgressList200Response - -`func NewGetUserBadgeProgressList200Response(status APIStatus, userBadgeProgresses []UserBadgeProgress, reason string, code string, ) *GetUserBadgeProgressList200Response` - -NewGetUserBadgeProgressList200Response instantiates a new GetUserBadgeProgressList200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetUserBadgeProgressList200ResponseWithDefaults - -`func NewGetUserBadgeProgressList200ResponseWithDefaults() *GetUserBadgeProgressList200Response` - -NewGetUserBadgeProgressList200ResponseWithDefaults instantiates a new GetUserBadgeProgressList200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetUserBadgeProgressList200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetUserBadgeProgressList200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetUserBadgeProgressList200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetUserBadgeProgresses - -`func (o *GetUserBadgeProgressList200Response) GetUserBadgeProgresses() []UserBadgeProgress` - -GetUserBadgeProgresses returns the UserBadgeProgresses field if non-nil, zero value otherwise. - -### GetUserBadgeProgressesOk - -`func (o *GetUserBadgeProgressList200Response) GetUserBadgeProgressesOk() (*[]UserBadgeProgress, bool)` - -GetUserBadgeProgressesOk returns a tuple with the UserBadgeProgresses field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUserBadgeProgresses - -`func (o *GetUserBadgeProgressList200Response) SetUserBadgeProgresses(v []UserBadgeProgress)` - -SetUserBadgeProgresses sets UserBadgeProgresses field to given value. - - -### GetReason - -`func (o *GetUserBadgeProgressList200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetUserBadgeProgressList200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetUserBadgeProgressList200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetUserBadgeProgressList200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetUserBadgeProgressList200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetUserBadgeProgressList200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetUserBadgeProgressList200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetUserBadgeProgressList200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetUserBadgeProgressList200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetUserBadgeProgressList200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetUserBadgeProgressList200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetUserBadgeProgressList200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetUserBadgeProgressList200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetUserBadgeProgressList200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetUserBadgeProgressList200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetUserBadgeProgressList200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetUserBadgeProgressList200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetUserBadgeProgressList200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetUserBadgeProgressList200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetUserBadgeProgressList200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetUserBadgeProgressList200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetUserBadgeProgressList200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetUserBadgeProgressList200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetUserBadgeProgressList200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetUserBadgeProgressList200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetUserBadgeProgressList200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetUserBadges200Response.md b/client/docs/GetUserBadges200Response.md deleted file mode 100644 index 40f49bf..0000000 --- a/client/docs/GetUserBadges200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetUserBadges200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**UserBadges** | [**[]UserBadge**](UserBadge.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetUserBadges200Response - -`func NewGetUserBadges200Response(status APIStatus, userBadges []UserBadge, reason string, code string, ) *GetUserBadges200Response` - -NewGetUserBadges200Response instantiates a new GetUserBadges200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetUserBadges200ResponseWithDefaults - -`func NewGetUserBadges200ResponseWithDefaults() *GetUserBadges200Response` - -NewGetUserBadges200ResponseWithDefaults instantiates a new GetUserBadges200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetUserBadges200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetUserBadges200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetUserBadges200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetUserBadges - -`func (o *GetUserBadges200Response) GetUserBadges() []UserBadge` - -GetUserBadges returns the UserBadges field if non-nil, zero value otherwise. - -### GetUserBadgesOk - -`func (o *GetUserBadges200Response) GetUserBadgesOk() (*[]UserBadge, bool)` - -GetUserBadgesOk returns a tuple with the UserBadges field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUserBadges - -`func (o *GetUserBadges200Response) SetUserBadges(v []UserBadge)` - -SetUserBadges sets UserBadges field to given value. - - -### GetReason - -`func (o *GetUserBadges200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetUserBadges200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetUserBadges200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetUserBadges200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetUserBadges200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetUserBadges200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetUserBadges200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetUserBadges200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetUserBadges200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetUserBadges200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetUserBadges200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetUserBadges200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetUserBadges200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetUserBadges200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetUserBadges200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetUserBadges200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetUserBadges200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetUserBadges200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetUserBadges200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetUserBadges200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetUserBadges200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetUserBadges200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetUserBadges200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetUserBadges200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetUserBadges200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetUserBadges200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetUserInternalProfileResponse.md b/client/docs/GetUserInternalProfileResponse.md new file mode 100644 index 0000000..cab26ba --- /dev/null +++ b/client/docs/GetUserInternalProfileResponse.md @@ -0,0 +1,72 @@ +# GetUserInternalProfileResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Profile** | [**GetUserInternalProfileResponseProfile**](GetUserInternalProfileResponseProfile.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | + +## Methods + +### NewGetUserInternalProfileResponse + +`func NewGetUserInternalProfileResponse(profile GetUserInternalProfileResponseProfile, status APIStatus, ) *GetUserInternalProfileResponse` + +NewGetUserInternalProfileResponse instantiates a new GetUserInternalProfileResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetUserInternalProfileResponseWithDefaults + +`func NewGetUserInternalProfileResponseWithDefaults() *GetUserInternalProfileResponse` + +NewGetUserInternalProfileResponseWithDefaults instantiates a new GetUserInternalProfileResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetProfile + +`func (o *GetUserInternalProfileResponse) GetProfile() GetUserInternalProfileResponseProfile` + +GetProfile returns the Profile field if non-nil, zero value otherwise. + +### GetProfileOk + +`func (o *GetUserInternalProfileResponse) GetProfileOk() (*GetUserInternalProfileResponseProfile, bool)` + +GetProfileOk returns a tuple with the Profile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProfile + +`func (o *GetUserInternalProfileResponse) SetProfile(v GetUserInternalProfileResponseProfile)` + +SetProfile sets Profile field to given value. + + +### GetStatus + +`func (o *GetUserInternalProfileResponse) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GetUserInternalProfileResponse) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *GetUserInternalProfileResponse) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetUserInternalProfileResponseProfile.md b/client/docs/GetUserInternalProfileResponseProfile.md new file mode 100644 index 0000000..cc7794f --- /dev/null +++ b/client/docs/GetUserInternalProfileResponseProfile.md @@ -0,0 +1,542 @@ +# GetUserInternalProfileResponseProfile + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CommenterName** | Pointer to **string** | | [optional] +**FirstCommentDate** | Pointer to **NullableTime** | | [optional] +**IpHash** | Pointer to **string** | | [optional] +**CountryFlag** | Pointer to **string** | | [optional] +**CountryCode** | Pointer to **string** | | [optional] +**WebsiteUrl** | Pointer to **NullableString** | | [optional] +**Bio** | Pointer to **string** | | [optional] +**Karma** | Pointer to **float64** | | [optional] +**Locale** | Pointer to **string** | | [optional] +**Verified** | Pointer to **bool** | | [optional] +**AvatarSrc** | Pointer to **NullableString** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**Username** | Pointer to **string** | | [optional] +**CommenterEmail** | Pointer to **NullableString** | | [optional] +**Email** | Pointer to **NullableString** | | [optional] +**AnonUserId** | Pointer to **NullableString** | | [optional] +**UserId** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewGetUserInternalProfileResponseProfile + +`func NewGetUserInternalProfileResponseProfile() *GetUserInternalProfileResponseProfile` + +NewGetUserInternalProfileResponseProfile instantiates a new GetUserInternalProfileResponseProfile object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetUserInternalProfileResponseProfileWithDefaults + +`func NewGetUserInternalProfileResponseProfileWithDefaults() *GetUserInternalProfileResponseProfile` + +NewGetUserInternalProfileResponseProfileWithDefaults instantiates a new GetUserInternalProfileResponseProfile object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCommenterName + +`func (o *GetUserInternalProfileResponseProfile) GetCommenterName() string` + +GetCommenterName returns the CommenterName field if non-nil, zero value otherwise. + +### GetCommenterNameOk + +`func (o *GetUserInternalProfileResponseProfile) GetCommenterNameOk() (*string, bool)` + +GetCommenterNameOk returns a tuple with the CommenterName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommenterName + +`func (o *GetUserInternalProfileResponseProfile) SetCommenterName(v string)` + +SetCommenterName sets CommenterName field to given value. + +### HasCommenterName + +`func (o *GetUserInternalProfileResponseProfile) HasCommenterName() bool` + +HasCommenterName returns a boolean if a field has been set. + +### GetFirstCommentDate + +`func (o *GetUserInternalProfileResponseProfile) GetFirstCommentDate() time.Time` + +GetFirstCommentDate returns the FirstCommentDate field if non-nil, zero value otherwise. + +### GetFirstCommentDateOk + +`func (o *GetUserInternalProfileResponseProfile) GetFirstCommentDateOk() (*time.Time, bool)` + +GetFirstCommentDateOk returns a tuple with the FirstCommentDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirstCommentDate + +`func (o *GetUserInternalProfileResponseProfile) SetFirstCommentDate(v time.Time)` + +SetFirstCommentDate sets FirstCommentDate field to given value. + +### HasFirstCommentDate + +`func (o *GetUserInternalProfileResponseProfile) HasFirstCommentDate() bool` + +HasFirstCommentDate returns a boolean if a field has been set. + +### SetFirstCommentDateNil + +`func (o *GetUserInternalProfileResponseProfile) SetFirstCommentDateNil(b bool)` + + SetFirstCommentDateNil sets the value for FirstCommentDate to be an explicit nil + +### UnsetFirstCommentDate +`func (o *GetUserInternalProfileResponseProfile) UnsetFirstCommentDate()` + +UnsetFirstCommentDate ensures that no value is present for FirstCommentDate, not even an explicit nil +### GetIpHash + +`func (o *GetUserInternalProfileResponseProfile) GetIpHash() string` + +GetIpHash returns the IpHash field if non-nil, zero value otherwise. + +### GetIpHashOk + +`func (o *GetUserInternalProfileResponseProfile) GetIpHashOk() (*string, bool)` + +GetIpHashOk returns a tuple with the IpHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpHash + +`func (o *GetUserInternalProfileResponseProfile) SetIpHash(v string)` + +SetIpHash sets IpHash field to given value. + +### HasIpHash + +`func (o *GetUserInternalProfileResponseProfile) HasIpHash() bool` + +HasIpHash returns a boolean if a field has been set. + +### GetCountryFlag + +`func (o *GetUserInternalProfileResponseProfile) GetCountryFlag() string` + +GetCountryFlag returns the CountryFlag field if non-nil, zero value otherwise. + +### GetCountryFlagOk + +`func (o *GetUserInternalProfileResponseProfile) GetCountryFlagOk() (*string, bool)` + +GetCountryFlagOk returns a tuple with the CountryFlag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCountryFlag + +`func (o *GetUserInternalProfileResponseProfile) SetCountryFlag(v string)` + +SetCountryFlag sets CountryFlag field to given value. + +### HasCountryFlag + +`func (o *GetUserInternalProfileResponseProfile) HasCountryFlag() bool` + +HasCountryFlag returns a boolean if a field has been set. + +### GetCountryCode + +`func (o *GetUserInternalProfileResponseProfile) GetCountryCode() string` + +GetCountryCode returns the CountryCode field if non-nil, zero value otherwise. + +### GetCountryCodeOk + +`func (o *GetUserInternalProfileResponseProfile) GetCountryCodeOk() (*string, bool)` + +GetCountryCodeOk returns a tuple with the CountryCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCountryCode + +`func (o *GetUserInternalProfileResponseProfile) SetCountryCode(v string)` + +SetCountryCode sets CountryCode field to given value. + +### HasCountryCode + +`func (o *GetUserInternalProfileResponseProfile) HasCountryCode() bool` + +HasCountryCode returns a boolean if a field has been set. + +### GetWebsiteUrl + +`func (o *GetUserInternalProfileResponseProfile) GetWebsiteUrl() string` + +GetWebsiteUrl returns the WebsiteUrl field if non-nil, zero value otherwise. + +### GetWebsiteUrlOk + +`func (o *GetUserInternalProfileResponseProfile) GetWebsiteUrlOk() (*string, bool)` + +GetWebsiteUrlOk returns a tuple with the WebsiteUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebsiteUrl + +`func (o *GetUserInternalProfileResponseProfile) SetWebsiteUrl(v string)` + +SetWebsiteUrl sets WebsiteUrl field to given value. + +### HasWebsiteUrl + +`func (o *GetUserInternalProfileResponseProfile) HasWebsiteUrl() bool` + +HasWebsiteUrl returns a boolean if a field has been set. + +### SetWebsiteUrlNil + +`func (o *GetUserInternalProfileResponseProfile) SetWebsiteUrlNil(b bool)` + + SetWebsiteUrlNil sets the value for WebsiteUrl to be an explicit nil + +### UnsetWebsiteUrl +`func (o *GetUserInternalProfileResponseProfile) UnsetWebsiteUrl()` + +UnsetWebsiteUrl ensures that no value is present for WebsiteUrl, not even an explicit nil +### GetBio + +`func (o *GetUserInternalProfileResponseProfile) GetBio() string` + +GetBio returns the Bio field if non-nil, zero value otherwise. + +### GetBioOk + +`func (o *GetUserInternalProfileResponseProfile) GetBioOk() (*string, bool)` + +GetBioOk returns a tuple with the Bio field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBio + +`func (o *GetUserInternalProfileResponseProfile) SetBio(v string)` + +SetBio sets Bio field to given value. + +### HasBio + +`func (o *GetUserInternalProfileResponseProfile) HasBio() bool` + +HasBio returns a boolean if a field has been set. + +### GetKarma + +`func (o *GetUserInternalProfileResponseProfile) GetKarma() float64` + +GetKarma returns the Karma field if non-nil, zero value otherwise. + +### GetKarmaOk + +`func (o *GetUserInternalProfileResponseProfile) GetKarmaOk() (*float64, bool)` + +GetKarmaOk returns a tuple with the Karma field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKarma + +`func (o *GetUserInternalProfileResponseProfile) SetKarma(v float64)` + +SetKarma sets Karma field to given value. + +### HasKarma + +`func (o *GetUserInternalProfileResponseProfile) HasKarma() bool` + +HasKarma returns a boolean if a field has been set. + +### GetLocale + +`func (o *GetUserInternalProfileResponseProfile) GetLocale() string` + +GetLocale returns the Locale field if non-nil, zero value otherwise. + +### GetLocaleOk + +`func (o *GetUserInternalProfileResponseProfile) GetLocaleOk() (*string, bool)` + +GetLocaleOk returns a tuple with the Locale field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocale + +`func (o *GetUserInternalProfileResponseProfile) SetLocale(v string)` + +SetLocale sets Locale field to given value. + +### HasLocale + +`func (o *GetUserInternalProfileResponseProfile) HasLocale() bool` + +HasLocale returns a boolean if a field has been set. + +### GetVerified + +`func (o *GetUserInternalProfileResponseProfile) GetVerified() bool` + +GetVerified returns the Verified field if non-nil, zero value otherwise. + +### GetVerifiedOk + +`func (o *GetUserInternalProfileResponseProfile) GetVerifiedOk() (*bool, bool)` + +GetVerifiedOk returns a tuple with the Verified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVerified + +`func (o *GetUserInternalProfileResponseProfile) SetVerified(v bool)` + +SetVerified sets Verified field to given value. + +### HasVerified + +`func (o *GetUserInternalProfileResponseProfile) HasVerified() bool` + +HasVerified returns a boolean if a field has been set. + +### GetAvatarSrc + +`func (o *GetUserInternalProfileResponseProfile) GetAvatarSrc() string` + +GetAvatarSrc returns the AvatarSrc field if non-nil, zero value otherwise. + +### GetAvatarSrcOk + +`func (o *GetUserInternalProfileResponseProfile) GetAvatarSrcOk() (*string, bool)` + +GetAvatarSrcOk returns a tuple with the AvatarSrc field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvatarSrc + +`func (o *GetUserInternalProfileResponseProfile) SetAvatarSrc(v string)` + +SetAvatarSrc sets AvatarSrc field to given value. + +### HasAvatarSrc + +`func (o *GetUserInternalProfileResponseProfile) HasAvatarSrc() bool` + +HasAvatarSrc returns a boolean if a field has been set. + +### SetAvatarSrcNil + +`func (o *GetUserInternalProfileResponseProfile) SetAvatarSrcNil(b bool)` + + SetAvatarSrcNil sets the value for AvatarSrc to be an explicit nil + +### UnsetAvatarSrc +`func (o *GetUserInternalProfileResponseProfile) UnsetAvatarSrc()` + +UnsetAvatarSrc ensures that no value is present for AvatarSrc, not even an explicit nil +### GetDisplayName + +`func (o *GetUserInternalProfileResponseProfile) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *GetUserInternalProfileResponseProfile) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *GetUserInternalProfileResponseProfile) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *GetUserInternalProfileResponseProfile) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetUsername + +`func (o *GetUserInternalProfileResponseProfile) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *GetUserInternalProfileResponseProfile) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *GetUserInternalProfileResponseProfile) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *GetUserInternalProfileResponseProfile) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### GetCommenterEmail + +`func (o *GetUserInternalProfileResponseProfile) GetCommenterEmail() string` + +GetCommenterEmail returns the CommenterEmail field if non-nil, zero value otherwise. + +### GetCommenterEmailOk + +`func (o *GetUserInternalProfileResponseProfile) GetCommenterEmailOk() (*string, bool)` + +GetCommenterEmailOk returns a tuple with the CommenterEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommenterEmail + +`func (o *GetUserInternalProfileResponseProfile) SetCommenterEmail(v string)` + +SetCommenterEmail sets CommenterEmail field to given value. + +### HasCommenterEmail + +`func (o *GetUserInternalProfileResponseProfile) HasCommenterEmail() bool` + +HasCommenterEmail returns a boolean if a field has been set. + +### SetCommenterEmailNil + +`func (o *GetUserInternalProfileResponseProfile) SetCommenterEmailNil(b bool)` + + SetCommenterEmailNil sets the value for CommenterEmail to be an explicit nil + +### UnsetCommenterEmail +`func (o *GetUserInternalProfileResponseProfile) UnsetCommenterEmail()` + +UnsetCommenterEmail ensures that no value is present for CommenterEmail, not even an explicit nil +### GetEmail + +`func (o *GetUserInternalProfileResponseProfile) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *GetUserInternalProfileResponseProfile) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *GetUserInternalProfileResponseProfile) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *GetUserInternalProfileResponseProfile) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### SetEmailNil + +`func (o *GetUserInternalProfileResponseProfile) SetEmailNil(b bool)` + + SetEmailNil sets the value for Email to be an explicit nil + +### UnsetEmail +`func (o *GetUserInternalProfileResponseProfile) UnsetEmail()` + +UnsetEmail ensures that no value is present for Email, not even an explicit nil +### GetAnonUserId + +`func (o *GetUserInternalProfileResponseProfile) GetAnonUserId() string` + +GetAnonUserId returns the AnonUserId field if non-nil, zero value otherwise. + +### GetAnonUserIdOk + +`func (o *GetUserInternalProfileResponseProfile) GetAnonUserIdOk() (*string, bool)` + +GetAnonUserIdOk returns a tuple with the AnonUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnonUserId + +`func (o *GetUserInternalProfileResponseProfile) SetAnonUserId(v string)` + +SetAnonUserId sets AnonUserId field to given value. + +### HasAnonUserId + +`func (o *GetUserInternalProfileResponseProfile) HasAnonUserId() bool` + +HasAnonUserId returns a boolean if a field has been set. + +### SetAnonUserIdNil + +`func (o *GetUserInternalProfileResponseProfile) SetAnonUserIdNil(b bool)` + + SetAnonUserIdNil sets the value for AnonUserId to be an explicit nil + +### UnsetAnonUserId +`func (o *GetUserInternalProfileResponseProfile) UnsetAnonUserId()` + +UnsetAnonUserId ensures that no value is present for AnonUserId, not even an explicit nil +### GetUserId + +`func (o *GetUserInternalProfileResponseProfile) GetUserId() string` + +GetUserId returns the UserId field if non-nil, zero value otherwise. + +### GetUserIdOk + +`func (o *GetUserInternalProfileResponseProfile) GetUserIdOk() (*string, bool)` + +GetUserIdOk returns a tuple with the UserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserId + +`func (o *GetUserInternalProfileResponseProfile) SetUserId(v string)` + +SetUserId sets UserId field to given value. + +### HasUserId + +`func (o *GetUserInternalProfileResponseProfile) HasUserId() bool` + +HasUserId returns a boolean if a field has been set. + +### SetUserIdNil + +`func (o *GetUserInternalProfileResponseProfile) SetUserIdNil(b bool)` + + SetUserIdNil sets the value for UserId to be an explicit nil + +### UnsetUserId +`func (o *GetUserInternalProfileResponseProfile) UnsetUserId()` + +UnsetUserId ensures that no value is present for UserId, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetUserManualBadgesResponse.md b/client/docs/GetUserManualBadgesResponse.md new file mode 100644 index 0000000..bc86268 --- /dev/null +++ b/client/docs/GetUserManualBadgesResponse.md @@ -0,0 +1,72 @@ +# GetUserManualBadgesResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Badges** | [**[]UserBadge**](UserBadge.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | + +## Methods + +### NewGetUserManualBadgesResponse + +`func NewGetUserManualBadgesResponse(badges []UserBadge, status APIStatus, ) *GetUserManualBadgesResponse` + +NewGetUserManualBadgesResponse instantiates a new GetUserManualBadgesResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetUserManualBadgesResponseWithDefaults + +`func NewGetUserManualBadgesResponseWithDefaults() *GetUserManualBadgesResponse` + +NewGetUserManualBadgesResponseWithDefaults instantiates a new GetUserManualBadgesResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBadges + +`func (o *GetUserManualBadgesResponse) GetBadges() []UserBadge` + +GetBadges returns the Badges field if non-nil, zero value otherwise. + +### GetBadgesOk + +`func (o *GetUserManualBadgesResponse) GetBadgesOk() (*[]UserBadge, bool)` + +GetBadgesOk returns a tuple with the Badges field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBadges + +`func (o *GetUserManualBadgesResponse) SetBadges(v []UserBadge)` + +SetBadges sets Badges field to given value. + + +### GetStatus + +`func (o *GetUserManualBadgesResponse) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GetUserManualBadgesResponse) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *GetUserManualBadgesResponse) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetUserNotificationCount200Response.md b/client/docs/GetUserNotificationCount200Response.md deleted file mode 100644 index ec6afe8..0000000 --- a/client/docs/GetUserNotificationCount200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetUserNotificationCount200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**Count** | **int64** | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetUserNotificationCount200Response - -`func NewGetUserNotificationCount200Response(status APIStatus, count int64, reason string, code string, ) *GetUserNotificationCount200Response` - -NewGetUserNotificationCount200Response instantiates a new GetUserNotificationCount200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetUserNotificationCount200ResponseWithDefaults - -`func NewGetUserNotificationCount200ResponseWithDefaults() *GetUserNotificationCount200Response` - -NewGetUserNotificationCount200ResponseWithDefaults instantiates a new GetUserNotificationCount200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetUserNotificationCount200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetUserNotificationCount200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetUserNotificationCount200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetCount - -`func (o *GetUserNotificationCount200Response) GetCount() int64` - -GetCount returns the Count field if non-nil, zero value otherwise. - -### GetCountOk - -`func (o *GetUserNotificationCount200Response) GetCountOk() (*int64, bool)` - -GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCount - -`func (o *GetUserNotificationCount200Response) SetCount(v int64)` - -SetCount sets Count field to given value. - - -### GetReason - -`func (o *GetUserNotificationCount200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetUserNotificationCount200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetUserNotificationCount200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetUserNotificationCount200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetUserNotificationCount200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetUserNotificationCount200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetUserNotificationCount200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetUserNotificationCount200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetUserNotificationCount200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetUserNotificationCount200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetUserNotificationCount200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetUserNotificationCount200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetUserNotificationCount200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetUserNotificationCount200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetUserNotificationCount200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetUserNotificationCount200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetUserNotificationCount200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetUserNotificationCount200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetUserNotificationCount200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetUserNotificationCount200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetUserNotificationCount200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetUserNotificationCount200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetUserNotificationCount200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetUserNotificationCount200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetUserNotificationCount200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetUserNotificationCount200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetUserNotifications200Response.md b/client/docs/GetUserNotifications200Response.md deleted file mode 100644 index 85432f7..0000000 --- a/client/docs/GetUserNotifications200Response.md +++ /dev/null @@ -1,312 +0,0 @@ -# GetUserNotifications200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Translations** | Pointer to **map[string]string** | Construct a type with a set of properties K of type T | [optional] -**IsSubscribed** | **bool** | | -**HasMore** | **bool** | | -**Notifications** | [**[]RenderableUserNotification**](RenderableUserNotification.md) | | -**Status** | [**APIStatus**](APIStatus.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetUserNotifications200Response - -`func NewGetUserNotifications200Response(isSubscribed bool, hasMore bool, notifications []RenderableUserNotification, status APIStatus, reason string, code string, ) *GetUserNotifications200Response` - -NewGetUserNotifications200Response instantiates a new GetUserNotifications200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetUserNotifications200ResponseWithDefaults - -`func NewGetUserNotifications200ResponseWithDefaults() *GetUserNotifications200Response` - -NewGetUserNotifications200ResponseWithDefaults instantiates a new GetUserNotifications200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetTranslations - -`func (o *GetUserNotifications200Response) GetTranslations() map[string]string` - -GetTranslations returns the Translations field if non-nil, zero value otherwise. - -### GetTranslationsOk - -`func (o *GetUserNotifications200Response) GetTranslationsOk() (*map[string]string, bool)` - -GetTranslationsOk returns a tuple with the Translations field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslations - -`func (o *GetUserNotifications200Response) SetTranslations(v map[string]string)` - -SetTranslations sets Translations field to given value. - -### HasTranslations - -`func (o *GetUserNotifications200Response) HasTranslations() bool` - -HasTranslations returns a boolean if a field has been set. - -### GetIsSubscribed - -`func (o *GetUserNotifications200Response) GetIsSubscribed() bool` - -GetIsSubscribed returns the IsSubscribed field if non-nil, zero value otherwise. - -### GetIsSubscribedOk - -`func (o *GetUserNotifications200Response) GetIsSubscribedOk() (*bool, bool)` - -GetIsSubscribedOk returns a tuple with the IsSubscribed field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsSubscribed - -`func (o *GetUserNotifications200Response) SetIsSubscribed(v bool)` - -SetIsSubscribed sets IsSubscribed field to given value. - - -### GetHasMore - -`func (o *GetUserNotifications200Response) GetHasMore() bool` - -GetHasMore returns the HasMore field if non-nil, zero value otherwise. - -### GetHasMoreOk - -`func (o *GetUserNotifications200Response) GetHasMoreOk() (*bool, bool)` - -GetHasMoreOk returns a tuple with the HasMore field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHasMore - -`func (o *GetUserNotifications200Response) SetHasMore(v bool)` - -SetHasMore sets HasMore field to given value. - - -### GetNotifications - -`func (o *GetUserNotifications200Response) GetNotifications() []RenderableUserNotification` - -GetNotifications returns the Notifications field if non-nil, zero value otherwise. - -### GetNotificationsOk - -`func (o *GetUserNotifications200Response) GetNotificationsOk() (*[]RenderableUserNotification, bool)` - -GetNotificationsOk returns a tuple with the Notifications field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNotifications - -`func (o *GetUserNotifications200Response) SetNotifications(v []RenderableUserNotification)` - -SetNotifications sets Notifications field to given value. - - -### GetStatus - -`func (o *GetUserNotifications200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetUserNotifications200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetUserNotifications200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetReason - -`func (o *GetUserNotifications200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetUserNotifications200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetUserNotifications200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetUserNotifications200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetUserNotifications200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetUserNotifications200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetUserNotifications200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetUserNotifications200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetUserNotifications200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetUserNotifications200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetUserNotifications200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetUserNotifications200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetUserNotifications200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetUserNotifications200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetUserNotifications200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetUserNotifications200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetUserNotifications200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetUserNotifications200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetUserNotifications200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetUserNotifications200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetUserNotifications200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetUserNotifications200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetUserNotifications200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetUserNotifications200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetUserNotifications200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetUserNotifications200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetUserPresenceStatuses200Response.md b/client/docs/GetUserPresenceStatuses200Response.md deleted file mode 100644 index f506193..0000000 --- a/client/docs/GetUserPresenceStatuses200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetUserPresenceStatuses200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**UserIdsOnline** | **map[string]bool** | Construct a type with a set of properties K of type T | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetUserPresenceStatuses200Response - -`func NewGetUserPresenceStatuses200Response(status APIStatus, userIdsOnline map[string]bool, reason string, code string, ) *GetUserPresenceStatuses200Response` - -NewGetUserPresenceStatuses200Response instantiates a new GetUserPresenceStatuses200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetUserPresenceStatuses200ResponseWithDefaults - -`func NewGetUserPresenceStatuses200ResponseWithDefaults() *GetUserPresenceStatuses200Response` - -NewGetUserPresenceStatuses200ResponseWithDefaults instantiates a new GetUserPresenceStatuses200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetUserPresenceStatuses200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetUserPresenceStatuses200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetUserPresenceStatuses200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetUserIdsOnline - -`func (o *GetUserPresenceStatuses200Response) GetUserIdsOnline() map[string]bool` - -GetUserIdsOnline returns the UserIdsOnline field if non-nil, zero value otherwise. - -### GetUserIdsOnlineOk - -`func (o *GetUserPresenceStatuses200Response) GetUserIdsOnlineOk() (*map[string]bool, bool)` - -GetUserIdsOnlineOk returns a tuple with the UserIdsOnline field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUserIdsOnline - -`func (o *GetUserPresenceStatuses200Response) SetUserIdsOnline(v map[string]bool)` - -SetUserIdsOnline sets UserIdsOnline field to given value. - - -### GetReason - -`func (o *GetUserPresenceStatuses200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetUserPresenceStatuses200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetUserPresenceStatuses200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetUserPresenceStatuses200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetUserPresenceStatuses200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetUserPresenceStatuses200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetUserPresenceStatuses200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetUserPresenceStatuses200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetUserPresenceStatuses200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetUserPresenceStatuses200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetUserPresenceStatuses200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetUserPresenceStatuses200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetUserPresenceStatuses200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetUserPresenceStatuses200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetUserPresenceStatuses200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetUserPresenceStatuses200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetUserPresenceStatuses200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetUserPresenceStatuses200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetUserPresenceStatuses200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetUserPresenceStatuses200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetUserPresenceStatuses200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetUserPresenceStatuses200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetUserPresenceStatuses200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetUserPresenceStatuses200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetUserPresenceStatuses200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetUserPresenceStatuses200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetUserReactsPublic200Response.md b/client/docs/GetUserReactsPublic200Response.md deleted file mode 100644 index ca6875e..0000000 --- a/client/docs/GetUserReactsPublic200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# GetUserReactsPublic200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**Reacts** | **map[string]map[string]bool** | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetUserReactsPublic200Response - -`func NewGetUserReactsPublic200Response(status APIStatus, reacts map[string]map[string]bool, reason string, code string, ) *GetUserReactsPublic200Response` - -NewGetUserReactsPublic200Response instantiates a new GetUserReactsPublic200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetUserReactsPublic200ResponseWithDefaults - -`func NewGetUserReactsPublic200ResponseWithDefaults() *GetUserReactsPublic200Response` - -NewGetUserReactsPublic200ResponseWithDefaults instantiates a new GetUserReactsPublic200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetUserReactsPublic200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetUserReactsPublic200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetUserReactsPublic200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetReacts - -`func (o *GetUserReactsPublic200Response) GetReacts() map[string]map[string]bool` - -GetReacts returns the Reacts field if non-nil, zero value otherwise. - -### GetReactsOk - -`func (o *GetUserReactsPublic200Response) GetReactsOk() (*map[string]map[string]bool, bool)` - -GetReactsOk returns a tuple with the Reacts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReacts - -`func (o *GetUserReactsPublic200Response) SetReacts(v map[string]map[string]bool)` - -SetReacts sets Reacts field to given value. - - -### GetReason - -`func (o *GetUserReactsPublic200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetUserReactsPublic200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetUserReactsPublic200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetUserReactsPublic200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetUserReactsPublic200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetUserReactsPublic200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetUserReactsPublic200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetUserReactsPublic200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetUserReactsPublic200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetUserReactsPublic200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetUserReactsPublic200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetUserReactsPublic200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetUserReactsPublic200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetUserReactsPublic200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetUserReactsPublic200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetUserReactsPublic200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetUserReactsPublic200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetUserReactsPublic200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetUserReactsPublic200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetUserReactsPublic200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetUserReactsPublic200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetUserReactsPublic200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetUserReactsPublic200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetUserReactsPublic200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetUserReactsPublic200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetUserReactsPublic200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetUserTrustFactorResponse.md b/client/docs/GetUserTrustFactorResponse.md new file mode 100644 index 0000000..cbd68a2 --- /dev/null +++ b/client/docs/GetUserTrustFactorResponse.md @@ -0,0 +1,103 @@ +# GetUserTrustFactorResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ManualTrustFactor** | Pointer to **float64** | | [optional] +**AutoTrustFactor** | Pointer to **float64** | | [optional] +**Status** | [**APIStatus**](APIStatus.md) | | + +## Methods + +### NewGetUserTrustFactorResponse + +`func NewGetUserTrustFactorResponse(status APIStatus, ) *GetUserTrustFactorResponse` + +NewGetUserTrustFactorResponse instantiates a new GetUserTrustFactorResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetUserTrustFactorResponseWithDefaults + +`func NewGetUserTrustFactorResponseWithDefaults() *GetUserTrustFactorResponse` + +NewGetUserTrustFactorResponseWithDefaults instantiates a new GetUserTrustFactorResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetManualTrustFactor + +`func (o *GetUserTrustFactorResponse) GetManualTrustFactor() float64` + +GetManualTrustFactor returns the ManualTrustFactor field if non-nil, zero value otherwise. + +### GetManualTrustFactorOk + +`func (o *GetUserTrustFactorResponse) GetManualTrustFactorOk() (*float64, bool)` + +GetManualTrustFactorOk returns a tuple with the ManualTrustFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManualTrustFactor + +`func (o *GetUserTrustFactorResponse) SetManualTrustFactor(v float64)` + +SetManualTrustFactor sets ManualTrustFactor field to given value. + +### HasManualTrustFactor + +`func (o *GetUserTrustFactorResponse) HasManualTrustFactor() bool` + +HasManualTrustFactor returns a boolean if a field has been set. + +### GetAutoTrustFactor + +`func (o *GetUserTrustFactorResponse) GetAutoTrustFactor() float64` + +GetAutoTrustFactor returns the AutoTrustFactor field if non-nil, zero value otherwise. + +### GetAutoTrustFactorOk + +`func (o *GetUserTrustFactorResponse) GetAutoTrustFactorOk() (*float64, bool)` + +GetAutoTrustFactorOk returns a tuple with the AutoTrustFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutoTrustFactor + +`func (o *GetUserTrustFactorResponse) SetAutoTrustFactor(v float64)` + +SetAutoTrustFactor sets AutoTrustFactor field to given value. + +### HasAutoTrustFactor + +`func (o *GetUserTrustFactorResponse) HasAutoTrustFactor() bool` + +HasAutoTrustFactor returns a boolean if a field has been set. + +### GetStatus + +`func (o *GetUserTrustFactorResponse) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GetUserTrustFactorResponse) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *GetUserTrustFactorResponse) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetV1PageLikes.md b/client/docs/GetV1PageLikes.md new file mode 100644 index 0000000..fb1f49b --- /dev/null +++ b/client/docs/GetV1PageLikes.md @@ -0,0 +1,135 @@ +# GetV1PageLikes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UrlIdWS** | **string** | | +**DidLike** | **bool** | | +**CommentCount** | **int32** | | +**LikeCount** | **int32** | | +**Status** | [**APIStatus**](APIStatus.md) | | + +## Methods + +### NewGetV1PageLikes + +`func NewGetV1PageLikes(urlIdWS string, didLike bool, commentCount int32, likeCount int32, status APIStatus, ) *GetV1PageLikes` + +NewGetV1PageLikes instantiates a new GetV1PageLikes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetV1PageLikesWithDefaults + +`func NewGetV1PageLikesWithDefaults() *GetV1PageLikes` + +NewGetV1PageLikesWithDefaults instantiates a new GetV1PageLikes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUrlIdWS + +`func (o *GetV1PageLikes) GetUrlIdWS() string` + +GetUrlIdWS returns the UrlIdWS field if non-nil, zero value otherwise. + +### GetUrlIdWSOk + +`func (o *GetV1PageLikes) GetUrlIdWSOk() (*string, bool)` + +GetUrlIdWSOk returns a tuple with the UrlIdWS field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrlIdWS + +`func (o *GetV1PageLikes) SetUrlIdWS(v string)` + +SetUrlIdWS sets UrlIdWS field to given value. + + +### GetDidLike + +`func (o *GetV1PageLikes) GetDidLike() bool` + +GetDidLike returns the DidLike field if non-nil, zero value otherwise. + +### GetDidLikeOk + +`func (o *GetV1PageLikes) GetDidLikeOk() (*bool, bool)` + +GetDidLikeOk returns a tuple with the DidLike field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDidLike + +`func (o *GetV1PageLikes) SetDidLike(v bool)` + +SetDidLike sets DidLike field to given value. + + +### GetCommentCount + +`func (o *GetV1PageLikes) GetCommentCount() int32` + +GetCommentCount returns the CommentCount field if non-nil, zero value otherwise. + +### GetCommentCountOk + +`func (o *GetV1PageLikes) GetCommentCountOk() (*int32, bool)` + +GetCommentCountOk returns a tuple with the CommentCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommentCount + +`func (o *GetV1PageLikes) SetCommentCount(v int32)` + +SetCommentCount sets CommentCount field to given value. + + +### GetLikeCount + +`func (o *GetV1PageLikes) GetLikeCount() int32` + +GetLikeCount returns the LikeCount field if non-nil, zero value otherwise. + +### GetLikeCountOk + +`func (o *GetV1PageLikes) GetLikeCountOk() (*int32, bool)` + +GetLikeCountOk returns a tuple with the LikeCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLikeCount + +`func (o *GetV1PageLikes) SetLikeCount(v int32)` + +SetLikeCount sets LikeCount field to given value. + + +### GetStatus + +`func (o *GetV1PageLikes) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GetV1PageLikes) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *GetV1PageLikes) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetV2PageReactUsersResponse.md b/client/docs/GetV2PageReactUsersResponse.md new file mode 100644 index 0000000..964aa2a --- /dev/null +++ b/client/docs/GetV2PageReactUsersResponse.md @@ -0,0 +1,72 @@ +# GetV2PageReactUsersResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UserNames** | **[]string** | | +**Status** | [**APIStatus**](APIStatus.md) | | + +## Methods + +### NewGetV2PageReactUsersResponse + +`func NewGetV2PageReactUsersResponse(userNames []string, status APIStatus, ) *GetV2PageReactUsersResponse` + +NewGetV2PageReactUsersResponse instantiates a new GetV2PageReactUsersResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetV2PageReactUsersResponseWithDefaults + +`func NewGetV2PageReactUsersResponseWithDefaults() *GetV2PageReactUsersResponse` + +NewGetV2PageReactUsersResponseWithDefaults instantiates a new GetV2PageReactUsersResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUserNames + +`func (o *GetV2PageReactUsersResponse) GetUserNames() []string` + +GetUserNames returns the UserNames field if non-nil, zero value otherwise. + +### GetUserNamesOk + +`func (o *GetV2PageReactUsersResponse) GetUserNamesOk() (*[]string, bool)` + +GetUserNamesOk returns a tuple with the UserNames field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserNames + +`func (o *GetV2PageReactUsersResponse) SetUserNames(v []string)` + +SetUserNames sets UserNames field to given value. + + +### GetStatus + +`func (o *GetV2PageReactUsersResponse) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GetV2PageReactUsersResponse) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *GetV2PageReactUsersResponse) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetV2PageReacts.md b/client/docs/GetV2PageReacts.md new file mode 100644 index 0000000..de9357e --- /dev/null +++ b/client/docs/GetV2PageReacts.md @@ -0,0 +1,103 @@ +# GetV2PageReacts + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ReactedIds** | Pointer to **[]string** | | [optional] +**Counts** | Pointer to **map[string]float64** | Construct a type with a set of properties K of type T | [optional] +**Status** | [**APIStatus**](APIStatus.md) | | + +## Methods + +### NewGetV2PageReacts + +`func NewGetV2PageReacts(status APIStatus, ) *GetV2PageReacts` + +NewGetV2PageReacts instantiates a new GetV2PageReacts object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetV2PageReactsWithDefaults + +`func NewGetV2PageReactsWithDefaults() *GetV2PageReacts` + +NewGetV2PageReactsWithDefaults instantiates a new GetV2PageReacts object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetReactedIds + +`func (o *GetV2PageReacts) GetReactedIds() []string` + +GetReactedIds returns the ReactedIds field if non-nil, zero value otherwise. + +### GetReactedIdsOk + +`func (o *GetV2PageReacts) GetReactedIdsOk() (*[]string, bool)` + +GetReactedIdsOk returns a tuple with the ReactedIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReactedIds + +`func (o *GetV2PageReacts) SetReactedIds(v []string)` + +SetReactedIds sets ReactedIds field to given value. + +### HasReactedIds + +`func (o *GetV2PageReacts) HasReactedIds() bool` + +HasReactedIds returns a boolean if a field has been set. + +### GetCounts + +`func (o *GetV2PageReacts) GetCounts() map[string]float64` + +GetCounts returns the Counts field if non-nil, zero value otherwise. + +### GetCountsOk + +`func (o *GetV2PageReacts) GetCountsOk() (*map[string]float64, bool)` + +GetCountsOk returns a tuple with the Counts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCounts + +`func (o *GetV2PageReacts) SetCounts(v map[string]float64)` + +SetCounts sets Counts field to given value. + +### HasCounts + +`func (o *GetV2PageReacts) HasCounts() bool` + +HasCounts returns a boolean if a field has been set. + +### GetStatus + +`func (o *GetV2PageReacts) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GetV2PageReacts) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *GetV2PageReacts) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetVotes200Response.md b/client/docs/GetVotes200Response.md deleted file mode 100644 index 0cc4724..0000000 --- a/client/docs/GetVotes200Response.md +++ /dev/null @@ -1,286 +0,0 @@ -# GetVotes200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**AppliedAuthorizedVotes** | [**[]PublicVote**](PublicVote.md) | | -**AppliedAnonymousVotes** | [**[]PublicVote**](PublicVote.md) | | -**PendingVotes** | [**[]PublicVote**](PublicVote.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetVotes200Response - -`func NewGetVotes200Response(status APIStatus, appliedAuthorizedVotes []PublicVote, appliedAnonymousVotes []PublicVote, pendingVotes []PublicVote, reason string, code string, ) *GetVotes200Response` - -NewGetVotes200Response instantiates a new GetVotes200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetVotes200ResponseWithDefaults - -`func NewGetVotes200ResponseWithDefaults() *GetVotes200Response` - -NewGetVotes200ResponseWithDefaults instantiates a new GetVotes200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetVotes200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetVotes200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetVotes200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetAppliedAuthorizedVotes - -`func (o *GetVotes200Response) GetAppliedAuthorizedVotes() []PublicVote` - -GetAppliedAuthorizedVotes returns the AppliedAuthorizedVotes field if non-nil, zero value otherwise. - -### GetAppliedAuthorizedVotesOk - -`func (o *GetVotes200Response) GetAppliedAuthorizedVotesOk() (*[]PublicVote, bool)` - -GetAppliedAuthorizedVotesOk returns a tuple with the AppliedAuthorizedVotes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAppliedAuthorizedVotes - -`func (o *GetVotes200Response) SetAppliedAuthorizedVotes(v []PublicVote)` - -SetAppliedAuthorizedVotes sets AppliedAuthorizedVotes field to given value. - - -### GetAppliedAnonymousVotes - -`func (o *GetVotes200Response) GetAppliedAnonymousVotes() []PublicVote` - -GetAppliedAnonymousVotes returns the AppliedAnonymousVotes field if non-nil, zero value otherwise. - -### GetAppliedAnonymousVotesOk - -`func (o *GetVotes200Response) GetAppliedAnonymousVotesOk() (*[]PublicVote, bool)` - -GetAppliedAnonymousVotesOk returns a tuple with the AppliedAnonymousVotes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAppliedAnonymousVotes - -`func (o *GetVotes200Response) SetAppliedAnonymousVotes(v []PublicVote)` - -SetAppliedAnonymousVotes sets AppliedAnonymousVotes field to given value. - - -### GetPendingVotes - -`func (o *GetVotes200Response) GetPendingVotes() []PublicVote` - -GetPendingVotes returns the PendingVotes field if non-nil, zero value otherwise. - -### GetPendingVotesOk - -`func (o *GetVotes200Response) GetPendingVotesOk() (*[]PublicVote, bool)` - -GetPendingVotesOk returns a tuple with the PendingVotes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPendingVotes - -`func (o *GetVotes200Response) SetPendingVotes(v []PublicVote)` - -SetPendingVotes sets PendingVotes field to given value. - - -### GetReason - -`func (o *GetVotes200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetVotes200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetVotes200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetVotes200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetVotes200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetVotes200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetVotes200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetVotes200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetVotes200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetVotes200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetVotes200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetVotes200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetVotes200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetVotes200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetVotes200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetVotes200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetVotes200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetVotes200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetVotes200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetVotes200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetVotes200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetVotes200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetVotes200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetVotes200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetVotes200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetVotes200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetVotesForUser200Response.md b/client/docs/GetVotesForUser200Response.md deleted file mode 100644 index b2eecb6..0000000 --- a/client/docs/GetVotesForUser200Response.md +++ /dev/null @@ -1,286 +0,0 @@ -# GetVotesForUser200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**AppliedAuthorizedVotes** | [**[]PublicVote**](PublicVote.md) | | -**AppliedAnonymousVotes** | [**[]PublicVote**](PublicVote.md) | | -**PendingVotes** | [**[]PublicVote**](PublicVote.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewGetVotesForUser200Response - -`func NewGetVotesForUser200Response(status APIStatus, appliedAuthorizedVotes []PublicVote, appliedAnonymousVotes []PublicVote, pendingVotes []PublicVote, reason string, code string, ) *GetVotesForUser200Response` - -NewGetVotesForUser200Response instantiates a new GetVotesForUser200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetVotesForUser200ResponseWithDefaults - -`func NewGetVotesForUser200ResponseWithDefaults() *GetVotesForUser200Response` - -NewGetVotesForUser200ResponseWithDefaults instantiates a new GetVotesForUser200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *GetVotesForUser200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *GetVotesForUser200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *GetVotesForUser200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetAppliedAuthorizedVotes - -`func (o *GetVotesForUser200Response) GetAppliedAuthorizedVotes() []PublicVote` - -GetAppliedAuthorizedVotes returns the AppliedAuthorizedVotes field if non-nil, zero value otherwise. - -### GetAppliedAuthorizedVotesOk - -`func (o *GetVotesForUser200Response) GetAppliedAuthorizedVotesOk() (*[]PublicVote, bool)` - -GetAppliedAuthorizedVotesOk returns a tuple with the AppliedAuthorizedVotes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAppliedAuthorizedVotes - -`func (o *GetVotesForUser200Response) SetAppliedAuthorizedVotes(v []PublicVote)` - -SetAppliedAuthorizedVotes sets AppliedAuthorizedVotes field to given value. - - -### GetAppliedAnonymousVotes - -`func (o *GetVotesForUser200Response) GetAppliedAnonymousVotes() []PublicVote` - -GetAppliedAnonymousVotes returns the AppliedAnonymousVotes field if non-nil, zero value otherwise. - -### GetAppliedAnonymousVotesOk - -`func (o *GetVotesForUser200Response) GetAppliedAnonymousVotesOk() (*[]PublicVote, bool)` - -GetAppliedAnonymousVotesOk returns a tuple with the AppliedAnonymousVotes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAppliedAnonymousVotes - -`func (o *GetVotesForUser200Response) SetAppliedAnonymousVotes(v []PublicVote)` - -SetAppliedAnonymousVotes sets AppliedAnonymousVotes field to given value. - - -### GetPendingVotes - -`func (o *GetVotesForUser200Response) GetPendingVotes() []PublicVote` - -GetPendingVotes returns the PendingVotes field if non-nil, zero value otherwise. - -### GetPendingVotesOk - -`func (o *GetVotesForUser200Response) GetPendingVotesOk() (*[]PublicVote, bool)` - -GetPendingVotesOk returns a tuple with the PendingVotes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPendingVotes - -`func (o *GetVotesForUser200Response) SetPendingVotes(v []PublicVote)` - -SetPendingVotes sets PendingVotes field to given value. - - -### GetReason - -`func (o *GetVotesForUser200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *GetVotesForUser200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *GetVotesForUser200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *GetVotesForUser200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *GetVotesForUser200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *GetVotesForUser200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *GetVotesForUser200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *GetVotesForUser200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *GetVotesForUser200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *GetVotesForUser200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *GetVotesForUser200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *GetVotesForUser200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *GetVotesForUser200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *GetVotesForUser200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *GetVotesForUser200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *GetVotesForUser200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *GetVotesForUser200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *GetVotesForUser200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *GetVotesForUser200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *GetVotesForUser200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *GetVotesForUser200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *GetVotesForUser200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *GetVotesForUser200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *GetVotesForUser200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *GetVotesForUser200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *GetVotesForUser200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GifGetLargeResponse.md b/client/docs/GifGetLargeResponse.md new file mode 100644 index 0000000..5ebb805 --- /dev/null +++ b/client/docs/GifGetLargeResponse.md @@ -0,0 +1,72 @@ +# GifGetLargeResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Src** | **string** | | +**Status** | [**APIStatus**](APIStatus.md) | | + +## Methods + +### NewGifGetLargeResponse + +`func NewGifGetLargeResponse(src string, status APIStatus, ) *GifGetLargeResponse` + +NewGifGetLargeResponse instantiates a new GifGetLargeResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGifGetLargeResponseWithDefaults + +`func NewGifGetLargeResponseWithDefaults() *GifGetLargeResponse` + +NewGifGetLargeResponseWithDefaults instantiates a new GifGetLargeResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSrc + +`func (o *GifGetLargeResponse) GetSrc() string` + +GetSrc returns the Src field if non-nil, zero value otherwise. + +### GetSrcOk + +`func (o *GifGetLargeResponse) GetSrcOk() (*string, bool)` + +GetSrcOk returns a tuple with the Src field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSrc + +`func (o *GifGetLargeResponse) SetSrc(v string)` + +SetSrc sets Src field to given value. + + +### GetStatus + +`func (o *GifGetLargeResponse) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GifGetLargeResponse) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *GifGetLargeResponse) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GifSearchInternalError.md b/client/docs/GifSearchInternalError.md new file mode 100644 index 0000000..b9e41df --- /dev/null +++ b/client/docs/GifSearchInternalError.md @@ -0,0 +1,72 @@ +# GifSearchInternalError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Code** | **string** | | +**Status** | [**APIStatus**](APIStatus.md) | | + +## Methods + +### NewGifSearchInternalError + +`func NewGifSearchInternalError(code string, status APIStatus, ) *GifSearchInternalError` + +NewGifSearchInternalError instantiates a new GifSearchInternalError object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGifSearchInternalErrorWithDefaults + +`func NewGifSearchInternalErrorWithDefaults() *GifSearchInternalError` + +NewGifSearchInternalErrorWithDefaults instantiates a new GifSearchInternalError object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCode + +`func (o *GifSearchInternalError) GetCode() string` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *GifSearchInternalError) GetCodeOk() (*string, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *GifSearchInternalError) SetCode(v string)` + +SetCode sets Code field to given value. + + +### GetStatus + +`func (o *GifSearchInternalError) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GifSearchInternalError) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *GifSearchInternalError) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GifSearchResponse.md b/client/docs/GifSearchResponse.md new file mode 100644 index 0000000..480f261 --- /dev/null +++ b/client/docs/GifSearchResponse.md @@ -0,0 +1,72 @@ +# GifSearchResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Images** | [**[][]GifSearchResponseImagesInnerInner**]([]GifSearchResponseImagesInnerInner.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | + +## Methods + +### NewGifSearchResponse + +`func NewGifSearchResponse(images [][]GifSearchResponseImagesInnerInner, status APIStatus, ) *GifSearchResponse` + +NewGifSearchResponse instantiates a new GifSearchResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGifSearchResponseWithDefaults + +`func NewGifSearchResponseWithDefaults() *GifSearchResponse` + +NewGifSearchResponseWithDefaults instantiates a new GifSearchResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetImages + +`func (o *GifSearchResponse) GetImages() [][]GifSearchResponseImagesInnerInner` + +GetImages returns the Images field if non-nil, zero value otherwise. + +### GetImagesOk + +`func (o *GifSearchResponse) GetImagesOk() (*[][]GifSearchResponseImagesInnerInner, bool)` + +GetImagesOk returns a tuple with the Images field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImages + +`func (o *GifSearchResponse) SetImages(v [][]GifSearchResponseImagesInnerInner)` + +SetImages sets Images field to given value. + + +### GetStatus + +`func (o *GifSearchResponse) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GifSearchResponse) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *GifSearchResponse) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GifSearchResponseImagesInnerInner.md b/client/docs/GifSearchResponseImagesInnerInner.md new file mode 100644 index 0000000..3fd0e60 --- /dev/null +++ b/client/docs/GifSearchResponseImagesInnerInner.md @@ -0,0 +1,30 @@ +# GifSearchResponseImagesInnerInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewGifSearchResponseImagesInnerInner + +`func NewGifSearchResponseImagesInnerInner() *GifSearchResponseImagesInnerInner` + +NewGifSearchResponseImagesInnerInner instantiates a new GifSearchResponseImagesInnerInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGifSearchResponseImagesInnerInnerWithDefaults + +`func NewGifSearchResponseImagesInnerInnerWithDefaults() *GifSearchResponseImagesInnerInner` + +NewGifSearchResponseImagesInnerInnerWithDefaults instantiates a new GifSearchResponseImagesInnerInner object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/HeaderAccountNotification.md b/client/docs/HeaderAccountNotification.md index f7e3a1f..a4f15b2 100644 --- a/client/docs/HeaderAccountNotification.md +++ b/client/docs/HeaderAccountNotification.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **LinkUrl** | **NullableString** | | **LinkText** | **NullableString** | | **CreatedAt** | **time.Time** | | +**Type** | Pointer to **NullableString** | Discriminator for notifications with a special layout/click handler (e.g. \"feedback-offer\"). | [optional] ## Methods @@ -253,6 +254,41 @@ and a boolean to check if the value has been set. SetCreatedAt sets CreatedAt field to given value. +### GetType + +`func (o *HeaderAccountNotification) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *HeaderAccountNotification) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *HeaderAccountNotification) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *HeaderAccountNotification) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *HeaderAccountNotification) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *HeaderAccountNotification) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/ImportedAgentApprovalNotificationFrequency.md b/client/docs/ImportedAgentApprovalNotificationFrequency.md new file mode 100644 index 0000000..32492a9 --- /dev/null +++ b/client/docs/ImportedAgentApprovalNotificationFrequency.md @@ -0,0 +1,17 @@ +# ImportedAgentApprovalNotificationFrequency + +## Enum + + +* `_MINUS_1` (value: `-1`) + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/LiveEvent.md b/client/docs/LiveEvent.md index bb744ac..9c892a6 100644 --- a/client/docs/LiveEvent.md +++ b/client/docs/LiveEvent.md @@ -19,6 +19,7 @@ Name | Type | Description | Notes **IsClosed** | Pointer to **bool** | | [optional] **Uj** | Pointer to **[]string** | | [optional] **Ul** | Pointer to **[]string** | | [optional] +**Sc** | Pointer to **int32** | | [optional] **Changes** | Pointer to **map[string]int32** | | [optional] ## Methods @@ -410,6 +411,31 @@ SetUl sets Ul field to given value. HasUl returns a boolean if a field has been set. +### GetSc + +`func (o *LiveEvent) GetSc() int32` + +GetSc returns the Sc field if non-nil, zero value otherwise. + +### GetScOk + +`func (o *LiveEvent) GetScOk() (*int32, bool)` + +GetScOk returns a tuple with the Sc field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSc + +`func (o *LiveEvent) SetSc(v int32)` + +SetSc sets Sc field to given value. + +### HasSc + +`func (o *LiveEvent) HasSc() bool` + +HasSc returns a boolean if a field has been set. + ### GetChanges `func (o *LiveEvent) GetChanges() map[string]int32` diff --git a/client/docs/LiveEventType.md b/client/docs/LiveEventType.md index f4e7826..54e5d95 100644 --- a/client/docs/LiveEventType.md +++ b/client/docs/LiveEventType.md @@ -37,6 +37,18 @@ * `DELETED_FEED_POST` (value: `"deleted-feed-post"`) +* `NEW_TICKET` (value: `"new-ticket"`) + +* `UPDATED_TICKET_STATE` (value: `"updated-ticket-state"`) + +* `UPDATED_TICKET_ASSIGNMENT` (value: `"updated-ticket-assignment"`) + +* `DELETED_TICKET` (value: `"deleted-ticket"`) + +* `PAGE_REACT` (value: `"page-react"`) + +* `QUESTION_RESULT` (value: `"question-result"`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/LockComment200Response.md b/client/docs/LockComment200Response.md deleted file mode 100644 index 1539074..0000000 --- a/client/docs/LockComment200Response.md +++ /dev/null @@ -1,223 +0,0 @@ -# LockComment200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewLockComment200Response - -`func NewLockComment200Response(status APIStatus, reason string, code string, ) *LockComment200Response` - -NewLockComment200Response instantiates a new LockComment200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewLockComment200ResponseWithDefaults - -`func NewLockComment200ResponseWithDefaults() *LockComment200Response` - -NewLockComment200ResponseWithDefaults instantiates a new LockComment200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *LockComment200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *LockComment200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *LockComment200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetReason - -`func (o *LockComment200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *LockComment200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *LockComment200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *LockComment200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *LockComment200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *LockComment200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *LockComment200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *LockComment200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *LockComment200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *LockComment200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *LockComment200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *LockComment200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *LockComment200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *LockComment200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *LockComment200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *LockComment200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *LockComment200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *LockComment200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *LockComment200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *LockComment200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *LockComment200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *LockComment200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *LockComment200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *LockComment200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *LockComment200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *LockComment200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/ModerationAPI.md b/client/docs/ModerationAPI.md new file mode 100644 index 0000000..b97e4e6 --- /dev/null +++ b/client/docs/ModerationAPI.md @@ -0,0 +1,3068 @@ +# \ModerationAPI + +All URIs are relative to *https://fastcomments.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**DeleteModerationVote**](ModerationAPI.md#DeleteModerationVote) | **Delete** /auth/my-account/moderate-comments/vote/{commentId}/{voteId} | +[**GetApiComments**](ModerationAPI.md#GetApiComments) | **Get** /auth/my-account/moderate-comments/api/comments | +[**GetApiExportStatus**](ModerationAPI.md#GetApiExportStatus) | **Get** /auth/my-account/moderate-comments/api/export/status | +[**GetApiIds**](ModerationAPI.md#GetApiIds) | **Get** /auth/my-account/moderate-comments/api/ids | +[**GetBanUsersFromComment**](ModerationAPI.md#GetBanUsersFromComment) | **Get** /auth/my-account/moderate-comments/ban-users/from-comment/{commentId} | +[**GetCommentBanStatus**](ModerationAPI.md#GetCommentBanStatus) | **Get** /auth/my-account/moderate-comments/get-comment-ban-status/{commentId} | +[**GetCommentChildren**](ModerationAPI.md#GetCommentChildren) | **Get** /auth/my-account/moderate-comments/comment-children/{commentId} | +[**GetCount**](ModerationAPI.md#GetCount) | **Get** /auth/my-account/moderate-comments/count | +[**GetCounts**](ModerationAPI.md#GetCounts) | **Get** /auth/my-account/moderate-comments/banned-users/counts | +[**GetLogs**](ModerationAPI.md#GetLogs) | **Get** /auth/my-account/moderate-comments/logs/{commentId} | +[**GetManualBadges**](ModerationAPI.md#GetManualBadges) | **Get** /auth/my-account/moderate-comments/get-manual-badges | +[**GetManualBadgesForUser**](ModerationAPI.md#GetManualBadgesForUser) | **Get** /auth/my-account/moderate-comments/get-manual-badges-for-user | +[**GetModerationComment**](ModerationAPI.md#GetModerationComment) | **Get** /auth/my-account/moderate-comments/comment/{commentId} | +[**GetModerationCommentText**](ModerationAPI.md#GetModerationCommentText) | **Get** /auth/my-account/moderate-comments/get-comment-text/{commentId} | +[**GetPreBanSummary**](ModerationAPI.md#GetPreBanSummary) | **Get** /auth/my-account/moderate-comments/pre-ban-summary/{commentId} | +[**GetSearchCommentsSummary**](ModerationAPI.md#GetSearchCommentsSummary) | **Get** /auth/my-account/moderate-comments/search/comments/summary | +[**GetSearchPages**](ModerationAPI.md#GetSearchPages) | **Get** /auth/my-account/moderate-comments/search/pages | +[**GetSearchSites**](ModerationAPI.md#GetSearchSites) | **Get** /auth/my-account/moderate-comments/search/sites | +[**GetSearchSuggest**](ModerationAPI.md#GetSearchSuggest) | **Get** /auth/my-account/moderate-comments/search/suggest | +[**GetSearchUsers**](ModerationAPI.md#GetSearchUsers) | **Get** /auth/my-account/moderate-comments/search/users | +[**GetTrustFactor**](ModerationAPI.md#GetTrustFactor) | **Get** /auth/my-account/moderate-comments/get-trust-factor | +[**GetUserBanPreference**](ModerationAPI.md#GetUserBanPreference) | **Get** /auth/my-account/moderate-comments/user-ban-preference | +[**GetUserInternalProfile**](ModerationAPI.md#GetUserInternalProfile) | **Get** /auth/my-account/moderate-comments/get-user-internal-profile | +[**PostAdjustCommentVotes**](ModerationAPI.md#PostAdjustCommentVotes) | **Post** /auth/my-account/moderate-comments/adjust-comment-votes/{commentId} | +[**PostApiExport**](ModerationAPI.md#PostApiExport) | **Post** /auth/my-account/moderate-comments/api/export | +[**PostBanUserFromComment**](ModerationAPI.md#PostBanUserFromComment) | **Post** /auth/my-account/moderate-comments/ban-user/from-comment/{commentId} | +[**PostBanUserUndo**](ModerationAPI.md#PostBanUserUndo) | **Post** /auth/my-account/moderate-comments/ban-user/undo | +[**PostBulkPreBanSummary**](ModerationAPI.md#PostBulkPreBanSummary) | **Post** /auth/my-account/moderate-comments/bulk-pre-ban-summary | +[**PostCommentsByIds**](ModerationAPI.md#PostCommentsByIds) | **Post** /auth/my-account/moderate-comments/comments-by-ids | +[**PostFlagComment**](ModerationAPI.md#PostFlagComment) | **Post** /auth/my-account/moderate-comments/flag-comment/{commentId} | +[**PostRemoveComment**](ModerationAPI.md#PostRemoveComment) | **Post** /auth/my-account/moderate-comments/remove-comment/{commentId} | +[**PostRestoreDeletedComment**](ModerationAPI.md#PostRestoreDeletedComment) | **Post** /auth/my-account/moderate-comments/restore-deleted-comment/{commentId} | +[**PostSetCommentApprovalStatus**](ModerationAPI.md#PostSetCommentApprovalStatus) | **Post** /auth/my-account/moderate-comments/set-comment-approval-status/{commentId} | +[**PostSetCommentReviewStatus**](ModerationAPI.md#PostSetCommentReviewStatus) | **Post** /auth/my-account/moderate-comments/set-comment-review-status/{commentId} | +[**PostSetCommentSpamStatus**](ModerationAPI.md#PostSetCommentSpamStatus) | **Post** /auth/my-account/moderate-comments/set-comment-spam-status/{commentId} | +[**PostSetCommentText**](ModerationAPI.md#PostSetCommentText) | **Post** /auth/my-account/moderate-comments/set-comment-text/{commentId} | +[**PostUnFlagComment**](ModerationAPI.md#PostUnFlagComment) | **Post** /auth/my-account/moderate-comments/un-flag-comment/{commentId} | +[**PostVote**](ModerationAPI.md#PostVote) | **Post** /auth/my-account/moderate-comments/vote/{commentId} | +[**PutAwardBadge**](ModerationAPI.md#PutAwardBadge) | **Put** /auth/my-account/moderate-comments/award-badge | +[**PutCloseThread**](ModerationAPI.md#PutCloseThread) | **Put** /auth/my-account/moderate-comments/close-thread | +[**PutRemoveBadge**](ModerationAPI.md#PutRemoveBadge) | **Put** /auth/my-account/moderate-comments/remove-badge | +[**PutReopenThread**](ModerationAPI.md#PutReopenThread) | **Put** /auth/my-account/moderate-comments/reopen-thread | +[**SetTrustFactor**](ModerationAPI.md#SetTrustFactor) | **Put** /auth/my-account/moderate-comments/set-trust-factor | + + + +## DeleteModerationVote + +> VoteDeleteResponse DeleteModerationVote(ctx, commentId, voteId).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + commentId := "commentId_example" // string | + voteId := "voteId_example" // string | + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.DeleteModerationVote(context.Background(), commentId, voteId).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.DeleteModerationVote``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteModerationVote`: VoteDeleteResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.DeleteModerationVote`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**commentId** | **string** | | +**voteId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteModerationVoteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **sso** | **string** | | + +### Return type + +[**VoteDeleteResponse**](VoteDeleteResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetApiComments + +> ModerationAPIGetCommentsResponse GetApiComments(ctx).Page(page).Count(count).TextSearch(textSearch).ByIPFromComment(byIPFromComment).Filters(filters).SearchFilters(searchFilters).Sorts(sorts).Demo(demo).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + page := float64(1.2) // float64 | (optional) + count := float64(1.2) // float64 | (optional) + textSearch := "textSearch_example" // string | (optional) + byIPFromComment := "byIPFromComment_example" // string | (optional) + filters := "filters_example" // string | (optional) + searchFilters := "searchFilters_example" // string | (optional) + sorts := "sorts_example" // string | (optional) + demo := true // bool | (optional) + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.GetApiComments(context.Background()).Page(page).Count(count).TextSearch(textSearch).ByIPFromComment(byIPFromComment).Filters(filters).SearchFilters(searchFilters).Sorts(sorts).Demo(demo).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetApiComments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetApiComments`: ModerationAPIGetCommentsResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetApiComments`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetApiCommentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **float64** | | + **count** | **float64** | | + **textSearch** | **string** | | + **byIPFromComment** | **string** | | + **filters** | **string** | | + **searchFilters** | **string** | | + **sorts** | **string** | | + **demo** | **bool** | | + **sso** | **string** | | + +### Return type + +[**ModerationAPIGetCommentsResponse**](ModerationAPIGetCommentsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetApiExportStatus + +> ModerationExportStatusResponse GetApiExportStatus(ctx).BatchJobId(batchJobId).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + batchJobId := "batchJobId_example" // string | (optional) + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.GetApiExportStatus(context.Background()).BatchJobId(batchJobId).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetApiExportStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetApiExportStatus`: ModerationExportStatusResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetApiExportStatus`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetApiExportStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **batchJobId** | **string** | | + **sso** | **string** | | + +### Return type + +[**ModerationExportStatusResponse**](ModerationExportStatusResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetApiIds + +> ModerationAPIGetCommentIdsResponse GetApiIds(ctx).TextSearch(textSearch).ByIPFromComment(byIPFromComment).Filters(filters).SearchFilters(searchFilters).AfterId(afterId).Demo(demo).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + textSearch := "textSearch_example" // string | (optional) + byIPFromComment := "byIPFromComment_example" // string | (optional) + filters := "filters_example" // string | (optional) + searchFilters := "searchFilters_example" // string | (optional) + afterId := "afterId_example" // string | (optional) + demo := true // bool | (optional) + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.GetApiIds(context.Background()).TextSearch(textSearch).ByIPFromComment(byIPFromComment).Filters(filters).SearchFilters(searchFilters).AfterId(afterId).Demo(demo).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetApiIds``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetApiIds`: ModerationAPIGetCommentIdsResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetApiIds`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetApiIdsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **textSearch** | **string** | | + **byIPFromComment** | **string** | | + **filters** | **string** | | + **searchFilters** | **string** | | + **afterId** | **string** | | + **demo** | **bool** | | + **sso** | **string** | | + +### Return type + +[**ModerationAPIGetCommentIdsResponse**](ModerationAPIGetCommentIdsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetBanUsersFromComment + +> GetBannedUsersFromCommentResponse GetBanUsersFromComment(ctx, commentId).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + commentId := "commentId_example" // string | + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.GetBanUsersFromComment(context.Background(), commentId).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetBanUsersFromComment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetBanUsersFromComment`: GetBannedUsersFromCommentResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetBanUsersFromComment`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**commentId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetBanUsersFromCommentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **sso** | **string** | | + +### Return type + +[**GetBannedUsersFromCommentResponse**](GetBannedUsersFromCommentResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCommentBanStatus + +> GetCommentBanStatusResponse GetCommentBanStatus(ctx, commentId).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + commentId := "commentId_example" // string | + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.GetCommentBanStatus(context.Background(), commentId).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetCommentBanStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCommentBanStatus`: GetCommentBanStatusResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetCommentBanStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**commentId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCommentBanStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **sso** | **string** | | + +### Return type + +[**GetCommentBanStatusResponse**](GetCommentBanStatusResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCommentChildren + +> ModerationAPIChildCommentsResponse GetCommentChildren(ctx, commentId).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + commentId := "commentId_example" // string | + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.GetCommentChildren(context.Background(), commentId).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetCommentChildren``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCommentChildren`: ModerationAPIChildCommentsResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetCommentChildren`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**commentId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCommentChildrenRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **sso** | **string** | | + +### Return type + +[**ModerationAPIChildCommentsResponse**](ModerationAPIChildCommentsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCount + +> ModerationAPICountCommentsResponse GetCount(ctx).TextSearch(textSearch).ByIPFromComment(byIPFromComment).Filter(filter).SearchFilters(searchFilters).Demo(demo).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + textSearch := "textSearch_example" // string | (optional) + byIPFromComment := "byIPFromComment_example" // string | (optional) + filter := "filter_example" // string | (optional) + searchFilters := "searchFilters_example" // string | (optional) + demo := true // bool | (optional) + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.GetCount(context.Background()).TextSearch(textSearch).ByIPFromComment(byIPFromComment).Filter(filter).SearchFilters(searchFilters).Demo(demo).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetCount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCount`: ModerationAPICountCommentsResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetCount`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCountRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **textSearch** | **string** | | + **byIPFromComment** | **string** | | + **filter** | **string** | | + **searchFilters** | **string** | | + **demo** | **bool** | | + **sso** | **string** | | + +### Return type + +[**ModerationAPICountCommentsResponse**](ModerationAPICountCommentsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCounts + +> GetBannedUsersCountResponse GetCounts(ctx).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.GetCounts(context.Background()).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetCounts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCounts`: GetBannedUsersCountResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetCounts`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCountsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sso** | **string** | | + +### Return type + +[**GetBannedUsersCountResponse**](GetBannedUsersCountResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetLogs + +> ModerationAPIGetLogsResponse GetLogs(ctx, commentId).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + commentId := "commentId_example" // string | + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.GetLogs(context.Background(), commentId).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetLogs``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetLogs`: ModerationAPIGetLogsResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetLogs`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**commentId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetLogsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **sso** | **string** | | + +### Return type + +[**ModerationAPIGetLogsResponse**](ModerationAPIGetLogsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetManualBadges + +> GetTenantManualBadgesResponse GetManualBadges(ctx).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.GetManualBadges(context.Background()).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetManualBadges``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetManualBadges`: GetTenantManualBadgesResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetManualBadges`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetManualBadgesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sso** | **string** | | + +### Return type + +[**GetTenantManualBadgesResponse**](GetTenantManualBadgesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetManualBadgesForUser + +> GetUserManualBadgesResponse GetManualBadgesForUser(ctx).BadgesUserId(badgesUserId).CommentId(commentId).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + badgesUserId := "badgesUserId_example" // string | (optional) + commentId := "commentId_example" // string | (optional) + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.GetManualBadgesForUser(context.Background()).BadgesUserId(badgesUserId).CommentId(commentId).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetManualBadgesForUser``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetManualBadgesForUser`: GetUserManualBadgesResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetManualBadgesForUser`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetManualBadgesForUserRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **badgesUserId** | **string** | | + **commentId** | **string** | | + **sso** | **string** | | + +### Return type + +[**GetUserManualBadgesResponse**](GetUserManualBadgesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetModerationComment + +> ModerationAPICommentResponse GetModerationComment(ctx, commentId).IncludeEmail(includeEmail).IncludeIP(includeIP).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + commentId := "commentId_example" // string | + includeEmail := true // bool | (optional) + includeIP := true // bool | (optional) + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.GetModerationComment(context.Background(), commentId).IncludeEmail(includeEmail).IncludeIP(includeIP).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetModerationComment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetModerationComment`: ModerationAPICommentResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetModerationComment`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**commentId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetModerationCommentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **includeEmail** | **bool** | | + **includeIP** | **bool** | | + **sso** | **string** | | + +### Return type + +[**ModerationAPICommentResponse**](ModerationAPICommentResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetModerationCommentText + +> GetCommentTextResponse GetModerationCommentText(ctx, commentId).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + commentId := "commentId_example" // string | + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.GetModerationCommentText(context.Background(), commentId).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetModerationCommentText``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetModerationCommentText`: GetCommentTextResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetModerationCommentText`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**commentId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetModerationCommentTextRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **sso** | **string** | | + +### Return type + +[**GetCommentTextResponse**](GetCommentTextResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetPreBanSummary + +> PreBanSummary GetPreBanSummary(ctx, commentId).IncludeByUserIdAndEmail(includeByUserIdAndEmail).IncludeByIP(includeByIP).IncludeByEmailDomain(includeByEmailDomain).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + commentId := "commentId_example" // string | + includeByUserIdAndEmail := true // bool | (optional) + includeByIP := true // bool | (optional) + includeByEmailDomain := true // bool | (optional) + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.GetPreBanSummary(context.Background(), commentId).IncludeByUserIdAndEmail(includeByUserIdAndEmail).IncludeByIP(includeByIP).IncludeByEmailDomain(includeByEmailDomain).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetPreBanSummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPreBanSummary`: PreBanSummary + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetPreBanSummary`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**commentId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetPreBanSummaryRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **includeByUserIdAndEmail** | **bool** | | + **includeByIP** | **bool** | | + **includeByEmailDomain** | **bool** | | + **sso** | **string** | | + +### Return type + +[**PreBanSummary**](PreBanSummary.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSearchCommentsSummary + +> ModerationCommentSearchResponse GetSearchCommentsSummary(ctx).Value(value).Filters(filters).SearchFilters(searchFilters).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + value := "value_example" // string | (optional) + filters := "filters_example" // string | (optional) + searchFilters := "searchFilters_example" // string | (optional) + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.GetSearchCommentsSummary(context.Background()).Value(value).Filters(filters).SearchFilters(searchFilters).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetSearchCommentsSummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSearchCommentsSummary`: ModerationCommentSearchResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetSearchCommentsSummary`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSearchCommentsSummaryRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **value** | **string** | | + **filters** | **string** | | + **searchFilters** | **string** | | + **sso** | **string** | | + +### Return type + +[**ModerationCommentSearchResponse**](ModerationCommentSearchResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSearchPages + +> ModerationPageSearchResponse GetSearchPages(ctx).Value(value).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + value := "value_example" // string | (optional) + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.GetSearchPages(context.Background()).Value(value).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetSearchPages``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSearchPages`: ModerationPageSearchResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetSearchPages`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSearchPagesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **value** | **string** | | + **sso** | **string** | | + +### Return type + +[**ModerationPageSearchResponse**](ModerationPageSearchResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSearchSites + +> ModerationSiteSearchResponse GetSearchSites(ctx).Value(value).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + value := "value_example" // string | (optional) + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.GetSearchSites(context.Background()).Value(value).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetSearchSites``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSearchSites`: ModerationSiteSearchResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetSearchSites`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSearchSitesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **value** | **string** | | + **sso** | **string** | | + +### Return type + +[**ModerationSiteSearchResponse**](ModerationSiteSearchResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSearchSuggest + +> ModerationSuggestResponse GetSearchSuggest(ctx).TextSearch(textSearch).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + textSearch := "textSearch_example" // string | (optional) + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.GetSearchSuggest(context.Background()).TextSearch(textSearch).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetSearchSuggest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSearchSuggest`: ModerationSuggestResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetSearchSuggest`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSearchSuggestRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **textSearch** | **string** | | + **sso** | **string** | | + +### Return type + +[**ModerationSuggestResponse**](ModerationSuggestResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSearchUsers + +> ModerationUserSearchResponse GetSearchUsers(ctx).Value(value).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + value := "value_example" // string | (optional) + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.GetSearchUsers(context.Background()).Value(value).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetSearchUsers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSearchUsers`: ModerationUserSearchResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetSearchUsers`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSearchUsersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **value** | **string** | | + **sso** | **string** | | + +### Return type + +[**ModerationUserSearchResponse**](ModerationUserSearchResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetTrustFactor + +> GetUserTrustFactorResponse GetTrustFactor(ctx).UserId(userId).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + userId := "userId_example" // string | (optional) + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.GetTrustFactor(context.Background()).UserId(userId).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetTrustFactor``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTrustFactor`: GetUserTrustFactorResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetTrustFactor`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetTrustFactorRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **string** | | + **sso** | **string** | | + +### Return type + +[**GetUserTrustFactorResponse**](GetUserTrustFactorResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetUserBanPreference + +> APIModerateGetUserBanPreferencesResponse GetUserBanPreference(ctx).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.GetUserBanPreference(context.Background()).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetUserBanPreference``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetUserBanPreference`: APIModerateGetUserBanPreferencesResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetUserBanPreference`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetUserBanPreferenceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sso** | **string** | | + +### Return type + +[**APIModerateGetUserBanPreferencesResponse**](APIModerateGetUserBanPreferencesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetUserInternalProfile + +> GetUserInternalProfileResponse GetUserInternalProfile(ctx).CommentId(commentId).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + commentId := "commentId_example" // string | (optional) + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.GetUserInternalProfile(context.Background()).CommentId(commentId).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetUserInternalProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetUserInternalProfile`: GetUserInternalProfileResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetUserInternalProfile`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetUserInternalProfileRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **string** | | + **sso** | **string** | | + +### Return type + +[**GetUserInternalProfileResponse**](GetUserInternalProfileResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PostAdjustCommentVotes + +> AdjustVotesResponse PostAdjustCommentVotes(ctx, commentId).AdjustCommentVotesParams(adjustCommentVotesParams).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + commentId := "commentId_example" // string | + adjustCommentVotesParams := *openapiclient.NewAdjustCommentVotesParams(float64(123)) // AdjustCommentVotesParams | + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.PostAdjustCommentVotes(context.Background(), commentId).AdjustCommentVotesParams(adjustCommentVotesParams).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostAdjustCommentVotes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostAdjustCommentVotes`: AdjustVotesResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PostAdjustCommentVotes`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**commentId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostAdjustCommentVotesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **adjustCommentVotesParams** | [**AdjustCommentVotesParams**](AdjustCommentVotesParams.md) | | + **sso** | **string** | | + +### Return type + +[**AdjustVotesResponse**](AdjustVotesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PostApiExport + +> ModerationExportResponse PostApiExport(ctx).TextSearch(textSearch).ByIPFromComment(byIPFromComment).Filters(filters).SearchFilters(searchFilters).Sorts(sorts).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + textSearch := "textSearch_example" // string | (optional) + byIPFromComment := "byIPFromComment_example" // string | (optional) + filters := "filters_example" // string | (optional) + searchFilters := "searchFilters_example" // string | (optional) + sorts := "sorts_example" // string | (optional) + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.PostApiExport(context.Background()).TextSearch(textSearch).ByIPFromComment(byIPFromComment).Filters(filters).SearchFilters(searchFilters).Sorts(sorts).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostApiExport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostApiExport`: ModerationExportResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PostApiExport`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostApiExportRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **textSearch** | **string** | | + **byIPFromComment** | **string** | | + **filters** | **string** | | + **searchFilters** | **string** | | + **sorts** | **string** | | + **sso** | **string** | | + +### Return type + +[**ModerationExportResponse**](ModerationExportResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PostBanUserFromComment + +> BanUserFromCommentResult PostBanUserFromComment(ctx, commentId).BanEmail(banEmail).BanEmailDomain(banEmailDomain).BanIP(banIP).DeleteAllUsersComments(deleteAllUsersComments).BannedUntil(bannedUntil).IsShadowBan(isShadowBan).UpdateId(updateId).BanReason(banReason).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + commentId := "commentId_example" // string | + banEmail := true // bool | (optional) + banEmailDomain := true // bool | (optional) + banIP := true // bool | (optional) + deleteAllUsersComments := true // bool | (optional) + bannedUntil := "bannedUntil_example" // string | (optional) + isShadowBan := true // bool | (optional) + updateId := "updateId_example" // string | (optional) + banReason := "banReason_example" // string | (optional) + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.PostBanUserFromComment(context.Background(), commentId).BanEmail(banEmail).BanEmailDomain(banEmailDomain).BanIP(banIP).DeleteAllUsersComments(deleteAllUsersComments).BannedUntil(bannedUntil).IsShadowBan(isShadowBan).UpdateId(updateId).BanReason(banReason).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostBanUserFromComment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostBanUserFromComment`: BanUserFromCommentResult + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PostBanUserFromComment`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**commentId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostBanUserFromCommentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **banEmail** | **bool** | | + **banEmailDomain** | **bool** | | + **banIP** | **bool** | | + **deleteAllUsersComments** | **bool** | | + **bannedUntil** | **string** | | + **isShadowBan** | **bool** | | + **updateId** | **string** | | + **banReason** | **string** | | + **sso** | **string** | | + +### Return type + +[**BanUserFromCommentResult**](BanUserFromCommentResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PostBanUserUndo + +> APIEmptyResponse PostBanUserUndo(ctx).BanUserUndoParams(banUserUndoParams).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + banUserUndoParams := *openapiclient.NewBanUserUndoParams(*openapiclient.NewAPIBanUserChangeLog()) // BanUserUndoParams | + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.PostBanUserUndo(context.Background()).BanUserUndoParams(banUserUndoParams).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostBanUserUndo``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostBanUserUndo`: APIEmptyResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PostBanUserUndo`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostBanUserUndoRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **banUserUndoParams** | [**BanUserUndoParams**](BanUserUndoParams.md) | | + **sso** | **string** | | + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PostBulkPreBanSummary + +> BulkPreBanSummary PostBulkPreBanSummary(ctx).BulkPreBanParams(bulkPreBanParams).IncludeByUserIdAndEmail(includeByUserIdAndEmail).IncludeByIP(includeByIP).IncludeByEmailDomain(includeByEmailDomain).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + bulkPreBanParams := *openapiclient.NewBulkPreBanParams([]string{"CommentIds_example"}) // BulkPreBanParams | + includeByUserIdAndEmail := true // bool | (optional) + includeByIP := true // bool | (optional) + includeByEmailDomain := true // bool | (optional) + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.PostBulkPreBanSummary(context.Background()).BulkPreBanParams(bulkPreBanParams).IncludeByUserIdAndEmail(includeByUserIdAndEmail).IncludeByIP(includeByIP).IncludeByEmailDomain(includeByEmailDomain).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostBulkPreBanSummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostBulkPreBanSummary`: BulkPreBanSummary + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PostBulkPreBanSummary`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostBulkPreBanSummaryRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bulkPreBanParams** | [**BulkPreBanParams**](BulkPreBanParams.md) | | + **includeByUserIdAndEmail** | **bool** | | + **includeByIP** | **bool** | | + **includeByEmailDomain** | **bool** | | + **sso** | **string** | | + +### Return type + +[**BulkPreBanSummary**](BulkPreBanSummary.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PostCommentsByIds + +> ModerationAPIChildCommentsResponse PostCommentsByIds(ctx).CommentsByIdsParams(commentsByIdsParams).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + commentsByIdsParams := *openapiclient.NewCommentsByIdsParams([]string{"Ids_example"}) // CommentsByIdsParams | + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.PostCommentsByIds(context.Background()).CommentsByIdsParams(commentsByIdsParams).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostCommentsByIds``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostCommentsByIds`: ModerationAPIChildCommentsResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PostCommentsByIds`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostCommentsByIdsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentsByIdsParams** | [**CommentsByIdsParams**](CommentsByIdsParams.md) | | + **sso** | **string** | | + +### Return type + +[**ModerationAPIChildCommentsResponse**](ModerationAPIChildCommentsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PostFlagComment + +> APIEmptyResponse PostFlagComment(ctx, commentId).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + commentId := "commentId_example" // string | + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.PostFlagComment(context.Background(), commentId).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostFlagComment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostFlagComment`: APIEmptyResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PostFlagComment`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**commentId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostFlagCommentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **sso** | **string** | | + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PostRemoveComment + +> PostRemoveCommentResponse PostRemoveComment(ctx, commentId).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + commentId := "commentId_example" // string | + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.PostRemoveComment(context.Background(), commentId).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostRemoveComment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostRemoveComment`: PostRemoveCommentResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PostRemoveComment`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**commentId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostRemoveCommentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **sso** | **string** | | + +### Return type + +[**PostRemoveCommentResponse**](PostRemoveCommentResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PostRestoreDeletedComment + +> APIEmptyResponse PostRestoreDeletedComment(ctx, commentId).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + commentId := "commentId_example" // string | + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.PostRestoreDeletedComment(context.Background(), commentId).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostRestoreDeletedComment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostRestoreDeletedComment`: APIEmptyResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PostRestoreDeletedComment`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**commentId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostRestoreDeletedCommentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **sso** | **string** | | + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PostSetCommentApprovalStatus + +> SetCommentApprovedResponse PostSetCommentApprovalStatus(ctx, commentId).Approved(approved).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + commentId := "commentId_example" // string | + approved := true // bool | (optional) + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.PostSetCommentApprovalStatus(context.Background(), commentId).Approved(approved).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostSetCommentApprovalStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostSetCommentApprovalStatus`: SetCommentApprovedResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PostSetCommentApprovalStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**commentId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostSetCommentApprovalStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **approved** | **bool** | | + **sso** | **string** | | + +### Return type + +[**SetCommentApprovedResponse**](SetCommentApprovedResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PostSetCommentReviewStatus + +> APIEmptyResponse PostSetCommentReviewStatus(ctx, commentId).Reviewed(reviewed).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + commentId := "commentId_example" // string | + reviewed := true // bool | (optional) + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.PostSetCommentReviewStatus(context.Background(), commentId).Reviewed(reviewed).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostSetCommentReviewStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostSetCommentReviewStatus`: APIEmptyResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PostSetCommentReviewStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**commentId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostSetCommentReviewStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **reviewed** | **bool** | | + **sso** | **string** | | + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PostSetCommentSpamStatus + +> APIEmptyResponse PostSetCommentSpamStatus(ctx, commentId).Spam(spam).PermNotSpam(permNotSpam).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + commentId := "commentId_example" // string | + spam := true // bool | (optional) + permNotSpam := true // bool | (optional) + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.PostSetCommentSpamStatus(context.Background(), commentId).Spam(spam).PermNotSpam(permNotSpam).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostSetCommentSpamStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostSetCommentSpamStatus`: APIEmptyResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PostSetCommentSpamStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**commentId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostSetCommentSpamStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **spam** | **bool** | | + **permNotSpam** | **bool** | | + **sso** | **string** | | + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PostSetCommentText + +> SetCommentTextResponse PostSetCommentText(ctx, commentId).SetCommentTextParams(setCommentTextParams).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + commentId := "commentId_example" // string | + setCommentTextParams := *openapiclient.NewSetCommentTextParams("Comment_example") // SetCommentTextParams | + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.PostSetCommentText(context.Background(), commentId).SetCommentTextParams(setCommentTextParams).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostSetCommentText``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostSetCommentText`: SetCommentTextResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PostSetCommentText`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**commentId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostSetCommentTextRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **setCommentTextParams** | [**SetCommentTextParams**](SetCommentTextParams.md) | | + **sso** | **string** | | + +### Return type + +[**SetCommentTextResponse**](SetCommentTextResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PostUnFlagComment + +> APIEmptyResponse PostUnFlagComment(ctx, commentId).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + commentId := "commentId_example" // string | + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.PostUnFlagComment(context.Background(), commentId).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostUnFlagComment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostUnFlagComment`: APIEmptyResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PostUnFlagComment`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**commentId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostUnFlagCommentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **sso** | **string** | | + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PostVote + +> VoteResponse PostVote(ctx, commentId).Direction(direction).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + commentId := "commentId_example" // string | + direction := "direction_example" // string | (optional) + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.PostVote(context.Background(), commentId).Direction(direction).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostVote``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostVote`: VoteResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PostVote`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**commentId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostVoteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **direction** | **string** | | + **sso** | **string** | | + +### Return type + +[**VoteResponse**](VoteResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PutAwardBadge + +> AwardUserBadgeResponse PutAwardBadge(ctx).BadgeId(badgeId).UserId(userId).CommentId(commentId).BroadcastId(broadcastId).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + badgeId := "badgeId_example" // string | + userId := "userId_example" // string | (optional) + commentId := "commentId_example" // string | (optional) + broadcastId := "broadcastId_example" // string | (optional) + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.PutAwardBadge(context.Background()).BadgeId(badgeId).UserId(userId).CommentId(commentId).BroadcastId(broadcastId).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PutAwardBadge``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutAwardBadge`: AwardUserBadgeResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PutAwardBadge`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPutAwardBadgeRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **badgeId** | **string** | | + **userId** | **string** | | + **commentId** | **string** | | + **broadcastId** | **string** | | + **sso** | **string** | | + +### Return type + +[**AwardUserBadgeResponse**](AwardUserBadgeResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PutCloseThread + +> APIEmptyResponse PutCloseThread(ctx).UrlId(urlId).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + urlId := "urlId_example" // string | + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.PutCloseThread(context.Background()).UrlId(urlId).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PutCloseThread``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutCloseThread`: APIEmptyResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PutCloseThread`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPutCloseThreadRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **urlId** | **string** | | + **sso** | **string** | | + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PutRemoveBadge + +> RemoveUserBadgeResponse PutRemoveBadge(ctx).BadgeId(badgeId).UserId(userId).CommentId(commentId).BroadcastId(broadcastId).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + badgeId := "badgeId_example" // string | + userId := "userId_example" // string | (optional) + commentId := "commentId_example" // string | (optional) + broadcastId := "broadcastId_example" // string | (optional) + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.PutRemoveBadge(context.Background()).BadgeId(badgeId).UserId(userId).CommentId(commentId).BroadcastId(broadcastId).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PutRemoveBadge``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutRemoveBadge`: RemoveUserBadgeResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PutRemoveBadge`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPutRemoveBadgeRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **badgeId** | **string** | | + **userId** | **string** | | + **commentId** | **string** | | + **broadcastId** | **string** | | + **sso** | **string** | | + +### Return type + +[**RemoveUserBadgeResponse**](RemoveUserBadgeResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PutReopenThread + +> APIEmptyResponse PutReopenThread(ctx).UrlId(urlId).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + urlId := "urlId_example" // string | + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.PutReopenThread(context.Background()).UrlId(urlId).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PutReopenThread``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutReopenThread`: APIEmptyResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PutReopenThread`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPutReopenThreadRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **urlId** | **string** | | + **sso** | **string** | | + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SetTrustFactor + +> SetUserTrustFactorResponse SetTrustFactor(ctx).UserId(userId).TrustFactor(trustFactor).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + userId := "userId_example" // string | (optional) + trustFactor := "trustFactor_example" // string | (optional) + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ModerationAPI.SetTrustFactor(context.Background()).UserId(userId).TrustFactor(trustFactor).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.SetTrustFactor``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetTrustFactor`: SetUserTrustFactorResponse + fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.SetTrustFactor`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSetTrustFactorRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **string** | | + **trustFactor** | **string** | | + **sso** | **string** | | + +### Return type + +[**SetUserTrustFactorResponse**](SetUserTrustFactorResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/client/docs/ModerationAPIChildCommentsResponse.md b/client/docs/ModerationAPIChildCommentsResponse.md new file mode 100644 index 0000000..754c10a --- /dev/null +++ b/client/docs/ModerationAPIChildCommentsResponse.md @@ -0,0 +1,72 @@ +# ModerationAPIChildCommentsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Comments** | [**[]ModerationAPIComment**](ModerationAPIComment.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | + +## Methods + +### NewModerationAPIChildCommentsResponse + +`func NewModerationAPIChildCommentsResponse(comments []ModerationAPIComment, status APIStatus, ) *ModerationAPIChildCommentsResponse` + +NewModerationAPIChildCommentsResponse instantiates a new ModerationAPIChildCommentsResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModerationAPIChildCommentsResponseWithDefaults + +`func NewModerationAPIChildCommentsResponseWithDefaults() *ModerationAPIChildCommentsResponse` + +NewModerationAPIChildCommentsResponseWithDefaults instantiates a new ModerationAPIChildCommentsResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetComments + +`func (o *ModerationAPIChildCommentsResponse) GetComments() []ModerationAPIComment` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ModerationAPIChildCommentsResponse) GetCommentsOk() (*[]ModerationAPIComment, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ModerationAPIChildCommentsResponse) SetComments(v []ModerationAPIComment)` + +SetComments sets Comments field to given value. + + +### GetStatus + +`func (o *ModerationAPIChildCommentsResponse) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ModerationAPIChildCommentsResponse) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ModerationAPIChildCommentsResponse) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationAPIComment.md b/client/docs/ModerationAPIComment.md new file mode 100644 index 0000000..012975c --- /dev/null +++ b/client/docs/ModerationAPIComment.md @@ -0,0 +1,1252 @@ +# ModerationAPIComment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsLocalDeleted** | Pointer to **bool** | | [optional] +**ReplyCount** | Pointer to **float64** | | [optional] +**FeedbackResults** | Pointer to **[]string** | | [optional] +**IsVotedUp** | Pointer to **bool** | | [optional] +**IsVotedDown** | Pointer to **bool** | | [optional] +**MyVoteId** | Pointer to **string** | | [optional] +**Id** | **string** | | +**TenantId** | **string** | | +**UrlId** | **string** | | +**Url** | **string** | | +**PageTitle** | Pointer to **NullableString** | | [optional] +**UserId** | Pointer to **NullableString** | | [optional] +**AnonUserId** | Pointer to **NullableString** | | [optional] +**CommenterName** | **string** | | +**CommenterLink** | Pointer to **NullableString** | | [optional] +**CommentHTML** | **string** | | +**ParentId** | Pointer to **NullableString** | | [optional] +**Date** | **NullableTime** | | +**LocalDateString** | Pointer to **NullableString** | | [optional] +**Votes** | Pointer to **NullableFloat64** | | [optional] +**VotesUp** | Pointer to **NullableFloat64** | | [optional] +**VotesDown** | Pointer to **NullableFloat64** | | [optional] +**ExpireAt** | Pointer to **NullableTime** | | [optional] +**Reviewed** | Pointer to **bool** | | [optional] +**AvatarSrc** | Pointer to **NullableString** | | [optional] +**IsSpam** | Pointer to **bool** | | [optional] +**PermNotSpam** | Pointer to **bool** | | [optional] +**HasLinks** | Pointer to **bool** | | [optional] +**HasCode** | Pointer to **bool** | | [optional] +**Approved** | **bool** | | +**Locale** | **NullableString** | | +**IsBannedUser** | Pointer to **bool** | | [optional] +**IsByAdmin** | Pointer to **bool** | | [optional] +**IsByModerator** | Pointer to **bool** | | [optional] +**IsPinned** | Pointer to **NullableBool** | | [optional] +**IsLocked** | Pointer to **NullableBool** | | [optional] +**FlagCount** | Pointer to **NullableFloat64** | | [optional] +**DisplayLabel** | Pointer to **NullableString** | | [optional] +**Badges** | Pointer to [**[]CommentUserBadgeInfo**](CommentUserBadgeInfo.md) | | [optional] +**Verified** | **bool** | | +**FeedbackIds** | Pointer to **[]string** | | [optional] +**IsDeleted** | Pointer to **bool** | | [optional] + +## Methods + +### NewModerationAPIComment + +`func NewModerationAPIComment(id string, tenantId string, urlId string, url string, commenterName string, commentHTML string, date NullableTime, approved bool, locale NullableString, verified bool, ) *ModerationAPIComment` + +NewModerationAPIComment instantiates a new ModerationAPIComment object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModerationAPICommentWithDefaults + +`func NewModerationAPICommentWithDefaults() *ModerationAPIComment` + +NewModerationAPICommentWithDefaults instantiates a new ModerationAPIComment object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIsLocalDeleted + +`func (o *ModerationAPIComment) GetIsLocalDeleted() bool` + +GetIsLocalDeleted returns the IsLocalDeleted field if non-nil, zero value otherwise. + +### GetIsLocalDeletedOk + +`func (o *ModerationAPIComment) GetIsLocalDeletedOk() (*bool, bool)` + +GetIsLocalDeletedOk returns a tuple with the IsLocalDeleted field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsLocalDeleted + +`func (o *ModerationAPIComment) SetIsLocalDeleted(v bool)` + +SetIsLocalDeleted sets IsLocalDeleted field to given value. + +### HasIsLocalDeleted + +`func (o *ModerationAPIComment) HasIsLocalDeleted() bool` + +HasIsLocalDeleted returns a boolean if a field has been set. + +### GetReplyCount + +`func (o *ModerationAPIComment) GetReplyCount() float64` + +GetReplyCount returns the ReplyCount field if non-nil, zero value otherwise. + +### GetReplyCountOk + +`func (o *ModerationAPIComment) GetReplyCountOk() (*float64, bool)` + +GetReplyCountOk returns a tuple with the ReplyCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReplyCount + +`func (o *ModerationAPIComment) SetReplyCount(v float64)` + +SetReplyCount sets ReplyCount field to given value. + +### HasReplyCount + +`func (o *ModerationAPIComment) HasReplyCount() bool` + +HasReplyCount returns a boolean if a field has been set. + +### GetFeedbackResults + +`func (o *ModerationAPIComment) GetFeedbackResults() []string` + +GetFeedbackResults returns the FeedbackResults field if non-nil, zero value otherwise. + +### GetFeedbackResultsOk + +`func (o *ModerationAPIComment) GetFeedbackResultsOk() (*[]string, bool)` + +GetFeedbackResultsOk returns a tuple with the FeedbackResults field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFeedbackResults + +`func (o *ModerationAPIComment) SetFeedbackResults(v []string)` + +SetFeedbackResults sets FeedbackResults field to given value. + +### HasFeedbackResults + +`func (o *ModerationAPIComment) HasFeedbackResults() bool` + +HasFeedbackResults returns a boolean if a field has been set. + +### GetIsVotedUp + +`func (o *ModerationAPIComment) GetIsVotedUp() bool` + +GetIsVotedUp returns the IsVotedUp field if non-nil, zero value otherwise. + +### GetIsVotedUpOk + +`func (o *ModerationAPIComment) GetIsVotedUpOk() (*bool, bool)` + +GetIsVotedUpOk returns a tuple with the IsVotedUp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsVotedUp + +`func (o *ModerationAPIComment) SetIsVotedUp(v bool)` + +SetIsVotedUp sets IsVotedUp field to given value. + +### HasIsVotedUp + +`func (o *ModerationAPIComment) HasIsVotedUp() bool` + +HasIsVotedUp returns a boolean if a field has been set. + +### GetIsVotedDown + +`func (o *ModerationAPIComment) GetIsVotedDown() bool` + +GetIsVotedDown returns the IsVotedDown field if non-nil, zero value otherwise. + +### GetIsVotedDownOk + +`func (o *ModerationAPIComment) GetIsVotedDownOk() (*bool, bool)` + +GetIsVotedDownOk returns a tuple with the IsVotedDown field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsVotedDown + +`func (o *ModerationAPIComment) SetIsVotedDown(v bool)` + +SetIsVotedDown sets IsVotedDown field to given value. + +### HasIsVotedDown + +`func (o *ModerationAPIComment) HasIsVotedDown() bool` + +HasIsVotedDown returns a boolean if a field has been set. + +### GetMyVoteId + +`func (o *ModerationAPIComment) GetMyVoteId() string` + +GetMyVoteId returns the MyVoteId field if non-nil, zero value otherwise. + +### GetMyVoteIdOk + +`func (o *ModerationAPIComment) GetMyVoteIdOk() (*string, bool)` + +GetMyVoteIdOk returns a tuple with the MyVoteId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMyVoteId + +`func (o *ModerationAPIComment) SetMyVoteId(v string)` + +SetMyVoteId sets MyVoteId field to given value. + +### HasMyVoteId + +`func (o *ModerationAPIComment) HasMyVoteId() bool` + +HasMyVoteId returns a boolean if a field has been set. + +### GetId + +`func (o *ModerationAPIComment) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModerationAPIComment) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModerationAPIComment) SetId(v string)` + +SetId sets Id field to given value. + + +### GetTenantId + +`func (o *ModerationAPIComment) GetTenantId() string` + +GetTenantId returns the TenantId field if non-nil, zero value otherwise. + +### GetTenantIdOk + +`func (o *ModerationAPIComment) GetTenantIdOk() (*string, bool)` + +GetTenantIdOk returns a tuple with the TenantId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenantId + +`func (o *ModerationAPIComment) SetTenantId(v string)` + +SetTenantId sets TenantId field to given value. + + +### GetUrlId + +`func (o *ModerationAPIComment) GetUrlId() string` + +GetUrlId returns the UrlId field if non-nil, zero value otherwise. + +### GetUrlIdOk + +`func (o *ModerationAPIComment) GetUrlIdOk() (*string, bool)` + +GetUrlIdOk returns a tuple with the UrlId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrlId + +`func (o *ModerationAPIComment) SetUrlId(v string)` + +SetUrlId sets UrlId field to given value. + + +### GetUrl + +`func (o *ModerationAPIComment) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *ModerationAPIComment) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *ModerationAPIComment) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetPageTitle + +`func (o *ModerationAPIComment) GetPageTitle() string` + +GetPageTitle returns the PageTitle field if non-nil, zero value otherwise. + +### GetPageTitleOk + +`func (o *ModerationAPIComment) GetPageTitleOk() (*string, bool)` + +GetPageTitleOk returns a tuple with the PageTitle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageTitle + +`func (o *ModerationAPIComment) SetPageTitle(v string)` + +SetPageTitle sets PageTitle field to given value. + +### HasPageTitle + +`func (o *ModerationAPIComment) HasPageTitle() bool` + +HasPageTitle returns a boolean if a field has been set. + +### SetPageTitleNil + +`func (o *ModerationAPIComment) SetPageTitleNil(b bool)` + + SetPageTitleNil sets the value for PageTitle to be an explicit nil + +### UnsetPageTitle +`func (o *ModerationAPIComment) UnsetPageTitle()` + +UnsetPageTitle ensures that no value is present for PageTitle, not even an explicit nil +### GetUserId + +`func (o *ModerationAPIComment) GetUserId() string` + +GetUserId returns the UserId field if non-nil, zero value otherwise. + +### GetUserIdOk + +`func (o *ModerationAPIComment) GetUserIdOk() (*string, bool)` + +GetUserIdOk returns a tuple with the UserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserId + +`func (o *ModerationAPIComment) SetUserId(v string)` + +SetUserId sets UserId field to given value. + +### HasUserId + +`func (o *ModerationAPIComment) HasUserId() bool` + +HasUserId returns a boolean if a field has been set. + +### SetUserIdNil + +`func (o *ModerationAPIComment) SetUserIdNil(b bool)` + + SetUserIdNil sets the value for UserId to be an explicit nil + +### UnsetUserId +`func (o *ModerationAPIComment) UnsetUserId()` + +UnsetUserId ensures that no value is present for UserId, not even an explicit nil +### GetAnonUserId + +`func (o *ModerationAPIComment) GetAnonUserId() string` + +GetAnonUserId returns the AnonUserId field if non-nil, zero value otherwise. + +### GetAnonUserIdOk + +`func (o *ModerationAPIComment) GetAnonUserIdOk() (*string, bool)` + +GetAnonUserIdOk returns a tuple with the AnonUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnonUserId + +`func (o *ModerationAPIComment) SetAnonUserId(v string)` + +SetAnonUserId sets AnonUserId field to given value. + +### HasAnonUserId + +`func (o *ModerationAPIComment) HasAnonUserId() bool` + +HasAnonUserId returns a boolean if a field has been set. + +### SetAnonUserIdNil + +`func (o *ModerationAPIComment) SetAnonUserIdNil(b bool)` + + SetAnonUserIdNil sets the value for AnonUserId to be an explicit nil + +### UnsetAnonUserId +`func (o *ModerationAPIComment) UnsetAnonUserId()` + +UnsetAnonUserId ensures that no value is present for AnonUserId, not even an explicit nil +### GetCommenterName + +`func (o *ModerationAPIComment) GetCommenterName() string` + +GetCommenterName returns the CommenterName field if non-nil, zero value otherwise. + +### GetCommenterNameOk + +`func (o *ModerationAPIComment) GetCommenterNameOk() (*string, bool)` + +GetCommenterNameOk returns a tuple with the CommenterName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommenterName + +`func (o *ModerationAPIComment) SetCommenterName(v string)` + +SetCommenterName sets CommenterName field to given value. + + +### GetCommenterLink + +`func (o *ModerationAPIComment) GetCommenterLink() string` + +GetCommenterLink returns the CommenterLink field if non-nil, zero value otherwise. + +### GetCommenterLinkOk + +`func (o *ModerationAPIComment) GetCommenterLinkOk() (*string, bool)` + +GetCommenterLinkOk returns a tuple with the CommenterLink field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommenterLink + +`func (o *ModerationAPIComment) SetCommenterLink(v string)` + +SetCommenterLink sets CommenterLink field to given value. + +### HasCommenterLink + +`func (o *ModerationAPIComment) HasCommenterLink() bool` + +HasCommenterLink returns a boolean if a field has been set. + +### SetCommenterLinkNil + +`func (o *ModerationAPIComment) SetCommenterLinkNil(b bool)` + + SetCommenterLinkNil sets the value for CommenterLink to be an explicit nil + +### UnsetCommenterLink +`func (o *ModerationAPIComment) UnsetCommenterLink()` + +UnsetCommenterLink ensures that no value is present for CommenterLink, not even an explicit nil +### GetCommentHTML + +`func (o *ModerationAPIComment) GetCommentHTML() string` + +GetCommentHTML returns the CommentHTML field if non-nil, zero value otherwise. + +### GetCommentHTMLOk + +`func (o *ModerationAPIComment) GetCommentHTMLOk() (*string, bool)` + +GetCommentHTMLOk returns a tuple with the CommentHTML field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommentHTML + +`func (o *ModerationAPIComment) SetCommentHTML(v string)` + +SetCommentHTML sets CommentHTML field to given value. + + +### GetParentId + +`func (o *ModerationAPIComment) GetParentId() string` + +GetParentId returns the ParentId field if non-nil, zero value otherwise. + +### GetParentIdOk + +`func (o *ModerationAPIComment) GetParentIdOk() (*string, bool)` + +GetParentIdOk returns a tuple with the ParentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParentId + +`func (o *ModerationAPIComment) SetParentId(v string)` + +SetParentId sets ParentId field to given value. + +### HasParentId + +`func (o *ModerationAPIComment) HasParentId() bool` + +HasParentId returns a boolean if a field has been set. + +### SetParentIdNil + +`func (o *ModerationAPIComment) SetParentIdNil(b bool)` + + SetParentIdNil sets the value for ParentId to be an explicit nil + +### UnsetParentId +`func (o *ModerationAPIComment) UnsetParentId()` + +UnsetParentId ensures that no value is present for ParentId, not even an explicit nil +### GetDate + +`func (o *ModerationAPIComment) GetDate() time.Time` + +GetDate returns the Date field if non-nil, zero value otherwise. + +### GetDateOk + +`func (o *ModerationAPIComment) GetDateOk() (*time.Time, bool)` + +GetDateOk returns a tuple with the Date field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDate + +`func (o *ModerationAPIComment) SetDate(v time.Time)` + +SetDate sets Date field to given value. + + +### SetDateNil + +`func (o *ModerationAPIComment) SetDateNil(b bool)` + + SetDateNil sets the value for Date to be an explicit nil + +### UnsetDate +`func (o *ModerationAPIComment) UnsetDate()` + +UnsetDate ensures that no value is present for Date, not even an explicit nil +### GetLocalDateString + +`func (o *ModerationAPIComment) GetLocalDateString() string` + +GetLocalDateString returns the LocalDateString field if non-nil, zero value otherwise. + +### GetLocalDateStringOk + +`func (o *ModerationAPIComment) GetLocalDateStringOk() (*string, bool)` + +GetLocalDateStringOk returns a tuple with the LocalDateString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalDateString + +`func (o *ModerationAPIComment) SetLocalDateString(v string)` + +SetLocalDateString sets LocalDateString field to given value. + +### HasLocalDateString + +`func (o *ModerationAPIComment) HasLocalDateString() bool` + +HasLocalDateString returns a boolean if a field has been set. + +### SetLocalDateStringNil + +`func (o *ModerationAPIComment) SetLocalDateStringNil(b bool)` + + SetLocalDateStringNil sets the value for LocalDateString to be an explicit nil + +### UnsetLocalDateString +`func (o *ModerationAPIComment) UnsetLocalDateString()` + +UnsetLocalDateString ensures that no value is present for LocalDateString, not even an explicit nil +### GetVotes + +`func (o *ModerationAPIComment) GetVotes() float64` + +GetVotes returns the Votes field if non-nil, zero value otherwise. + +### GetVotesOk + +`func (o *ModerationAPIComment) GetVotesOk() (*float64, bool)` + +GetVotesOk returns a tuple with the Votes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVotes + +`func (o *ModerationAPIComment) SetVotes(v float64)` + +SetVotes sets Votes field to given value. + +### HasVotes + +`func (o *ModerationAPIComment) HasVotes() bool` + +HasVotes returns a boolean if a field has been set. + +### SetVotesNil + +`func (o *ModerationAPIComment) SetVotesNil(b bool)` + + SetVotesNil sets the value for Votes to be an explicit nil + +### UnsetVotes +`func (o *ModerationAPIComment) UnsetVotes()` + +UnsetVotes ensures that no value is present for Votes, not even an explicit nil +### GetVotesUp + +`func (o *ModerationAPIComment) GetVotesUp() float64` + +GetVotesUp returns the VotesUp field if non-nil, zero value otherwise. + +### GetVotesUpOk + +`func (o *ModerationAPIComment) GetVotesUpOk() (*float64, bool)` + +GetVotesUpOk returns a tuple with the VotesUp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVotesUp + +`func (o *ModerationAPIComment) SetVotesUp(v float64)` + +SetVotesUp sets VotesUp field to given value. + +### HasVotesUp + +`func (o *ModerationAPIComment) HasVotesUp() bool` + +HasVotesUp returns a boolean if a field has been set. + +### SetVotesUpNil + +`func (o *ModerationAPIComment) SetVotesUpNil(b bool)` + + SetVotesUpNil sets the value for VotesUp to be an explicit nil + +### UnsetVotesUp +`func (o *ModerationAPIComment) UnsetVotesUp()` + +UnsetVotesUp ensures that no value is present for VotesUp, not even an explicit nil +### GetVotesDown + +`func (o *ModerationAPIComment) GetVotesDown() float64` + +GetVotesDown returns the VotesDown field if non-nil, zero value otherwise. + +### GetVotesDownOk + +`func (o *ModerationAPIComment) GetVotesDownOk() (*float64, bool)` + +GetVotesDownOk returns a tuple with the VotesDown field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVotesDown + +`func (o *ModerationAPIComment) SetVotesDown(v float64)` + +SetVotesDown sets VotesDown field to given value. + +### HasVotesDown + +`func (o *ModerationAPIComment) HasVotesDown() bool` + +HasVotesDown returns a boolean if a field has been set. + +### SetVotesDownNil + +`func (o *ModerationAPIComment) SetVotesDownNil(b bool)` + + SetVotesDownNil sets the value for VotesDown to be an explicit nil + +### UnsetVotesDown +`func (o *ModerationAPIComment) UnsetVotesDown()` + +UnsetVotesDown ensures that no value is present for VotesDown, not even an explicit nil +### GetExpireAt + +`func (o *ModerationAPIComment) GetExpireAt() time.Time` + +GetExpireAt returns the ExpireAt field if non-nil, zero value otherwise. + +### GetExpireAtOk + +`func (o *ModerationAPIComment) GetExpireAtOk() (*time.Time, bool)` + +GetExpireAtOk returns a tuple with the ExpireAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpireAt + +`func (o *ModerationAPIComment) SetExpireAt(v time.Time)` + +SetExpireAt sets ExpireAt field to given value. + +### HasExpireAt + +`func (o *ModerationAPIComment) HasExpireAt() bool` + +HasExpireAt returns a boolean if a field has been set. + +### SetExpireAtNil + +`func (o *ModerationAPIComment) SetExpireAtNil(b bool)` + + SetExpireAtNil sets the value for ExpireAt to be an explicit nil + +### UnsetExpireAt +`func (o *ModerationAPIComment) UnsetExpireAt()` + +UnsetExpireAt ensures that no value is present for ExpireAt, not even an explicit nil +### GetReviewed + +`func (o *ModerationAPIComment) GetReviewed() bool` + +GetReviewed returns the Reviewed field if non-nil, zero value otherwise. + +### GetReviewedOk + +`func (o *ModerationAPIComment) GetReviewedOk() (*bool, bool)` + +GetReviewedOk returns a tuple with the Reviewed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReviewed + +`func (o *ModerationAPIComment) SetReviewed(v bool)` + +SetReviewed sets Reviewed field to given value. + +### HasReviewed + +`func (o *ModerationAPIComment) HasReviewed() bool` + +HasReviewed returns a boolean if a field has been set. + +### GetAvatarSrc + +`func (o *ModerationAPIComment) GetAvatarSrc() string` + +GetAvatarSrc returns the AvatarSrc field if non-nil, zero value otherwise. + +### GetAvatarSrcOk + +`func (o *ModerationAPIComment) GetAvatarSrcOk() (*string, bool)` + +GetAvatarSrcOk returns a tuple with the AvatarSrc field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvatarSrc + +`func (o *ModerationAPIComment) SetAvatarSrc(v string)` + +SetAvatarSrc sets AvatarSrc field to given value. + +### HasAvatarSrc + +`func (o *ModerationAPIComment) HasAvatarSrc() bool` + +HasAvatarSrc returns a boolean if a field has been set. + +### SetAvatarSrcNil + +`func (o *ModerationAPIComment) SetAvatarSrcNil(b bool)` + + SetAvatarSrcNil sets the value for AvatarSrc to be an explicit nil + +### UnsetAvatarSrc +`func (o *ModerationAPIComment) UnsetAvatarSrc()` + +UnsetAvatarSrc ensures that no value is present for AvatarSrc, not even an explicit nil +### GetIsSpam + +`func (o *ModerationAPIComment) GetIsSpam() bool` + +GetIsSpam returns the IsSpam field if non-nil, zero value otherwise. + +### GetIsSpamOk + +`func (o *ModerationAPIComment) GetIsSpamOk() (*bool, bool)` + +GetIsSpamOk returns a tuple with the IsSpam field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsSpam + +`func (o *ModerationAPIComment) SetIsSpam(v bool)` + +SetIsSpam sets IsSpam field to given value. + +### HasIsSpam + +`func (o *ModerationAPIComment) HasIsSpam() bool` + +HasIsSpam returns a boolean if a field has been set. + +### GetPermNotSpam + +`func (o *ModerationAPIComment) GetPermNotSpam() bool` + +GetPermNotSpam returns the PermNotSpam field if non-nil, zero value otherwise. + +### GetPermNotSpamOk + +`func (o *ModerationAPIComment) GetPermNotSpamOk() (*bool, bool)` + +GetPermNotSpamOk returns a tuple with the PermNotSpam field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermNotSpam + +`func (o *ModerationAPIComment) SetPermNotSpam(v bool)` + +SetPermNotSpam sets PermNotSpam field to given value. + +### HasPermNotSpam + +`func (o *ModerationAPIComment) HasPermNotSpam() bool` + +HasPermNotSpam returns a boolean if a field has been set. + +### GetHasLinks + +`func (o *ModerationAPIComment) GetHasLinks() bool` + +GetHasLinks returns the HasLinks field if non-nil, zero value otherwise. + +### GetHasLinksOk + +`func (o *ModerationAPIComment) GetHasLinksOk() (*bool, bool)` + +GetHasLinksOk returns a tuple with the HasLinks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasLinks + +`func (o *ModerationAPIComment) SetHasLinks(v bool)` + +SetHasLinks sets HasLinks field to given value. + +### HasHasLinks + +`func (o *ModerationAPIComment) HasHasLinks() bool` + +HasHasLinks returns a boolean if a field has been set. + +### GetHasCode + +`func (o *ModerationAPIComment) GetHasCode() bool` + +GetHasCode returns the HasCode field if non-nil, zero value otherwise. + +### GetHasCodeOk + +`func (o *ModerationAPIComment) GetHasCodeOk() (*bool, bool)` + +GetHasCodeOk returns a tuple with the HasCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasCode + +`func (o *ModerationAPIComment) SetHasCode(v bool)` + +SetHasCode sets HasCode field to given value. + +### HasHasCode + +`func (o *ModerationAPIComment) HasHasCode() bool` + +HasHasCode returns a boolean if a field has been set. + +### GetApproved + +`func (o *ModerationAPIComment) GetApproved() bool` + +GetApproved returns the Approved field if non-nil, zero value otherwise. + +### GetApprovedOk + +`func (o *ModerationAPIComment) GetApprovedOk() (*bool, bool)` + +GetApprovedOk returns a tuple with the Approved field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApproved + +`func (o *ModerationAPIComment) SetApproved(v bool)` + +SetApproved sets Approved field to given value. + + +### GetLocale + +`func (o *ModerationAPIComment) GetLocale() string` + +GetLocale returns the Locale field if non-nil, zero value otherwise. + +### GetLocaleOk + +`func (o *ModerationAPIComment) GetLocaleOk() (*string, bool)` + +GetLocaleOk returns a tuple with the Locale field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocale + +`func (o *ModerationAPIComment) SetLocale(v string)` + +SetLocale sets Locale field to given value. + + +### SetLocaleNil + +`func (o *ModerationAPIComment) SetLocaleNil(b bool)` + + SetLocaleNil sets the value for Locale to be an explicit nil + +### UnsetLocale +`func (o *ModerationAPIComment) UnsetLocale()` + +UnsetLocale ensures that no value is present for Locale, not even an explicit nil +### GetIsBannedUser + +`func (o *ModerationAPIComment) GetIsBannedUser() bool` + +GetIsBannedUser returns the IsBannedUser field if non-nil, zero value otherwise. + +### GetIsBannedUserOk + +`func (o *ModerationAPIComment) GetIsBannedUserOk() (*bool, bool)` + +GetIsBannedUserOk returns a tuple with the IsBannedUser field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsBannedUser + +`func (o *ModerationAPIComment) SetIsBannedUser(v bool)` + +SetIsBannedUser sets IsBannedUser field to given value. + +### HasIsBannedUser + +`func (o *ModerationAPIComment) HasIsBannedUser() bool` + +HasIsBannedUser returns a boolean if a field has been set. + +### GetIsByAdmin + +`func (o *ModerationAPIComment) GetIsByAdmin() bool` + +GetIsByAdmin returns the IsByAdmin field if non-nil, zero value otherwise. + +### GetIsByAdminOk + +`func (o *ModerationAPIComment) GetIsByAdminOk() (*bool, bool)` + +GetIsByAdminOk returns a tuple with the IsByAdmin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsByAdmin + +`func (o *ModerationAPIComment) SetIsByAdmin(v bool)` + +SetIsByAdmin sets IsByAdmin field to given value. + +### HasIsByAdmin + +`func (o *ModerationAPIComment) HasIsByAdmin() bool` + +HasIsByAdmin returns a boolean if a field has been set. + +### GetIsByModerator + +`func (o *ModerationAPIComment) GetIsByModerator() bool` + +GetIsByModerator returns the IsByModerator field if non-nil, zero value otherwise. + +### GetIsByModeratorOk + +`func (o *ModerationAPIComment) GetIsByModeratorOk() (*bool, bool)` + +GetIsByModeratorOk returns a tuple with the IsByModerator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsByModerator + +`func (o *ModerationAPIComment) SetIsByModerator(v bool)` + +SetIsByModerator sets IsByModerator field to given value. + +### HasIsByModerator + +`func (o *ModerationAPIComment) HasIsByModerator() bool` + +HasIsByModerator returns a boolean if a field has been set. + +### GetIsPinned + +`func (o *ModerationAPIComment) GetIsPinned() bool` + +GetIsPinned returns the IsPinned field if non-nil, zero value otherwise. + +### GetIsPinnedOk + +`func (o *ModerationAPIComment) GetIsPinnedOk() (*bool, bool)` + +GetIsPinnedOk returns a tuple with the IsPinned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPinned + +`func (o *ModerationAPIComment) SetIsPinned(v bool)` + +SetIsPinned sets IsPinned field to given value. + +### HasIsPinned + +`func (o *ModerationAPIComment) HasIsPinned() bool` + +HasIsPinned returns a boolean if a field has been set. + +### SetIsPinnedNil + +`func (o *ModerationAPIComment) SetIsPinnedNil(b bool)` + + SetIsPinnedNil sets the value for IsPinned to be an explicit nil + +### UnsetIsPinned +`func (o *ModerationAPIComment) UnsetIsPinned()` + +UnsetIsPinned ensures that no value is present for IsPinned, not even an explicit nil +### GetIsLocked + +`func (o *ModerationAPIComment) GetIsLocked() bool` + +GetIsLocked returns the IsLocked field if non-nil, zero value otherwise. + +### GetIsLockedOk + +`func (o *ModerationAPIComment) GetIsLockedOk() (*bool, bool)` + +GetIsLockedOk returns a tuple with the IsLocked field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsLocked + +`func (o *ModerationAPIComment) SetIsLocked(v bool)` + +SetIsLocked sets IsLocked field to given value. + +### HasIsLocked + +`func (o *ModerationAPIComment) HasIsLocked() bool` + +HasIsLocked returns a boolean if a field has been set. + +### SetIsLockedNil + +`func (o *ModerationAPIComment) SetIsLockedNil(b bool)` + + SetIsLockedNil sets the value for IsLocked to be an explicit nil + +### UnsetIsLocked +`func (o *ModerationAPIComment) UnsetIsLocked()` + +UnsetIsLocked ensures that no value is present for IsLocked, not even an explicit nil +### GetFlagCount + +`func (o *ModerationAPIComment) GetFlagCount() float64` + +GetFlagCount returns the FlagCount field if non-nil, zero value otherwise. + +### GetFlagCountOk + +`func (o *ModerationAPIComment) GetFlagCountOk() (*float64, bool)` + +GetFlagCountOk returns a tuple with the FlagCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFlagCount + +`func (o *ModerationAPIComment) SetFlagCount(v float64)` + +SetFlagCount sets FlagCount field to given value. + +### HasFlagCount + +`func (o *ModerationAPIComment) HasFlagCount() bool` + +HasFlagCount returns a boolean if a field has been set. + +### SetFlagCountNil + +`func (o *ModerationAPIComment) SetFlagCountNil(b bool)` + + SetFlagCountNil sets the value for FlagCount to be an explicit nil + +### UnsetFlagCount +`func (o *ModerationAPIComment) UnsetFlagCount()` + +UnsetFlagCount ensures that no value is present for FlagCount, not even an explicit nil +### GetDisplayLabel + +`func (o *ModerationAPIComment) GetDisplayLabel() string` + +GetDisplayLabel returns the DisplayLabel field if non-nil, zero value otherwise. + +### GetDisplayLabelOk + +`func (o *ModerationAPIComment) GetDisplayLabelOk() (*string, bool)` + +GetDisplayLabelOk returns a tuple with the DisplayLabel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayLabel + +`func (o *ModerationAPIComment) SetDisplayLabel(v string)` + +SetDisplayLabel sets DisplayLabel field to given value. + +### HasDisplayLabel + +`func (o *ModerationAPIComment) HasDisplayLabel() bool` + +HasDisplayLabel returns a boolean if a field has been set. + +### SetDisplayLabelNil + +`func (o *ModerationAPIComment) SetDisplayLabelNil(b bool)` + + SetDisplayLabelNil sets the value for DisplayLabel to be an explicit nil + +### UnsetDisplayLabel +`func (o *ModerationAPIComment) UnsetDisplayLabel()` + +UnsetDisplayLabel ensures that no value is present for DisplayLabel, not even an explicit nil +### GetBadges + +`func (o *ModerationAPIComment) GetBadges() []CommentUserBadgeInfo` + +GetBadges returns the Badges field if non-nil, zero value otherwise. + +### GetBadgesOk + +`func (o *ModerationAPIComment) GetBadgesOk() (*[]CommentUserBadgeInfo, bool)` + +GetBadgesOk returns a tuple with the Badges field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBadges + +`func (o *ModerationAPIComment) SetBadges(v []CommentUserBadgeInfo)` + +SetBadges sets Badges field to given value. + +### HasBadges + +`func (o *ModerationAPIComment) HasBadges() bool` + +HasBadges returns a boolean if a field has been set. + +### SetBadgesNil + +`func (o *ModerationAPIComment) SetBadgesNil(b bool)` + + SetBadgesNil sets the value for Badges to be an explicit nil + +### UnsetBadges +`func (o *ModerationAPIComment) UnsetBadges()` + +UnsetBadges ensures that no value is present for Badges, not even an explicit nil +### GetVerified + +`func (o *ModerationAPIComment) GetVerified() bool` + +GetVerified returns the Verified field if non-nil, zero value otherwise. + +### GetVerifiedOk + +`func (o *ModerationAPIComment) GetVerifiedOk() (*bool, bool)` + +GetVerifiedOk returns a tuple with the Verified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVerified + +`func (o *ModerationAPIComment) SetVerified(v bool)` + +SetVerified sets Verified field to given value. + + +### GetFeedbackIds + +`func (o *ModerationAPIComment) GetFeedbackIds() []string` + +GetFeedbackIds returns the FeedbackIds field if non-nil, zero value otherwise. + +### GetFeedbackIdsOk + +`func (o *ModerationAPIComment) GetFeedbackIdsOk() (*[]string, bool)` + +GetFeedbackIdsOk returns a tuple with the FeedbackIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFeedbackIds + +`func (o *ModerationAPIComment) SetFeedbackIds(v []string)` + +SetFeedbackIds sets FeedbackIds field to given value. + +### HasFeedbackIds + +`func (o *ModerationAPIComment) HasFeedbackIds() bool` + +HasFeedbackIds returns a boolean if a field has been set. + +### GetIsDeleted + +`func (o *ModerationAPIComment) GetIsDeleted() bool` + +GetIsDeleted returns the IsDeleted field if non-nil, zero value otherwise. + +### GetIsDeletedOk + +`func (o *ModerationAPIComment) GetIsDeletedOk() (*bool, bool)` + +GetIsDeletedOk returns a tuple with the IsDeleted field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDeleted + +`func (o *ModerationAPIComment) SetIsDeleted(v bool)` + +SetIsDeleted sets IsDeleted field to given value. + +### HasIsDeleted + +`func (o *ModerationAPIComment) HasIsDeleted() bool` + +HasIsDeleted returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationAPICommentLog.md b/client/docs/ModerationAPICommentLog.md new file mode 100644 index 0000000..4272297 --- /dev/null +++ b/client/docs/ModerationAPICommentLog.md @@ -0,0 +1,119 @@ +# ModerationAPICommentLog + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Date** | **time.Time** | | +**Username** | Pointer to **string** | | [optional] +**ActionName** | **string** | | +**MessageHTML** | **string** | | + +## Methods + +### NewModerationAPICommentLog + +`func NewModerationAPICommentLog(date time.Time, actionName string, messageHTML string, ) *ModerationAPICommentLog` + +NewModerationAPICommentLog instantiates a new ModerationAPICommentLog object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModerationAPICommentLogWithDefaults + +`func NewModerationAPICommentLogWithDefaults() *ModerationAPICommentLog` + +NewModerationAPICommentLogWithDefaults instantiates a new ModerationAPICommentLog object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDate + +`func (o *ModerationAPICommentLog) GetDate() time.Time` + +GetDate returns the Date field if non-nil, zero value otherwise. + +### GetDateOk + +`func (o *ModerationAPICommentLog) GetDateOk() (*time.Time, bool)` + +GetDateOk returns a tuple with the Date field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDate + +`func (o *ModerationAPICommentLog) SetDate(v time.Time)` + +SetDate sets Date field to given value. + + +### GetUsername + +`func (o *ModerationAPICommentLog) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *ModerationAPICommentLog) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *ModerationAPICommentLog) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *ModerationAPICommentLog) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### GetActionName + +`func (o *ModerationAPICommentLog) GetActionName() string` + +GetActionName returns the ActionName field if non-nil, zero value otherwise. + +### GetActionNameOk + +`func (o *ModerationAPICommentLog) GetActionNameOk() (*string, bool)` + +GetActionNameOk returns a tuple with the ActionName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActionName + +`func (o *ModerationAPICommentLog) SetActionName(v string)` + +SetActionName sets ActionName field to given value. + + +### GetMessageHTML + +`func (o *ModerationAPICommentLog) GetMessageHTML() string` + +GetMessageHTML returns the MessageHTML field if non-nil, zero value otherwise. + +### GetMessageHTMLOk + +`func (o *ModerationAPICommentLog) GetMessageHTMLOk() (*string, bool)` + +GetMessageHTMLOk returns a tuple with the MessageHTML field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessageHTML + +`func (o *ModerationAPICommentLog) SetMessageHTML(v string)` + +SetMessageHTML sets MessageHTML field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationAPICommentResponse.md b/client/docs/ModerationAPICommentResponse.md new file mode 100644 index 0000000..999f1e0 --- /dev/null +++ b/client/docs/ModerationAPICommentResponse.md @@ -0,0 +1,72 @@ +# ModerationAPICommentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Comment** | [**ModerationAPIComment**](ModerationAPIComment.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | + +## Methods + +### NewModerationAPICommentResponse + +`func NewModerationAPICommentResponse(comment ModerationAPIComment, status APIStatus, ) *ModerationAPICommentResponse` + +NewModerationAPICommentResponse instantiates a new ModerationAPICommentResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModerationAPICommentResponseWithDefaults + +`func NewModerationAPICommentResponseWithDefaults() *ModerationAPICommentResponse` + +NewModerationAPICommentResponseWithDefaults instantiates a new ModerationAPICommentResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetComment + +`func (o *ModerationAPICommentResponse) GetComment() ModerationAPIComment` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *ModerationAPICommentResponse) GetCommentOk() (*ModerationAPIComment, bool)` + +GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComment + +`func (o *ModerationAPICommentResponse) SetComment(v ModerationAPIComment)` + +SetComment sets Comment field to given value. + + +### GetStatus + +`func (o *ModerationAPICommentResponse) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ModerationAPICommentResponse) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ModerationAPICommentResponse) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationAPICountCommentsResponse.md b/client/docs/ModerationAPICountCommentsResponse.md new file mode 100644 index 0000000..914a84f --- /dev/null +++ b/client/docs/ModerationAPICountCommentsResponse.md @@ -0,0 +1,72 @@ +# ModerationAPICountCommentsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | [**APIStatus**](APIStatus.md) | | +**Count** | **float64** | | + +## Methods + +### NewModerationAPICountCommentsResponse + +`func NewModerationAPICountCommentsResponse(status APIStatus, count float64, ) *ModerationAPICountCommentsResponse` + +NewModerationAPICountCommentsResponse instantiates a new ModerationAPICountCommentsResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModerationAPICountCommentsResponseWithDefaults + +`func NewModerationAPICountCommentsResponseWithDefaults() *ModerationAPICountCommentsResponse` + +NewModerationAPICountCommentsResponseWithDefaults instantiates a new ModerationAPICountCommentsResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *ModerationAPICountCommentsResponse) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ModerationAPICountCommentsResponse) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ModerationAPICountCommentsResponse) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + +### GetCount + +`func (o *ModerationAPICountCommentsResponse) GetCount() float64` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *ModerationAPICountCommentsResponse) GetCountOk() (*float64, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *ModerationAPICountCommentsResponse) SetCount(v float64)` + +SetCount sets Count field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationAPIGetCommentIdsResponse.md b/client/docs/ModerationAPIGetCommentIdsResponse.md new file mode 100644 index 0000000..3f36645 --- /dev/null +++ b/client/docs/ModerationAPIGetCommentIdsResponse.md @@ -0,0 +1,93 @@ +# ModerationAPIGetCommentIdsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Ids** | **[]string** | | +**HasMore** | **bool** | | +**Status** | [**APIStatus**](APIStatus.md) | | + +## Methods + +### NewModerationAPIGetCommentIdsResponse + +`func NewModerationAPIGetCommentIdsResponse(ids []string, hasMore bool, status APIStatus, ) *ModerationAPIGetCommentIdsResponse` + +NewModerationAPIGetCommentIdsResponse instantiates a new ModerationAPIGetCommentIdsResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModerationAPIGetCommentIdsResponseWithDefaults + +`func NewModerationAPIGetCommentIdsResponseWithDefaults() *ModerationAPIGetCommentIdsResponse` + +NewModerationAPIGetCommentIdsResponseWithDefaults instantiates a new ModerationAPIGetCommentIdsResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIds + +`func (o *ModerationAPIGetCommentIdsResponse) GetIds() []string` + +GetIds returns the Ids field if non-nil, zero value otherwise. + +### GetIdsOk + +`func (o *ModerationAPIGetCommentIdsResponse) GetIdsOk() (*[]string, bool)` + +GetIdsOk returns a tuple with the Ids field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIds + +`func (o *ModerationAPIGetCommentIdsResponse) SetIds(v []string)` + +SetIds sets Ids field to given value. + + +### GetHasMore + +`func (o *ModerationAPIGetCommentIdsResponse) GetHasMore() bool` + +GetHasMore returns the HasMore field if non-nil, zero value otherwise. + +### GetHasMoreOk + +`func (o *ModerationAPIGetCommentIdsResponse) GetHasMoreOk() (*bool, bool)` + +GetHasMoreOk returns a tuple with the HasMore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasMore + +`func (o *ModerationAPIGetCommentIdsResponse) SetHasMore(v bool)` + +SetHasMore sets HasMore field to given value. + + +### GetStatus + +`func (o *ModerationAPIGetCommentIdsResponse) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ModerationAPIGetCommentIdsResponse) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ModerationAPIGetCommentIdsResponse) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationAPIGetCommentsResponse.md b/client/docs/ModerationAPIGetCommentsResponse.md new file mode 100644 index 0000000..3a74c5b --- /dev/null +++ b/client/docs/ModerationAPIGetCommentsResponse.md @@ -0,0 +1,119 @@ +# ModerationAPIGetCommentsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | [**APIStatus**](APIStatus.md) | | +**Translations** | **map[string]interface{}** | | +**Comments** | [**[]ModerationAPIComment**](ModerationAPIComment.md) | | +**ModerationFilter** | Pointer to [**ModerationFilter**](ModerationFilter.md) | | [optional] + +## Methods + +### NewModerationAPIGetCommentsResponse + +`func NewModerationAPIGetCommentsResponse(status APIStatus, translations map[string]interface{}, comments []ModerationAPIComment, ) *ModerationAPIGetCommentsResponse` + +NewModerationAPIGetCommentsResponse instantiates a new ModerationAPIGetCommentsResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModerationAPIGetCommentsResponseWithDefaults + +`func NewModerationAPIGetCommentsResponseWithDefaults() *ModerationAPIGetCommentsResponse` + +NewModerationAPIGetCommentsResponseWithDefaults instantiates a new ModerationAPIGetCommentsResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *ModerationAPIGetCommentsResponse) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ModerationAPIGetCommentsResponse) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ModerationAPIGetCommentsResponse) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + +### GetTranslations + +`func (o *ModerationAPIGetCommentsResponse) GetTranslations() map[string]interface{}` + +GetTranslations returns the Translations field if non-nil, zero value otherwise. + +### GetTranslationsOk + +`func (o *ModerationAPIGetCommentsResponse) GetTranslationsOk() (*map[string]interface{}, bool)` + +GetTranslationsOk returns a tuple with the Translations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTranslations + +`func (o *ModerationAPIGetCommentsResponse) SetTranslations(v map[string]interface{})` + +SetTranslations sets Translations field to given value. + + +### GetComments + +`func (o *ModerationAPIGetCommentsResponse) GetComments() []ModerationAPIComment` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ModerationAPIGetCommentsResponse) GetCommentsOk() (*[]ModerationAPIComment, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ModerationAPIGetCommentsResponse) SetComments(v []ModerationAPIComment)` + +SetComments sets Comments field to given value. + + +### GetModerationFilter + +`func (o *ModerationAPIGetCommentsResponse) GetModerationFilter() ModerationFilter` + +GetModerationFilter returns the ModerationFilter field if non-nil, zero value otherwise. + +### GetModerationFilterOk + +`func (o *ModerationAPIGetCommentsResponse) GetModerationFilterOk() (*ModerationFilter, bool)` + +GetModerationFilterOk returns a tuple with the ModerationFilter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModerationFilter + +`func (o *ModerationAPIGetCommentsResponse) SetModerationFilter(v ModerationFilter)` + +SetModerationFilter sets ModerationFilter field to given value. + +### HasModerationFilter + +`func (o *ModerationAPIGetCommentsResponse) HasModerationFilter() bool` + +HasModerationFilter returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationAPIGetLogsResponse.md b/client/docs/ModerationAPIGetLogsResponse.md new file mode 100644 index 0000000..59ca6e4 --- /dev/null +++ b/client/docs/ModerationAPIGetLogsResponse.md @@ -0,0 +1,72 @@ +# ModerationAPIGetLogsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Logs** | [**[]ModerationAPICommentLog**](ModerationAPICommentLog.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | + +## Methods + +### NewModerationAPIGetLogsResponse + +`func NewModerationAPIGetLogsResponse(logs []ModerationAPICommentLog, status APIStatus, ) *ModerationAPIGetLogsResponse` + +NewModerationAPIGetLogsResponse instantiates a new ModerationAPIGetLogsResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModerationAPIGetLogsResponseWithDefaults + +`func NewModerationAPIGetLogsResponseWithDefaults() *ModerationAPIGetLogsResponse` + +NewModerationAPIGetLogsResponseWithDefaults instantiates a new ModerationAPIGetLogsResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLogs + +`func (o *ModerationAPIGetLogsResponse) GetLogs() []ModerationAPICommentLog` + +GetLogs returns the Logs field if non-nil, zero value otherwise. + +### GetLogsOk + +`func (o *ModerationAPIGetLogsResponse) GetLogsOk() (*[]ModerationAPICommentLog, bool)` + +GetLogsOk returns a tuple with the Logs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogs + +`func (o *ModerationAPIGetLogsResponse) SetLogs(v []ModerationAPICommentLog)` + +SetLogs sets Logs field to given value. + + +### GetStatus + +`func (o *ModerationAPIGetLogsResponse) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ModerationAPIGetLogsResponse) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ModerationAPIGetLogsResponse) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationCommentSearchResponse.md b/client/docs/ModerationCommentSearchResponse.md new file mode 100644 index 0000000..c3a18e8 --- /dev/null +++ b/client/docs/ModerationCommentSearchResponse.md @@ -0,0 +1,72 @@ +# ModerationCommentSearchResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CommentCount** | **int32** | | +**Status** | [**APIStatus**](APIStatus.md) | | + +## Methods + +### NewModerationCommentSearchResponse + +`func NewModerationCommentSearchResponse(commentCount int32, status APIStatus, ) *ModerationCommentSearchResponse` + +NewModerationCommentSearchResponse instantiates a new ModerationCommentSearchResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModerationCommentSearchResponseWithDefaults + +`func NewModerationCommentSearchResponseWithDefaults() *ModerationCommentSearchResponse` + +NewModerationCommentSearchResponseWithDefaults instantiates a new ModerationCommentSearchResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCommentCount + +`func (o *ModerationCommentSearchResponse) GetCommentCount() int32` + +GetCommentCount returns the CommentCount field if non-nil, zero value otherwise. + +### GetCommentCountOk + +`func (o *ModerationCommentSearchResponse) GetCommentCountOk() (*int32, bool)` + +GetCommentCountOk returns a tuple with the CommentCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommentCount + +`func (o *ModerationCommentSearchResponse) SetCommentCount(v int32)` + +SetCommentCount sets CommentCount field to given value. + + +### GetStatus + +`func (o *ModerationCommentSearchResponse) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ModerationCommentSearchResponse) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ModerationCommentSearchResponse) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationExportResponse.md b/client/docs/ModerationExportResponse.md new file mode 100644 index 0000000..599d843 --- /dev/null +++ b/client/docs/ModerationExportResponse.md @@ -0,0 +1,72 @@ +# ModerationExportResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **string** | | +**BatchJobId** | **string** | | + +## Methods + +### NewModerationExportResponse + +`func NewModerationExportResponse(status string, batchJobId string, ) *ModerationExportResponse` + +NewModerationExportResponse instantiates a new ModerationExportResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModerationExportResponseWithDefaults + +`func NewModerationExportResponseWithDefaults() *ModerationExportResponse` + +NewModerationExportResponseWithDefaults instantiates a new ModerationExportResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *ModerationExportResponse) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ModerationExportResponse) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ModerationExportResponse) SetStatus(v string)` + +SetStatus sets Status field to given value. + + +### GetBatchJobId + +`func (o *ModerationExportResponse) GetBatchJobId() string` + +GetBatchJobId returns the BatchJobId field if non-nil, zero value otherwise. + +### GetBatchJobIdOk + +`func (o *ModerationExportResponse) GetBatchJobIdOk() (*string, bool)` + +GetBatchJobIdOk returns a tuple with the BatchJobId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBatchJobId + +`func (o *ModerationExportResponse) SetBatchJobId(v string)` + +SetBatchJobId sets BatchJobId field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationExportStatusResponse.md b/client/docs/ModerationExportStatusResponse.md new file mode 100644 index 0000000..663e55c --- /dev/null +++ b/client/docs/ModerationExportStatusResponse.md @@ -0,0 +1,119 @@ +# ModerationExportStatusResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **string** | | +**JobStatus** | **string** | | +**RecordCount** | **int32** | | +**DownloadUrl** | Pointer to **string** | | [optional] + +## Methods + +### NewModerationExportStatusResponse + +`func NewModerationExportStatusResponse(status string, jobStatus string, recordCount int32, ) *ModerationExportStatusResponse` + +NewModerationExportStatusResponse instantiates a new ModerationExportStatusResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModerationExportStatusResponseWithDefaults + +`func NewModerationExportStatusResponseWithDefaults() *ModerationExportStatusResponse` + +NewModerationExportStatusResponseWithDefaults instantiates a new ModerationExportStatusResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *ModerationExportStatusResponse) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ModerationExportStatusResponse) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ModerationExportStatusResponse) SetStatus(v string)` + +SetStatus sets Status field to given value. + + +### GetJobStatus + +`func (o *ModerationExportStatusResponse) GetJobStatus() string` + +GetJobStatus returns the JobStatus field if non-nil, zero value otherwise. + +### GetJobStatusOk + +`func (o *ModerationExportStatusResponse) GetJobStatusOk() (*string, bool)` + +GetJobStatusOk returns a tuple with the JobStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobStatus + +`func (o *ModerationExportStatusResponse) SetJobStatus(v string)` + +SetJobStatus sets JobStatus field to given value. + + +### GetRecordCount + +`func (o *ModerationExportStatusResponse) GetRecordCount() int32` + +GetRecordCount returns the RecordCount field if non-nil, zero value otherwise. + +### GetRecordCountOk + +`func (o *ModerationExportStatusResponse) GetRecordCountOk() (*int32, bool)` + +GetRecordCountOk returns a tuple with the RecordCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecordCount + +`func (o *ModerationExportStatusResponse) SetRecordCount(v int32)` + +SetRecordCount sets RecordCount field to given value. + + +### GetDownloadUrl + +`func (o *ModerationExportStatusResponse) GetDownloadUrl() string` + +GetDownloadUrl returns the DownloadUrl field if non-nil, zero value otherwise. + +### GetDownloadUrlOk + +`func (o *ModerationExportStatusResponse) GetDownloadUrlOk() (*string, bool)` + +GetDownloadUrlOk returns a tuple with the DownloadUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDownloadUrl + +`func (o *ModerationExportStatusResponse) SetDownloadUrl(v string)` + +SetDownloadUrl sets DownloadUrl field to given value. + +### HasDownloadUrl + +`func (o *ModerationExportStatusResponse) HasDownloadUrl() bool` + +HasDownloadUrl returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationFilter.md b/client/docs/ModerationFilter.md new file mode 100644 index 0000000..e581460 --- /dev/null +++ b/client/docs/ModerationFilter.md @@ -0,0 +1,342 @@ +# ModerationFilter + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Reviewed** | Pointer to **bool** | | [optional] +**Approved** | Pointer to **bool** | | [optional] +**IsSpam** | Pointer to **bool** | | [optional] +**IsBannedUser** | Pointer to **bool** | | [optional] +**IsLocked** | Pointer to **bool** | | [optional] +**FlagCountGt** | Pointer to **float64** | | [optional] +**UserId** | Pointer to **string** | | [optional] +**UrlId** | Pointer to **string** | | [optional] +**Domain** | Pointer to **string** | | [optional] +**ModerationGroupIds** | Pointer to **[]string** | | [optional] +**CommentTextSearch** | Pointer to **[]string** | Text search terms. Each term is matched case-insensitively against the comment text. A term wrapped in quotes means exact phrase match. | [optional] +**ExactCommentText** | Pointer to **string** | Set by the `exact=\"...\"` search syntax. The comment text must equal this value exactly (case-sensitive, full-string), as opposed to the substring matching of commentTextSearch. | [optional] + +## Methods + +### NewModerationFilter + +`func NewModerationFilter() *ModerationFilter` + +NewModerationFilter instantiates a new ModerationFilter object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModerationFilterWithDefaults + +`func NewModerationFilterWithDefaults() *ModerationFilter` + +NewModerationFilterWithDefaults instantiates a new ModerationFilter object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetReviewed + +`func (o *ModerationFilter) GetReviewed() bool` + +GetReviewed returns the Reviewed field if non-nil, zero value otherwise. + +### GetReviewedOk + +`func (o *ModerationFilter) GetReviewedOk() (*bool, bool)` + +GetReviewedOk returns a tuple with the Reviewed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReviewed + +`func (o *ModerationFilter) SetReviewed(v bool)` + +SetReviewed sets Reviewed field to given value. + +### HasReviewed + +`func (o *ModerationFilter) HasReviewed() bool` + +HasReviewed returns a boolean if a field has been set. + +### GetApproved + +`func (o *ModerationFilter) GetApproved() bool` + +GetApproved returns the Approved field if non-nil, zero value otherwise. + +### GetApprovedOk + +`func (o *ModerationFilter) GetApprovedOk() (*bool, bool)` + +GetApprovedOk returns a tuple with the Approved field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApproved + +`func (o *ModerationFilter) SetApproved(v bool)` + +SetApproved sets Approved field to given value. + +### HasApproved + +`func (o *ModerationFilter) HasApproved() bool` + +HasApproved returns a boolean if a field has been set. + +### GetIsSpam + +`func (o *ModerationFilter) GetIsSpam() bool` + +GetIsSpam returns the IsSpam field if non-nil, zero value otherwise. + +### GetIsSpamOk + +`func (o *ModerationFilter) GetIsSpamOk() (*bool, bool)` + +GetIsSpamOk returns a tuple with the IsSpam field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsSpam + +`func (o *ModerationFilter) SetIsSpam(v bool)` + +SetIsSpam sets IsSpam field to given value. + +### HasIsSpam + +`func (o *ModerationFilter) HasIsSpam() bool` + +HasIsSpam returns a boolean if a field has been set. + +### GetIsBannedUser + +`func (o *ModerationFilter) GetIsBannedUser() bool` + +GetIsBannedUser returns the IsBannedUser field if non-nil, zero value otherwise. + +### GetIsBannedUserOk + +`func (o *ModerationFilter) GetIsBannedUserOk() (*bool, bool)` + +GetIsBannedUserOk returns a tuple with the IsBannedUser field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsBannedUser + +`func (o *ModerationFilter) SetIsBannedUser(v bool)` + +SetIsBannedUser sets IsBannedUser field to given value. + +### HasIsBannedUser + +`func (o *ModerationFilter) HasIsBannedUser() bool` + +HasIsBannedUser returns a boolean if a field has been set. + +### GetIsLocked + +`func (o *ModerationFilter) GetIsLocked() bool` + +GetIsLocked returns the IsLocked field if non-nil, zero value otherwise. + +### GetIsLockedOk + +`func (o *ModerationFilter) GetIsLockedOk() (*bool, bool)` + +GetIsLockedOk returns a tuple with the IsLocked field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsLocked + +`func (o *ModerationFilter) SetIsLocked(v bool)` + +SetIsLocked sets IsLocked field to given value. + +### HasIsLocked + +`func (o *ModerationFilter) HasIsLocked() bool` + +HasIsLocked returns a boolean if a field has been set. + +### GetFlagCountGt + +`func (o *ModerationFilter) GetFlagCountGt() float64` + +GetFlagCountGt returns the FlagCountGt field if non-nil, zero value otherwise. + +### GetFlagCountGtOk + +`func (o *ModerationFilter) GetFlagCountGtOk() (*float64, bool)` + +GetFlagCountGtOk returns a tuple with the FlagCountGt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFlagCountGt + +`func (o *ModerationFilter) SetFlagCountGt(v float64)` + +SetFlagCountGt sets FlagCountGt field to given value. + +### HasFlagCountGt + +`func (o *ModerationFilter) HasFlagCountGt() bool` + +HasFlagCountGt returns a boolean if a field has been set. + +### GetUserId + +`func (o *ModerationFilter) GetUserId() string` + +GetUserId returns the UserId field if non-nil, zero value otherwise. + +### GetUserIdOk + +`func (o *ModerationFilter) GetUserIdOk() (*string, bool)` + +GetUserIdOk returns a tuple with the UserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserId + +`func (o *ModerationFilter) SetUserId(v string)` + +SetUserId sets UserId field to given value. + +### HasUserId + +`func (o *ModerationFilter) HasUserId() bool` + +HasUserId returns a boolean if a field has been set. + +### GetUrlId + +`func (o *ModerationFilter) GetUrlId() string` + +GetUrlId returns the UrlId field if non-nil, zero value otherwise. + +### GetUrlIdOk + +`func (o *ModerationFilter) GetUrlIdOk() (*string, bool)` + +GetUrlIdOk returns a tuple with the UrlId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrlId + +`func (o *ModerationFilter) SetUrlId(v string)` + +SetUrlId sets UrlId field to given value. + +### HasUrlId + +`func (o *ModerationFilter) HasUrlId() bool` + +HasUrlId returns a boolean if a field has been set. + +### GetDomain + +`func (o *ModerationFilter) GetDomain() string` + +GetDomain returns the Domain field if non-nil, zero value otherwise. + +### GetDomainOk + +`func (o *ModerationFilter) GetDomainOk() (*string, bool)` + +GetDomainOk returns a tuple with the Domain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomain + +`func (o *ModerationFilter) SetDomain(v string)` + +SetDomain sets Domain field to given value. + +### HasDomain + +`func (o *ModerationFilter) HasDomain() bool` + +HasDomain returns a boolean if a field has been set. + +### GetModerationGroupIds + +`func (o *ModerationFilter) GetModerationGroupIds() []string` + +GetModerationGroupIds returns the ModerationGroupIds field if non-nil, zero value otherwise. + +### GetModerationGroupIdsOk + +`func (o *ModerationFilter) GetModerationGroupIdsOk() (*[]string, bool)` + +GetModerationGroupIdsOk returns a tuple with the ModerationGroupIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModerationGroupIds + +`func (o *ModerationFilter) SetModerationGroupIds(v []string)` + +SetModerationGroupIds sets ModerationGroupIds field to given value. + +### HasModerationGroupIds + +`func (o *ModerationFilter) HasModerationGroupIds() bool` + +HasModerationGroupIds returns a boolean if a field has been set. + +### GetCommentTextSearch + +`func (o *ModerationFilter) GetCommentTextSearch() []string` + +GetCommentTextSearch returns the CommentTextSearch field if non-nil, zero value otherwise. + +### GetCommentTextSearchOk + +`func (o *ModerationFilter) GetCommentTextSearchOk() (*[]string, bool)` + +GetCommentTextSearchOk returns a tuple with the CommentTextSearch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommentTextSearch + +`func (o *ModerationFilter) SetCommentTextSearch(v []string)` + +SetCommentTextSearch sets CommentTextSearch field to given value. + +### HasCommentTextSearch + +`func (o *ModerationFilter) HasCommentTextSearch() bool` + +HasCommentTextSearch returns a boolean if a field has been set. + +### GetExactCommentText + +`func (o *ModerationFilter) GetExactCommentText() string` + +GetExactCommentText returns the ExactCommentText field if non-nil, zero value otherwise. + +### GetExactCommentTextOk + +`func (o *ModerationFilter) GetExactCommentTextOk() (*string, bool)` + +GetExactCommentTextOk returns a tuple with the ExactCommentText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExactCommentText + +`func (o *ModerationFilter) SetExactCommentText(v string)` + +SetExactCommentText sets ExactCommentText field to given value. + +### HasExactCommentText + +`func (o *ModerationFilter) HasExactCommentText() bool` + +HasExactCommentText returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationPageSearchProjected.md b/client/docs/ModerationPageSearchProjected.md new file mode 100644 index 0000000..a570c1c --- /dev/null +++ b/client/docs/ModerationPageSearchProjected.md @@ -0,0 +1,114 @@ +# ModerationPageSearchProjected + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UrlId** | **string** | | +**Url** | **string** | | +**Title** | **string** | | +**CommentCount** | **float64** | | + +## Methods + +### NewModerationPageSearchProjected + +`func NewModerationPageSearchProjected(urlId string, url string, title string, commentCount float64, ) *ModerationPageSearchProjected` + +NewModerationPageSearchProjected instantiates a new ModerationPageSearchProjected object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModerationPageSearchProjectedWithDefaults + +`func NewModerationPageSearchProjectedWithDefaults() *ModerationPageSearchProjected` + +NewModerationPageSearchProjectedWithDefaults instantiates a new ModerationPageSearchProjected object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUrlId + +`func (o *ModerationPageSearchProjected) GetUrlId() string` + +GetUrlId returns the UrlId field if non-nil, zero value otherwise. + +### GetUrlIdOk + +`func (o *ModerationPageSearchProjected) GetUrlIdOk() (*string, bool)` + +GetUrlIdOk returns a tuple with the UrlId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrlId + +`func (o *ModerationPageSearchProjected) SetUrlId(v string)` + +SetUrlId sets UrlId field to given value. + + +### GetUrl + +`func (o *ModerationPageSearchProjected) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *ModerationPageSearchProjected) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *ModerationPageSearchProjected) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetTitle + +`func (o *ModerationPageSearchProjected) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *ModerationPageSearchProjected) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *ModerationPageSearchProjected) SetTitle(v string)` + +SetTitle sets Title field to given value. + + +### GetCommentCount + +`func (o *ModerationPageSearchProjected) GetCommentCount() float64` + +GetCommentCount returns the CommentCount field if non-nil, zero value otherwise. + +### GetCommentCountOk + +`func (o *ModerationPageSearchProjected) GetCommentCountOk() (*float64, bool)` + +GetCommentCountOk returns a tuple with the CommentCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommentCount + +`func (o *ModerationPageSearchProjected) SetCommentCount(v float64)` + +SetCommentCount sets CommentCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationPageSearchResponse.md b/client/docs/ModerationPageSearchResponse.md new file mode 100644 index 0000000..6332348 --- /dev/null +++ b/client/docs/ModerationPageSearchResponse.md @@ -0,0 +1,72 @@ +# ModerationPageSearchResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pages** | [**[]ModerationPageSearchProjected**](ModerationPageSearchProjected.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | + +## Methods + +### NewModerationPageSearchResponse + +`func NewModerationPageSearchResponse(pages []ModerationPageSearchProjected, status APIStatus, ) *ModerationPageSearchResponse` + +NewModerationPageSearchResponse instantiates a new ModerationPageSearchResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModerationPageSearchResponseWithDefaults + +`func NewModerationPageSearchResponseWithDefaults() *ModerationPageSearchResponse` + +NewModerationPageSearchResponseWithDefaults instantiates a new ModerationPageSearchResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPages + +`func (o *ModerationPageSearchResponse) GetPages() []ModerationPageSearchProjected` + +GetPages returns the Pages field if non-nil, zero value otherwise. + +### GetPagesOk + +`func (o *ModerationPageSearchResponse) GetPagesOk() (*[]ModerationPageSearchProjected, bool)` + +GetPagesOk returns a tuple with the Pages field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPages + +`func (o *ModerationPageSearchResponse) SetPages(v []ModerationPageSearchProjected)` + +SetPages sets Pages field to given value. + + +### GetStatus + +`func (o *ModerationPageSearchResponse) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ModerationPageSearchResponse) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ModerationPageSearchResponse) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationSiteSearchProjected.md b/client/docs/ModerationSiteSearchProjected.md new file mode 100644 index 0000000..95ed618 --- /dev/null +++ b/client/docs/ModerationSiteSearchProjected.md @@ -0,0 +1,87 @@ +# ModerationSiteSearchProjected + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Domain** | **string** | | +**LogoSrc100px** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewModerationSiteSearchProjected + +`func NewModerationSiteSearchProjected(domain string, ) *ModerationSiteSearchProjected` + +NewModerationSiteSearchProjected instantiates a new ModerationSiteSearchProjected object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModerationSiteSearchProjectedWithDefaults + +`func NewModerationSiteSearchProjectedWithDefaults() *ModerationSiteSearchProjected` + +NewModerationSiteSearchProjectedWithDefaults instantiates a new ModerationSiteSearchProjected object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDomain + +`func (o *ModerationSiteSearchProjected) GetDomain() string` + +GetDomain returns the Domain field if non-nil, zero value otherwise. + +### GetDomainOk + +`func (o *ModerationSiteSearchProjected) GetDomainOk() (*string, bool)` + +GetDomainOk returns a tuple with the Domain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomain + +`func (o *ModerationSiteSearchProjected) SetDomain(v string)` + +SetDomain sets Domain field to given value. + + +### GetLogoSrc100px + +`func (o *ModerationSiteSearchProjected) GetLogoSrc100px() string` + +GetLogoSrc100px returns the LogoSrc100px field if non-nil, zero value otherwise. + +### GetLogoSrc100pxOk + +`func (o *ModerationSiteSearchProjected) GetLogoSrc100pxOk() (*string, bool)` + +GetLogoSrc100pxOk returns a tuple with the LogoSrc100px field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogoSrc100px + +`func (o *ModerationSiteSearchProjected) SetLogoSrc100px(v string)` + +SetLogoSrc100px sets LogoSrc100px field to given value. + +### HasLogoSrc100px + +`func (o *ModerationSiteSearchProjected) HasLogoSrc100px() bool` + +HasLogoSrc100px returns a boolean if a field has been set. + +### SetLogoSrc100pxNil + +`func (o *ModerationSiteSearchProjected) SetLogoSrc100pxNil(b bool)` + + SetLogoSrc100pxNil sets the value for LogoSrc100px to be an explicit nil + +### UnsetLogoSrc100px +`func (o *ModerationSiteSearchProjected) UnsetLogoSrc100px()` + +UnsetLogoSrc100px ensures that no value is present for LogoSrc100px, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationSiteSearchResponse.md b/client/docs/ModerationSiteSearchResponse.md new file mode 100644 index 0000000..c806542 --- /dev/null +++ b/client/docs/ModerationSiteSearchResponse.md @@ -0,0 +1,72 @@ +# ModerationSiteSearchResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Sites** | [**[]ModerationSiteSearchProjected**](ModerationSiteSearchProjected.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | + +## Methods + +### NewModerationSiteSearchResponse + +`func NewModerationSiteSearchResponse(sites []ModerationSiteSearchProjected, status APIStatus, ) *ModerationSiteSearchResponse` + +NewModerationSiteSearchResponse instantiates a new ModerationSiteSearchResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModerationSiteSearchResponseWithDefaults + +`func NewModerationSiteSearchResponseWithDefaults() *ModerationSiteSearchResponse` + +NewModerationSiteSearchResponseWithDefaults instantiates a new ModerationSiteSearchResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSites + +`func (o *ModerationSiteSearchResponse) GetSites() []ModerationSiteSearchProjected` + +GetSites returns the Sites field if non-nil, zero value otherwise. + +### GetSitesOk + +`func (o *ModerationSiteSearchResponse) GetSitesOk() (*[]ModerationSiteSearchProjected, bool)` + +GetSitesOk returns a tuple with the Sites field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSites + +`func (o *ModerationSiteSearchResponse) SetSites(v []ModerationSiteSearchProjected)` + +SetSites sets Sites field to given value. + + +### GetStatus + +`func (o *ModerationSiteSearchResponse) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ModerationSiteSearchResponse) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ModerationSiteSearchResponse) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationSuggestResponse.md b/client/docs/ModerationSuggestResponse.md new file mode 100644 index 0000000..af64e4f --- /dev/null +++ b/client/docs/ModerationSuggestResponse.md @@ -0,0 +1,129 @@ +# ModerationSuggestResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **string** | | +**Pages** | Pointer to [**[]ModerationPageSearchProjected**](ModerationPageSearchProjected.md) | | [optional] +**Users** | Pointer to [**[]ModerationUserSearchProjected**](ModerationUserSearchProjected.md) | | [optional] +**Code** | Pointer to **string** | | [optional] + +## Methods + +### NewModerationSuggestResponse + +`func NewModerationSuggestResponse(status string, ) *ModerationSuggestResponse` + +NewModerationSuggestResponse instantiates a new ModerationSuggestResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModerationSuggestResponseWithDefaults + +`func NewModerationSuggestResponseWithDefaults() *ModerationSuggestResponse` + +NewModerationSuggestResponseWithDefaults instantiates a new ModerationSuggestResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *ModerationSuggestResponse) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ModerationSuggestResponse) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ModerationSuggestResponse) SetStatus(v string)` + +SetStatus sets Status field to given value. + + +### GetPages + +`func (o *ModerationSuggestResponse) GetPages() []ModerationPageSearchProjected` + +GetPages returns the Pages field if non-nil, zero value otherwise. + +### GetPagesOk + +`func (o *ModerationSuggestResponse) GetPagesOk() (*[]ModerationPageSearchProjected, bool)` + +GetPagesOk returns a tuple with the Pages field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPages + +`func (o *ModerationSuggestResponse) SetPages(v []ModerationPageSearchProjected)` + +SetPages sets Pages field to given value. + +### HasPages + +`func (o *ModerationSuggestResponse) HasPages() bool` + +HasPages returns a boolean if a field has been set. + +### GetUsers + +`func (o *ModerationSuggestResponse) GetUsers() []ModerationUserSearchProjected` + +GetUsers returns the Users field if non-nil, zero value otherwise. + +### GetUsersOk + +`func (o *ModerationSuggestResponse) GetUsersOk() (*[]ModerationUserSearchProjected, bool)` + +GetUsersOk returns a tuple with the Users field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsers + +`func (o *ModerationSuggestResponse) SetUsers(v []ModerationUserSearchProjected)` + +SetUsers sets Users field to given value. + +### HasUsers + +`func (o *ModerationSuggestResponse) HasUsers() bool` + +HasUsers returns a boolean if a field has been set. + +### GetCode + +`func (o *ModerationSuggestResponse) GetCode() string` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *ModerationSuggestResponse) GetCodeOk() (*string, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *ModerationSuggestResponse) SetCode(v string)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *ModerationSuggestResponse) HasCode() bool` + +HasCode returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationUserSearchProjected.md b/client/docs/ModerationUserSearchProjected.md new file mode 100644 index 0000000..8e2d04a --- /dev/null +++ b/client/docs/ModerationUserSearchProjected.md @@ -0,0 +1,144 @@ +# ModerationUserSearchProjected + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**Username** | **string** | | +**DisplayName** | Pointer to **NullableString** | | [optional] +**AvatarSrc** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewModerationUserSearchProjected + +`func NewModerationUserSearchProjected(id string, username string, ) *ModerationUserSearchProjected` + +NewModerationUserSearchProjected instantiates a new ModerationUserSearchProjected object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModerationUserSearchProjectedWithDefaults + +`func NewModerationUserSearchProjectedWithDefaults() *ModerationUserSearchProjected` + +NewModerationUserSearchProjectedWithDefaults instantiates a new ModerationUserSearchProjected object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModerationUserSearchProjected) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModerationUserSearchProjected) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModerationUserSearchProjected) SetId(v string)` + +SetId sets Id field to given value. + + +### GetUsername + +`func (o *ModerationUserSearchProjected) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *ModerationUserSearchProjected) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *ModerationUserSearchProjected) SetUsername(v string)` + +SetUsername sets Username field to given value. + + +### GetDisplayName + +`func (o *ModerationUserSearchProjected) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *ModerationUserSearchProjected) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *ModerationUserSearchProjected) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *ModerationUserSearchProjected) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *ModerationUserSearchProjected) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *ModerationUserSearchProjected) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetAvatarSrc + +`func (o *ModerationUserSearchProjected) GetAvatarSrc() string` + +GetAvatarSrc returns the AvatarSrc field if non-nil, zero value otherwise. + +### GetAvatarSrcOk + +`func (o *ModerationUserSearchProjected) GetAvatarSrcOk() (*string, bool)` + +GetAvatarSrcOk returns a tuple with the AvatarSrc field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvatarSrc + +`func (o *ModerationUserSearchProjected) SetAvatarSrc(v string)` + +SetAvatarSrc sets AvatarSrc field to given value. + +### HasAvatarSrc + +`func (o *ModerationUserSearchProjected) HasAvatarSrc() bool` + +HasAvatarSrc returns a boolean if a field has been set. + +### SetAvatarSrcNil + +`func (o *ModerationUserSearchProjected) SetAvatarSrcNil(b bool)` + + SetAvatarSrcNil sets the value for AvatarSrc to be an explicit nil + +### UnsetAvatarSrc +`func (o *ModerationUserSearchProjected) UnsetAvatarSrc()` + +UnsetAvatarSrc ensures that no value is present for AvatarSrc, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationUserSearchResponse.md b/client/docs/ModerationUserSearchResponse.md new file mode 100644 index 0000000..60ff4bd --- /dev/null +++ b/client/docs/ModerationUserSearchResponse.md @@ -0,0 +1,72 @@ +# ModerationUserSearchResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Users** | [**[]ModerationUserSearchProjected**](ModerationUserSearchProjected.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | + +## Methods + +### NewModerationUserSearchResponse + +`func NewModerationUserSearchResponse(users []ModerationUserSearchProjected, status APIStatus, ) *ModerationUserSearchResponse` + +NewModerationUserSearchResponse instantiates a new ModerationUserSearchResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModerationUserSearchResponseWithDefaults + +`func NewModerationUserSearchResponseWithDefaults() *ModerationUserSearchResponse` + +NewModerationUserSearchResponseWithDefaults instantiates a new ModerationUserSearchResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUsers + +`func (o *ModerationUserSearchResponse) GetUsers() []ModerationUserSearchProjected` + +GetUsers returns the Users field if non-nil, zero value otherwise. + +### GetUsersOk + +`func (o *ModerationUserSearchResponse) GetUsersOk() (*[]ModerationUserSearchProjected, bool)` + +GetUsersOk returns a tuple with the Users field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsers + +`func (o *ModerationUserSearchResponse) SetUsers(v []ModerationUserSearchProjected)` + +SetUsers sets Users field to given value. + + +### GetStatus + +`func (o *ModerationUserSearchResponse) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ModerationUserSearchResponse) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ModerationUserSearchResponse) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/PageUserEntry.md b/client/docs/PageUserEntry.md new file mode 100644 index 0000000..2ae1990 --- /dev/null +++ b/client/docs/PageUserEntry.md @@ -0,0 +1,124 @@ +# PageUserEntry + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsPrivate** | Pointer to **bool** | | [optional] +**AvatarSrc** | Pointer to **string** | | [optional] +**DisplayName** | **string** | | +**Id** | **string** | | + +## Methods + +### NewPageUserEntry + +`func NewPageUserEntry(displayName string, id string, ) *PageUserEntry` + +NewPageUserEntry instantiates a new PageUserEntry object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPageUserEntryWithDefaults + +`func NewPageUserEntryWithDefaults() *PageUserEntry` + +NewPageUserEntryWithDefaults instantiates a new PageUserEntry object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIsPrivate + +`func (o *PageUserEntry) GetIsPrivate() bool` + +GetIsPrivate returns the IsPrivate field if non-nil, zero value otherwise. + +### GetIsPrivateOk + +`func (o *PageUserEntry) GetIsPrivateOk() (*bool, bool)` + +GetIsPrivateOk returns a tuple with the IsPrivate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPrivate + +`func (o *PageUserEntry) SetIsPrivate(v bool)` + +SetIsPrivate sets IsPrivate field to given value. + +### HasIsPrivate + +`func (o *PageUserEntry) HasIsPrivate() bool` + +HasIsPrivate returns a boolean if a field has been set. + +### GetAvatarSrc + +`func (o *PageUserEntry) GetAvatarSrc() string` + +GetAvatarSrc returns the AvatarSrc field if non-nil, zero value otherwise. + +### GetAvatarSrcOk + +`func (o *PageUserEntry) GetAvatarSrcOk() (*string, bool)` + +GetAvatarSrcOk returns a tuple with the AvatarSrc field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvatarSrc + +`func (o *PageUserEntry) SetAvatarSrc(v string)` + +SetAvatarSrc sets AvatarSrc field to given value. + +### HasAvatarSrc + +`func (o *PageUserEntry) HasAvatarSrc() bool` + +HasAvatarSrc returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *PageUserEntry) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *PageUserEntry) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *PageUserEntry) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + + +### GetId + +`func (o *PageUserEntry) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PageUserEntry) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PageUserEntry) SetId(v string)` + +SetId sets Id field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/PageUsersInfoResponse.md b/client/docs/PageUsersInfoResponse.md new file mode 100644 index 0000000..26b24a5 --- /dev/null +++ b/client/docs/PageUsersInfoResponse.md @@ -0,0 +1,72 @@ +# PageUsersInfoResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Users** | [**[]PageUserEntry**](PageUserEntry.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | + +## Methods + +### NewPageUsersInfoResponse + +`func NewPageUsersInfoResponse(users []PageUserEntry, status APIStatus, ) *PageUsersInfoResponse` + +NewPageUsersInfoResponse instantiates a new PageUsersInfoResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPageUsersInfoResponseWithDefaults + +`func NewPageUsersInfoResponseWithDefaults() *PageUsersInfoResponse` + +NewPageUsersInfoResponseWithDefaults instantiates a new PageUsersInfoResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUsers + +`func (o *PageUsersInfoResponse) GetUsers() []PageUserEntry` + +GetUsers returns the Users field if non-nil, zero value otherwise. + +### GetUsersOk + +`func (o *PageUsersInfoResponse) GetUsersOk() (*[]PageUserEntry, bool)` + +GetUsersOk returns a tuple with the Users field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsers + +`func (o *PageUsersInfoResponse) SetUsers(v []PageUserEntry)` + +SetUsers sets Users field to given value. + + +### GetStatus + +`func (o *PageUsersInfoResponse) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *PageUsersInfoResponse) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *PageUsersInfoResponse) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/PageUsersOfflineResponse.md b/client/docs/PageUsersOfflineResponse.md new file mode 100644 index 0000000..cb7b37a --- /dev/null +++ b/client/docs/PageUsersOfflineResponse.md @@ -0,0 +1,134 @@ +# PageUsersOfflineResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NextAfterUserId** | **NullableString** | | +**NextAfterName** | **NullableString** | | +**Users** | [**[]PageUserEntry**](PageUserEntry.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | + +## Methods + +### NewPageUsersOfflineResponse + +`func NewPageUsersOfflineResponse(nextAfterUserId NullableString, nextAfterName NullableString, users []PageUserEntry, status APIStatus, ) *PageUsersOfflineResponse` + +NewPageUsersOfflineResponse instantiates a new PageUsersOfflineResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPageUsersOfflineResponseWithDefaults + +`func NewPageUsersOfflineResponseWithDefaults() *PageUsersOfflineResponse` + +NewPageUsersOfflineResponseWithDefaults instantiates a new PageUsersOfflineResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNextAfterUserId + +`func (o *PageUsersOfflineResponse) GetNextAfterUserId() string` + +GetNextAfterUserId returns the NextAfterUserId field if non-nil, zero value otherwise. + +### GetNextAfterUserIdOk + +`func (o *PageUsersOfflineResponse) GetNextAfterUserIdOk() (*string, bool)` + +GetNextAfterUserIdOk returns a tuple with the NextAfterUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNextAfterUserId + +`func (o *PageUsersOfflineResponse) SetNextAfterUserId(v string)` + +SetNextAfterUserId sets NextAfterUserId field to given value. + + +### SetNextAfterUserIdNil + +`func (o *PageUsersOfflineResponse) SetNextAfterUserIdNil(b bool)` + + SetNextAfterUserIdNil sets the value for NextAfterUserId to be an explicit nil + +### UnsetNextAfterUserId +`func (o *PageUsersOfflineResponse) UnsetNextAfterUserId()` + +UnsetNextAfterUserId ensures that no value is present for NextAfterUserId, not even an explicit nil +### GetNextAfterName + +`func (o *PageUsersOfflineResponse) GetNextAfterName() string` + +GetNextAfterName returns the NextAfterName field if non-nil, zero value otherwise. + +### GetNextAfterNameOk + +`func (o *PageUsersOfflineResponse) GetNextAfterNameOk() (*string, bool)` + +GetNextAfterNameOk returns a tuple with the NextAfterName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNextAfterName + +`func (o *PageUsersOfflineResponse) SetNextAfterName(v string)` + +SetNextAfterName sets NextAfterName field to given value. + + +### SetNextAfterNameNil + +`func (o *PageUsersOfflineResponse) SetNextAfterNameNil(b bool)` + + SetNextAfterNameNil sets the value for NextAfterName to be an explicit nil + +### UnsetNextAfterName +`func (o *PageUsersOfflineResponse) UnsetNextAfterName()` + +UnsetNextAfterName ensures that no value is present for NextAfterName, not even an explicit nil +### GetUsers + +`func (o *PageUsersOfflineResponse) GetUsers() []PageUserEntry` + +GetUsers returns the Users field if non-nil, zero value otherwise. + +### GetUsersOk + +`func (o *PageUsersOfflineResponse) GetUsersOk() (*[]PageUserEntry, bool)` + +GetUsersOk returns a tuple with the Users field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsers + +`func (o *PageUsersOfflineResponse) SetUsers(v []PageUserEntry)` + +SetUsers sets Users field to given value. + + +### GetStatus + +`func (o *PageUsersOfflineResponse) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *PageUsersOfflineResponse) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *PageUsersOfflineResponse) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/PageUsersOnlineResponse.md b/client/docs/PageUsersOnlineResponse.md new file mode 100644 index 0000000..afcd96a --- /dev/null +++ b/client/docs/PageUsersOnlineResponse.md @@ -0,0 +1,176 @@ +# PageUsersOnlineResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NextAfterUserId** | **NullableString** | | +**NextAfterName** | **NullableString** | | +**TotalCount** | **float64** | | +**AnonCount** | **float64** | | +**Users** | [**[]PageUserEntry**](PageUserEntry.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | + +## Methods + +### NewPageUsersOnlineResponse + +`func NewPageUsersOnlineResponse(nextAfterUserId NullableString, nextAfterName NullableString, totalCount float64, anonCount float64, users []PageUserEntry, status APIStatus, ) *PageUsersOnlineResponse` + +NewPageUsersOnlineResponse instantiates a new PageUsersOnlineResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPageUsersOnlineResponseWithDefaults + +`func NewPageUsersOnlineResponseWithDefaults() *PageUsersOnlineResponse` + +NewPageUsersOnlineResponseWithDefaults instantiates a new PageUsersOnlineResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNextAfterUserId + +`func (o *PageUsersOnlineResponse) GetNextAfterUserId() string` + +GetNextAfterUserId returns the NextAfterUserId field if non-nil, zero value otherwise. + +### GetNextAfterUserIdOk + +`func (o *PageUsersOnlineResponse) GetNextAfterUserIdOk() (*string, bool)` + +GetNextAfterUserIdOk returns a tuple with the NextAfterUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNextAfterUserId + +`func (o *PageUsersOnlineResponse) SetNextAfterUserId(v string)` + +SetNextAfterUserId sets NextAfterUserId field to given value. + + +### SetNextAfterUserIdNil + +`func (o *PageUsersOnlineResponse) SetNextAfterUserIdNil(b bool)` + + SetNextAfterUserIdNil sets the value for NextAfterUserId to be an explicit nil + +### UnsetNextAfterUserId +`func (o *PageUsersOnlineResponse) UnsetNextAfterUserId()` + +UnsetNextAfterUserId ensures that no value is present for NextAfterUserId, not even an explicit nil +### GetNextAfterName + +`func (o *PageUsersOnlineResponse) GetNextAfterName() string` + +GetNextAfterName returns the NextAfterName field if non-nil, zero value otherwise. + +### GetNextAfterNameOk + +`func (o *PageUsersOnlineResponse) GetNextAfterNameOk() (*string, bool)` + +GetNextAfterNameOk returns a tuple with the NextAfterName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNextAfterName + +`func (o *PageUsersOnlineResponse) SetNextAfterName(v string)` + +SetNextAfterName sets NextAfterName field to given value. + + +### SetNextAfterNameNil + +`func (o *PageUsersOnlineResponse) SetNextAfterNameNil(b bool)` + + SetNextAfterNameNil sets the value for NextAfterName to be an explicit nil + +### UnsetNextAfterName +`func (o *PageUsersOnlineResponse) UnsetNextAfterName()` + +UnsetNextAfterName ensures that no value is present for NextAfterName, not even an explicit nil +### GetTotalCount + +`func (o *PageUsersOnlineResponse) GetTotalCount() float64` + +GetTotalCount returns the TotalCount field if non-nil, zero value otherwise. + +### GetTotalCountOk + +`func (o *PageUsersOnlineResponse) GetTotalCountOk() (*float64, bool)` + +GetTotalCountOk returns a tuple with the TotalCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalCount + +`func (o *PageUsersOnlineResponse) SetTotalCount(v float64)` + +SetTotalCount sets TotalCount field to given value. + + +### GetAnonCount + +`func (o *PageUsersOnlineResponse) GetAnonCount() float64` + +GetAnonCount returns the AnonCount field if non-nil, zero value otherwise. + +### GetAnonCountOk + +`func (o *PageUsersOnlineResponse) GetAnonCountOk() (*float64, bool)` + +GetAnonCountOk returns a tuple with the AnonCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnonCount + +`func (o *PageUsersOnlineResponse) SetAnonCount(v float64)` + +SetAnonCount sets AnonCount field to given value. + + +### GetUsers + +`func (o *PageUsersOnlineResponse) GetUsers() []PageUserEntry` + +GetUsers returns the Users field if non-nil, zero value otherwise. + +### GetUsersOk + +`func (o *PageUsersOnlineResponse) GetUsersOk() (*[]PageUserEntry, bool)` + +GetUsersOk returns a tuple with the Users field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsers + +`func (o *PageUsersOnlineResponse) SetUsers(v []PageUserEntry)` + +SetUsers sets Users field to given value. + + +### GetStatus + +`func (o *PageUsersOnlineResponse) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *PageUsersOnlineResponse) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *PageUsersOnlineResponse) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/PagesSortBy.md b/client/docs/PagesSortBy.md new file mode 100644 index 0000000..00ff25a --- /dev/null +++ b/client/docs/PagesSortBy.md @@ -0,0 +1,15 @@ +# PagesSortBy + +## Enum + + +* `UPDATED_AT` (value: `"updatedAt"`) + +* `COMMENT_COUNT` (value: `"commentCount"`) + +* `TITLE` (value: `"title"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/PatchDomainConfigResponse.md b/client/docs/PatchDomainConfigResponse.md new file mode 100644 index 0000000..7670ec8 --- /dev/null +++ b/client/docs/PatchDomainConfigResponse.md @@ -0,0 +1,134 @@ +# PatchDomainConfigResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Configuration** | **interface{}** | | +**Status** | **interface{}** | | +**Reason** | **string** | | +**Code** | **string** | | + +## Methods + +### NewPatchDomainConfigResponse + +`func NewPatchDomainConfigResponse(configuration interface{}, status interface{}, reason string, code string, ) *PatchDomainConfigResponse` + +NewPatchDomainConfigResponse instantiates a new PatchDomainConfigResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPatchDomainConfigResponseWithDefaults + +`func NewPatchDomainConfigResponseWithDefaults() *PatchDomainConfigResponse` + +NewPatchDomainConfigResponseWithDefaults instantiates a new PatchDomainConfigResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfiguration + +`func (o *PatchDomainConfigResponse) GetConfiguration() interface{}` + +GetConfiguration returns the Configuration field if non-nil, zero value otherwise. + +### GetConfigurationOk + +`func (o *PatchDomainConfigResponse) GetConfigurationOk() (*interface{}, bool)` + +GetConfigurationOk returns a tuple with the Configuration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfiguration + +`func (o *PatchDomainConfigResponse) SetConfiguration(v interface{})` + +SetConfiguration sets Configuration field to given value. + + +### SetConfigurationNil + +`func (o *PatchDomainConfigResponse) SetConfigurationNil(b bool)` + + SetConfigurationNil sets the value for Configuration to be an explicit nil + +### UnsetConfiguration +`func (o *PatchDomainConfigResponse) UnsetConfiguration()` + +UnsetConfiguration ensures that no value is present for Configuration, not even an explicit nil +### GetStatus + +`func (o *PatchDomainConfigResponse) GetStatus() interface{}` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *PatchDomainConfigResponse) GetStatusOk() (*interface{}, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *PatchDomainConfigResponse) SetStatus(v interface{})` + +SetStatus sets Status field to given value. + + +### SetStatusNil + +`func (o *PatchDomainConfigResponse) SetStatusNil(b bool)` + + SetStatusNil sets the value for Status to be an explicit nil + +### UnsetStatus +`func (o *PatchDomainConfigResponse) UnsetStatus()` + +UnsetStatus ensures that no value is present for Status, not even an explicit nil +### GetReason + +`func (o *PatchDomainConfigResponse) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *PatchDomainConfigResponse) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *PatchDomainConfigResponse) SetReason(v string)` + +SetReason sets Reason field to given value. + + +### GetCode + +`func (o *PatchDomainConfigResponse) GetCode() string` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *PatchDomainConfigResponse) GetCodeOk() (*string, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *PatchDomainConfigResponse) SetCode(v string)` + +SetCode sets Code field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/PatchHashTag200Response.md b/client/docs/PatchHashTag200Response.md deleted file mode 100644 index dceab82..0000000 --- a/client/docs/PatchHashTag200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# PatchHashTag200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**HashTag** | [**TenantHashTag**](TenantHashTag.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewPatchHashTag200Response - -`func NewPatchHashTag200Response(status APIStatus, hashTag TenantHashTag, reason string, code string, ) *PatchHashTag200Response` - -NewPatchHashTag200Response instantiates a new PatchHashTag200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewPatchHashTag200ResponseWithDefaults - -`func NewPatchHashTag200ResponseWithDefaults() *PatchHashTag200Response` - -NewPatchHashTag200ResponseWithDefaults instantiates a new PatchHashTag200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *PatchHashTag200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *PatchHashTag200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *PatchHashTag200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetHashTag - -`func (o *PatchHashTag200Response) GetHashTag() TenantHashTag` - -GetHashTag returns the HashTag field if non-nil, zero value otherwise. - -### GetHashTagOk - -`func (o *PatchHashTag200Response) GetHashTagOk() (*TenantHashTag, bool)` - -GetHashTagOk returns a tuple with the HashTag field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHashTag - -`func (o *PatchHashTag200Response) SetHashTag(v TenantHashTag)` - -SetHashTag sets HashTag field to given value. - - -### GetReason - -`func (o *PatchHashTag200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *PatchHashTag200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *PatchHashTag200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *PatchHashTag200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *PatchHashTag200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *PatchHashTag200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *PatchHashTag200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *PatchHashTag200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *PatchHashTag200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *PatchHashTag200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *PatchHashTag200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *PatchHashTag200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *PatchHashTag200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *PatchHashTag200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *PatchHashTag200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *PatchHashTag200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *PatchHashTag200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *PatchHashTag200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *PatchHashTag200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *PatchHashTag200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *PatchHashTag200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *PatchHashTag200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *PatchHashTag200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *PatchHashTag200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *PatchHashTag200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *PatchHashTag200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/PinComment200Response.md b/client/docs/PinComment200Response.md deleted file mode 100644 index f4cdf7c..0000000 --- a/client/docs/PinComment200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# PinComment200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CommentPositions** | [**map[string]RecordStringBeforeStringOrNullAfterStringOrNullValue**](RecordStringBeforeStringOrNullAfterStringOrNullValue.md) | Construct a type with a set of properties K of type T | -**Status** | [**APIStatus**](APIStatus.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewPinComment200Response - -`func NewPinComment200Response(commentPositions map[string]RecordStringBeforeStringOrNullAfterStringOrNullValue, status APIStatus, reason string, code string, ) *PinComment200Response` - -NewPinComment200Response instantiates a new PinComment200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewPinComment200ResponseWithDefaults - -`func NewPinComment200ResponseWithDefaults() *PinComment200Response` - -NewPinComment200ResponseWithDefaults instantiates a new PinComment200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCommentPositions - -`func (o *PinComment200Response) GetCommentPositions() map[string]RecordStringBeforeStringOrNullAfterStringOrNullValue` - -GetCommentPositions returns the CommentPositions field if non-nil, zero value otherwise. - -### GetCommentPositionsOk - -`func (o *PinComment200Response) GetCommentPositionsOk() (*map[string]RecordStringBeforeStringOrNullAfterStringOrNullValue, bool)` - -GetCommentPositionsOk returns a tuple with the CommentPositions field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCommentPositions - -`func (o *PinComment200Response) SetCommentPositions(v map[string]RecordStringBeforeStringOrNullAfterStringOrNullValue)` - -SetCommentPositions sets CommentPositions field to given value. - - -### GetStatus - -`func (o *PinComment200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *PinComment200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *PinComment200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetReason - -`func (o *PinComment200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *PinComment200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *PinComment200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *PinComment200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *PinComment200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *PinComment200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *PinComment200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *PinComment200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *PinComment200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *PinComment200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *PinComment200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *PinComment200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *PinComment200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *PinComment200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *PinComment200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *PinComment200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *PinComment200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *PinComment200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *PinComment200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *PinComment200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *PinComment200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *PinComment200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *PinComment200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *PinComment200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *PinComment200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *PinComment200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/PostRemoveCommentResponse.md b/client/docs/PostRemoveCommentResponse.md new file mode 100644 index 0000000..c243fe2 --- /dev/null +++ b/client/docs/PostRemoveCommentResponse.md @@ -0,0 +1,72 @@ +# PostRemoveCommentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Action** | **string** | | +**Status** | **string** | | + +## Methods + +### NewPostRemoveCommentResponse + +`func NewPostRemoveCommentResponse(action string, status string, ) *PostRemoveCommentResponse` + +NewPostRemoveCommentResponse instantiates a new PostRemoveCommentResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPostRemoveCommentResponseWithDefaults + +`func NewPostRemoveCommentResponseWithDefaults() *PostRemoveCommentResponse` + +NewPostRemoveCommentResponseWithDefaults instantiates a new PostRemoveCommentResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAction + +`func (o *PostRemoveCommentResponse) GetAction() string` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *PostRemoveCommentResponse) GetActionOk() (*string, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *PostRemoveCommentResponse) SetAction(v string)` + +SetAction sets Action field to given value. + + +### GetStatus + +`func (o *PostRemoveCommentResponse) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *PostRemoveCommentResponse) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *PostRemoveCommentResponse) SetStatus(v string)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/PreBanSummary.md b/client/docs/PreBanSummary.md new file mode 100644 index 0000000..ed070da --- /dev/null +++ b/client/docs/PreBanSummary.md @@ -0,0 +1,93 @@ +# PreBanSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | [**APIStatus**](APIStatus.md) | | +**Usernames** | **[]string** | | +**Count** | **float64** | | + +## Methods + +### NewPreBanSummary + +`func NewPreBanSummary(status APIStatus, usernames []string, count float64, ) *PreBanSummary` + +NewPreBanSummary instantiates a new PreBanSummary object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPreBanSummaryWithDefaults + +`func NewPreBanSummaryWithDefaults() *PreBanSummary` + +NewPreBanSummaryWithDefaults instantiates a new PreBanSummary object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *PreBanSummary) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *PreBanSummary) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *PreBanSummary) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + +### GetUsernames + +`func (o *PreBanSummary) GetUsernames() []string` + +GetUsernames returns the Usernames field if non-nil, zero value otherwise. + +### GetUsernamesOk + +`func (o *PreBanSummary) GetUsernamesOk() (*[]string, bool)` + +GetUsernamesOk returns a tuple with the Usernames field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsernames + +`func (o *PreBanSummary) SetUsernames(v []string)` + +SetUsernames sets Usernames field to given value. + + +### GetCount + +`func (o *PreBanSummary) GetCount() float64` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PreBanSummary) GetCountOk() (*float64, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PreBanSummary) SetCount(v float64)` + +SetCount sets Count field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/PublicAPI.md b/client/docs/PublicAPI.md index 4a34667..60d9be5 100644 --- a/client/docs/PublicAPI.md +++ b/client/docs/PublicAPI.md @@ -8,22 +8,39 @@ Method | HTTP request | Description [**CheckedCommentsForBlocked**](PublicAPI.md#CheckedCommentsForBlocked) | **Get** /check-blocked-comments | [**CreateCommentPublic**](PublicAPI.md#CreateCommentPublic) | **Post** /comments/{tenantId} | [**CreateFeedPostPublic**](PublicAPI.md#CreateFeedPostPublic) | **Post** /feed-posts/{tenantId} | +[**CreateV1PageReact**](PublicAPI.md#CreateV1PageReact) | **Post** /page-reacts/v1/likes/{tenantId} | +[**CreateV2PageReact**](PublicAPI.md#CreateV2PageReact) | **Post** /page-reacts/v2/{tenantId} | [**DeleteCommentPublic**](PublicAPI.md#DeleteCommentPublic) | **Delete** /comments/{tenantId}/{commentId} | [**DeleteCommentVote**](PublicAPI.md#DeleteCommentVote) | **Delete** /comments/{tenantId}/{commentId}/vote/{voteId} | [**DeleteFeedPostPublic**](PublicAPI.md#DeleteFeedPostPublic) | **Delete** /feed-posts/{tenantId}/{postId} | +[**DeleteV1PageReact**](PublicAPI.md#DeleteV1PageReact) | **Delete** /page-reacts/v1/likes/{tenantId} | +[**DeleteV2PageReact**](PublicAPI.md#DeleteV2PageReact) | **Delete** /page-reacts/v2/{tenantId} | [**FlagCommentPublic**](PublicAPI.md#FlagCommentPublic) | **Post** /flag-comment/{commentId} | [**GetCommentText**](PublicAPI.md#GetCommentText) | **Get** /comments/{tenantId}/{commentId}/text | [**GetCommentVoteUserNames**](PublicAPI.md#GetCommentVoteUserNames) | **Get** /comments/{tenantId}/{commentId}/votes | +[**GetCommentsForUser**](PublicAPI.md#GetCommentsForUser) | **Get** /comments-for-user | [**GetCommentsPublic**](PublicAPI.md#GetCommentsPublic) | **Get** /comments/{tenantId} | [**GetEventLog**](PublicAPI.md#GetEventLog) | **Get** /event-log/{tenantId} | [**GetFeedPostsPublic**](PublicAPI.md#GetFeedPostsPublic) | **Get** /feed-posts/{tenantId} | [**GetFeedPostsStats**](PublicAPI.md#GetFeedPostsStats) | **Get** /feed-posts/{tenantId}/stats | +[**GetGifLarge**](PublicAPI.md#GetGifLarge) | **Get** /gifs/get-large/{tenantId} | +[**GetGifsSearch**](PublicAPI.md#GetGifsSearch) | **Get** /gifs/search/{tenantId} | +[**GetGifsTrending**](PublicAPI.md#GetGifsTrending) | **Get** /gifs/trending/{tenantId} | [**GetGlobalEventLog**](PublicAPI.md#GetGlobalEventLog) | **Get** /event-log/global/{tenantId} | +[**GetOfflineUsers**](PublicAPI.md#GetOfflineUsers) | **Get** /pages/{tenantId}/users/offline | +[**GetOnlineUsers**](PublicAPI.md#GetOnlineUsers) | **Get** /pages/{tenantId}/users/online | +[**GetPagesPublic**](PublicAPI.md#GetPagesPublic) | **Get** /pages/{tenantId} | +[**GetTranslations**](PublicAPI.md#GetTranslations) | **Get** /translations/{namespace}/{component} | [**GetUserNotificationCount**](PublicAPI.md#GetUserNotificationCount) | **Get** /user-notifications/get-count | [**GetUserNotifications**](PublicAPI.md#GetUserNotifications) | **Get** /user-notifications | [**GetUserPresenceStatuses**](PublicAPI.md#GetUserPresenceStatuses) | **Get** /user-presence-status | [**GetUserReactsPublic**](PublicAPI.md#GetUserReactsPublic) | **Get** /feed-posts/{tenantId}/user-reacts | +[**GetUsersInfo**](PublicAPI.md#GetUsersInfo) | **Get** /pages/{tenantId}/users/info | +[**GetV1PageLikes**](PublicAPI.md#GetV1PageLikes) | **Get** /page-reacts/v1/likes/{tenantId} | +[**GetV2PageReactUsers**](PublicAPI.md#GetV2PageReactUsers) | **Get** /page-reacts/v2/{tenantId}/list | +[**GetV2PageReacts**](PublicAPI.md#GetV2PageReacts) | **Get** /page-reacts/v2/{tenantId} | [**LockComment**](PublicAPI.md#LockComment) | **Post** /comments/{tenantId}/{commentId}/lock | +[**LogoutPublic**](PublicAPI.md#LogoutPublic) | **Put** /auth/logout | [**PinComment**](PublicAPI.md#PinComment) | **Post** /comments/{tenantId}/{commentId}/pin | [**ReactFeedPostPublic**](PublicAPI.md#ReactFeedPostPublic) | **Post** /feed-posts/{tenantId}/react/{postId} | [**ResetUserNotificationCount**](PublicAPI.md#ResetUserNotificationCount) | **Post** /user-notifications/reset-count | @@ -44,7 +61,7 @@ Method | HTTP request | Description ## BlockFromCommentPublic -> BlockFromCommentPublic200Response BlockFromCommentPublic(ctx, commentId).TenantId(tenantId).PublicBlockFromCommentParams(publicBlockFromCommentParams).Sso(sso).Execute() +> BlockSuccess BlockFromCommentPublic(ctx, commentId).TenantId(tenantId).PublicBlockFromCommentParams(publicBlockFromCommentParams).Sso(sso).Execute() @@ -73,7 +90,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.BlockFromCommentPublic``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `BlockFromCommentPublic`: BlockFromCommentPublic200Response + // response from `BlockFromCommentPublic`: BlockSuccess fmt.Fprintf(os.Stdout, "Response from `PublicAPI.BlockFromCommentPublic`: %v\n", resp) } ``` @@ -100,7 +117,7 @@ Name | Type | Description | Notes ### Return type -[**BlockFromCommentPublic200Response**](BlockFromCommentPublic200Response.md) +[**BlockSuccess**](BlockSuccess.md) ### Authorization @@ -118,7 +135,7 @@ No authorization required ## CheckedCommentsForBlocked -> CheckedCommentsForBlocked200Response CheckedCommentsForBlocked(ctx).TenantId(tenantId).CommentIds(commentIds).Sso(sso).Execute() +> CheckBlockedCommentsResponse CheckedCommentsForBlocked(ctx).TenantId(tenantId).CommentIds(commentIds).Sso(sso).Execute() @@ -146,7 +163,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.CheckedCommentsForBlocked``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `CheckedCommentsForBlocked`: CheckedCommentsForBlocked200Response + // response from `CheckedCommentsForBlocked`: CheckBlockedCommentsResponse fmt.Fprintf(os.Stdout, "Response from `PublicAPI.CheckedCommentsForBlocked`: %v\n", resp) } ``` @@ -168,7 +185,7 @@ Name | Type | Description | Notes ### Return type -[**CheckedCommentsForBlocked200Response**](CheckedCommentsForBlocked200Response.md) +[**CheckBlockedCommentsResponse**](CheckBlockedCommentsResponse.md) ### Authorization @@ -186,7 +203,7 @@ No authorization required ## CreateCommentPublic -> CreateCommentPublic200Response CreateCommentPublic(ctx, tenantId).UrlId(urlId).BroadcastId(broadcastId).CommentData(commentData).SessionId(sessionId).Sso(sso).Execute() +> SaveCommentsResponseWithPresence CreateCommentPublic(ctx, tenantId).UrlId(urlId).BroadcastId(broadcastId).CommentData(commentData).SessionId(sessionId).Sso(sso).Execute() @@ -217,7 +234,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.CreateCommentPublic``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `CreateCommentPublic`: CreateCommentPublic200Response + // response from `CreateCommentPublic`: SaveCommentsResponseWithPresence fmt.Fprintf(os.Stdout, "Response from `PublicAPI.CreateCommentPublic`: %v\n", resp) } ``` @@ -246,7 +263,7 @@ Name | Type | Description | Notes ### Return type -[**CreateCommentPublic200Response**](CreateCommentPublic200Response.md) +[**SaveCommentsResponseWithPresence**](SaveCommentsResponseWithPresence.md) ### Authorization @@ -264,7 +281,7 @@ No authorization required ## CreateFeedPostPublic -> CreateFeedPostPublic200Response CreateFeedPostPublic(ctx, tenantId).CreateFeedPostParams(createFeedPostParams).BroadcastId(broadcastId).Sso(sso).Execute() +> CreateFeedPostResponse CreateFeedPostPublic(ctx, tenantId).CreateFeedPostParams(createFeedPostParams).BroadcastId(broadcastId).Sso(sso).Execute() @@ -293,7 +310,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.CreateFeedPostPublic``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `CreateFeedPostPublic`: CreateFeedPostPublic200Response + // response from `CreateFeedPostPublic`: CreateFeedPostResponse fmt.Fprintf(os.Stdout, "Response from `PublicAPI.CreateFeedPostPublic`: %v\n", resp) } ``` @@ -320,7 +337,7 @@ Name | Type | Description | Notes ### Return type -[**CreateFeedPostPublic200Response**](CreateFeedPostPublic200Response.md) +[**CreateFeedPostResponse**](CreateFeedPostResponse.md) ### Authorization @@ -336,9 +353,9 @@ No authorization required [[Back to README]](../README.md) -## DeleteCommentPublic +## CreateV1PageReact -> DeleteCommentPublic200Response DeleteCommentPublic(ctx, tenantId, commentId).BroadcastId(broadcastId).EditKey(editKey).Sso(sso).Execute() +> CreateV1PageReact CreateV1PageReact(ctx, tenantId).UrlId(urlId).Title(title).Execute() @@ -356,20 +373,18 @@ import ( func main() { tenantId := "tenantId_example" // string | - commentId := "commentId_example" // string | - broadcastId := "broadcastId_example" // string | - editKey := "editKey_example" // string | (optional) - sso := "sso_example" // string | (optional) + urlId := "urlId_example" // string | + title := "title_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PublicAPI.DeleteCommentPublic(context.Background(), tenantId, commentId).BroadcastId(broadcastId).EditKey(editKey).Sso(sso).Execute() + resp, r, err := apiClient.PublicAPI.CreateV1PageReact(context.Background(), tenantId).UrlId(urlId).Title(title).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.DeleteCommentPublic``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.CreateV1PageReact``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DeleteCommentPublic`: DeleteCommentPublic200Response - fmt.Fprintf(os.Stdout, "Response from `PublicAPI.DeleteCommentPublic`: %v\n", resp) + // response from `CreateV1PageReact`: CreateV1PageReact + fmt.Fprintf(os.Stdout, "Response from `PublicAPI.CreateV1PageReact`: %v\n", resp) } ``` @@ -380,24 +395,21 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **tenantId** | **string** | | -**commentId** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiDeleteCommentPublicRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCreateV1PageReactRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - **broadcastId** | **string** | | - **editKey** | **string** | | - **sso** | **string** | | + **urlId** | **string** | | + **title** | **string** | | ### Return type -[**DeleteCommentPublic200Response**](DeleteCommentPublic200Response.md) +[**CreateV1PageReact**](CreateV1PageReact.md) ### Authorization @@ -413,9 +425,9 @@ No authorization required [[Back to README]](../README.md) -## DeleteCommentVote +## CreateV2PageReact -> DeleteCommentVote200Response DeleteCommentVote(ctx, tenantId, commentId, voteId).UrlId(urlId).BroadcastId(broadcastId).EditKey(editKey).Sso(sso).Execute() +> CreateV1PageReact CreateV2PageReact(ctx, tenantId).UrlId(urlId).Id(id).Title(title).Execute() @@ -433,22 +445,19 @@ import ( func main() { tenantId := "tenantId_example" // string | - commentId := "commentId_example" // string | - voteId := "voteId_example" // string | urlId := "urlId_example" // string | - broadcastId := "broadcastId_example" // string | - editKey := "editKey_example" // string | (optional) - sso := "sso_example" // string | (optional) + id := "id_example" // string | + title := "title_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PublicAPI.DeleteCommentVote(context.Background(), tenantId, commentId, voteId).UrlId(urlId).BroadcastId(broadcastId).EditKey(editKey).Sso(sso).Execute() + resp, r, err := apiClient.PublicAPI.CreateV2PageReact(context.Background(), tenantId).UrlId(urlId).Id(id).Title(title).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.DeleteCommentVote``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.CreateV2PageReact``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DeleteCommentVote`: DeleteCommentVote200Response - fmt.Fprintf(os.Stdout, "Response from `PublicAPI.DeleteCommentVote`: %v\n", resp) + // response from `CreateV2PageReact`: CreateV1PageReact + fmt.Fprintf(os.Stdout, "Response from `PublicAPI.CreateV2PageReact`: %v\n", resp) } ``` @@ -459,27 +468,22 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **tenantId** | **string** | | -**commentId** | **string** | | -**voteId** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiDeleteCommentVoteRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCreateV2PageReactRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - **urlId** | **string** | | - **broadcastId** | **string** | | - **editKey** | **string** | | - **sso** | **string** | | + **id** | **string** | | + **title** | **string** | | ### Return type -[**DeleteCommentVote200Response**](DeleteCommentVote200Response.md) +[**CreateV1PageReact**](CreateV1PageReact.md) ### Authorization @@ -495,9 +499,9 @@ No authorization required [[Back to README]](../README.md) -## DeleteFeedPostPublic +## DeleteCommentPublic -> DeleteFeedPostPublic200Response DeleteFeedPostPublic(ctx, tenantId, postId).BroadcastId(broadcastId).Sso(sso).Execute() +> PublicAPIDeleteCommentResponse DeleteCommentPublic(ctx, tenantId, commentId).BroadcastId(broadcastId).EditKey(editKey).Sso(sso).Execute() @@ -515,19 +519,20 @@ import ( func main() { tenantId := "tenantId_example" // string | - postId := "postId_example" // string | - broadcastId := "broadcastId_example" // string | (optional) + commentId := "commentId_example" // string | + broadcastId := "broadcastId_example" // string | + editKey := "editKey_example" // string | (optional) sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PublicAPI.DeleteFeedPostPublic(context.Background(), tenantId, postId).BroadcastId(broadcastId).Sso(sso).Execute() + resp, r, err := apiClient.PublicAPI.DeleteCommentPublic(context.Background(), tenantId, commentId).BroadcastId(broadcastId).EditKey(editKey).Sso(sso).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.DeleteFeedPostPublic``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.DeleteCommentPublic``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DeleteFeedPostPublic`: DeleteFeedPostPublic200Response - fmt.Fprintf(os.Stdout, "Response from `PublicAPI.DeleteFeedPostPublic`: %v\n", resp) + // response from `DeleteCommentPublic`: PublicAPIDeleteCommentResponse + fmt.Fprintf(os.Stdout, "Response from `PublicAPI.DeleteCommentPublic`: %v\n", resp) } ``` @@ -538,11 +543,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **tenantId** | **string** | | -**postId** | **string** | | +**commentId** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiDeleteFeedPostPublicRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDeleteCommentPublicRequest struct via the builder pattern Name | Type | Description | Notes @@ -550,11 +555,12 @@ Name | Type | Description | Notes **broadcastId** | **string** | | + **editKey** | **string** | | **sso** | **string** | | ### Return type -[**DeleteFeedPostPublic200Response**](DeleteFeedPostPublic200Response.md) +[**PublicAPIDeleteCommentResponse**](PublicAPIDeleteCommentResponse.md) ### Authorization @@ -570,9 +576,9 @@ No authorization required [[Back to README]](../README.md) -## FlagCommentPublic +## DeleteCommentVote -> FlagCommentPublic200Response FlagCommentPublic(ctx, commentId).TenantId(tenantId).IsFlagged(isFlagged).Sso(sso).Execute() +> VoteDeleteResponse DeleteCommentVote(ctx, tenantId, commentId, voteId).UrlId(urlId).BroadcastId(broadcastId).EditKey(editKey).Sso(sso).Execute() @@ -591,18 +597,21 @@ import ( func main() { tenantId := "tenantId_example" // string | commentId := "commentId_example" // string | - isFlagged := true // bool | + voteId := "voteId_example" // string | + urlId := "urlId_example" // string | + broadcastId := "broadcastId_example" // string | + editKey := "editKey_example" // string | (optional) sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PublicAPI.FlagCommentPublic(context.Background(), commentId).TenantId(tenantId).IsFlagged(isFlagged).Sso(sso).Execute() + resp, r, err := apiClient.PublicAPI.DeleteCommentVote(context.Background(), tenantId, commentId, voteId).UrlId(urlId).BroadcastId(broadcastId).EditKey(editKey).Sso(sso).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.FlagCommentPublic``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.DeleteCommentVote``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `FlagCommentPublic`: FlagCommentPublic200Response - fmt.Fprintf(os.Stdout, "Response from `PublicAPI.FlagCommentPublic`: %v\n", resp) + // response from `DeleteCommentVote`: VoteDeleteResponse + fmt.Fprintf(os.Stdout, "Response from `PublicAPI.DeleteCommentVote`: %v\n", resp) } ``` @@ -612,23 +621,28 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**tenantId** | **string** | | **commentId** | **string** | | +**voteId** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiFlagCommentPublicRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDeleteCommentVoteRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **tenantId** | **string** | | - **isFlagged** | **bool** | | + + + **urlId** | **string** | | + **broadcastId** | **string** | | + **editKey** | **string** | | **sso** | **string** | | ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**VoteDeleteResponse**](VoteDeleteResponse.md) ### Authorization @@ -644,9 +658,9 @@ No authorization required [[Back to README]](../README.md) -## GetCommentText +## DeleteFeedPostPublic -> GetCommentText200Response GetCommentText(ctx, tenantId, commentId).EditKey(editKey).Sso(sso).Execute() +> DeleteFeedPostPublicResponse DeleteFeedPostPublic(ctx, tenantId, postId).BroadcastId(broadcastId).Sso(sso).Execute() @@ -664,19 +678,19 @@ import ( func main() { tenantId := "tenantId_example" // string | - commentId := "commentId_example" // string | - editKey := "editKey_example" // string | (optional) + postId := "postId_example" // string | + broadcastId := "broadcastId_example" // string | (optional) sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PublicAPI.GetCommentText(context.Background(), tenantId, commentId).EditKey(editKey).Sso(sso).Execute() + resp, r, err := apiClient.PublicAPI.DeleteFeedPostPublic(context.Background(), tenantId, postId).BroadcastId(broadcastId).Sso(sso).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetCommentText``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.DeleteFeedPostPublic``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetCommentText`: GetCommentText200Response - fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetCommentText`: %v\n", resp) + // response from `DeleteFeedPostPublic`: DeleteFeedPostPublicResponse + fmt.Fprintf(os.Stdout, "Response from `PublicAPI.DeleteFeedPostPublic`: %v\n", resp) } ``` @@ -687,23 +701,23 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **tenantId** | **string** | | -**commentId** | **string** | | +**postId** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiGetCommentTextRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDeleteFeedPostPublicRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **editKey** | **string** | | + **broadcastId** | **string** | | **sso** | **string** | | ### Return type -[**GetCommentText200Response**](GetCommentText200Response.md) +[**DeleteFeedPostPublicResponse**](DeleteFeedPostPublicResponse.md) ### Authorization @@ -719,9 +733,9 @@ No authorization required [[Back to README]](../README.md) -## GetCommentVoteUserNames +## DeleteV1PageReact -> GetCommentVoteUserNames200Response GetCommentVoteUserNames(ctx, tenantId, commentId).Dir(dir).Sso(sso).Execute() +> CreateV1PageReact DeleteV1PageReact(ctx, tenantId).UrlId(urlId).Execute() @@ -739,19 +753,17 @@ import ( func main() { tenantId := "tenantId_example" // string | - commentId := "commentId_example" // string | - dir := int32(56) // int32 | - sso := "sso_example" // string | (optional) + urlId := "urlId_example" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PublicAPI.GetCommentVoteUserNames(context.Background(), tenantId, commentId).Dir(dir).Sso(sso).Execute() + resp, r, err := apiClient.PublicAPI.DeleteV1PageReact(context.Background(), tenantId).UrlId(urlId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetCommentVoteUserNames``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.DeleteV1PageReact``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetCommentVoteUserNames`: GetCommentVoteUserNames200Response - fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetCommentVoteUserNames`: %v\n", resp) + // response from `DeleteV1PageReact`: CreateV1PageReact + fmt.Fprintf(os.Stdout, "Response from `PublicAPI.DeleteV1PageReact`: %v\n", resp) } ``` @@ -762,23 +774,20 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **tenantId** | **string** | | -**commentId** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiGetCommentVoteUserNamesRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDeleteV1PageReactRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - **dir** | **int32** | | - **sso** | **string** | | + **urlId** | **string** | | ### Return type -[**GetCommentVoteUserNames200Response**](GetCommentVoteUserNames200Response.md) +[**CreateV1PageReact**](CreateV1PageReact.md) ### Authorization @@ -794,11 +803,9 @@ No authorization required [[Back to README]](../README.md) -## GetCommentsPublic - -> GetCommentsPublic200Response GetCommentsPublic(ctx, tenantId).UrlId(urlId).Page(page).Direction(direction).Sso(sso).Skip(skip).SkipChildren(skipChildren).Limit(limit).LimitChildren(limitChildren).CountChildren(countChildren).FetchPageForCommentId(fetchPageForCommentId).IncludeConfig(includeConfig).CountAll(countAll).Includei10n(includei10n).Locale(locale).Modules(modules).IsCrawler(isCrawler).IncludeNotificationCount(includeNotificationCount).AsTree(asTree).MaxTreeDepth(maxTreeDepth).UseFullTranslationIds(useFullTranslationIds).ParentId(parentId).SearchText(searchText).HashTags(hashTags).UserId(userId).CustomConfigStr(customConfigStr).AfterCommentId(afterCommentId).BeforeCommentId(beforeCommentId).Execute() - +## DeleteV2PageReact +> CreateV1PageReact DeleteV2PageReact(ctx, tenantId).UrlId(urlId).Id(id).Execute() @@ -817,42 +824,17 @@ import ( func main() { tenantId := "tenantId_example" // string | urlId := "urlId_example" // string | - page := int32(56) // int32 | (optional) - direction := openapiclient.SortDirections("OF") // SortDirections | (optional) - sso := "sso_example" // string | (optional) - skip := int32(56) // int32 | (optional) - skipChildren := int32(56) // int32 | (optional) - limit := int32(56) // int32 | (optional) - limitChildren := int32(56) // int32 | (optional) - countChildren := true // bool | (optional) - fetchPageForCommentId := "fetchPageForCommentId_example" // string | (optional) - includeConfig := true // bool | (optional) - countAll := true // bool | (optional) - includei10n := true // bool | (optional) - locale := "locale_example" // string | (optional) - modules := "modules_example" // string | (optional) - isCrawler := true // bool | (optional) - includeNotificationCount := true // bool | (optional) - asTree := true // bool | (optional) - maxTreeDepth := int32(56) // int32 | (optional) - useFullTranslationIds := true // bool | (optional) - parentId := "parentId_example" // string | (optional) - searchText := "searchText_example" // string | (optional) - hashTags := []string{"Inner_example"} // []string | (optional) - userId := "userId_example" // string | (optional) - customConfigStr := "customConfigStr_example" // string | (optional) - afterCommentId := "afterCommentId_example" // string | (optional) - beforeCommentId := "beforeCommentId_example" // string | (optional) + id := "id_example" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PublicAPI.GetCommentsPublic(context.Background(), tenantId).UrlId(urlId).Page(page).Direction(direction).Sso(sso).Skip(skip).SkipChildren(skipChildren).Limit(limit).LimitChildren(limitChildren).CountChildren(countChildren).FetchPageForCommentId(fetchPageForCommentId).IncludeConfig(includeConfig).CountAll(countAll).Includei10n(includei10n).Locale(locale).Modules(modules).IsCrawler(isCrawler).IncludeNotificationCount(includeNotificationCount).AsTree(asTree).MaxTreeDepth(maxTreeDepth).UseFullTranslationIds(useFullTranslationIds).ParentId(parentId).SearchText(searchText).HashTags(hashTags).UserId(userId).CustomConfigStr(customConfigStr).AfterCommentId(afterCommentId).BeforeCommentId(beforeCommentId).Execute() + resp, r, err := apiClient.PublicAPI.DeleteV2PageReact(context.Background(), tenantId).UrlId(urlId).Id(id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetCommentsPublic``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.DeleteV2PageReact``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetCommentsPublic`: GetCommentsPublic200Response - fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetCommentsPublic`: %v\n", resp) + // response from `DeleteV2PageReact`: CreateV1PageReact + fmt.Fprintf(os.Stdout, "Response from `PublicAPI.DeleteV2PageReact`: %v\n", resp) } ``` @@ -866,43 +848,18 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiGetCommentsPublicRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDeleteV2PageReactRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **urlId** | **string** | | - **page** | **int32** | | - **direction** | [**SortDirections**](SortDirections.md) | | - **sso** | **string** | | - **skip** | **int32** | | - **skipChildren** | **int32** | | - **limit** | **int32** | | - **limitChildren** | **int32** | | - **countChildren** | **bool** | | - **fetchPageForCommentId** | **string** | | - **includeConfig** | **bool** | | - **countAll** | **bool** | | - **includei10n** | **bool** | | - **locale** | **string** | | - **modules** | **string** | | - **isCrawler** | **bool** | | - **includeNotificationCount** | **bool** | | - **asTree** | **bool** | | - **maxTreeDepth** | **int32** | | - **useFullTranslationIds** | **bool** | | - **parentId** | **string** | | - **searchText** | **string** | | - **hashTags** | **[]string** | | - **userId** | **string** | | - **customConfigStr** | **string** | | - **afterCommentId** | **string** | | - **beforeCommentId** | **string** | | + **id** | **string** | | ### Return type -[**GetCommentsPublic200Response**](GetCommentsPublic200Response.md) +[**CreateV1PageReact**](CreateV1PageReact.md) ### Authorization @@ -918,11 +875,9 @@ No authorization required [[Back to README]](../README.md) -## GetEventLog - -> GetEventLog200Response GetEventLog(ctx, tenantId).UrlId(urlId).UserIdWS(userIdWS).StartTime(startTime).EndTime(endTime).Execute() - +## FlagCommentPublic +> APIEmptyResponse FlagCommentPublic(ctx, commentId).TenantId(tenantId).IsFlagged(isFlagged).Sso(sso).Execute() @@ -940,20 +895,19 @@ import ( func main() { tenantId := "tenantId_example" // string | - urlId := "urlId_example" // string | - userIdWS := "userIdWS_example" // string | - startTime := int64(789) // int64 | - endTime := int64(789) // int64 | + commentId := "commentId_example" // string | + isFlagged := true // bool | + sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PublicAPI.GetEventLog(context.Background(), tenantId).UrlId(urlId).UserIdWS(userIdWS).StartTime(startTime).EndTime(endTime).Execute() + resp, r, err := apiClient.PublicAPI.FlagCommentPublic(context.Background(), commentId).TenantId(tenantId).IsFlagged(isFlagged).Sso(sso).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetEventLog``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.FlagCommentPublic``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetEventLog`: GetEventLog200Response - fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetEventLog`: %v\n", resp) + // response from `FlagCommentPublic`: APIEmptyResponse + fmt.Fprintf(os.Stdout, "Response from `PublicAPI.FlagCommentPublic`: %v\n", resp) } ``` @@ -963,24 +917,23 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**tenantId** | **string** | | +**commentId** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiGetEventLogRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiFlagCommentPublicRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | - **urlId** | **string** | | - **userIdWS** | **string** | | - **startTime** | **int64** | | - **endTime** | **int64** | | + **isFlagged** | **bool** | | + **sso** | **string** | | ### Return type -[**GetEventLog200Response**](GetEventLog200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -996,11 +949,9 @@ No authorization required [[Back to README]](../README.md) -## GetFeedPostsPublic - -> GetFeedPostsPublic200Response GetFeedPostsPublic(ctx, tenantId).AfterId(afterId).Limit(limit).Tags(tags).Sso(sso).IsCrawler(isCrawler).IncludeUserInfo(includeUserInfo).Execute() - +## GetCommentText +> PublicAPIGetCommentTextResponse GetCommentText(ctx, tenantId, commentId).EditKey(editKey).Sso(sso).Execute() @@ -1018,22 +969,19 @@ import ( func main() { tenantId := "tenantId_example" // string | - afterId := "afterId_example" // string | (optional) - limit := int32(56) // int32 | (optional) - tags := []string{"Inner_example"} // []string | (optional) + commentId := "commentId_example" // string | + editKey := "editKey_example" // string | (optional) sso := "sso_example" // string | (optional) - isCrawler := true // bool | (optional) - includeUserInfo := true // bool | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PublicAPI.GetFeedPostsPublic(context.Background(), tenantId).AfterId(afterId).Limit(limit).Tags(tags).Sso(sso).IsCrawler(isCrawler).IncludeUserInfo(includeUserInfo).Execute() + resp, r, err := apiClient.PublicAPI.GetCommentText(context.Background(), tenantId, commentId).EditKey(editKey).Sso(sso).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetFeedPostsPublic``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetCommentText``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetFeedPostsPublic`: GetFeedPostsPublic200Response - fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetFeedPostsPublic`: %v\n", resp) + // response from `GetCommentText`: PublicAPIGetCommentTextResponse + fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetCommentText`: %v\n", resp) } ``` @@ -1044,25 +992,23 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **tenantId** | **string** | | +**commentId** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiGetFeedPostsPublicRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGetCommentTextRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **afterId** | **string** | | - **limit** | **int32** | | - **tags** | **[]string** | | + + **editKey** | **string** | | **sso** | **string** | | - **isCrawler** | **bool** | | - **includeUserInfo** | **bool** | | ### Return type -[**GetFeedPostsPublic200Response**](GetFeedPostsPublic200Response.md) +[**PublicAPIGetCommentTextResponse**](PublicAPIGetCommentTextResponse.md) ### Authorization @@ -1078,9 +1024,9 @@ No authorization required [[Back to README]](../README.md) -## GetFeedPostsStats +## GetCommentVoteUserNames -> GetFeedPostsStats200Response GetFeedPostsStats(ctx, tenantId).PostIds(postIds).Sso(sso).Execute() +> GetCommentVoteUserNamesSuccessResponse GetCommentVoteUserNames(ctx, tenantId, commentId).Dir(dir).Sso(sso).Execute() @@ -1098,18 +1044,19 @@ import ( func main() { tenantId := "tenantId_example" // string | - postIds := []string{"Inner_example"} // []string | + commentId := "commentId_example" // string | + dir := int32(56) // int32 | sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PublicAPI.GetFeedPostsStats(context.Background(), tenantId).PostIds(postIds).Sso(sso).Execute() + resp, r, err := apiClient.PublicAPI.GetCommentVoteUserNames(context.Background(), tenantId, commentId).Dir(dir).Sso(sso).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetFeedPostsStats``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetCommentVoteUserNames``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetFeedPostsStats`: GetFeedPostsStats200Response - fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetFeedPostsStats`: %v\n", resp) + // response from `GetCommentVoteUserNames`: GetCommentVoteUserNamesSuccessResponse + fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetCommentVoteUserNames`: %v\n", resp) } ``` @@ -1120,21 +1067,23 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **tenantId** | **string** | | +**commentId** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiGetFeedPostsStatsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGetCommentVoteUserNamesRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **postIds** | **[]string** | | + + **dir** | **int32** | | **sso** | **string** | | ### Return type -[**GetFeedPostsStats200Response**](GetFeedPostsStats200Response.md) +[**GetCommentVoteUserNamesSuccessResponse**](GetCommentVoteUserNamesSuccessResponse.md) ### Authorization @@ -1150,11 +1099,9 @@ No authorization required [[Back to README]](../README.md) -## GetGlobalEventLog - -> GetEventLog200Response GetGlobalEventLog(ctx, tenantId).UrlId(urlId).UserIdWS(userIdWS).StartTime(startTime).EndTime(endTime).Execute() - +## GetCommentsForUser +> GetCommentsForUserResponse GetCommentsForUser(ctx).UserId(userId).Direction(direction).RepliesToUserId(repliesToUserId).Page(page).Includei10n(includei10n).Locale(locale).IsCrawler(isCrawler).Execute() @@ -1171,31 +1118,685 @@ import ( ) func main() { - tenantId := "tenantId_example" // string | - urlId := "urlId_example" // string | - userIdWS := "userIdWS_example" // string | - startTime := int64(789) // int64 | - endTime := int64(789) // int64 | + userId := "userId_example" // string | (optional) + direction := openapiclient.SortDirections("OF") // SortDirections | (optional) + repliesToUserId := "repliesToUserId_example" // string | (optional) + page := float64(1.2) // float64 | (optional) + includei10n := true // bool | (optional) + locale := "locale_example" // string | (optional) + isCrawler := true // bool | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PublicAPI.GetGlobalEventLog(context.Background(), tenantId).UrlId(urlId).UserIdWS(userIdWS).StartTime(startTime).EndTime(endTime).Execute() + resp, r, err := apiClient.PublicAPI.GetCommentsForUser(context.Background()).UserId(userId).Direction(direction).RepliesToUserId(repliesToUserId).Page(page).Includei10n(includei10n).Locale(locale).IsCrawler(isCrawler).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetGlobalEventLog``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetCommentsForUser``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetGlobalEventLog`: GetEventLog200Response - fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetGlobalEventLog`: %v\n", resp) + // response from `GetCommentsForUser`: GetCommentsForUserResponse + fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetCommentsForUser`: %v\n", resp) } ``` ### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**tenantId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCommentsForUserRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **string** | | + **direction** | [**SortDirections**](SortDirections.md) | | + **repliesToUserId** | **string** | | + **page** | **float64** | | + **includei10n** | **bool** | | + **locale** | **string** | | + **isCrawler** | **bool** | | + +### Return type + +[**GetCommentsForUserResponse**](GetCommentsForUserResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCommentsPublic + +> GetCommentsResponseWithPresencePublicComment GetCommentsPublic(ctx, tenantId).UrlId(urlId).Page(page).Direction(direction).Sso(sso).Skip(skip).SkipChildren(skipChildren).Limit(limit).LimitChildren(limitChildren).CountChildren(countChildren).FetchPageForCommentId(fetchPageForCommentId).IncludeConfig(includeConfig).CountAll(countAll).Includei10n(includei10n).Locale(locale).Modules(modules).IsCrawler(isCrawler).IncludeNotificationCount(includeNotificationCount).AsTree(asTree).MaxTreeDepth(maxTreeDepth).UseFullTranslationIds(useFullTranslationIds).ParentId(parentId).SearchText(searchText).HashTags(hashTags).UserId(userId).CustomConfigStr(customConfigStr).AfterCommentId(afterCommentId).BeforeCommentId(beforeCommentId).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + tenantId := "tenantId_example" // string | + urlId := "urlId_example" // string | + page := int32(56) // int32 | (optional) + direction := openapiclient.SortDirections("OF") // SortDirections | (optional) + sso := "sso_example" // string | (optional) + skip := int32(56) // int32 | (optional) + skipChildren := int32(56) // int32 | (optional) + limit := int32(56) // int32 | (optional) + limitChildren := int32(56) // int32 | (optional) + countChildren := true // bool | (optional) + fetchPageForCommentId := "fetchPageForCommentId_example" // string | (optional) + includeConfig := true // bool | (optional) + countAll := true // bool | (optional) + includei10n := true // bool | (optional) + locale := "locale_example" // string | (optional) + modules := "modules_example" // string | (optional) + isCrawler := true // bool | (optional) + includeNotificationCount := true // bool | (optional) + asTree := true // bool | (optional) + maxTreeDepth := int32(56) // int32 | (optional) + useFullTranslationIds := true // bool | (optional) + parentId := "parentId_example" // string | (optional) + searchText := "searchText_example" // string | (optional) + hashTags := []string{"Inner_example"} // []string | (optional) + userId := "userId_example" // string | (optional) + customConfigStr := "customConfigStr_example" // string | (optional) + afterCommentId := "afterCommentId_example" // string | (optional) + beforeCommentId := "beforeCommentId_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PublicAPI.GetCommentsPublic(context.Background(), tenantId).UrlId(urlId).Page(page).Direction(direction).Sso(sso).Skip(skip).SkipChildren(skipChildren).Limit(limit).LimitChildren(limitChildren).CountChildren(countChildren).FetchPageForCommentId(fetchPageForCommentId).IncludeConfig(includeConfig).CountAll(countAll).Includei10n(includei10n).Locale(locale).Modules(modules).IsCrawler(isCrawler).IncludeNotificationCount(includeNotificationCount).AsTree(asTree).MaxTreeDepth(maxTreeDepth).UseFullTranslationIds(useFullTranslationIds).ParentId(parentId).SearchText(searchText).HashTags(hashTags).UserId(userId).CustomConfigStr(customConfigStr).AfterCommentId(afterCommentId).BeforeCommentId(beforeCommentId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetCommentsPublic``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCommentsPublic`: GetCommentsResponseWithPresencePublicComment + fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetCommentsPublic`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**tenantId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCommentsPublicRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **urlId** | **string** | | + **page** | **int32** | | + **direction** | [**SortDirections**](SortDirections.md) | | + **sso** | **string** | | + **skip** | **int32** | | + **skipChildren** | **int32** | | + **limit** | **int32** | | + **limitChildren** | **int32** | | + **countChildren** | **bool** | | + **fetchPageForCommentId** | **string** | | + **includeConfig** | **bool** | | + **countAll** | **bool** | | + **includei10n** | **bool** | | + **locale** | **string** | | + **modules** | **string** | | + **isCrawler** | **bool** | | + **includeNotificationCount** | **bool** | | + **asTree** | **bool** | | + **maxTreeDepth** | **int32** | | + **useFullTranslationIds** | **bool** | | + **parentId** | **string** | | + **searchText** | **string** | | + **hashTags** | **[]string** | | + **userId** | **string** | | + **customConfigStr** | **string** | | + **afterCommentId** | **string** | | + **beforeCommentId** | **string** | | + +### Return type + +[**GetCommentsResponseWithPresencePublicComment**](GetCommentsResponseWithPresencePublicComment.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetEventLog + +> GetEventLogResponse GetEventLog(ctx, tenantId).UrlId(urlId).UserIdWS(userIdWS).StartTime(startTime).EndTime(endTime).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + tenantId := "tenantId_example" // string | + urlId := "urlId_example" // string | + userIdWS := "userIdWS_example" // string | + startTime := int64(789) // int64 | + endTime := int64(789) // int64 | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PublicAPI.GetEventLog(context.Background(), tenantId).UrlId(urlId).UserIdWS(userIdWS).StartTime(startTime).EndTime(endTime).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetEventLog``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetEventLog`: GetEventLogResponse + fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetEventLog`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**tenantId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetEventLogRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **urlId** | **string** | | + **userIdWS** | **string** | | + **startTime** | **int64** | | + **endTime** | **int64** | | + +### Return type + +[**GetEventLogResponse**](GetEventLogResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetFeedPostsPublic + +> PublicFeedPostsResponse GetFeedPostsPublic(ctx, tenantId).AfterId(afterId).Limit(limit).Tags(tags).Sso(sso).IsCrawler(isCrawler).IncludeUserInfo(includeUserInfo).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + tenantId := "tenantId_example" // string | + afterId := "afterId_example" // string | (optional) + limit := int32(56) // int32 | (optional) + tags := []string{"Inner_example"} // []string | (optional) + sso := "sso_example" // string | (optional) + isCrawler := true // bool | (optional) + includeUserInfo := true // bool | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PublicAPI.GetFeedPostsPublic(context.Background(), tenantId).AfterId(afterId).Limit(limit).Tags(tags).Sso(sso).IsCrawler(isCrawler).IncludeUserInfo(includeUserInfo).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetFeedPostsPublic``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetFeedPostsPublic`: PublicFeedPostsResponse + fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetFeedPostsPublic`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**tenantId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetFeedPostsPublicRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **afterId** | **string** | | + **limit** | **int32** | | + **tags** | **[]string** | | + **sso** | **string** | | + **isCrawler** | **bool** | | + **includeUserInfo** | **bool** | | + +### Return type + +[**PublicFeedPostsResponse**](PublicFeedPostsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetFeedPostsStats + +> FeedPostsStatsResponse GetFeedPostsStats(ctx, tenantId).PostIds(postIds).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + tenantId := "tenantId_example" // string | + postIds := []string{"Inner_example"} // []string | + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PublicAPI.GetFeedPostsStats(context.Background(), tenantId).PostIds(postIds).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetFeedPostsStats``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetFeedPostsStats`: FeedPostsStatsResponse + fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetFeedPostsStats`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**tenantId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetFeedPostsStatsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **postIds** | **[]string** | | + **sso** | **string** | | + +### Return type + +[**FeedPostsStatsResponse**](FeedPostsStatsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetGifLarge + +> GifGetLargeResponse GetGifLarge(ctx, tenantId).LargeInternalURLSanitized(largeInternalURLSanitized).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + tenantId := "tenantId_example" // string | + largeInternalURLSanitized := "largeInternalURLSanitized_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PublicAPI.GetGifLarge(context.Background(), tenantId).LargeInternalURLSanitized(largeInternalURLSanitized).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetGifLarge``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetGifLarge`: GifGetLargeResponse + fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetGifLarge`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**tenantId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetGifLargeRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **largeInternalURLSanitized** | **string** | | + +### Return type + +[**GifGetLargeResponse**](GifGetLargeResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetGifsSearch + +> GetGifsSearchResponse GetGifsSearch(ctx, tenantId).Search(search).Locale(locale).Rating(rating).Page(page).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + tenantId := "tenantId_example" // string | + search := "search_example" // string | + locale := "locale_example" // string | (optional) + rating := "rating_example" // string | (optional) + page := float64(1.2) // float64 | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PublicAPI.GetGifsSearch(context.Background(), tenantId).Search(search).Locale(locale).Rating(rating).Page(page).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetGifsSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetGifsSearch`: GetGifsSearchResponse + fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetGifsSearch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**tenantId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetGifsSearchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **search** | **string** | | + **locale** | **string** | | + **rating** | **string** | | + **page** | **float64** | | + +### Return type + +[**GetGifsSearchResponse**](GetGifsSearchResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetGifsTrending + +> GetGifsTrendingResponse GetGifsTrending(ctx, tenantId).Locale(locale).Rating(rating).Page(page).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + tenantId := "tenantId_example" // string | + locale := "locale_example" // string | (optional) + rating := "rating_example" // string | (optional) + page := float64(1.2) // float64 | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PublicAPI.GetGifsTrending(context.Background(), tenantId).Locale(locale).Rating(rating).Page(page).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetGifsTrending``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetGifsTrending`: GetGifsTrendingResponse + fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetGifsTrending`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**tenantId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetGifsTrendingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **locale** | **string** | | + **rating** | **string** | | + **page** | **float64** | | + +### Return type + +[**GetGifsTrendingResponse**](GetGifsTrendingResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetGlobalEventLog + +> GetEventLogResponse GetGlobalEventLog(ctx, tenantId).UrlId(urlId).UserIdWS(userIdWS).StartTime(startTime).EndTime(endTime).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + tenantId := "tenantId_example" // string | + urlId := "urlId_example" // string | + userIdWS := "userIdWS_example" // string | + startTime := int64(789) // int64 | + endTime := int64(789) // int64 | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PublicAPI.GetGlobalEventLog(context.Background(), tenantId).UrlId(urlId).UserIdWS(userIdWS).StartTime(startTime).EndTime(endTime).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetGlobalEventLog``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetGlobalEventLog`: GetEventLogResponse + fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetGlobalEventLog`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**tenantId** | **string** | | ### Other Parameters @@ -1204,15 +1805,542 @@ Other parameters are passed through a pointer to a apiGetGlobalEventLogRequest s Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - **urlId** | **string** | | - **userIdWS** | **string** | | - **startTime** | **int64** | | - **endTime** | **int64** | | + + **urlId** | **string** | | + **userIdWS** | **string** | | + **startTime** | **int64** | | + **endTime** | **int64** | | + +### Return type + +[**GetEventLogResponse**](GetEventLogResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetOfflineUsers + +> PageUsersOfflineResponse GetOfflineUsers(ctx, tenantId).UrlId(urlId).AfterName(afterName).AfterUserId(afterUserId).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + tenantId := "tenantId_example" // string | + urlId := "urlId_example" // string | Page URL identifier (cleaned server-side). + afterName := "afterName_example" // string | Cursor: pass nextAfterName from the previous response. (optional) + afterUserId := "afterUserId_example" // string | Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PublicAPI.GetOfflineUsers(context.Background(), tenantId).UrlId(urlId).AfterName(afterName).AfterUserId(afterUserId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetOfflineUsers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetOfflineUsers`: PageUsersOfflineResponse + fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetOfflineUsers`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**tenantId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetOfflineUsersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **urlId** | **string** | Page URL identifier (cleaned server-side). | + **afterName** | **string** | Cursor: pass nextAfterName from the previous response. | + **afterUserId** | **string** | Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. | + +### Return type + +[**PageUsersOfflineResponse**](PageUsersOfflineResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetOnlineUsers + +> PageUsersOnlineResponse GetOnlineUsers(ctx, tenantId).UrlId(urlId).AfterName(afterName).AfterUserId(afterUserId).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + tenantId := "tenantId_example" // string | + urlId := "urlId_example" // string | Page URL identifier (cleaned server-side). + afterName := "afterName_example" // string | Cursor: pass nextAfterName from the previous response. (optional) + afterUserId := "afterUserId_example" // string | Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PublicAPI.GetOnlineUsers(context.Background(), tenantId).UrlId(urlId).AfterName(afterName).AfterUserId(afterUserId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetOnlineUsers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetOnlineUsers`: PageUsersOnlineResponse + fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetOnlineUsers`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**tenantId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetOnlineUsersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **urlId** | **string** | Page URL identifier (cleaned server-side). | + **afterName** | **string** | Cursor: pass nextAfterName from the previous response. | + **afterUserId** | **string** | Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. | + +### Return type + +[**PageUsersOnlineResponse**](PageUsersOnlineResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetPagesPublic + +> GetPublicPagesResponse GetPagesPublic(ctx, tenantId).Cursor(cursor).Limit(limit).Q(q).SortBy(sortBy).HasComments(hasComments).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + tenantId := "tenantId_example" // string | + cursor := "cursor_example" // string | Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`. (optional) + limit := int32(56) // int32 | 1..200, default 50 (optional) + q := "q_example" // string | Optional case-insensitive title prefix filter. (optional) + sortBy := openapiclient.PagesSortBy("updatedAt") // PagesSortBy | Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). (optional) + hasComments := true // bool | If true, only return pages with at least one comment. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PublicAPI.GetPagesPublic(context.Background(), tenantId).Cursor(cursor).Limit(limit).Q(q).SortBy(sortBy).HasComments(hasComments).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetPagesPublic``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPagesPublic`: GetPublicPagesResponse + fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetPagesPublic`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**tenantId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetPagesPublicRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **cursor** | **string** | Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`. | + **limit** | **int32** | 1..200, default 50 | + **q** | **string** | Optional case-insensitive title prefix filter. | + **sortBy** | [**PagesSortBy**](PagesSortBy.md) | Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). | + **hasComments** | **bool** | If true, only return pages with at least one comment. | + +### Return type + +[**GetPublicPagesResponse**](GetPublicPagesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetTranslations + +> GetTranslationsResponse GetTranslations(ctx, namespace, component).Locale(locale).UseFullTranslationIds(useFullTranslationIds).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + namespace := "namespace_example" // string | + component := "component_example" // string | + locale := "locale_example" // string | (optional) + useFullTranslationIds := true // bool | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PublicAPI.GetTranslations(context.Background(), namespace, component).Locale(locale).UseFullTranslationIds(useFullTranslationIds).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetTranslations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTranslations`: GetTranslationsResponse + fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetTranslations`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | | +**component** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetTranslationsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **locale** | **string** | | + **useFullTranslationIds** | **bool** | | + +### Return type + +[**GetTranslationsResponse**](GetTranslationsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetUserNotificationCount + +> GetUserNotificationCountResponse GetUserNotificationCount(ctx).TenantId(tenantId).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + tenantId := "tenantId_example" // string | + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PublicAPI.GetUserNotificationCount(context.Background()).TenantId(tenantId).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetUserNotificationCount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetUserNotificationCount`: GetUserNotificationCountResponse + fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetUserNotificationCount`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetUserNotificationCountRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | + **sso** | **string** | | + +### Return type + +[**GetUserNotificationCountResponse**](GetUserNotificationCountResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetUserNotifications + +> GetMyNotificationsResponse GetUserNotifications(ctx).TenantId(tenantId).UrlId(urlId).PageSize(pageSize).AfterId(afterId).IncludeContext(includeContext).AfterCreatedAt(afterCreatedAt).UnreadOnly(unreadOnly).DmOnly(dmOnly).NoDm(noDm).IncludeTranslations(includeTranslations).IncludeTenantNotifications(includeTenantNotifications).Sso(sso).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + tenantId := "tenantId_example" // string | + urlId := "urlId_example" // string | Used to determine whether the current page is subscribed. (optional) + pageSize := int32(56) // int32 | (optional) + afterId := "afterId_example" // string | (optional) + includeContext := true // bool | (optional) + afterCreatedAt := int64(789) // int64 | (optional) + unreadOnly := true // bool | (optional) + dmOnly := true // bool | (optional) + noDm := true // bool | (optional) + includeTranslations := true // bool | (optional) + includeTenantNotifications := true // bool | (optional) + sso := "sso_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PublicAPI.GetUserNotifications(context.Background()).TenantId(tenantId).UrlId(urlId).PageSize(pageSize).AfterId(afterId).IncludeContext(includeContext).AfterCreatedAt(afterCreatedAt).UnreadOnly(unreadOnly).DmOnly(dmOnly).NoDm(noDm).IncludeTranslations(includeTranslations).IncludeTenantNotifications(includeTenantNotifications).Sso(sso).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetUserNotifications``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetUserNotifications`: GetMyNotificationsResponse + fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetUserNotifications`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetUserNotificationsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | + **urlId** | **string** | Used to determine whether the current page is subscribed. | + **pageSize** | **int32** | | + **afterId** | **string** | | + **includeContext** | **bool** | | + **afterCreatedAt** | **int64** | | + **unreadOnly** | **bool** | | + **dmOnly** | **bool** | | + **noDm** | **bool** | | + **includeTranslations** | **bool** | | + **includeTenantNotifications** | **bool** | | + **sso** | **string** | | + +### Return type + +[**GetMyNotificationsResponse**](GetMyNotificationsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetUserPresenceStatuses + +> GetUserPresenceStatusesResponse GetUserPresenceStatuses(ctx).TenantId(tenantId).UrlIdWS(urlIdWS).UserIds(userIds).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + tenantId := "tenantId_example" // string | + urlIdWS := "urlIdWS_example" // string | + userIds := "userIds_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PublicAPI.GetUserPresenceStatuses(context.Background()).TenantId(tenantId).UrlIdWS(urlIdWS).UserIds(userIds).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetUserPresenceStatuses``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetUserPresenceStatuses`: GetUserPresenceStatusesResponse + fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetUserPresenceStatuses`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetUserPresenceStatusesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | + **urlIdWS** | **string** | | + **userIds** | **string** | | ### Return type -[**GetEventLog200Response**](GetEventLog200Response.md) +[**GetUserPresenceStatusesResponse**](GetUserPresenceStatusesResponse.md) ### Authorization @@ -1228,9 +2356,9 @@ No authorization required [[Back to README]](../README.md) -## GetUserNotificationCount +## GetUserReactsPublic -> GetUserNotificationCount200Response GetUserNotificationCount(ctx).TenantId(tenantId).Sso(sso).Execute() +> UserReactsResponse GetUserReactsPublic(ctx, tenantId).PostIds(postIds).Sso(sso).Execute() @@ -1248,37 +2376,43 @@ import ( func main() { tenantId := "tenantId_example" // string | + postIds := []string{"Inner_example"} // []string | (optional) sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PublicAPI.GetUserNotificationCount(context.Background()).TenantId(tenantId).Sso(sso).Execute() + resp, r, err := apiClient.PublicAPI.GetUserReactsPublic(context.Background(), tenantId).PostIds(postIds).Sso(sso).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetUserNotificationCount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetUserReactsPublic``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetUserNotificationCount`: GetUserNotificationCount200Response - fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetUserNotificationCount`: %v\n", resp) + // response from `GetUserReactsPublic`: UserReactsResponse + fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetUserReactsPublic`: %v\n", resp) } ``` ### Path Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**tenantId** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiGetUserNotificationCountRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGetUserReactsPublicRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **tenantId** | **string** | | + + **postIds** | **[]string** | | **sso** | **string** | | ### Return type -[**GetUserNotificationCount200Response**](GetUserNotificationCount200Response.md) +[**UserReactsResponse**](UserReactsResponse.md) ### Authorization @@ -1294,9 +2428,11 @@ No authorization required [[Back to README]](../README.md) -## GetUserNotifications +## GetUsersInfo + +> PageUsersInfoResponse GetUsersInfo(ctx, tenantId).Ids(ids).Execute() + -> GetUserNotifications200Response GetUserNotifications(ctx).TenantId(tenantId).PageSize(pageSize).AfterId(afterId).IncludeContext(includeContext).AfterCreatedAt(afterCreatedAt).UnreadOnly(unreadOnly).DmOnly(dmOnly).NoDm(noDm).IncludeTranslations(includeTranslations).Sso(sso).Execute() @@ -1314,53 +2450,41 @@ import ( func main() { tenantId := "tenantId_example" // string | - pageSize := int32(56) // int32 | (optional) - afterId := "afterId_example" // string | (optional) - includeContext := true // bool | (optional) - afterCreatedAt := int64(789) // int64 | (optional) - unreadOnly := true // bool | (optional) - dmOnly := true // bool | (optional) - noDm := true // bool | (optional) - includeTranslations := true // bool | (optional) - sso := "sso_example" // string | (optional) + ids := "ids_example" // string | Comma-delimited userIds. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PublicAPI.GetUserNotifications(context.Background()).TenantId(tenantId).PageSize(pageSize).AfterId(afterId).IncludeContext(includeContext).AfterCreatedAt(afterCreatedAt).UnreadOnly(unreadOnly).DmOnly(dmOnly).NoDm(noDm).IncludeTranslations(includeTranslations).Sso(sso).Execute() + resp, r, err := apiClient.PublicAPI.GetUsersInfo(context.Background(), tenantId).Ids(ids).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetUserNotifications``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetUsersInfo``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetUserNotifications`: GetUserNotifications200Response - fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetUserNotifications`: %v\n", resp) + // response from `GetUsersInfo`: PageUsersInfoResponse + fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetUsersInfo`: %v\n", resp) } ``` ### Path Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**tenantId** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiGetUserNotificationsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGetUsersInfoRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **tenantId** | **string** | | - **pageSize** | **int32** | | - **afterId** | **string** | | - **includeContext** | **bool** | | - **afterCreatedAt** | **int64** | | - **unreadOnly** | **bool** | | - **dmOnly** | **bool** | | - **noDm** | **bool** | | - **includeTranslations** | **bool** | | - **sso** | **string** | | + + **ids** | **string** | Comma-delimited userIds. | ### Return type -[**GetUserNotifications200Response**](GetUserNotifications200Response.md) +[**PageUsersInfoResponse**](PageUsersInfoResponse.md) ### Authorization @@ -1376,9 +2500,9 @@ No authorization required [[Back to README]](../README.md) -## GetUserPresenceStatuses +## GetV1PageLikes -> GetUserPresenceStatuses200Response GetUserPresenceStatuses(ctx).TenantId(tenantId).UrlIdWS(urlIdWS).UserIds(userIds).Execute() +> GetV1PageLikes GetV1PageLikes(ctx, tenantId).UrlId(urlId).Execute() @@ -1396,39 +2520,41 @@ import ( func main() { tenantId := "tenantId_example" // string | - urlIdWS := "urlIdWS_example" // string | - userIds := "userIds_example" // string | + urlId := "urlId_example" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PublicAPI.GetUserPresenceStatuses(context.Background()).TenantId(tenantId).UrlIdWS(urlIdWS).UserIds(userIds).Execute() + resp, r, err := apiClient.PublicAPI.GetV1PageLikes(context.Background(), tenantId).UrlId(urlId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetUserPresenceStatuses``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetV1PageLikes``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetUserPresenceStatuses`: GetUserPresenceStatuses200Response - fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetUserPresenceStatuses`: %v\n", resp) + // response from `GetV1PageLikes`: GetV1PageLikes + fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetV1PageLikes`: %v\n", resp) } ``` ### Path Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**tenantId** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiGetUserPresenceStatusesRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGetV1PageLikesRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **tenantId** | **string** | | - **urlIdWS** | **string** | | - **userIds** | **string** | | + + **urlId** | **string** | | ### Return type -[**GetUserPresenceStatuses200Response**](GetUserPresenceStatuses200Response.md) +[**GetV1PageLikes**](GetV1PageLikes.md) ### Authorization @@ -1444,9 +2570,9 @@ No authorization required [[Back to README]](../README.md) -## GetUserReactsPublic +## GetV2PageReactUsers -> GetUserReactsPublic200Response GetUserReactsPublic(ctx, tenantId).PostIds(postIds).Sso(sso).Execute() +> GetV2PageReactUsersResponse GetV2PageReactUsers(ctx, tenantId).UrlId(urlId).Id(id).Execute() @@ -1464,18 +2590,18 @@ import ( func main() { tenantId := "tenantId_example" // string | - postIds := []string{"Inner_example"} // []string | (optional) - sso := "sso_example" // string | (optional) + urlId := "urlId_example" // string | + id := "id_example" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PublicAPI.GetUserReactsPublic(context.Background(), tenantId).PostIds(postIds).Sso(sso).Execute() + resp, r, err := apiClient.PublicAPI.GetV2PageReactUsers(context.Background(), tenantId).UrlId(urlId).Id(id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetUserReactsPublic``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetV2PageReactUsers``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetUserReactsPublic`: GetUserReactsPublic200Response - fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetUserReactsPublic`: %v\n", resp) + // response from `GetV2PageReactUsers`: GetV2PageReactUsersResponse + fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetV2PageReactUsers`: %v\n", resp) } ``` @@ -1489,18 +2615,88 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiGetUserReactsPublicRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGetV2PageReactUsersRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **postIds** | **[]string** | | - **sso** | **string** | | + **urlId** | **string** | | + **id** | **string** | | + +### Return type + +[**GetV2PageReactUsersResponse**](GetV2PageReactUsersResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetV2PageReacts + +> GetV2PageReacts GetV2PageReacts(ctx, tenantId).UrlId(urlId).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + tenantId := "tenantId_example" // string | + urlId := "urlId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PublicAPI.GetV2PageReacts(context.Background(), tenantId).UrlId(urlId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetV2PageReacts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetV2PageReacts`: GetV2PageReacts + fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetV2PageReacts`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**tenantId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetV2PageReactsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **urlId** | **string** | | ### Return type -[**GetUserReactsPublic200Response**](GetUserReactsPublic200Response.md) +[**GetV2PageReacts**](GetV2PageReacts.md) ### Authorization @@ -1518,7 +2714,7 @@ No authorization required ## LockComment -> LockComment200Response LockComment(ctx, tenantId, commentId).BroadcastId(broadcastId).Sso(sso).Execute() +> APIEmptyResponse LockComment(ctx, tenantId, commentId).BroadcastId(broadcastId).Sso(sso).Execute() @@ -1547,7 +2743,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.LockComment``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `LockComment`: LockComment200Response + // response from `LockComment`: APIEmptyResponse fmt.Fprintf(os.Stdout, "Response from `PublicAPI.LockComment`: %v\n", resp) } ``` @@ -1575,7 +2771,66 @@ Name | Type | Description | Notes ### Return type -[**LockComment200Response**](LockComment200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## LogoutPublic + +> APIEmptyResponse LogoutPublic(ctx).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PublicAPI.LogoutPublic(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.LogoutPublic``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `LogoutPublic`: APIEmptyResponse + fmt.Fprintf(os.Stdout, "Response from `PublicAPI.LogoutPublic`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiLogoutPublicRequest struct via the builder pattern + + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1593,7 +2848,7 @@ No authorization required ## PinComment -> PinComment200Response PinComment(ctx, tenantId, commentId).BroadcastId(broadcastId).Sso(sso).Execute() +> ChangeCommentPinStatusResponse PinComment(ctx, tenantId, commentId).BroadcastId(broadcastId).Sso(sso).Execute() @@ -1622,7 +2877,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.PinComment``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `PinComment`: PinComment200Response + // response from `PinComment`: ChangeCommentPinStatusResponse fmt.Fprintf(os.Stdout, "Response from `PublicAPI.PinComment`: %v\n", resp) } ``` @@ -1650,7 +2905,7 @@ Name | Type | Description | Notes ### Return type -[**PinComment200Response**](PinComment200Response.md) +[**ChangeCommentPinStatusResponse**](ChangeCommentPinStatusResponse.md) ### Authorization @@ -1668,7 +2923,7 @@ No authorization required ## ReactFeedPostPublic -> ReactFeedPostPublic200Response ReactFeedPostPublic(ctx, tenantId, postId).ReactBodyParams(reactBodyParams).IsUndo(isUndo).BroadcastId(broadcastId).Sso(sso).Execute() +> ReactFeedPostResponse ReactFeedPostPublic(ctx, tenantId, postId).ReactBodyParams(reactBodyParams).IsUndo(isUndo).BroadcastId(broadcastId).Sso(sso).Execute() @@ -1699,7 +2954,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.ReactFeedPostPublic``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReactFeedPostPublic`: ReactFeedPostPublic200Response + // response from `ReactFeedPostPublic`: ReactFeedPostResponse fmt.Fprintf(os.Stdout, "Response from `PublicAPI.ReactFeedPostPublic`: %v\n", resp) } ``` @@ -1729,7 +2984,7 @@ Name | Type | Description | Notes ### Return type -[**ReactFeedPostPublic200Response**](ReactFeedPostPublic200Response.md) +[**ReactFeedPostResponse**](ReactFeedPostResponse.md) ### Authorization @@ -1747,7 +3002,7 @@ No authorization required ## ResetUserNotificationCount -> ResetUserNotifications200Response ResetUserNotificationCount(ctx).TenantId(tenantId).Sso(sso).Execute() +> ResetUserNotificationsResponse ResetUserNotificationCount(ctx).TenantId(tenantId).Sso(sso).Execute() @@ -1774,7 +3029,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.ResetUserNotificationCount``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ResetUserNotificationCount`: ResetUserNotifications200Response + // response from `ResetUserNotificationCount`: ResetUserNotificationsResponse fmt.Fprintf(os.Stdout, "Response from `PublicAPI.ResetUserNotificationCount`: %v\n", resp) } ``` @@ -1795,7 +3050,7 @@ Name | Type | Description | Notes ### Return type -[**ResetUserNotifications200Response**](ResetUserNotifications200Response.md) +[**ResetUserNotificationsResponse**](ResetUserNotificationsResponse.md) ### Authorization @@ -1813,7 +3068,7 @@ No authorization required ## ResetUserNotifications -> ResetUserNotifications200Response ResetUserNotifications(ctx).TenantId(tenantId).AfterId(afterId).AfterCreatedAt(afterCreatedAt).UnreadOnly(unreadOnly).DmOnly(dmOnly).NoDm(noDm).Sso(sso).Execute() +> ResetUserNotificationsResponse ResetUserNotifications(ctx).TenantId(tenantId).AfterId(afterId).AfterCreatedAt(afterCreatedAt).UnreadOnly(unreadOnly).DmOnly(dmOnly).NoDm(noDm).Sso(sso).Execute() @@ -1845,7 +3100,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.ResetUserNotifications``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ResetUserNotifications`: ResetUserNotifications200Response + // response from `ResetUserNotifications`: ResetUserNotificationsResponse fmt.Fprintf(os.Stdout, "Response from `PublicAPI.ResetUserNotifications`: %v\n", resp) } ``` @@ -1871,7 +3126,7 @@ Name | Type | Description | Notes ### Return type -[**ResetUserNotifications200Response**](ResetUserNotifications200Response.md) +[**ResetUserNotificationsResponse**](ResetUserNotificationsResponse.md) ### Authorization @@ -1889,7 +3144,7 @@ No authorization required ## SearchUsers -> SearchUsers200Response SearchUsers(ctx, tenantId).UrlId(urlId).UsernameStartsWith(usernameStartsWith).MentionGroupIds(mentionGroupIds).Sso(sso).SearchSection(searchSection).Execute() +> SearchUsersResult SearchUsers(ctx, tenantId).UrlId(urlId).UsernameStartsWith(usernameStartsWith).MentionGroupIds(mentionGroupIds).Sso(sso).SearchSection(searchSection).Execute() @@ -1920,7 +3175,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.SearchUsers``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `SearchUsers`: SearchUsers200Response + // response from `SearchUsers`: SearchUsersResult fmt.Fprintf(os.Stdout, "Response from `PublicAPI.SearchUsers`: %v\n", resp) } ``` @@ -1949,7 +3204,7 @@ Name | Type | Description | Notes ### Return type -[**SearchUsers200Response**](SearchUsers200Response.md) +[**SearchUsersResult**](SearchUsersResult.md) ### Authorization @@ -1967,7 +3222,7 @@ No authorization required ## SetCommentText -> SetCommentText200Response SetCommentText(ctx, tenantId, commentId).BroadcastId(broadcastId).CommentTextUpdateRequest(commentTextUpdateRequest).EditKey(editKey).Sso(sso).Execute() +> PublicAPISetCommentTextResponse SetCommentText(ctx, tenantId, commentId).BroadcastId(broadcastId).CommentTextUpdateRequest(commentTextUpdateRequest).EditKey(editKey).Sso(sso).Execute() @@ -1998,7 +3253,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.SetCommentText``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `SetCommentText`: SetCommentText200Response + // response from `SetCommentText`: PublicAPISetCommentTextResponse fmt.Fprintf(os.Stdout, "Response from `PublicAPI.SetCommentText`: %v\n", resp) } ``` @@ -2028,7 +3283,7 @@ Name | Type | Description | Notes ### Return type -[**SetCommentText200Response**](SetCommentText200Response.md) +[**PublicAPISetCommentTextResponse**](PublicAPISetCommentTextResponse.md) ### Authorization @@ -2046,7 +3301,7 @@ No authorization required ## UnBlockCommentPublic -> UnBlockCommentPublic200Response UnBlockCommentPublic(ctx, commentId).TenantId(tenantId).PublicBlockFromCommentParams(publicBlockFromCommentParams).Sso(sso).Execute() +> UnblockSuccess UnBlockCommentPublic(ctx, commentId).TenantId(tenantId).PublicBlockFromCommentParams(publicBlockFromCommentParams).Sso(sso).Execute() @@ -2075,7 +3330,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.UnBlockCommentPublic``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `UnBlockCommentPublic`: UnBlockCommentPublic200Response + // response from `UnBlockCommentPublic`: UnblockSuccess fmt.Fprintf(os.Stdout, "Response from `PublicAPI.UnBlockCommentPublic`: %v\n", resp) } ``` @@ -2102,7 +3357,7 @@ Name | Type | Description | Notes ### Return type -[**UnBlockCommentPublic200Response**](UnBlockCommentPublic200Response.md) +[**UnblockSuccess**](UnblockSuccess.md) ### Authorization @@ -2120,7 +3375,7 @@ No authorization required ## UnLockComment -> LockComment200Response UnLockComment(ctx, tenantId, commentId).BroadcastId(broadcastId).Sso(sso).Execute() +> APIEmptyResponse UnLockComment(ctx, tenantId, commentId).BroadcastId(broadcastId).Sso(sso).Execute() @@ -2149,7 +3404,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.UnLockComment``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `UnLockComment`: LockComment200Response + // response from `UnLockComment`: APIEmptyResponse fmt.Fprintf(os.Stdout, "Response from `PublicAPI.UnLockComment`: %v\n", resp) } ``` @@ -2177,7 +3432,7 @@ Name | Type | Description | Notes ### Return type -[**LockComment200Response**](LockComment200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2195,7 +3450,7 @@ No authorization required ## UnPinComment -> PinComment200Response UnPinComment(ctx, tenantId, commentId).BroadcastId(broadcastId).Sso(sso).Execute() +> ChangeCommentPinStatusResponse UnPinComment(ctx, tenantId, commentId).BroadcastId(broadcastId).Sso(sso).Execute() @@ -2224,7 +3479,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.UnPinComment``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `UnPinComment`: PinComment200Response + // response from `UnPinComment`: ChangeCommentPinStatusResponse fmt.Fprintf(os.Stdout, "Response from `PublicAPI.UnPinComment`: %v\n", resp) } ``` @@ -2252,7 +3507,7 @@ Name | Type | Description | Notes ### Return type -[**PinComment200Response**](PinComment200Response.md) +[**ChangeCommentPinStatusResponse**](ChangeCommentPinStatusResponse.md) ### Authorization @@ -2270,7 +3525,7 @@ No authorization required ## UpdateFeedPostPublic -> CreateFeedPostPublic200Response UpdateFeedPostPublic(ctx, tenantId, postId).UpdateFeedPostParams(updateFeedPostParams).BroadcastId(broadcastId).Sso(sso).Execute() +> CreateFeedPostResponse UpdateFeedPostPublic(ctx, tenantId, postId).UpdateFeedPostParams(updateFeedPostParams).BroadcastId(broadcastId).Sso(sso).Execute() @@ -2300,7 +3555,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.UpdateFeedPostPublic``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `UpdateFeedPostPublic`: CreateFeedPostPublic200Response + // response from `UpdateFeedPostPublic`: CreateFeedPostResponse fmt.Fprintf(os.Stdout, "Response from `PublicAPI.UpdateFeedPostPublic`: %v\n", resp) } ``` @@ -2329,7 +3584,7 @@ Name | Type | Description | Notes ### Return type -[**CreateFeedPostPublic200Response**](CreateFeedPostPublic200Response.md) +[**CreateFeedPostResponse**](CreateFeedPostResponse.md) ### Authorization @@ -2347,7 +3602,7 @@ No authorization required ## UpdateUserNotificationCommentSubscriptionStatus -> UpdateUserNotificationStatus200Response UpdateUserNotificationCommentSubscriptionStatus(ctx, notificationId, optedInOrOut).TenantId(tenantId).CommentId(commentId).Sso(sso).Execute() +> UpdateUserNotificationCommentSubscriptionStatusResponse UpdateUserNotificationCommentSubscriptionStatus(ctx, notificationId, optedInOrOut).TenantId(tenantId).CommentId(commentId).Sso(sso).Execute() @@ -2379,7 +3634,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.UpdateUserNotificationCommentSubscriptionStatus``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `UpdateUserNotificationCommentSubscriptionStatus`: UpdateUserNotificationStatus200Response + // response from `UpdateUserNotificationCommentSubscriptionStatus`: UpdateUserNotificationCommentSubscriptionStatusResponse fmt.Fprintf(os.Stdout, "Response from `PublicAPI.UpdateUserNotificationCommentSubscriptionStatus`: %v\n", resp) } ``` @@ -2408,7 +3663,7 @@ Name | Type | Description | Notes ### Return type -[**UpdateUserNotificationStatus200Response**](UpdateUserNotificationStatus200Response.md) +[**UpdateUserNotificationCommentSubscriptionStatusResponse**](UpdateUserNotificationCommentSubscriptionStatusResponse.md) ### Authorization @@ -2426,7 +3681,7 @@ No authorization required ## UpdateUserNotificationPageSubscriptionStatus -> UpdateUserNotificationStatus200Response UpdateUserNotificationPageSubscriptionStatus(ctx, subscribedOrUnsubscribed).TenantId(tenantId).UrlId(urlId).Url(url).PageTitle(pageTitle).Sso(sso).Execute() +> UpdateUserNotificationPageSubscriptionStatusResponse UpdateUserNotificationPageSubscriptionStatus(ctx, subscribedOrUnsubscribed).TenantId(tenantId).UrlId(urlId).Url(url).PageTitle(pageTitle).Sso(sso).Execute() @@ -2459,7 +3714,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.UpdateUserNotificationPageSubscriptionStatus``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `UpdateUserNotificationPageSubscriptionStatus`: UpdateUserNotificationStatus200Response + // response from `UpdateUserNotificationPageSubscriptionStatus`: UpdateUserNotificationPageSubscriptionStatusResponse fmt.Fprintf(os.Stdout, "Response from `PublicAPI.UpdateUserNotificationPageSubscriptionStatus`: %v\n", resp) } ``` @@ -2488,7 +3743,7 @@ Name | Type | Description | Notes ### Return type -[**UpdateUserNotificationStatus200Response**](UpdateUserNotificationStatus200Response.md) +[**UpdateUserNotificationPageSubscriptionStatusResponse**](UpdateUserNotificationPageSubscriptionStatusResponse.md) ### Authorization @@ -2506,7 +3761,7 @@ No authorization required ## UpdateUserNotificationStatus -> UpdateUserNotificationStatus200Response UpdateUserNotificationStatus(ctx, notificationId, newStatus).TenantId(tenantId).Sso(sso).Execute() +> UpdateUserNotificationStatusResponse UpdateUserNotificationStatus(ctx, notificationId, newStatus).TenantId(tenantId).Sso(sso).Execute() @@ -2535,7 +3790,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.UpdateUserNotificationStatus``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `UpdateUserNotificationStatus`: UpdateUserNotificationStatus200Response + // response from `UpdateUserNotificationStatus`: UpdateUserNotificationStatusResponse fmt.Fprintf(os.Stdout, "Response from `PublicAPI.UpdateUserNotificationStatus`: %v\n", resp) } ``` @@ -2563,7 +3818,7 @@ Name | Type | Description | Notes ### Return type -[**UpdateUserNotificationStatus200Response**](UpdateUserNotificationStatus200Response.md) +[**UpdateUserNotificationStatusResponse**](UpdateUserNotificationStatusResponse.md) ### Authorization @@ -2657,7 +3912,7 @@ No authorization required ## VoteComment -> VoteComment200Response VoteComment(ctx, tenantId, commentId).UrlId(urlId).BroadcastId(broadcastId).VoteBodyParams(voteBodyParams).SessionId(sessionId).Sso(sso).Execute() +> VoteResponse VoteComment(ctx, tenantId, commentId).UrlId(urlId).BroadcastId(broadcastId).VoteBodyParams(voteBodyParams).SessionId(sessionId).Sso(sso).Execute() @@ -2689,7 +3944,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.VoteComment``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `VoteComment`: VoteComment200Response + // response from `VoteComment`: VoteResponse fmt.Fprintf(os.Stdout, "Response from `PublicAPI.VoteComment`: %v\n", resp) } ``` @@ -2720,7 +3975,7 @@ Name | Type | Description | Notes ### Return type -[**VoteComment200Response**](VoteComment200Response.md) +[**VoteResponse**](VoteResponse.md) ### Authorization diff --git a/client/docs/PublicPage.md b/client/docs/PublicPage.md new file mode 100644 index 0000000..f5f4cd6 --- /dev/null +++ b/client/docs/PublicPage.md @@ -0,0 +1,135 @@ +# PublicPage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UpdatedAt** | **int64** | | +**CommentCount** | **int32** | | +**Title** | **string** | | +**Url** | **string** | | +**UrlId** | **string** | | + +## Methods + +### NewPublicPage + +`func NewPublicPage(updatedAt int64, commentCount int32, title string, url string, urlId string, ) *PublicPage` + +NewPublicPage instantiates a new PublicPage object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPublicPageWithDefaults + +`func NewPublicPageWithDefaults() *PublicPage` + +NewPublicPageWithDefaults instantiates a new PublicPage object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUpdatedAt + +`func (o *PublicPage) GetUpdatedAt() int64` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *PublicPage) GetUpdatedAtOk() (*int64, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *PublicPage) SetUpdatedAt(v int64)` + +SetUpdatedAt sets UpdatedAt field to given value. + + +### GetCommentCount + +`func (o *PublicPage) GetCommentCount() int32` + +GetCommentCount returns the CommentCount field if non-nil, zero value otherwise. + +### GetCommentCountOk + +`func (o *PublicPage) GetCommentCountOk() (*int32, bool)` + +GetCommentCountOk returns a tuple with the CommentCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommentCount + +`func (o *PublicPage) SetCommentCount(v int32)` + +SetCommentCount sets CommentCount field to given value. + + +### GetTitle + +`func (o *PublicPage) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *PublicPage) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *PublicPage) SetTitle(v string)` + +SetTitle sets Title field to given value. + + +### GetUrl + +`func (o *PublicPage) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *PublicPage) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *PublicPage) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetUrlId + +`func (o *PublicPage) GetUrlId() string` + +GetUrlId returns the UrlId field if non-nil, zero value otherwise. + +### GetUrlIdOk + +`func (o *PublicPage) GetUrlIdOk() (*string, bool)` + +GetUrlIdOk returns a tuple with the UrlId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrlId + +`func (o *PublicPage) SetUrlId(v string)` + +SetUrlId sets UrlId field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/PutDomainConfigResponse.md b/client/docs/PutDomainConfigResponse.md new file mode 100644 index 0000000..4e7f745 --- /dev/null +++ b/client/docs/PutDomainConfigResponse.md @@ -0,0 +1,134 @@ +# PutDomainConfigResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Configuration** | **interface{}** | | +**Status** | **interface{}** | | +**Reason** | **string** | | +**Code** | **string** | | + +## Methods + +### NewPutDomainConfigResponse + +`func NewPutDomainConfigResponse(configuration interface{}, status interface{}, reason string, code string, ) *PutDomainConfigResponse` + +NewPutDomainConfigResponse instantiates a new PutDomainConfigResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPutDomainConfigResponseWithDefaults + +`func NewPutDomainConfigResponseWithDefaults() *PutDomainConfigResponse` + +NewPutDomainConfigResponseWithDefaults instantiates a new PutDomainConfigResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfiguration + +`func (o *PutDomainConfigResponse) GetConfiguration() interface{}` + +GetConfiguration returns the Configuration field if non-nil, zero value otherwise. + +### GetConfigurationOk + +`func (o *PutDomainConfigResponse) GetConfigurationOk() (*interface{}, bool)` + +GetConfigurationOk returns a tuple with the Configuration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfiguration + +`func (o *PutDomainConfigResponse) SetConfiguration(v interface{})` + +SetConfiguration sets Configuration field to given value. + + +### SetConfigurationNil + +`func (o *PutDomainConfigResponse) SetConfigurationNil(b bool)` + + SetConfigurationNil sets the value for Configuration to be an explicit nil + +### UnsetConfiguration +`func (o *PutDomainConfigResponse) UnsetConfiguration()` + +UnsetConfiguration ensures that no value is present for Configuration, not even an explicit nil +### GetStatus + +`func (o *PutDomainConfigResponse) GetStatus() interface{}` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *PutDomainConfigResponse) GetStatusOk() (*interface{}, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *PutDomainConfigResponse) SetStatus(v interface{})` + +SetStatus sets Status field to given value. + + +### SetStatusNil + +`func (o *PutDomainConfigResponse) SetStatusNil(b bool)` + + SetStatusNil sets the value for Status to be an explicit nil + +### UnsetStatus +`func (o *PutDomainConfigResponse) UnsetStatus()` + +UnsetStatus ensures that no value is present for Status, not even an explicit nil +### GetReason + +`func (o *PutDomainConfigResponse) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *PutDomainConfigResponse) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *PutDomainConfigResponse) SetReason(v string)` + +SetReason sets Reason field to given value. + + +### GetCode + +`func (o *PutDomainConfigResponse) GetCode() string` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *PutDomainConfigResponse) GetCodeOk() (*string, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *PutDomainConfigResponse) SetCode(v string)` + +SetCode sets Code field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ReactFeedPostPublic200Response.md b/client/docs/ReactFeedPostPublic200Response.md deleted file mode 100644 index 7b3b98b..0000000 --- a/client/docs/ReactFeedPostPublic200Response.md +++ /dev/null @@ -1,265 +0,0 @@ -# ReactFeedPostPublic200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**ReactType** | **string** | | -**IsUndo** | **bool** | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewReactFeedPostPublic200Response - -`func NewReactFeedPostPublic200Response(status APIStatus, reactType string, isUndo bool, reason string, code string, ) *ReactFeedPostPublic200Response` - -NewReactFeedPostPublic200Response instantiates a new ReactFeedPostPublic200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewReactFeedPostPublic200ResponseWithDefaults - -`func NewReactFeedPostPublic200ResponseWithDefaults() *ReactFeedPostPublic200Response` - -NewReactFeedPostPublic200ResponseWithDefaults instantiates a new ReactFeedPostPublic200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *ReactFeedPostPublic200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *ReactFeedPostPublic200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *ReactFeedPostPublic200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetReactType - -`func (o *ReactFeedPostPublic200Response) GetReactType() string` - -GetReactType returns the ReactType field if non-nil, zero value otherwise. - -### GetReactTypeOk - -`func (o *ReactFeedPostPublic200Response) GetReactTypeOk() (*string, bool)` - -GetReactTypeOk returns a tuple with the ReactType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReactType - -`func (o *ReactFeedPostPublic200Response) SetReactType(v string)` - -SetReactType sets ReactType field to given value. - - -### GetIsUndo - -`func (o *ReactFeedPostPublic200Response) GetIsUndo() bool` - -GetIsUndo returns the IsUndo field if non-nil, zero value otherwise. - -### GetIsUndoOk - -`func (o *ReactFeedPostPublic200Response) GetIsUndoOk() (*bool, bool)` - -GetIsUndoOk returns a tuple with the IsUndo field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsUndo - -`func (o *ReactFeedPostPublic200Response) SetIsUndo(v bool)` - -SetIsUndo sets IsUndo field to given value. - - -### GetReason - -`func (o *ReactFeedPostPublic200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *ReactFeedPostPublic200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *ReactFeedPostPublic200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *ReactFeedPostPublic200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ReactFeedPostPublic200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ReactFeedPostPublic200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *ReactFeedPostPublic200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *ReactFeedPostPublic200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *ReactFeedPostPublic200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *ReactFeedPostPublic200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *ReactFeedPostPublic200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *ReactFeedPostPublic200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *ReactFeedPostPublic200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *ReactFeedPostPublic200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *ReactFeedPostPublic200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *ReactFeedPostPublic200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *ReactFeedPostPublic200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *ReactFeedPostPublic200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *ReactFeedPostPublic200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *ReactFeedPostPublic200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *ReactFeedPostPublic200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *ReactFeedPostPublic200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *ReactFeedPostPublic200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *ReactFeedPostPublic200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *ReactFeedPostPublic200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *ReactFeedPostPublic200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/RecordStringBeforeStringOrNullAfterStringOrNullValue.md b/client/docs/RecordStringBeforeStringOrNullAfterStringOrNullValue.md index ae8b3ae..7f165ed 100644 --- a/client/docs/RecordStringBeforeStringOrNullAfterStringOrNullValue.md +++ b/client/docs/RecordStringBeforeStringOrNullAfterStringOrNullValue.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**After** | **string** | | -**Before** | **string** | | +**After** | **NullableString** | | +**Before** | **NullableString** | | ## Methods ### NewRecordStringBeforeStringOrNullAfterStringOrNullValue -`func NewRecordStringBeforeStringOrNullAfterStringOrNullValue(after string, before string, ) *RecordStringBeforeStringOrNullAfterStringOrNullValue` +`func NewRecordStringBeforeStringOrNullAfterStringOrNullValue(after NullableString, before NullableString, ) *RecordStringBeforeStringOrNullAfterStringOrNullValue` NewRecordStringBeforeStringOrNullAfterStringOrNullValue instantiates a new RecordStringBeforeStringOrNullAfterStringOrNullValue object This constructor will assign default values to properties that have it defined, @@ -46,6 +46,16 @@ and a boolean to check if the value has been set. SetAfter sets After field to given value. +### SetAfterNil + +`func (o *RecordStringBeforeStringOrNullAfterStringOrNullValue) SetAfterNil(b bool)` + + SetAfterNil sets the value for After to be an explicit nil + +### UnsetAfter +`func (o *RecordStringBeforeStringOrNullAfterStringOrNullValue) UnsetAfter()` + +UnsetAfter ensures that no value is present for After, not even an explicit nil ### GetBefore `func (o *RecordStringBeforeStringOrNullAfterStringOrNullValue) GetBefore() string` @@ -66,6 +76,16 @@ and a boolean to check if the value has been set. SetBefore sets Before field to given value. +### SetBeforeNil + +`func (o *RecordStringBeforeStringOrNullAfterStringOrNullValue) SetBeforeNil(b bool)` + + SetBeforeNil sets the value for Before to be an explicit nil + +### UnsetBefore +`func (o *RecordStringBeforeStringOrNullAfterStringOrNullValue) UnsetBefore()` + +UnsetBefore ensures that no value is present for Before, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/RemoveCommentActionResponse.md b/client/docs/RemoveCommentActionResponse.md new file mode 100644 index 0000000..7db114c --- /dev/null +++ b/client/docs/RemoveCommentActionResponse.md @@ -0,0 +1,72 @@ +# RemoveCommentActionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **string** | | +**Action** | **string** | | + +## Methods + +### NewRemoveCommentActionResponse + +`func NewRemoveCommentActionResponse(status string, action string, ) *RemoveCommentActionResponse` + +NewRemoveCommentActionResponse instantiates a new RemoveCommentActionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRemoveCommentActionResponseWithDefaults + +`func NewRemoveCommentActionResponseWithDefaults() *RemoveCommentActionResponse` + +NewRemoveCommentActionResponseWithDefaults instantiates a new RemoveCommentActionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *RemoveCommentActionResponse) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *RemoveCommentActionResponse) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *RemoveCommentActionResponse) SetStatus(v string)` + +SetStatus sets Status field to given value. + + +### GetAction + +`func (o *RemoveCommentActionResponse) GetAction() string` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *RemoveCommentActionResponse) GetActionOk() (*string, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *RemoveCommentActionResponse) SetAction(v string)` + +SetAction sets Action field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/RemoveUserBadgeResponse.md b/client/docs/RemoveUserBadgeResponse.md new file mode 100644 index 0000000..7cc1242 --- /dev/null +++ b/client/docs/RemoveUserBadgeResponse.md @@ -0,0 +1,77 @@ +# RemoveUserBadgeResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Badges** | Pointer to [**[]CommentUserBadgeInfo**](CommentUserBadgeInfo.md) | | [optional] +**Status** | [**APIStatus**](APIStatus.md) | | + +## Methods + +### NewRemoveUserBadgeResponse + +`func NewRemoveUserBadgeResponse(status APIStatus, ) *RemoveUserBadgeResponse` + +NewRemoveUserBadgeResponse instantiates a new RemoveUserBadgeResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRemoveUserBadgeResponseWithDefaults + +`func NewRemoveUserBadgeResponseWithDefaults() *RemoveUserBadgeResponse` + +NewRemoveUserBadgeResponseWithDefaults instantiates a new RemoveUserBadgeResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBadges + +`func (o *RemoveUserBadgeResponse) GetBadges() []CommentUserBadgeInfo` + +GetBadges returns the Badges field if non-nil, zero value otherwise. + +### GetBadgesOk + +`func (o *RemoveUserBadgeResponse) GetBadgesOk() (*[]CommentUserBadgeInfo, bool)` + +GetBadgesOk returns a tuple with the Badges field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBadges + +`func (o *RemoveUserBadgeResponse) SetBadges(v []CommentUserBadgeInfo)` + +SetBadges sets Badges field to given value. + +### HasBadges + +`func (o *RemoveUserBadgeResponse) HasBadges() bool` + +HasBadges returns a boolean if a field has been set. + +### GetStatus + +`func (o *RemoveUserBadgeResponse) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *RemoveUserBadgeResponse) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *RemoveUserBadgeResponse) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/RenderEmailTemplate200Response.md b/client/docs/RenderEmailTemplate200Response.md deleted file mode 100644 index 971dfdd..0000000 --- a/client/docs/RenderEmailTemplate200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# RenderEmailTemplate200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**Html** | **string** | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewRenderEmailTemplate200Response - -`func NewRenderEmailTemplate200Response(status APIStatus, html string, reason string, code string, ) *RenderEmailTemplate200Response` - -NewRenderEmailTemplate200Response instantiates a new RenderEmailTemplate200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewRenderEmailTemplate200ResponseWithDefaults - -`func NewRenderEmailTemplate200ResponseWithDefaults() *RenderEmailTemplate200Response` - -NewRenderEmailTemplate200ResponseWithDefaults instantiates a new RenderEmailTemplate200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *RenderEmailTemplate200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *RenderEmailTemplate200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *RenderEmailTemplate200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetHtml - -`func (o *RenderEmailTemplate200Response) GetHtml() string` - -GetHtml returns the Html field if non-nil, zero value otherwise. - -### GetHtmlOk - -`func (o *RenderEmailTemplate200Response) GetHtmlOk() (*string, bool)` - -GetHtmlOk returns a tuple with the Html field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHtml - -`func (o *RenderEmailTemplate200Response) SetHtml(v string)` - -SetHtml sets Html field to given value. - - -### GetReason - -`func (o *RenderEmailTemplate200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *RenderEmailTemplate200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *RenderEmailTemplate200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *RenderEmailTemplate200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *RenderEmailTemplate200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *RenderEmailTemplate200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *RenderEmailTemplate200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *RenderEmailTemplate200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *RenderEmailTemplate200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *RenderEmailTemplate200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *RenderEmailTemplate200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *RenderEmailTemplate200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *RenderEmailTemplate200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *RenderEmailTemplate200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *RenderEmailTemplate200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *RenderEmailTemplate200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *RenderEmailTemplate200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *RenderEmailTemplate200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *RenderEmailTemplate200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *RenderEmailTemplate200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *RenderEmailTemplate200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *RenderEmailTemplate200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *RenderEmailTemplate200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *RenderEmailTemplate200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *RenderEmailTemplate200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *RenderEmailTemplate200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/ResetUserNotifications200Response.md b/client/docs/ResetUserNotifications200Response.md deleted file mode 100644 index f338ae4..0000000 --- a/client/docs/ResetUserNotifications200Response.md +++ /dev/null @@ -1,223 +0,0 @@ -# ResetUserNotifications200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**Code** | **string** | | -**Reason** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewResetUserNotifications200Response - -`func NewResetUserNotifications200Response(status APIStatus, code string, reason string, ) *ResetUserNotifications200Response` - -NewResetUserNotifications200Response instantiates a new ResetUserNotifications200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewResetUserNotifications200ResponseWithDefaults - -`func NewResetUserNotifications200ResponseWithDefaults() *ResetUserNotifications200Response` - -NewResetUserNotifications200ResponseWithDefaults instantiates a new ResetUserNotifications200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *ResetUserNotifications200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *ResetUserNotifications200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *ResetUserNotifications200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetCode - -`func (o *ResetUserNotifications200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *ResetUserNotifications200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *ResetUserNotifications200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetReason - -`func (o *ResetUserNotifications200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *ResetUserNotifications200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *ResetUserNotifications200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetSecondaryCode - -`func (o *ResetUserNotifications200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *ResetUserNotifications200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *ResetUserNotifications200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *ResetUserNotifications200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *ResetUserNotifications200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *ResetUserNotifications200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *ResetUserNotifications200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *ResetUserNotifications200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *ResetUserNotifications200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *ResetUserNotifications200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *ResetUserNotifications200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *ResetUserNotifications200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *ResetUserNotifications200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *ResetUserNotifications200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *ResetUserNotifications200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *ResetUserNotifications200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *ResetUserNotifications200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *ResetUserNotifications200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *ResetUserNotifications200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *ResetUserNotifications200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/SaveComment200Response.md b/client/docs/SaveCommentsBulkResponse.md similarity index 63% rename from client/docs/SaveComment200Response.md rename to client/docs/SaveCommentsBulkResponse.md index 30e0d76..00b3a6e 100644 --- a/client/docs/SaveComment200Response.md +++ b/client/docs/SaveCommentsBulkResponse.md @@ -1,11 +1,11 @@ -# SaveComment200Response +# SaveCommentsBulkResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Status** | [**APIStatus**](APIStatus.md) | | -**Comment** | [**FComment**](FComment.md) | | +**Comment** | [**APIComment**](APIComment.md) | | **User** | [**NullableUserSessionInfo**](UserSessionInfo.md) | | **ModuleData** | Pointer to **map[string]map[string]interface{}** | Construct a type with a set of properties K of type T | [optional] **Reason** | **string** | | @@ -18,280 +18,280 @@ Name | Type | Description | Notes ## Methods -### NewSaveComment200Response +### NewSaveCommentsBulkResponse -`func NewSaveComment200Response(status APIStatus, comment FComment, user NullableUserSessionInfo, reason string, code string, ) *SaveComment200Response` +`func NewSaveCommentsBulkResponse(status APIStatus, comment APIComment, user NullableUserSessionInfo, reason string, code string, ) *SaveCommentsBulkResponse` -NewSaveComment200Response instantiates a new SaveComment200Response object +NewSaveCommentsBulkResponse instantiates a new SaveCommentsBulkResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewSaveComment200ResponseWithDefaults +### NewSaveCommentsBulkResponseWithDefaults -`func NewSaveComment200ResponseWithDefaults() *SaveComment200Response` +`func NewSaveCommentsBulkResponseWithDefaults() *SaveCommentsBulkResponse` -NewSaveComment200ResponseWithDefaults instantiates a new SaveComment200Response object +NewSaveCommentsBulkResponseWithDefaults instantiates a new SaveCommentsBulkResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *SaveComment200Response) GetStatus() APIStatus` +`func (o *SaveCommentsBulkResponse) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *SaveComment200Response) GetStatusOk() (*APIStatus, bool)` +`func (o *SaveCommentsBulkResponse) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *SaveComment200Response) SetStatus(v APIStatus)` +`func (o *SaveCommentsBulkResponse) SetStatus(v APIStatus)` SetStatus sets Status field to given value. ### GetComment -`func (o *SaveComment200Response) GetComment() FComment` +`func (o *SaveCommentsBulkResponse) GetComment() APIComment` GetComment returns the Comment field if non-nil, zero value otherwise. ### GetCommentOk -`func (o *SaveComment200Response) GetCommentOk() (*FComment, bool)` +`func (o *SaveCommentsBulkResponse) GetCommentOk() (*APIComment, bool)` GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetComment -`func (o *SaveComment200Response) SetComment(v FComment)` +`func (o *SaveCommentsBulkResponse) SetComment(v APIComment)` SetComment sets Comment field to given value. ### GetUser -`func (o *SaveComment200Response) GetUser() UserSessionInfo` +`func (o *SaveCommentsBulkResponse) GetUser() UserSessionInfo` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *SaveComment200Response) GetUserOk() (*UserSessionInfo, bool)` +`func (o *SaveCommentsBulkResponse) GetUserOk() (*UserSessionInfo, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *SaveComment200Response) SetUser(v UserSessionInfo)` +`func (o *SaveCommentsBulkResponse) SetUser(v UserSessionInfo)` SetUser sets User field to given value. ### SetUserNil -`func (o *SaveComment200Response) SetUserNil(b bool)` +`func (o *SaveCommentsBulkResponse) SetUserNil(b bool)` SetUserNil sets the value for User to be an explicit nil ### UnsetUser -`func (o *SaveComment200Response) UnsetUser()` +`func (o *SaveCommentsBulkResponse) UnsetUser()` UnsetUser ensures that no value is present for User, not even an explicit nil ### GetModuleData -`func (o *SaveComment200Response) GetModuleData() map[string]map[string]interface{}` +`func (o *SaveCommentsBulkResponse) GetModuleData() map[string]map[string]interface{}` GetModuleData returns the ModuleData field if non-nil, zero value otherwise. ### GetModuleDataOk -`func (o *SaveComment200Response) GetModuleDataOk() (*map[string]map[string]interface{}, bool)` +`func (o *SaveCommentsBulkResponse) GetModuleDataOk() (*map[string]map[string]interface{}, bool)` GetModuleDataOk returns a tuple with the ModuleData field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleData -`func (o *SaveComment200Response) SetModuleData(v map[string]map[string]interface{})` +`func (o *SaveCommentsBulkResponse) SetModuleData(v map[string]map[string]interface{})` SetModuleData sets ModuleData field to given value. ### HasModuleData -`func (o *SaveComment200Response) HasModuleData() bool` +`func (o *SaveCommentsBulkResponse) HasModuleData() bool` HasModuleData returns a boolean if a field has been set. ### GetReason -`func (o *SaveComment200Response) GetReason() string` +`func (o *SaveCommentsBulkResponse) GetReason() string` GetReason returns the Reason field if non-nil, zero value otherwise. ### GetReasonOk -`func (o *SaveComment200Response) GetReasonOk() (*string, bool)` +`func (o *SaveCommentsBulkResponse) GetReasonOk() (*string, bool)` GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetReason -`func (o *SaveComment200Response) SetReason(v string)` +`func (o *SaveCommentsBulkResponse) SetReason(v string)` SetReason sets Reason field to given value. ### GetCode -`func (o *SaveComment200Response) GetCode() string` +`func (o *SaveCommentsBulkResponse) GetCode() string` GetCode returns the Code field if non-nil, zero value otherwise. ### GetCodeOk -`func (o *SaveComment200Response) GetCodeOk() (*string, bool)` +`func (o *SaveCommentsBulkResponse) GetCodeOk() (*string, bool)` GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCode -`func (o *SaveComment200Response) SetCode(v string)` +`func (o *SaveCommentsBulkResponse) SetCode(v string)` SetCode sets Code field to given value. ### GetSecondaryCode -`func (o *SaveComment200Response) GetSecondaryCode() string` +`func (o *SaveCommentsBulkResponse) GetSecondaryCode() string` GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. ### GetSecondaryCodeOk -`func (o *SaveComment200Response) GetSecondaryCodeOk() (*string, bool)` +`func (o *SaveCommentsBulkResponse) GetSecondaryCodeOk() (*string, bool)` GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSecondaryCode -`func (o *SaveComment200Response) SetSecondaryCode(v string)` +`func (o *SaveCommentsBulkResponse) SetSecondaryCode(v string)` SetSecondaryCode sets SecondaryCode field to given value. ### HasSecondaryCode -`func (o *SaveComment200Response) HasSecondaryCode() bool` +`func (o *SaveCommentsBulkResponse) HasSecondaryCode() bool` HasSecondaryCode returns a boolean if a field has been set. ### GetBannedUntil -`func (o *SaveComment200Response) GetBannedUntil() int64` +`func (o *SaveCommentsBulkResponse) GetBannedUntil() int64` GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. ### GetBannedUntilOk -`func (o *SaveComment200Response) GetBannedUntilOk() (*int64, bool)` +`func (o *SaveCommentsBulkResponse) GetBannedUntilOk() (*int64, bool)` GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetBannedUntil -`func (o *SaveComment200Response) SetBannedUntil(v int64)` +`func (o *SaveCommentsBulkResponse) SetBannedUntil(v int64)` SetBannedUntil sets BannedUntil field to given value. ### HasBannedUntil -`func (o *SaveComment200Response) HasBannedUntil() bool` +`func (o *SaveCommentsBulkResponse) HasBannedUntil() bool` HasBannedUntil returns a boolean if a field has been set. ### GetMaxCharacterLength -`func (o *SaveComment200Response) GetMaxCharacterLength() int32` +`func (o *SaveCommentsBulkResponse) GetMaxCharacterLength() int32` GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. ### GetMaxCharacterLengthOk -`func (o *SaveComment200Response) GetMaxCharacterLengthOk() (*int32, bool)` +`func (o *SaveCommentsBulkResponse) GetMaxCharacterLengthOk() (*int32, bool)` GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetMaxCharacterLength -`func (o *SaveComment200Response) SetMaxCharacterLength(v int32)` +`func (o *SaveCommentsBulkResponse) SetMaxCharacterLength(v int32)` SetMaxCharacterLength sets MaxCharacterLength field to given value. ### HasMaxCharacterLength -`func (o *SaveComment200Response) HasMaxCharacterLength() bool` +`func (o *SaveCommentsBulkResponse) HasMaxCharacterLength() bool` HasMaxCharacterLength returns a boolean if a field has been set. ### GetTranslatedError -`func (o *SaveComment200Response) GetTranslatedError() string` +`func (o *SaveCommentsBulkResponse) GetTranslatedError() string` GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. ### GetTranslatedErrorOk -`func (o *SaveComment200Response) GetTranslatedErrorOk() (*string, bool)` +`func (o *SaveCommentsBulkResponse) GetTranslatedErrorOk() (*string, bool)` GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTranslatedError -`func (o *SaveComment200Response) SetTranslatedError(v string)` +`func (o *SaveCommentsBulkResponse) SetTranslatedError(v string)` SetTranslatedError sets TranslatedError field to given value. ### HasTranslatedError -`func (o *SaveComment200Response) HasTranslatedError() bool` +`func (o *SaveCommentsBulkResponse) HasTranslatedError() bool` HasTranslatedError returns a boolean if a field has been set. ### GetCustomConfig -`func (o *SaveComment200Response) GetCustomConfig() CustomConfigParameters` +`func (o *SaveCommentsBulkResponse) GetCustomConfig() CustomConfigParameters` GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. ### GetCustomConfigOk -`func (o *SaveComment200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` +`func (o *SaveCommentsBulkResponse) GetCustomConfigOk() (*CustomConfigParameters, bool)` GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCustomConfig -`func (o *SaveComment200Response) SetCustomConfig(v CustomConfigParameters)` +`func (o *SaveCommentsBulkResponse) SetCustomConfig(v CustomConfigParameters)` SetCustomConfig sets CustomConfig field to given value. ### HasCustomConfig -`func (o *SaveComment200Response) HasCustomConfig() bool` +`func (o *SaveCommentsBulkResponse) HasCustomConfig() bool` HasCustomConfig returns a boolean if a field has been set. diff --git a/client/docs/SearchUsers200Response.md b/client/docs/SearchUsers200Response.md deleted file mode 100644 index 29e36e7..0000000 --- a/client/docs/SearchUsers200Response.md +++ /dev/null @@ -1,265 +0,0 @@ -# SearchUsers200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**Sections** | [**[]UserSearchSectionResult**](UserSearchSectionResult.md) | | -**Users** | [**[]UserSearchResult**](UserSearchResult.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewSearchUsers200Response - -`func NewSearchUsers200Response(status APIStatus, sections []UserSearchSectionResult, users []UserSearchResult, reason string, code string, ) *SearchUsers200Response` - -NewSearchUsers200Response instantiates a new SearchUsers200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSearchUsers200ResponseWithDefaults - -`func NewSearchUsers200ResponseWithDefaults() *SearchUsers200Response` - -NewSearchUsers200ResponseWithDefaults instantiates a new SearchUsers200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *SearchUsers200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *SearchUsers200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *SearchUsers200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetSections - -`func (o *SearchUsers200Response) GetSections() []UserSearchSectionResult` - -GetSections returns the Sections field if non-nil, zero value otherwise. - -### GetSectionsOk - -`func (o *SearchUsers200Response) GetSectionsOk() (*[]UserSearchSectionResult, bool)` - -GetSectionsOk returns a tuple with the Sections field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSections - -`func (o *SearchUsers200Response) SetSections(v []UserSearchSectionResult)` - -SetSections sets Sections field to given value. - - -### GetUsers - -`func (o *SearchUsers200Response) GetUsers() []UserSearchResult` - -GetUsers returns the Users field if non-nil, zero value otherwise. - -### GetUsersOk - -`func (o *SearchUsers200Response) GetUsersOk() (*[]UserSearchResult, bool)` - -GetUsersOk returns a tuple with the Users field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUsers - -`func (o *SearchUsers200Response) SetUsers(v []UserSearchResult)` - -SetUsers sets Users field to given value. - - -### GetReason - -`func (o *SearchUsers200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *SearchUsers200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *SearchUsers200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *SearchUsers200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *SearchUsers200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *SearchUsers200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *SearchUsers200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *SearchUsers200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *SearchUsers200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *SearchUsers200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *SearchUsers200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *SearchUsers200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *SearchUsers200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *SearchUsers200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *SearchUsers200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *SearchUsers200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *SearchUsers200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *SearchUsers200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *SearchUsers200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *SearchUsers200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *SearchUsers200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *SearchUsers200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *SearchUsers200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *SearchUsers200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *SearchUsers200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *SearchUsers200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/SearchUsersResult.md b/client/docs/SearchUsersResult.md new file mode 100644 index 0000000..3d49e59 --- /dev/null +++ b/client/docs/SearchUsersResult.md @@ -0,0 +1,93 @@ +# SearchUsersResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | [**APIStatus**](APIStatus.md) | | +**Sections** | [**[]UserSearchSectionResult**](UserSearchSectionResult.md) | | +**Users** | [**[]UserSearchResult**](UserSearchResult.md) | | + +## Methods + +### NewSearchUsersResult + +`func NewSearchUsersResult(status APIStatus, sections []UserSearchSectionResult, users []UserSearchResult, ) *SearchUsersResult` + +NewSearchUsersResult instantiates a new SearchUsersResult object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSearchUsersResultWithDefaults + +`func NewSearchUsersResultWithDefaults() *SearchUsersResult` + +NewSearchUsersResultWithDefaults instantiates a new SearchUsersResult object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *SearchUsersResult) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *SearchUsersResult) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *SearchUsersResult) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + +### GetSections + +`func (o *SearchUsersResult) GetSections() []UserSearchSectionResult` + +GetSections returns the Sections field if non-nil, zero value otherwise. + +### GetSectionsOk + +`func (o *SearchUsersResult) GetSectionsOk() (*[]UserSearchSectionResult, bool)` + +GetSectionsOk returns a tuple with the Sections field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSections + +`func (o *SearchUsersResult) SetSections(v []UserSearchSectionResult)` + +SetSections sets Sections field to given value. + + +### GetUsers + +`func (o *SearchUsersResult) GetUsers() []UserSearchResult` + +GetUsers returns the Users field if non-nil, zero value otherwise. + +### GetUsersOk + +`func (o *SearchUsersResult) GetUsersOk() (*[]UserSearchResult, bool)` + +GetUsersOk returns a tuple with the Users field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsers + +`func (o *SearchUsersResult) SetUsers(v []UserSearchResult)` + +SetUsers sets Users field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/SetCommentApprovedResponse.md b/client/docs/SetCommentApprovedResponse.md new file mode 100644 index 0000000..0918aa2 --- /dev/null +++ b/client/docs/SetCommentApprovedResponse.md @@ -0,0 +1,77 @@ +# SetCommentApprovedResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DidResetFlaggedCount** | Pointer to **bool** | | [optional] +**Status** | [**APIStatus**](APIStatus.md) | | + +## Methods + +### NewSetCommentApprovedResponse + +`func NewSetCommentApprovedResponse(status APIStatus, ) *SetCommentApprovedResponse` + +NewSetCommentApprovedResponse instantiates a new SetCommentApprovedResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSetCommentApprovedResponseWithDefaults + +`func NewSetCommentApprovedResponseWithDefaults() *SetCommentApprovedResponse` + +NewSetCommentApprovedResponseWithDefaults instantiates a new SetCommentApprovedResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDidResetFlaggedCount + +`func (o *SetCommentApprovedResponse) GetDidResetFlaggedCount() bool` + +GetDidResetFlaggedCount returns the DidResetFlaggedCount field if non-nil, zero value otherwise. + +### GetDidResetFlaggedCountOk + +`func (o *SetCommentApprovedResponse) GetDidResetFlaggedCountOk() (*bool, bool)` + +GetDidResetFlaggedCountOk returns a tuple with the DidResetFlaggedCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDidResetFlaggedCount + +`func (o *SetCommentApprovedResponse) SetDidResetFlaggedCount(v bool)` + +SetDidResetFlaggedCount sets DidResetFlaggedCount field to given value. + +### HasDidResetFlaggedCount + +`func (o *SetCommentApprovedResponse) HasDidResetFlaggedCount() bool` + +HasDidResetFlaggedCount returns a boolean if a field has been set. + +### GetStatus + +`func (o *SetCommentApprovedResponse) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *SetCommentApprovedResponse) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *SetCommentApprovedResponse) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/SetCommentText200Response.md b/client/docs/SetCommentText200Response.md deleted file mode 100644 index c5c6a2e..0000000 --- a/client/docs/SetCommentText200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# SetCommentText200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Comment** | [**SetCommentTextResult**](SetCommentTextResult.md) | | -**Status** | [**APIStatus**](APIStatus.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewSetCommentText200Response - -`func NewSetCommentText200Response(comment SetCommentTextResult, status APIStatus, reason string, code string, ) *SetCommentText200Response` - -NewSetCommentText200Response instantiates a new SetCommentText200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSetCommentText200ResponseWithDefaults - -`func NewSetCommentText200ResponseWithDefaults() *SetCommentText200Response` - -NewSetCommentText200ResponseWithDefaults instantiates a new SetCommentText200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetComment - -`func (o *SetCommentText200Response) GetComment() SetCommentTextResult` - -GetComment returns the Comment field if non-nil, zero value otherwise. - -### GetCommentOk - -`func (o *SetCommentText200Response) GetCommentOk() (*SetCommentTextResult, bool)` - -GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComment - -`func (o *SetCommentText200Response) SetComment(v SetCommentTextResult)` - -SetComment sets Comment field to given value. - - -### GetStatus - -`func (o *SetCommentText200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *SetCommentText200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *SetCommentText200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetReason - -`func (o *SetCommentText200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *SetCommentText200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *SetCommentText200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *SetCommentText200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *SetCommentText200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *SetCommentText200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *SetCommentText200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *SetCommentText200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *SetCommentText200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *SetCommentText200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *SetCommentText200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *SetCommentText200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *SetCommentText200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *SetCommentText200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *SetCommentText200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *SetCommentText200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *SetCommentText200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *SetCommentText200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *SetCommentText200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *SetCommentText200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *SetCommentText200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *SetCommentText200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *SetCommentText200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *SetCommentText200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *SetCommentText200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *SetCommentText200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/SetCommentTextParams.md b/client/docs/SetCommentTextParams.md new file mode 100644 index 0000000..03b8524 --- /dev/null +++ b/client/docs/SetCommentTextParams.md @@ -0,0 +1,51 @@ +# SetCommentTextParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Comment** | **string** | | + +## Methods + +### NewSetCommentTextParams + +`func NewSetCommentTextParams(comment string, ) *SetCommentTextParams` + +NewSetCommentTextParams instantiates a new SetCommentTextParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSetCommentTextParamsWithDefaults + +`func NewSetCommentTextParamsWithDefaults() *SetCommentTextParams` + +NewSetCommentTextParamsWithDefaults instantiates a new SetCommentTextParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetComment + +`func (o *SetCommentTextParams) GetComment() string` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *SetCommentTextParams) GetCommentOk() (*string, bool)` + +GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComment + +`func (o *SetCommentTextParams) SetComment(v string)` + +SetComment sets Comment field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/SetCommentTextResponse.md b/client/docs/SetCommentTextResponse.md new file mode 100644 index 0000000..b00655b --- /dev/null +++ b/client/docs/SetCommentTextResponse.md @@ -0,0 +1,72 @@ +# SetCommentTextResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NewCommentTextHTML** | **string** | | +**Status** | [**APIStatus**](APIStatus.md) | | + +## Methods + +### NewSetCommentTextResponse + +`func NewSetCommentTextResponse(newCommentTextHTML string, status APIStatus, ) *SetCommentTextResponse` + +NewSetCommentTextResponse instantiates a new SetCommentTextResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSetCommentTextResponseWithDefaults + +`func NewSetCommentTextResponseWithDefaults() *SetCommentTextResponse` + +NewSetCommentTextResponseWithDefaults instantiates a new SetCommentTextResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNewCommentTextHTML + +`func (o *SetCommentTextResponse) GetNewCommentTextHTML() string` + +GetNewCommentTextHTML returns the NewCommentTextHTML field if non-nil, zero value otherwise. + +### GetNewCommentTextHTMLOk + +`func (o *SetCommentTextResponse) GetNewCommentTextHTMLOk() (*string, bool)` + +GetNewCommentTextHTMLOk returns a tuple with the NewCommentTextHTML field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNewCommentTextHTML + +`func (o *SetCommentTextResponse) SetNewCommentTextHTML(v string)` + +SetNewCommentTextHTML sets NewCommentTextHTML field to given value. + + +### GetStatus + +`func (o *SetCommentTextResponse) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *SetCommentTextResponse) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *SetCommentTextResponse) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/SetUserTrustFactorResponse.md b/client/docs/SetUserTrustFactorResponse.md new file mode 100644 index 0000000..243b1f4 --- /dev/null +++ b/client/docs/SetUserTrustFactorResponse.md @@ -0,0 +1,77 @@ +# SetUserTrustFactorResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PreviousManualTrustFactor** | Pointer to **float64** | | [optional] +**Status** | [**APIStatus**](APIStatus.md) | | + +## Methods + +### NewSetUserTrustFactorResponse + +`func NewSetUserTrustFactorResponse(status APIStatus, ) *SetUserTrustFactorResponse` + +NewSetUserTrustFactorResponse instantiates a new SetUserTrustFactorResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSetUserTrustFactorResponseWithDefaults + +`func NewSetUserTrustFactorResponseWithDefaults() *SetUserTrustFactorResponse` + +NewSetUserTrustFactorResponseWithDefaults instantiates a new SetUserTrustFactorResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPreviousManualTrustFactor + +`func (o *SetUserTrustFactorResponse) GetPreviousManualTrustFactor() float64` + +GetPreviousManualTrustFactor returns the PreviousManualTrustFactor field if non-nil, zero value otherwise. + +### GetPreviousManualTrustFactorOk + +`func (o *SetUserTrustFactorResponse) GetPreviousManualTrustFactorOk() (*float64, bool)` + +GetPreviousManualTrustFactorOk returns a tuple with the PreviousManualTrustFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPreviousManualTrustFactor + +`func (o *SetUserTrustFactorResponse) SetPreviousManualTrustFactor(v float64)` + +SetPreviousManualTrustFactor sets PreviousManualTrustFactor field to given value. + +### HasPreviousManualTrustFactor + +`func (o *SetUserTrustFactorResponse) HasPreviousManualTrustFactor() bool` + +HasPreviousManualTrustFactor returns a boolean if a field has been set. + +### GetStatus + +`func (o *SetUserTrustFactorResponse) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *SetUserTrustFactorResponse) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *SetUserTrustFactorResponse) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/TenantBadge.md b/client/docs/TenantBadge.md new file mode 100644 index 0000000..517f764 --- /dev/null +++ b/client/docs/TenantBadge.md @@ -0,0 +1,571 @@ +# TenantBadge + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**TenantId** | **string** | | +**CreatedByUserId** | **string** | | +**CreatedAt** | **time.Time** | | +**Enabled** | **bool** | | +**UrlId** | Pointer to **NullableString** | | [optional] +**Type** | **float64** | | +**Threshold** | **float64** | | +**Uses** | **float64** | | +**Name** | **string** | | +**Description** | **string** | | +**DisplayLabel** | **string** | | +**DisplaySrc** | **NullableString** | | +**BackgroundColor** | **NullableString** | | +**BorderColor** | **NullableString** | | +**TextColor** | **NullableString** | | +**CssClass** | Pointer to **NullableString** | | [optional] +**VeteranUserThresholdMillis** | Pointer to **NullableFloat64** | | [optional] +**IsAwaitingReprocess** | **bool** | | +**IsAwaitingDeletion** | **bool** | | +**ReplacesBadgeId** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewTenantBadge + +`func NewTenantBadge(id string, tenantId string, createdByUserId string, createdAt time.Time, enabled bool, type_ float64, threshold float64, uses float64, name string, description string, displayLabel string, displaySrc NullableString, backgroundColor NullableString, borderColor NullableString, textColor NullableString, isAwaitingReprocess bool, isAwaitingDeletion bool, ) *TenantBadge` + +NewTenantBadge instantiates a new TenantBadge object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTenantBadgeWithDefaults + +`func NewTenantBadgeWithDefaults() *TenantBadge` + +NewTenantBadgeWithDefaults instantiates a new TenantBadge object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *TenantBadge) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *TenantBadge) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *TenantBadge) SetId(v string)` + +SetId sets Id field to given value. + + +### GetTenantId + +`func (o *TenantBadge) GetTenantId() string` + +GetTenantId returns the TenantId field if non-nil, zero value otherwise. + +### GetTenantIdOk + +`func (o *TenantBadge) GetTenantIdOk() (*string, bool)` + +GetTenantIdOk returns a tuple with the TenantId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenantId + +`func (o *TenantBadge) SetTenantId(v string)` + +SetTenantId sets TenantId field to given value. + + +### GetCreatedByUserId + +`func (o *TenantBadge) GetCreatedByUserId() string` + +GetCreatedByUserId returns the CreatedByUserId field if non-nil, zero value otherwise. + +### GetCreatedByUserIdOk + +`func (o *TenantBadge) GetCreatedByUserIdOk() (*string, bool)` + +GetCreatedByUserIdOk returns a tuple with the CreatedByUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedByUserId + +`func (o *TenantBadge) SetCreatedByUserId(v string)` + +SetCreatedByUserId sets CreatedByUserId field to given value. + + +### GetCreatedAt + +`func (o *TenantBadge) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *TenantBadge) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *TenantBadge) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetEnabled + +`func (o *TenantBadge) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *TenantBadge) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *TenantBadge) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + + +### GetUrlId + +`func (o *TenantBadge) GetUrlId() string` + +GetUrlId returns the UrlId field if non-nil, zero value otherwise. + +### GetUrlIdOk + +`func (o *TenantBadge) GetUrlIdOk() (*string, bool)` + +GetUrlIdOk returns a tuple with the UrlId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrlId + +`func (o *TenantBadge) SetUrlId(v string)` + +SetUrlId sets UrlId field to given value. + +### HasUrlId + +`func (o *TenantBadge) HasUrlId() bool` + +HasUrlId returns a boolean if a field has been set. + +### SetUrlIdNil + +`func (o *TenantBadge) SetUrlIdNil(b bool)` + + SetUrlIdNil sets the value for UrlId to be an explicit nil + +### UnsetUrlId +`func (o *TenantBadge) UnsetUrlId()` + +UnsetUrlId ensures that no value is present for UrlId, not even an explicit nil +### GetType + +`func (o *TenantBadge) GetType() float64` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *TenantBadge) GetTypeOk() (*float64, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *TenantBadge) SetType(v float64)` + +SetType sets Type field to given value. + + +### GetThreshold + +`func (o *TenantBadge) GetThreshold() float64` + +GetThreshold returns the Threshold field if non-nil, zero value otherwise. + +### GetThresholdOk + +`func (o *TenantBadge) GetThresholdOk() (*float64, bool)` + +GetThresholdOk returns a tuple with the Threshold field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThreshold + +`func (o *TenantBadge) SetThreshold(v float64)` + +SetThreshold sets Threshold field to given value. + + +### GetUses + +`func (o *TenantBadge) GetUses() float64` + +GetUses returns the Uses field if non-nil, zero value otherwise. + +### GetUsesOk + +`func (o *TenantBadge) GetUsesOk() (*float64, bool)` + +GetUsesOk returns a tuple with the Uses field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUses + +`func (o *TenantBadge) SetUses(v float64)` + +SetUses sets Uses field to given value. + + +### GetName + +`func (o *TenantBadge) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *TenantBadge) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *TenantBadge) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *TenantBadge) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *TenantBadge) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *TenantBadge) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetDisplayLabel + +`func (o *TenantBadge) GetDisplayLabel() string` + +GetDisplayLabel returns the DisplayLabel field if non-nil, zero value otherwise. + +### GetDisplayLabelOk + +`func (o *TenantBadge) GetDisplayLabelOk() (*string, bool)` + +GetDisplayLabelOk returns a tuple with the DisplayLabel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayLabel + +`func (o *TenantBadge) SetDisplayLabel(v string)` + +SetDisplayLabel sets DisplayLabel field to given value. + + +### GetDisplaySrc + +`func (o *TenantBadge) GetDisplaySrc() string` + +GetDisplaySrc returns the DisplaySrc field if non-nil, zero value otherwise. + +### GetDisplaySrcOk + +`func (o *TenantBadge) GetDisplaySrcOk() (*string, bool)` + +GetDisplaySrcOk returns a tuple with the DisplaySrc field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplaySrc + +`func (o *TenantBadge) SetDisplaySrc(v string)` + +SetDisplaySrc sets DisplaySrc field to given value. + + +### SetDisplaySrcNil + +`func (o *TenantBadge) SetDisplaySrcNil(b bool)` + + SetDisplaySrcNil sets the value for DisplaySrc to be an explicit nil + +### UnsetDisplaySrc +`func (o *TenantBadge) UnsetDisplaySrc()` + +UnsetDisplaySrc ensures that no value is present for DisplaySrc, not even an explicit nil +### GetBackgroundColor + +`func (o *TenantBadge) GetBackgroundColor() string` + +GetBackgroundColor returns the BackgroundColor field if non-nil, zero value otherwise. + +### GetBackgroundColorOk + +`func (o *TenantBadge) GetBackgroundColorOk() (*string, bool)` + +GetBackgroundColorOk returns a tuple with the BackgroundColor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBackgroundColor + +`func (o *TenantBadge) SetBackgroundColor(v string)` + +SetBackgroundColor sets BackgroundColor field to given value. + + +### SetBackgroundColorNil + +`func (o *TenantBadge) SetBackgroundColorNil(b bool)` + + SetBackgroundColorNil sets the value for BackgroundColor to be an explicit nil + +### UnsetBackgroundColor +`func (o *TenantBadge) UnsetBackgroundColor()` + +UnsetBackgroundColor ensures that no value is present for BackgroundColor, not even an explicit nil +### GetBorderColor + +`func (o *TenantBadge) GetBorderColor() string` + +GetBorderColor returns the BorderColor field if non-nil, zero value otherwise. + +### GetBorderColorOk + +`func (o *TenantBadge) GetBorderColorOk() (*string, bool)` + +GetBorderColorOk returns a tuple with the BorderColor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBorderColor + +`func (o *TenantBadge) SetBorderColor(v string)` + +SetBorderColor sets BorderColor field to given value. + + +### SetBorderColorNil + +`func (o *TenantBadge) SetBorderColorNil(b bool)` + + SetBorderColorNil sets the value for BorderColor to be an explicit nil + +### UnsetBorderColor +`func (o *TenantBadge) UnsetBorderColor()` + +UnsetBorderColor ensures that no value is present for BorderColor, not even an explicit nil +### GetTextColor + +`func (o *TenantBadge) GetTextColor() string` + +GetTextColor returns the TextColor field if non-nil, zero value otherwise. + +### GetTextColorOk + +`func (o *TenantBadge) GetTextColorOk() (*string, bool)` + +GetTextColorOk returns a tuple with the TextColor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTextColor + +`func (o *TenantBadge) SetTextColor(v string)` + +SetTextColor sets TextColor field to given value. + + +### SetTextColorNil + +`func (o *TenantBadge) SetTextColorNil(b bool)` + + SetTextColorNil sets the value for TextColor to be an explicit nil + +### UnsetTextColor +`func (o *TenantBadge) UnsetTextColor()` + +UnsetTextColor ensures that no value is present for TextColor, not even an explicit nil +### GetCssClass + +`func (o *TenantBadge) GetCssClass() string` + +GetCssClass returns the CssClass field if non-nil, zero value otherwise. + +### GetCssClassOk + +`func (o *TenantBadge) GetCssClassOk() (*string, bool)` + +GetCssClassOk returns a tuple with the CssClass field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCssClass + +`func (o *TenantBadge) SetCssClass(v string)` + +SetCssClass sets CssClass field to given value. + +### HasCssClass + +`func (o *TenantBadge) HasCssClass() bool` + +HasCssClass returns a boolean if a field has been set. + +### SetCssClassNil + +`func (o *TenantBadge) SetCssClassNil(b bool)` + + SetCssClassNil sets the value for CssClass to be an explicit nil + +### UnsetCssClass +`func (o *TenantBadge) UnsetCssClass()` + +UnsetCssClass ensures that no value is present for CssClass, not even an explicit nil +### GetVeteranUserThresholdMillis + +`func (o *TenantBadge) GetVeteranUserThresholdMillis() float64` + +GetVeteranUserThresholdMillis returns the VeteranUserThresholdMillis field if non-nil, zero value otherwise. + +### GetVeteranUserThresholdMillisOk + +`func (o *TenantBadge) GetVeteranUserThresholdMillisOk() (*float64, bool)` + +GetVeteranUserThresholdMillisOk returns a tuple with the VeteranUserThresholdMillis field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVeteranUserThresholdMillis + +`func (o *TenantBadge) SetVeteranUserThresholdMillis(v float64)` + +SetVeteranUserThresholdMillis sets VeteranUserThresholdMillis field to given value. + +### HasVeteranUserThresholdMillis + +`func (o *TenantBadge) HasVeteranUserThresholdMillis() bool` + +HasVeteranUserThresholdMillis returns a boolean if a field has been set. + +### SetVeteranUserThresholdMillisNil + +`func (o *TenantBadge) SetVeteranUserThresholdMillisNil(b bool)` + + SetVeteranUserThresholdMillisNil sets the value for VeteranUserThresholdMillis to be an explicit nil + +### UnsetVeteranUserThresholdMillis +`func (o *TenantBadge) UnsetVeteranUserThresholdMillis()` + +UnsetVeteranUserThresholdMillis ensures that no value is present for VeteranUserThresholdMillis, not even an explicit nil +### GetIsAwaitingReprocess + +`func (o *TenantBadge) GetIsAwaitingReprocess() bool` + +GetIsAwaitingReprocess returns the IsAwaitingReprocess field if non-nil, zero value otherwise. + +### GetIsAwaitingReprocessOk + +`func (o *TenantBadge) GetIsAwaitingReprocessOk() (*bool, bool)` + +GetIsAwaitingReprocessOk returns a tuple with the IsAwaitingReprocess field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsAwaitingReprocess + +`func (o *TenantBadge) SetIsAwaitingReprocess(v bool)` + +SetIsAwaitingReprocess sets IsAwaitingReprocess field to given value. + + +### GetIsAwaitingDeletion + +`func (o *TenantBadge) GetIsAwaitingDeletion() bool` + +GetIsAwaitingDeletion returns the IsAwaitingDeletion field if non-nil, zero value otherwise. + +### GetIsAwaitingDeletionOk + +`func (o *TenantBadge) GetIsAwaitingDeletionOk() (*bool, bool)` + +GetIsAwaitingDeletionOk returns a tuple with the IsAwaitingDeletion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsAwaitingDeletion + +`func (o *TenantBadge) SetIsAwaitingDeletion(v bool)` + +SetIsAwaitingDeletion sets IsAwaitingDeletion field to given value. + + +### GetReplacesBadgeId + +`func (o *TenantBadge) GetReplacesBadgeId() string` + +GetReplacesBadgeId returns the ReplacesBadgeId field if non-nil, zero value otherwise. + +### GetReplacesBadgeIdOk + +`func (o *TenantBadge) GetReplacesBadgeIdOk() (*string, bool)` + +GetReplacesBadgeIdOk returns a tuple with the ReplacesBadgeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReplacesBadgeId + +`func (o *TenantBadge) SetReplacesBadgeId(v string)` + +SetReplacesBadgeId sets ReplacesBadgeId field to given value. + +### HasReplacesBadgeId + +`func (o *TenantBadge) HasReplacesBadgeId() bool` + +HasReplacesBadgeId returns a boolean if a field has been set. + +### SetReplacesBadgeIdNil + +`func (o *TenantBadge) SetReplacesBadgeIdNil(b bool)` + + SetReplacesBadgeIdNil sets the value for ReplacesBadgeId to be an explicit nil + +### UnsetReplacesBadgeId +`func (o *TenantBadge) UnsetReplacesBadgeId()` + +UnsetReplacesBadgeId ensures that no value is present for ReplacesBadgeId, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/TenantPackage.md b/client/docs/TenantPackage.md index 54dc99d..34960b2 100644 --- a/client/docs/TenantPackage.md +++ b/client/docs/TenantPackage.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **Name** | **string** | | **TenantId** | **string** | | **CreatedAt** | **time.Time** | | +**TemplateId** | Pointer to **string** | | [optional] **MonthlyCostUSD** | **NullableFloat64** | | **YearlyCostUSD** | **NullableFloat64** | | **MonthlyStripePlanId** | **NullableString** | | @@ -51,6 +52,8 @@ Name | Type | Description | Notes **FlexDomainUnit** | Pointer to **float64** | | [optional] **FlexChatGPTCostCents** | Pointer to **float64** | | [optional] **FlexChatGPTUnit** | Pointer to **float64** | | [optional] +**FlexLLMCostCents** | Pointer to **float64** | | [optional] +**FlexLLMUnit** | Pointer to **float64** | | [optional] **FlexMinimumCostCents** | Pointer to **float64** | | [optional] **FlexManagedTenantCostCents** | Pointer to **float64** | | [optional] **FlexSSOAdminCostCents** | Pointer to **float64** | | [optional] @@ -58,6 +61,10 @@ Name | Type | Description | Notes **FlexSSOModeratorCostCents** | Pointer to **float64** | | [optional] **FlexSSOModeratorUnit** | Pointer to **float64** | | [optional] **IsSSOBillingMonthlyActiveUsers** | Pointer to **bool** | | [optional] +**HasAIAgents** | Pointer to **bool** | | [optional] +**MaxAIAgents** | Pointer to **float64** | | [optional] +**AiAgentDailyBudgetCents** | Pointer to **float64** | | [optional] +**AiAgentMonthlyBudgetCents** | Pointer to **float64** | | [optional] ## Methods @@ -158,6 +165,31 @@ and a boolean to check if the value has been set. SetCreatedAt sets CreatedAt field to given value. +### GetTemplateId + +`func (o *TenantPackage) GetTemplateId() string` + +GetTemplateId returns the TemplateId field if non-nil, zero value otherwise. + +### GetTemplateIdOk + +`func (o *TenantPackage) GetTemplateIdOk() (*string, bool)` + +GetTemplateIdOk returns a tuple with the TemplateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateId + +`func (o *TenantPackage) SetTemplateId(v string)` + +SetTemplateId sets TemplateId field to given value. + +### HasTemplateId + +`func (o *TenantPackage) HasTemplateId() bool` + +HasTemplateId returns a boolean if a field has been set. + ### GetMonthlyCostUSD `func (o *TenantPackage) GetMonthlyCostUSD() float64` @@ -1158,6 +1190,56 @@ SetFlexChatGPTUnit sets FlexChatGPTUnit field to given value. HasFlexChatGPTUnit returns a boolean if a field has been set. +### GetFlexLLMCostCents + +`func (o *TenantPackage) GetFlexLLMCostCents() float64` + +GetFlexLLMCostCents returns the FlexLLMCostCents field if non-nil, zero value otherwise. + +### GetFlexLLMCostCentsOk + +`func (o *TenantPackage) GetFlexLLMCostCentsOk() (*float64, bool)` + +GetFlexLLMCostCentsOk returns a tuple with the FlexLLMCostCents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFlexLLMCostCents + +`func (o *TenantPackage) SetFlexLLMCostCents(v float64)` + +SetFlexLLMCostCents sets FlexLLMCostCents field to given value. + +### HasFlexLLMCostCents + +`func (o *TenantPackage) HasFlexLLMCostCents() bool` + +HasFlexLLMCostCents returns a boolean if a field has been set. + +### GetFlexLLMUnit + +`func (o *TenantPackage) GetFlexLLMUnit() float64` + +GetFlexLLMUnit returns the FlexLLMUnit field if non-nil, zero value otherwise. + +### GetFlexLLMUnitOk + +`func (o *TenantPackage) GetFlexLLMUnitOk() (*float64, bool)` + +GetFlexLLMUnitOk returns a tuple with the FlexLLMUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFlexLLMUnit + +`func (o *TenantPackage) SetFlexLLMUnit(v float64)` + +SetFlexLLMUnit sets FlexLLMUnit field to given value. + +### HasFlexLLMUnit + +`func (o *TenantPackage) HasFlexLLMUnit() bool` + +HasFlexLLMUnit returns a boolean if a field has been set. + ### GetFlexMinimumCostCents `func (o *TenantPackage) GetFlexMinimumCostCents() float64` @@ -1333,6 +1415,106 @@ SetIsSSOBillingMonthlyActiveUsers sets IsSSOBillingMonthlyActiveUsers field to g HasIsSSOBillingMonthlyActiveUsers returns a boolean if a field has been set. +### GetHasAIAgents + +`func (o *TenantPackage) GetHasAIAgents() bool` + +GetHasAIAgents returns the HasAIAgents field if non-nil, zero value otherwise. + +### GetHasAIAgentsOk + +`func (o *TenantPackage) GetHasAIAgentsOk() (*bool, bool)` + +GetHasAIAgentsOk returns a tuple with the HasAIAgents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasAIAgents + +`func (o *TenantPackage) SetHasAIAgents(v bool)` + +SetHasAIAgents sets HasAIAgents field to given value. + +### HasHasAIAgents + +`func (o *TenantPackage) HasHasAIAgents() bool` + +HasHasAIAgents returns a boolean if a field has been set. + +### GetMaxAIAgents + +`func (o *TenantPackage) GetMaxAIAgents() float64` + +GetMaxAIAgents returns the MaxAIAgents field if non-nil, zero value otherwise. + +### GetMaxAIAgentsOk + +`func (o *TenantPackage) GetMaxAIAgentsOk() (*float64, bool)` + +GetMaxAIAgentsOk returns a tuple with the MaxAIAgents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxAIAgents + +`func (o *TenantPackage) SetMaxAIAgents(v float64)` + +SetMaxAIAgents sets MaxAIAgents field to given value. + +### HasMaxAIAgents + +`func (o *TenantPackage) HasMaxAIAgents() bool` + +HasMaxAIAgents returns a boolean if a field has been set. + +### GetAiAgentDailyBudgetCents + +`func (o *TenantPackage) GetAiAgentDailyBudgetCents() float64` + +GetAiAgentDailyBudgetCents returns the AiAgentDailyBudgetCents field if non-nil, zero value otherwise. + +### GetAiAgentDailyBudgetCentsOk + +`func (o *TenantPackage) GetAiAgentDailyBudgetCentsOk() (*float64, bool)` + +GetAiAgentDailyBudgetCentsOk returns a tuple with the AiAgentDailyBudgetCents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAiAgentDailyBudgetCents + +`func (o *TenantPackage) SetAiAgentDailyBudgetCents(v float64)` + +SetAiAgentDailyBudgetCents sets AiAgentDailyBudgetCents field to given value. + +### HasAiAgentDailyBudgetCents + +`func (o *TenantPackage) HasAiAgentDailyBudgetCents() bool` + +HasAiAgentDailyBudgetCents returns a boolean if a field has been set. + +### GetAiAgentMonthlyBudgetCents + +`func (o *TenantPackage) GetAiAgentMonthlyBudgetCents() float64` + +GetAiAgentMonthlyBudgetCents returns the AiAgentMonthlyBudgetCents field if non-nil, zero value otherwise. + +### GetAiAgentMonthlyBudgetCentsOk + +`func (o *TenantPackage) GetAiAgentMonthlyBudgetCentsOk() (*float64, bool)` + +GetAiAgentMonthlyBudgetCentsOk returns a tuple with the AiAgentMonthlyBudgetCents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAiAgentMonthlyBudgetCents + +`func (o *TenantPackage) SetAiAgentMonthlyBudgetCents(v float64)` + +SetAiAgentMonthlyBudgetCents sets AiAgentMonthlyBudgetCents field to given value. + +### HasAiAgentMonthlyBudgetCents + +`func (o *TenantPackage) HasAiAgentMonthlyBudgetCents() bool` + +HasAiAgentMonthlyBudgetCents returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/UnBlockCommentPublic200Response.md b/client/docs/UnBlockCommentPublic200Response.md deleted file mode 100644 index e429b9a..0000000 --- a/client/docs/UnBlockCommentPublic200Response.md +++ /dev/null @@ -1,244 +0,0 @@ -# UnBlockCommentPublic200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**CommentStatuses** | **map[string]bool** | Construct a type with a set of properties K of type T | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewUnBlockCommentPublic200Response - -`func NewUnBlockCommentPublic200Response(status APIStatus, commentStatuses map[string]bool, reason string, code string, ) *UnBlockCommentPublic200Response` - -NewUnBlockCommentPublic200Response instantiates a new UnBlockCommentPublic200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewUnBlockCommentPublic200ResponseWithDefaults - -`func NewUnBlockCommentPublic200ResponseWithDefaults() *UnBlockCommentPublic200Response` - -NewUnBlockCommentPublic200ResponseWithDefaults instantiates a new UnBlockCommentPublic200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *UnBlockCommentPublic200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *UnBlockCommentPublic200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *UnBlockCommentPublic200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetCommentStatuses - -`func (o *UnBlockCommentPublic200Response) GetCommentStatuses() map[string]bool` - -GetCommentStatuses returns the CommentStatuses field if non-nil, zero value otherwise. - -### GetCommentStatusesOk - -`func (o *UnBlockCommentPublic200Response) GetCommentStatusesOk() (*map[string]bool, bool)` - -GetCommentStatusesOk returns a tuple with the CommentStatuses field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCommentStatuses - -`func (o *UnBlockCommentPublic200Response) SetCommentStatuses(v map[string]bool)` - -SetCommentStatuses sets CommentStatuses field to given value. - - -### GetReason - -`func (o *UnBlockCommentPublic200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *UnBlockCommentPublic200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *UnBlockCommentPublic200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *UnBlockCommentPublic200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *UnBlockCommentPublic200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *UnBlockCommentPublic200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *UnBlockCommentPublic200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *UnBlockCommentPublic200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *UnBlockCommentPublic200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *UnBlockCommentPublic200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *UnBlockCommentPublic200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *UnBlockCommentPublic200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *UnBlockCommentPublic200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *UnBlockCommentPublic200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *UnBlockCommentPublic200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *UnBlockCommentPublic200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *UnBlockCommentPublic200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *UnBlockCommentPublic200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *UnBlockCommentPublic200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *UnBlockCommentPublic200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *UnBlockCommentPublic200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *UnBlockCommentPublic200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *UnBlockCommentPublic200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *UnBlockCommentPublic200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *UnBlockCommentPublic200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *UnBlockCommentPublic200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/UpdateUserBadge200Response.md b/client/docs/UpdateUserBadge200Response.md deleted file mode 100644 index 7930956..0000000 --- a/client/docs/UpdateUserBadge200Response.md +++ /dev/null @@ -1,223 +0,0 @@ -# UpdateUserBadge200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewUpdateUserBadge200Response - -`func NewUpdateUserBadge200Response(status APIStatus, reason string, code string, ) *UpdateUserBadge200Response` - -NewUpdateUserBadge200Response instantiates a new UpdateUserBadge200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewUpdateUserBadge200ResponseWithDefaults - -`func NewUpdateUserBadge200ResponseWithDefaults() *UpdateUserBadge200Response` - -NewUpdateUserBadge200ResponseWithDefaults instantiates a new UpdateUserBadge200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *UpdateUserBadge200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *UpdateUserBadge200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *UpdateUserBadge200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetReason - -`func (o *UpdateUserBadge200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *UpdateUserBadge200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *UpdateUserBadge200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *UpdateUserBadge200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *UpdateUserBadge200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *UpdateUserBadge200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *UpdateUserBadge200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *UpdateUserBadge200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *UpdateUserBadge200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *UpdateUserBadge200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *UpdateUserBadge200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *UpdateUserBadge200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *UpdateUserBadge200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *UpdateUserBadge200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *UpdateUserBadge200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *UpdateUserBadge200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *UpdateUserBadge200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *UpdateUserBadge200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *UpdateUserBadge200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *UpdateUserBadge200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *UpdateUserBadge200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *UpdateUserBadge200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *UpdateUserBadge200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *UpdateUserBadge200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *UpdateUserBadge200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *UpdateUserBadge200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md b/client/docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md new file mode 100644 index 0000000..bc0f6c8 --- /dev/null +++ b/client/docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md @@ -0,0 +1,114 @@ +# UpdateUserNotificationCommentSubscriptionStatusResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | [**APIStatus**](APIStatus.md) | | +**MatchedCount** | **int64** | | +**ModifiedCount** | **int64** | | +**Note** | **string** | | + +## Methods + +### NewUpdateUserNotificationCommentSubscriptionStatusResponse + +`func NewUpdateUserNotificationCommentSubscriptionStatusResponse(status APIStatus, matchedCount int64, modifiedCount int64, note string, ) *UpdateUserNotificationCommentSubscriptionStatusResponse` + +NewUpdateUserNotificationCommentSubscriptionStatusResponse instantiates a new UpdateUserNotificationCommentSubscriptionStatusResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUpdateUserNotificationCommentSubscriptionStatusResponseWithDefaults + +`func NewUpdateUserNotificationCommentSubscriptionStatusResponseWithDefaults() *UpdateUserNotificationCommentSubscriptionStatusResponse` + +NewUpdateUserNotificationCommentSubscriptionStatusResponseWithDefaults instantiates a new UpdateUserNotificationCommentSubscriptionStatusResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *UpdateUserNotificationCommentSubscriptionStatusResponse) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *UpdateUserNotificationCommentSubscriptionStatusResponse) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *UpdateUserNotificationCommentSubscriptionStatusResponse) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + +### GetMatchedCount + +`func (o *UpdateUserNotificationCommentSubscriptionStatusResponse) GetMatchedCount() int64` + +GetMatchedCount returns the MatchedCount field if non-nil, zero value otherwise. + +### GetMatchedCountOk + +`func (o *UpdateUserNotificationCommentSubscriptionStatusResponse) GetMatchedCountOk() (*int64, bool)` + +GetMatchedCountOk returns a tuple with the MatchedCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMatchedCount + +`func (o *UpdateUserNotificationCommentSubscriptionStatusResponse) SetMatchedCount(v int64)` + +SetMatchedCount sets MatchedCount field to given value. + + +### GetModifiedCount + +`func (o *UpdateUserNotificationCommentSubscriptionStatusResponse) GetModifiedCount() int64` + +GetModifiedCount returns the ModifiedCount field if non-nil, zero value otherwise. + +### GetModifiedCountOk + +`func (o *UpdateUserNotificationCommentSubscriptionStatusResponse) GetModifiedCountOk() (*int64, bool)` + +GetModifiedCountOk returns a tuple with the ModifiedCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModifiedCount + +`func (o *UpdateUserNotificationCommentSubscriptionStatusResponse) SetModifiedCount(v int64)` + +SetModifiedCount sets ModifiedCount field to given value. + + +### GetNote + +`func (o *UpdateUserNotificationCommentSubscriptionStatusResponse) GetNote() string` + +GetNote returns the Note field if non-nil, zero value otherwise. + +### GetNoteOk + +`func (o *UpdateUserNotificationCommentSubscriptionStatusResponse) GetNoteOk() (*string, bool)` + +GetNoteOk returns a tuple with the Note field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNote + +`func (o *UpdateUserNotificationCommentSubscriptionStatusResponse) SetNote(v string)` + +SetNote sets Note field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/UpdateUserNotificationPageSubscriptionStatusResponse.md b/client/docs/UpdateUserNotificationPageSubscriptionStatusResponse.md new file mode 100644 index 0000000..d882a63 --- /dev/null +++ b/client/docs/UpdateUserNotificationPageSubscriptionStatusResponse.md @@ -0,0 +1,114 @@ +# UpdateUserNotificationPageSubscriptionStatusResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | [**APIStatus**](APIStatus.md) | | +**MatchedCount** | **int64** | | +**ModifiedCount** | **int64** | | +**Note** | **string** | | + +## Methods + +### NewUpdateUserNotificationPageSubscriptionStatusResponse + +`func NewUpdateUserNotificationPageSubscriptionStatusResponse(status APIStatus, matchedCount int64, modifiedCount int64, note string, ) *UpdateUserNotificationPageSubscriptionStatusResponse` + +NewUpdateUserNotificationPageSubscriptionStatusResponse instantiates a new UpdateUserNotificationPageSubscriptionStatusResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUpdateUserNotificationPageSubscriptionStatusResponseWithDefaults + +`func NewUpdateUserNotificationPageSubscriptionStatusResponseWithDefaults() *UpdateUserNotificationPageSubscriptionStatusResponse` + +NewUpdateUserNotificationPageSubscriptionStatusResponseWithDefaults instantiates a new UpdateUserNotificationPageSubscriptionStatusResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *UpdateUserNotificationPageSubscriptionStatusResponse) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *UpdateUserNotificationPageSubscriptionStatusResponse) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *UpdateUserNotificationPageSubscriptionStatusResponse) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + +### GetMatchedCount + +`func (o *UpdateUserNotificationPageSubscriptionStatusResponse) GetMatchedCount() int64` + +GetMatchedCount returns the MatchedCount field if non-nil, zero value otherwise. + +### GetMatchedCountOk + +`func (o *UpdateUserNotificationPageSubscriptionStatusResponse) GetMatchedCountOk() (*int64, bool)` + +GetMatchedCountOk returns a tuple with the MatchedCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMatchedCount + +`func (o *UpdateUserNotificationPageSubscriptionStatusResponse) SetMatchedCount(v int64)` + +SetMatchedCount sets MatchedCount field to given value. + + +### GetModifiedCount + +`func (o *UpdateUserNotificationPageSubscriptionStatusResponse) GetModifiedCount() int64` + +GetModifiedCount returns the ModifiedCount field if non-nil, zero value otherwise. + +### GetModifiedCountOk + +`func (o *UpdateUserNotificationPageSubscriptionStatusResponse) GetModifiedCountOk() (*int64, bool)` + +GetModifiedCountOk returns a tuple with the ModifiedCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModifiedCount + +`func (o *UpdateUserNotificationPageSubscriptionStatusResponse) SetModifiedCount(v int64)` + +SetModifiedCount sets ModifiedCount field to given value. + + +### GetNote + +`func (o *UpdateUserNotificationPageSubscriptionStatusResponse) GetNote() string` + +GetNote returns the Note field if non-nil, zero value otherwise. + +### GetNoteOk + +`func (o *UpdateUserNotificationPageSubscriptionStatusResponse) GetNoteOk() (*string, bool)` + +GetNoteOk returns a tuple with the Note field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNote + +`func (o *UpdateUserNotificationPageSubscriptionStatusResponse) SetNote(v string)` + +SetNote sets Note field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/UpdateUserNotificationStatus200Response.md b/client/docs/UpdateUserNotificationStatus200Response.md deleted file mode 100644 index 7d94c87..0000000 --- a/client/docs/UpdateUserNotificationStatus200Response.md +++ /dev/null @@ -1,286 +0,0 @@ -# UpdateUserNotificationStatus200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**MatchedCount** | **int64** | | -**ModifiedCount** | **int64** | | -**Note** | **string** | | -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewUpdateUserNotificationStatus200Response - -`func NewUpdateUserNotificationStatus200Response(status APIStatus, matchedCount int64, modifiedCount int64, note string, reason string, code string, ) *UpdateUserNotificationStatus200Response` - -NewUpdateUserNotificationStatus200Response instantiates a new UpdateUserNotificationStatus200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewUpdateUserNotificationStatus200ResponseWithDefaults - -`func NewUpdateUserNotificationStatus200ResponseWithDefaults() *UpdateUserNotificationStatus200Response` - -NewUpdateUserNotificationStatus200ResponseWithDefaults instantiates a new UpdateUserNotificationStatus200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *UpdateUserNotificationStatus200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *UpdateUserNotificationStatus200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *UpdateUserNotificationStatus200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetMatchedCount - -`func (o *UpdateUserNotificationStatus200Response) GetMatchedCount() int64` - -GetMatchedCount returns the MatchedCount field if non-nil, zero value otherwise. - -### GetMatchedCountOk - -`func (o *UpdateUserNotificationStatus200Response) GetMatchedCountOk() (*int64, bool)` - -GetMatchedCountOk returns a tuple with the MatchedCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMatchedCount - -`func (o *UpdateUserNotificationStatus200Response) SetMatchedCount(v int64)` - -SetMatchedCount sets MatchedCount field to given value. - - -### GetModifiedCount - -`func (o *UpdateUserNotificationStatus200Response) GetModifiedCount() int64` - -GetModifiedCount returns the ModifiedCount field if non-nil, zero value otherwise. - -### GetModifiedCountOk - -`func (o *UpdateUserNotificationStatus200Response) GetModifiedCountOk() (*int64, bool)` - -GetModifiedCountOk returns a tuple with the ModifiedCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetModifiedCount - -`func (o *UpdateUserNotificationStatus200Response) SetModifiedCount(v int64)` - -SetModifiedCount sets ModifiedCount field to given value. - - -### GetNote - -`func (o *UpdateUserNotificationStatus200Response) GetNote() string` - -GetNote returns the Note field if non-nil, zero value otherwise. - -### GetNoteOk - -`func (o *UpdateUserNotificationStatus200Response) GetNoteOk() (*string, bool)` - -GetNoteOk returns a tuple with the Note field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNote - -`func (o *UpdateUserNotificationStatus200Response) SetNote(v string)` - -SetNote sets Note field to given value. - - -### GetReason - -`func (o *UpdateUserNotificationStatus200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *UpdateUserNotificationStatus200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *UpdateUserNotificationStatus200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *UpdateUserNotificationStatus200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *UpdateUserNotificationStatus200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *UpdateUserNotificationStatus200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *UpdateUserNotificationStatus200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *UpdateUserNotificationStatus200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *UpdateUserNotificationStatus200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *UpdateUserNotificationStatus200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *UpdateUserNotificationStatus200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *UpdateUserNotificationStatus200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *UpdateUserNotificationStatus200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *UpdateUserNotificationStatus200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *UpdateUserNotificationStatus200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *UpdateUserNotificationStatus200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *UpdateUserNotificationStatus200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *UpdateUserNotificationStatus200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *UpdateUserNotificationStatus200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *UpdateUserNotificationStatus200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *UpdateUserNotificationStatus200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *UpdateUserNotificationStatus200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *UpdateUserNotificationStatus200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *UpdateUserNotificationStatus200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *UpdateUserNotificationStatus200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *UpdateUserNotificationStatus200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/UpdateUserNotificationStatusResponse.md b/client/docs/UpdateUserNotificationStatusResponse.md new file mode 100644 index 0000000..9dd4ff9 --- /dev/null +++ b/client/docs/UpdateUserNotificationStatusResponse.md @@ -0,0 +1,114 @@ +# UpdateUserNotificationStatusResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | [**APIStatus**](APIStatus.md) | | +**MatchedCount** | **int64** | | +**ModifiedCount** | **int64** | | +**Note** | **string** | | + +## Methods + +### NewUpdateUserNotificationStatusResponse + +`func NewUpdateUserNotificationStatusResponse(status APIStatus, matchedCount int64, modifiedCount int64, note string, ) *UpdateUserNotificationStatusResponse` + +NewUpdateUserNotificationStatusResponse instantiates a new UpdateUserNotificationStatusResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUpdateUserNotificationStatusResponseWithDefaults + +`func NewUpdateUserNotificationStatusResponseWithDefaults() *UpdateUserNotificationStatusResponse` + +NewUpdateUserNotificationStatusResponseWithDefaults instantiates a new UpdateUserNotificationStatusResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *UpdateUserNotificationStatusResponse) GetStatus() APIStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *UpdateUserNotificationStatusResponse) GetStatusOk() (*APIStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *UpdateUserNotificationStatusResponse) SetStatus(v APIStatus)` + +SetStatus sets Status field to given value. + + +### GetMatchedCount + +`func (o *UpdateUserNotificationStatusResponse) GetMatchedCount() int64` + +GetMatchedCount returns the MatchedCount field if non-nil, zero value otherwise. + +### GetMatchedCountOk + +`func (o *UpdateUserNotificationStatusResponse) GetMatchedCountOk() (*int64, bool)` + +GetMatchedCountOk returns a tuple with the MatchedCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMatchedCount + +`func (o *UpdateUserNotificationStatusResponse) SetMatchedCount(v int64)` + +SetMatchedCount sets MatchedCount field to given value. + + +### GetModifiedCount + +`func (o *UpdateUserNotificationStatusResponse) GetModifiedCount() int64` + +GetModifiedCount returns the ModifiedCount field if non-nil, zero value otherwise. + +### GetModifiedCountOk + +`func (o *UpdateUserNotificationStatusResponse) GetModifiedCountOk() (*int64, bool)` + +GetModifiedCountOk returns a tuple with the ModifiedCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModifiedCount + +`func (o *UpdateUserNotificationStatusResponse) SetModifiedCount(v int64)` + +SetModifiedCount sets ModifiedCount field to given value. + + +### GetNote + +`func (o *UpdateUserNotificationStatusResponse) GetNote() string` + +GetNote returns the Note field if non-nil, zero value otherwise. + +### GetNoteOk + +`func (o *UpdateUserNotificationStatusResponse) GetNoteOk() (*string, bool)` + +GetNoteOk returns a tuple with the Note field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNote + +`func (o *UpdateUserNotificationStatusResponse) SetNote(v string)` + +SetNote sets Note field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/User.md b/client/docs/User.md index 24d4524..e4822fe 100644 --- a/client/docs/User.md +++ b/client/docs/User.md @@ -43,6 +43,7 @@ Name | Type | Description | Notes **DigestEmailFrequency** | Pointer to [**DigestEmailFrequency**](DigestEmailFrequency.md) | | [optional] **NotificationFrequency** | Pointer to **float64** | | [optional] **AdminNotificationFrequency** | Pointer to **float64** | | [optional] +**AgentApprovalNotificationFrequency** | Pointer to [**ImportedAgentApprovalNotificationFrequency**](ImportedAgentApprovalNotificationFrequency.md) | | [optional] **LastTenantNotificationSentDate** | Pointer to **time.Time** | | [optional] **LastReplyNotificationSentDate** | Pointer to **time.Time** | | [optional] **IgnoredAddToMySiteMessages** | Pointer to **bool** | | [optional] @@ -1073,6 +1074,31 @@ SetAdminNotificationFrequency sets AdminNotificationFrequency field to given val HasAdminNotificationFrequency returns a boolean if a field has been set. +### GetAgentApprovalNotificationFrequency + +`func (o *User) GetAgentApprovalNotificationFrequency() ImportedAgentApprovalNotificationFrequency` + +GetAgentApprovalNotificationFrequency returns the AgentApprovalNotificationFrequency field if non-nil, zero value otherwise. + +### GetAgentApprovalNotificationFrequencyOk + +`func (o *User) GetAgentApprovalNotificationFrequencyOk() (*ImportedAgentApprovalNotificationFrequency, bool)` + +GetAgentApprovalNotificationFrequencyOk returns a tuple with the AgentApprovalNotificationFrequency field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentApprovalNotificationFrequency + +`func (o *User) SetAgentApprovalNotificationFrequency(v ImportedAgentApprovalNotificationFrequency)` + +SetAgentApprovalNotificationFrequency sets AgentApprovalNotificationFrequency field to given value. + +### HasAgentApprovalNotificationFrequency + +`func (o *User) HasAgentApprovalNotificationFrequency() bool` + +HasAgentApprovalNotificationFrequency returns a boolean if a field has been set. + ### GetLastTenantNotificationSentDate `func (o *User) GetLastTenantNotificationSentDate() time.Time` diff --git a/client/docs/UsersListLocation.md b/client/docs/UsersListLocation.md new file mode 100644 index 0000000..5a51a67 --- /dev/null +++ b/client/docs/UsersListLocation.md @@ -0,0 +1,17 @@ +# UsersListLocation + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_3` (value: `3`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/VoteComment200Response.md b/client/docs/VoteComment200Response.md deleted file mode 100644 index 84f2cbf..0000000 --- a/client/docs/VoteComment200Response.md +++ /dev/null @@ -1,327 +0,0 @@ -# VoteComment200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**APIStatus**](APIStatus.md) | | -**VoteId** | Pointer to **string** | | [optional] -**IsVerified** | Pointer to **bool** | | [optional] -**User** | Pointer to [**VoteResponseUser**](VoteResponseUser.md) | | [optional] -**EditKey** | Pointer to **string** | | [optional] -**Reason** | **string** | | -**Code** | **string** | | -**SecondaryCode** | Pointer to **string** | | [optional] -**BannedUntil** | Pointer to **int64** | | [optional] -**MaxCharacterLength** | Pointer to **int32** | | [optional] -**TranslatedError** | Pointer to **string** | | [optional] -**CustomConfig** | Pointer to [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Methods - -### NewVoteComment200Response - -`func NewVoteComment200Response(status APIStatus, reason string, code string, ) *VoteComment200Response` - -NewVoteComment200Response instantiates a new VoteComment200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewVoteComment200ResponseWithDefaults - -`func NewVoteComment200ResponseWithDefaults() *VoteComment200Response` - -NewVoteComment200ResponseWithDefaults instantiates a new VoteComment200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *VoteComment200Response) GetStatus() APIStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *VoteComment200Response) GetStatusOk() (*APIStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *VoteComment200Response) SetStatus(v APIStatus)` - -SetStatus sets Status field to given value. - - -### GetVoteId - -`func (o *VoteComment200Response) GetVoteId() string` - -GetVoteId returns the VoteId field if non-nil, zero value otherwise. - -### GetVoteIdOk - -`func (o *VoteComment200Response) GetVoteIdOk() (*string, bool)` - -GetVoteIdOk returns a tuple with the VoteId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVoteId - -`func (o *VoteComment200Response) SetVoteId(v string)` - -SetVoteId sets VoteId field to given value. - -### HasVoteId - -`func (o *VoteComment200Response) HasVoteId() bool` - -HasVoteId returns a boolean if a field has been set. - -### GetIsVerified - -`func (o *VoteComment200Response) GetIsVerified() bool` - -GetIsVerified returns the IsVerified field if non-nil, zero value otherwise. - -### GetIsVerifiedOk - -`func (o *VoteComment200Response) GetIsVerifiedOk() (*bool, bool)` - -GetIsVerifiedOk returns a tuple with the IsVerified field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsVerified - -`func (o *VoteComment200Response) SetIsVerified(v bool)` - -SetIsVerified sets IsVerified field to given value. - -### HasIsVerified - -`func (o *VoteComment200Response) HasIsVerified() bool` - -HasIsVerified returns a boolean if a field has been set. - -### GetUser - -`func (o *VoteComment200Response) GetUser() VoteResponseUser` - -GetUser returns the User field if non-nil, zero value otherwise. - -### GetUserOk - -`func (o *VoteComment200Response) GetUserOk() (*VoteResponseUser, bool)` - -GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUser - -`func (o *VoteComment200Response) SetUser(v VoteResponseUser)` - -SetUser sets User field to given value. - -### HasUser - -`func (o *VoteComment200Response) HasUser() bool` - -HasUser returns a boolean if a field has been set. - -### GetEditKey - -`func (o *VoteComment200Response) GetEditKey() string` - -GetEditKey returns the EditKey field if non-nil, zero value otherwise. - -### GetEditKeyOk - -`func (o *VoteComment200Response) GetEditKeyOk() (*string, bool)` - -GetEditKeyOk returns a tuple with the EditKey field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEditKey - -`func (o *VoteComment200Response) SetEditKey(v string)` - -SetEditKey sets EditKey field to given value. - -### HasEditKey - -`func (o *VoteComment200Response) HasEditKey() bool` - -HasEditKey returns a boolean if a field has been set. - -### GetReason - -`func (o *VoteComment200Response) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *VoteComment200Response) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *VoteComment200Response) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetCode - -`func (o *VoteComment200Response) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *VoteComment200Response) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *VoteComment200Response) SetCode(v string)` - -SetCode sets Code field to given value. - - -### GetSecondaryCode - -`func (o *VoteComment200Response) GetSecondaryCode() string` - -GetSecondaryCode returns the SecondaryCode field if non-nil, zero value otherwise. - -### GetSecondaryCodeOk - -`func (o *VoteComment200Response) GetSecondaryCodeOk() (*string, bool)` - -GetSecondaryCodeOk returns a tuple with the SecondaryCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecondaryCode - -`func (o *VoteComment200Response) SetSecondaryCode(v string)` - -SetSecondaryCode sets SecondaryCode field to given value. - -### HasSecondaryCode - -`func (o *VoteComment200Response) HasSecondaryCode() bool` - -HasSecondaryCode returns a boolean if a field has been set. - -### GetBannedUntil - -`func (o *VoteComment200Response) GetBannedUntil() int64` - -GetBannedUntil returns the BannedUntil field if non-nil, zero value otherwise. - -### GetBannedUntilOk - -`func (o *VoteComment200Response) GetBannedUntilOk() (*int64, bool)` - -GetBannedUntilOk returns a tuple with the BannedUntil field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBannedUntil - -`func (o *VoteComment200Response) SetBannedUntil(v int64)` - -SetBannedUntil sets BannedUntil field to given value. - -### HasBannedUntil - -`func (o *VoteComment200Response) HasBannedUntil() bool` - -HasBannedUntil returns a boolean if a field has been set. - -### GetMaxCharacterLength - -`func (o *VoteComment200Response) GetMaxCharacterLength() int32` - -GetMaxCharacterLength returns the MaxCharacterLength field if non-nil, zero value otherwise. - -### GetMaxCharacterLengthOk - -`func (o *VoteComment200Response) GetMaxCharacterLengthOk() (*int32, bool)` - -GetMaxCharacterLengthOk returns a tuple with the MaxCharacterLength field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxCharacterLength - -`func (o *VoteComment200Response) SetMaxCharacterLength(v int32)` - -SetMaxCharacterLength sets MaxCharacterLength field to given value. - -### HasMaxCharacterLength - -`func (o *VoteComment200Response) HasMaxCharacterLength() bool` - -HasMaxCharacterLength returns a boolean if a field has been set. - -### GetTranslatedError - -`func (o *VoteComment200Response) GetTranslatedError() string` - -GetTranslatedError returns the TranslatedError field if non-nil, zero value otherwise. - -### GetTranslatedErrorOk - -`func (o *VoteComment200Response) GetTranslatedErrorOk() (*string, bool)` - -GetTranslatedErrorOk returns a tuple with the TranslatedError field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTranslatedError - -`func (o *VoteComment200Response) SetTranslatedError(v string)` - -SetTranslatedError sets TranslatedError field to given value. - -### HasTranslatedError - -`func (o *VoteComment200Response) HasTranslatedError() bool` - -HasTranslatedError returns a boolean if a field has been set. - -### GetCustomConfig - -`func (o *VoteComment200Response) GetCustomConfig() CustomConfigParameters` - -GetCustomConfig returns the CustomConfig field if non-nil, zero value otherwise. - -### GetCustomConfigOk - -`func (o *VoteComment200Response) GetCustomConfigOk() (*CustomConfigParameters, bool)` - -GetCustomConfigOk returns a tuple with the CustomConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomConfig - -`func (o *VoteComment200Response) SetCustomConfig(v CustomConfigParameters)` - -SetCustomConfig sets CustomConfig field to given value. - -### HasCustomConfig - -`func (o *VoteComment200Response) HasCustomConfig() bool` - -HasCustomConfig returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/model_add_domain_config_200_response.go b/client/model_add_domain_config_200_response.go deleted file mode 100644 index ab2b71d..0000000 --- a/client/model_add_domain_config_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// AddDomainConfig200Response struct for AddDomainConfig200Response -type AddDomainConfig200Response struct { - AddDomainConfig200ResponseAnyOf *AddDomainConfig200ResponseAnyOf - GetDomainConfigs200ResponseAnyOf1 *GetDomainConfigs200ResponseAnyOf1 -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *AddDomainConfig200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into AddDomainConfig200ResponseAnyOf - err = json.Unmarshal(data, &dst.AddDomainConfig200ResponseAnyOf); - if err == nil { - jsonAddDomainConfig200ResponseAnyOf, _ := json.Marshal(dst.AddDomainConfig200ResponseAnyOf) - if string(jsonAddDomainConfig200ResponseAnyOf) == "{}" { // empty struct - dst.AddDomainConfig200ResponseAnyOf = nil - } else { - return nil // data stored in dst.AddDomainConfig200ResponseAnyOf, return on the first match - } - } else { - dst.AddDomainConfig200ResponseAnyOf = nil - } - - // try to unmarshal JSON data into GetDomainConfigs200ResponseAnyOf1 - err = json.Unmarshal(data, &dst.GetDomainConfigs200ResponseAnyOf1); - if err == nil { - jsonGetDomainConfigs200ResponseAnyOf1, _ := json.Marshal(dst.GetDomainConfigs200ResponseAnyOf1) - if string(jsonGetDomainConfigs200ResponseAnyOf1) == "{}" { // empty struct - dst.GetDomainConfigs200ResponseAnyOf1 = nil - } else { - return nil // data stored in dst.GetDomainConfigs200ResponseAnyOf1, return on the first match - } - } else { - dst.GetDomainConfigs200ResponseAnyOf1 = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(AddDomainConfig200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src AddDomainConfig200Response) MarshalJSON() ([]byte, error) { - if src.AddDomainConfig200ResponseAnyOf != nil { - return json.Marshal(&src.AddDomainConfig200ResponseAnyOf) - } - - if src.GetDomainConfigs200ResponseAnyOf1 != nil { - return json.Marshal(&src.GetDomainConfigs200ResponseAnyOf1) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableAddDomainConfig200Response struct { - value *AddDomainConfig200Response - isSet bool -} - -func (v NullableAddDomainConfig200Response) Get() *AddDomainConfig200Response { - return v.value -} - -func (v *NullableAddDomainConfig200Response) Set(val *AddDomainConfig200Response) { - v.value = val - v.isSet = true -} - -func (v NullableAddDomainConfig200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableAddDomainConfig200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAddDomainConfig200Response(val *AddDomainConfig200Response) *NullableAddDomainConfig200Response { - return &NullableAddDomainConfig200Response{value: val, isSet: true} -} - -func (v NullableAddDomainConfig200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAddDomainConfig200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_add_domain_config_response.go b/client/model_add_domain_config_response.go new file mode 100644 index 0000000..55d089f --- /dev/null +++ b/client/model_add_domain_config_response.go @@ -0,0 +1,107 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "fmt" +) + + +// AddDomainConfigResponse struct for AddDomainConfigResponse +type AddDomainConfigResponse struct { + AddDomainConfigResponseAnyOf *AddDomainConfigResponseAnyOf + GetDomainConfigsResponseAnyOf1 *GetDomainConfigsResponseAnyOf1 +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *AddDomainConfigResponse) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into AddDomainConfigResponseAnyOf + err = json.Unmarshal(data, &dst.AddDomainConfigResponseAnyOf); + if err == nil { + jsonAddDomainConfigResponseAnyOf, _ := json.Marshal(dst.AddDomainConfigResponseAnyOf) + if string(jsonAddDomainConfigResponseAnyOf) == "{}" { // empty struct + dst.AddDomainConfigResponseAnyOf = nil + } else { + return nil // data stored in dst.AddDomainConfigResponseAnyOf, return on the first match + } + } else { + dst.AddDomainConfigResponseAnyOf = nil + } + + // try to unmarshal JSON data into GetDomainConfigsResponseAnyOf1 + err = json.Unmarshal(data, &dst.GetDomainConfigsResponseAnyOf1); + if err == nil { + jsonGetDomainConfigsResponseAnyOf1, _ := json.Marshal(dst.GetDomainConfigsResponseAnyOf1) + if string(jsonGetDomainConfigsResponseAnyOf1) == "{}" { // empty struct + dst.GetDomainConfigsResponseAnyOf1 = nil + } else { + return nil // data stored in dst.GetDomainConfigsResponseAnyOf1, return on the first match + } + } else { + dst.GetDomainConfigsResponseAnyOf1 = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(AddDomainConfigResponse)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src AddDomainConfigResponse) MarshalJSON() ([]byte, error) { + if src.AddDomainConfigResponseAnyOf != nil { + return json.Marshal(&src.AddDomainConfigResponseAnyOf) + } + + if src.GetDomainConfigsResponseAnyOf1 != nil { + return json.Marshal(&src.GetDomainConfigsResponseAnyOf1) + } + + return nil, nil // no data in anyOf schemas +} + + +type NullableAddDomainConfigResponse struct { + value *AddDomainConfigResponse + isSet bool +} + +func (v NullableAddDomainConfigResponse) Get() *AddDomainConfigResponse { + return v.value +} + +func (v *NullableAddDomainConfigResponse) Set(val *AddDomainConfigResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAddDomainConfigResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAddDomainConfigResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAddDomainConfigResponse(val *AddDomainConfigResponse) *NullableAddDomainConfigResponse { + return &NullableAddDomainConfigResponse{value: val, isSet: true} +} + +func (v NullableAddDomainConfigResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAddDomainConfigResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_add_domain_config_200_response_any_of.go b/client/model_add_domain_config_response_any_of.go similarity index 56% rename from client/model_add_domain_config_200_response_any_of.go rename to client/model_add_domain_config_response_any_of.go index bba4fbb..4109ddc 100644 --- a/client/model_add_domain_config_200_response_any_of.go +++ b/client/model_add_domain_config_response_any_of.go @@ -16,39 +16,39 @@ import ( "fmt" ) -// checks if the AddDomainConfig200ResponseAnyOf type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AddDomainConfig200ResponseAnyOf{} +// checks if the AddDomainConfigResponseAnyOf type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AddDomainConfigResponseAnyOf{} -// AddDomainConfig200ResponseAnyOf struct for AddDomainConfig200ResponseAnyOf -type AddDomainConfig200ResponseAnyOf struct { +// AddDomainConfigResponseAnyOf struct for AddDomainConfigResponseAnyOf +type AddDomainConfigResponseAnyOf struct { Configuration interface{} `json:"configuration"` Status interface{} `json:"status"` } -type _AddDomainConfig200ResponseAnyOf AddDomainConfig200ResponseAnyOf +type _AddDomainConfigResponseAnyOf AddDomainConfigResponseAnyOf -// NewAddDomainConfig200ResponseAnyOf instantiates a new AddDomainConfig200ResponseAnyOf object +// NewAddDomainConfigResponseAnyOf instantiates a new AddDomainConfigResponseAnyOf object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewAddDomainConfig200ResponseAnyOf(configuration interface{}, status interface{}) *AddDomainConfig200ResponseAnyOf { - this := AddDomainConfig200ResponseAnyOf{} +func NewAddDomainConfigResponseAnyOf(configuration interface{}, status interface{}) *AddDomainConfigResponseAnyOf { + this := AddDomainConfigResponseAnyOf{} this.Configuration = configuration this.Status = status return &this } -// NewAddDomainConfig200ResponseAnyOfWithDefaults instantiates a new AddDomainConfig200ResponseAnyOf object +// NewAddDomainConfigResponseAnyOfWithDefaults instantiates a new AddDomainConfigResponseAnyOf object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewAddDomainConfig200ResponseAnyOfWithDefaults() *AddDomainConfig200ResponseAnyOf { - this := AddDomainConfig200ResponseAnyOf{} +func NewAddDomainConfigResponseAnyOfWithDefaults() *AddDomainConfigResponseAnyOf { + this := AddDomainConfigResponseAnyOf{} return &this } // GetConfiguration returns the Configuration field value // If the value is explicit nil, the zero value for interface{} will be returned -func (o *AddDomainConfig200ResponseAnyOf) GetConfiguration() interface{} { +func (o *AddDomainConfigResponseAnyOf) GetConfiguration() interface{} { if o == nil { var ret interface{} return ret @@ -60,7 +60,7 @@ func (o *AddDomainConfig200ResponseAnyOf) GetConfiguration() interface{} { // GetConfigurationOk returns a tuple with the Configuration field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AddDomainConfig200ResponseAnyOf) GetConfigurationOk() (*interface{}, bool) { +func (o *AddDomainConfigResponseAnyOf) GetConfigurationOk() (*interface{}, bool) { if o == nil || IsNil(o.Configuration) { return nil, false } @@ -68,13 +68,13 @@ func (o *AddDomainConfig200ResponseAnyOf) GetConfigurationOk() (*interface{}, bo } // SetConfiguration sets field value -func (o *AddDomainConfig200ResponseAnyOf) SetConfiguration(v interface{}) { +func (o *AddDomainConfigResponseAnyOf) SetConfiguration(v interface{}) { o.Configuration = v } // GetStatus returns the Status field value // If the value is explicit nil, the zero value for interface{} will be returned -func (o *AddDomainConfig200ResponseAnyOf) GetStatus() interface{} { +func (o *AddDomainConfigResponseAnyOf) GetStatus() interface{} { if o == nil { var ret interface{} return ret @@ -86,7 +86,7 @@ func (o *AddDomainConfig200ResponseAnyOf) GetStatus() interface{} { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AddDomainConfig200ResponseAnyOf) GetStatusOk() (*interface{}, bool) { +func (o *AddDomainConfigResponseAnyOf) GetStatusOk() (*interface{}, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -94,11 +94,11 @@ func (o *AddDomainConfig200ResponseAnyOf) GetStatusOk() (*interface{}, bool) { } // SetStatus sets field value -func (o *AddDomainConfig200ResponseAnyOf) SetStatus(v interface{}) { +func (o *AddDomainConfigResponseAnyOf) SetStatus(v interface{}) { o.Status = v } -func (o AddDomainConfig200ResponseAnyOf) MarshalJSON() ([]byte, error) { +func (o AddDomainConfigResponseAnyOf) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err @@ -106,7 +106,7 @@ func (o AddDomainConfig200ResponseAnyOf) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o AddDomainConfig200ResponseAnyOf) ToMap() (map[string]interface{}, error) { +func (o AddDomainConfigResponseAnyOf) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if o.Configuration != nil { toSerialize["configuration"] = o.Configuration @@ -117,7 +117,7 @@ func (o AddDomainConfig200ResponseAnyOf) ToMap() (map[string]interface{}, error) return toSerialize, nil } -func (o *AddDomainConfig200ResponseAnyOf) UnmarshalJSON(data []byte) (err error) { +func (o *AddDomainConfigResponseAnyOf) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. @@ -140,53 +140,53 @@ func (o *AddDomainConfig200ResponseAnyOf) UnmarshalJSON(data []byte) (err error) } } - varAddDomainConfig200ResponseAnyOf := _AddDomainConfig200ResponseAnyOf{} + varAddDomainConfigResponseAnyOf := _AddDomainConfigResponseAnyOf{} decoder := json.NewDecoder(bytes.NewReader(data)) decoder.DisallowUnknownFields() - err = decoder.Decode(&varAddDomainConfig200ResponseAnyOf) + err = decoder.Decode(&varAddDomainConfigResponseAnyOf) if err != nil { return err } - *o = AddDomainConfig200ResponseAnyOf(varAddDomainConfig200ResponseAnyOf) + *o = AddDomainConfigResponseAnyOf(varAddDomainConfigResponseAnyOf) return err } -type NullableAddDomainConfig200ResponseAnyOf struct { - value *AddDomainConfig200ResponseAnyOf +type NullableAddDomainConfigResponseAnyOf struct { + value *AddDomainConfigResponseAnyOf isSet bool } -func (v NullableAddDomainConfig200ResponseAnyOf) Get() *AddDomainConfig200ResponseAnyOf { +func (v NullableAddDomainConfigResponseAnyOf) Get() *AddDomainConfigResponseAnyOf { return v.value } -func (v *NullableAddDomainConfig200ResponseAnyOf) Set(val *AddDomainConfig200ResponseAnyOf) { +func (v *NullableAddDomainConfigResponseAnyOf) Set(val *AddDomainConfigResponseAnyOf) { v.value = val v.isSet = true } -func (v NullableAddDomainConfig200ResponseAnyOf) IsSet() bool { +func (v NullableAddDomainConfigResponseAnyOf) IsSet() bool { return v.isSet } -func (v *NullableAddDomainConfig200ResponseAnyOf) Unset() { +func (v *NullableAddDomainConfigResponseAnyOf) Unset() { v.value = nil v.isSet = false } -func NewNullableAddDomainConfig200ResponseAnyOf(val *AddDomainConfig200ResponseAnyOf) *NullableAddDomainConfig200ResponseAnyOf { - return &NullableAddDomainConfig200ResponseAnyOf{value: val, isSet: true} +func NewNullableAddDomainConfigResponseAnyOf(val *AddDomainConfigResponseAnyOf) *NullableAddDomainConfigResponseAnyOf { + return &NullableAddDomainConfigResponseAnyOf{value: val, isSet: true} } -func (v NullableAddDomainConfig200ResponseAnyOf) MarshalJSON() ([]byte, error) { +func (v NullableAddDomainConfigResponseAnyOf) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableAddDomainConfig200ResponseAnyOf) UnmarshalJSON(src []byte) error { +func (v *NullableAddDomainConfigResponseAnyOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/client/model_add_hash_tags_bulk_200_response.go b/client/model_add_hash_tags_bulk_200_response.go deleted file mode 100644 index 43b3ab7..0000000 --- a/client/model_add_hash_tags_bulk_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// AddHashTagsBulk200Response struct for AddHashTagsBulk200Response -type AddHashTagsBulk200Response struct { - APIError *APIError - BulkCreateHashTagsResponse *BulkCreateHashTagsResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *AddHashTagsBulk200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into BulkCreateHashTagsResponse - err = json.Unmarshal(data, &dst.BulkCreateHashTagsResponse); - if err == nil { - jsonBulkCreateHashTagsResponse, _ := json.Marshal(dst.BulkCreateHashTagsResponse) - if string(jsonBulkCreateHashTagsResponse) == "{}" { // empty struct - dst.BulkCreateHashTagsResponse = nil - } else { - return nil // data stored in dst.BulkCreateHashTagsResponse, return on the first match - } - } else { - dst.BulkCreateHashTagsResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(AddHashTagsBulk200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src AddHashTagsBulk200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.BulkCreateHashTagsResponse != nil { - return json.Marshal(&src.BulkCreateHashTagsResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableAddHashTagsBulk200Response struct { - value *AddHashTagsBulk200Response - isSet bool -} - -func (v NullableAddHashTagsBulk200Response) Get() *AddHashTagsBulk200Response { - return v.value -} - -func (v *NullableAddHashTagsBulk200Response) Set(val *AddHashTagsBulk200Response) { - v.value = val - v.isSet = true -} - -func (v NullableAddHashTagsBulk200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableAddHashTagsBulk200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAddHashTagsBulk200Response(val *AddHashTagsBulk200Response) *NullableAddHashTagsBulk200Response { - return &NullableAddHashTagsBulk200Response{value: val, isSet: true} -} - -func (v NullableAddHashTagsBulk200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAddHashTagsBulk200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_adjust_comment_votes_params.go b/client/model_adjust_comment_votes_params.go new file mode 100644 index 0000000..1fdcbff --- /dev/null +++ b/client/model_adjust_comment_votes_params.go @@ -0,0 +1,158 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the AdjustCommentVotesParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AdjustCommentVotesParams{} + +// AdjustCommentVotesParams struct for AdjustCommentVotesParams +type AdjustCommentVotesParams struct { + AdjustVoteAmount float64 `json:"adjustVoteAmount"` +} + +type _AdjustCommentVotesParams AdjustCommentVotesParams + +// NewAdjustCommentVotesParams instantiates a new AdjustCommentVotesParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAdjustCommentVotesParams(adjustVoteAmount float64) *AdjustCommentVotesParams { + this := AdjustCommentVotesParams{} + this.AdjustVoteAmount = adjustVoteAmount + return &this +} + +// NewAdjustCommentVotesParamsWithDefaults instantiates a new AdjustCommentVotesParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAdjustCommentVotesParamsWithDefaults() *AdjustCommentVotesParams { + this := AdjustCommentVotesParams{} + return &this +} + +// GetAdjustVoteAmount returns the AdjustVoteAmount field value +func (o *AdjustCommentVotesParams) GetAdjustVoteAmount() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.AdjustVoteAmount +} + +// GetAdjustVoteAmountOk returns a tuple with the AdjustVoteAmount field value +// and a boolean to check if the value has been set. +func (o *AdjustCommentVotesParams) GetAdjustVoteAmountOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.AdjustVoteAmount, true +} + +// SetAdjustVoteAmount sets field value +func (o *AdjustCommentVotesParams) SetAdjustVoteAmount(v float64) { + o.AdjustVoteAmount = v +} + +func (o AdjustCommentVotesParams) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AdjustCommentVotesParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["adjustVoteAmount"] = o.AdjustVoteAmount + return toSerialize, nil +} + +func (o *AdjustCommentVotesParams) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "adjustVoteAmount", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAdjustCommentVotesParams := _AdjustCommentVotesParams{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAdjustCommentVotesParams) + + if err != nil { + return err + } + + *o = AdjustCommentVotesParams(varAdjustCommentVotesParams) + + return err +} + +type NullableAdjustCommentVotesParams struct { + value *AdjustCommentVotesParams + isSet bool +} + +func (v NullableAdjustCommentVotesParams) Get() *AdjustCommentVotesParams { + return v.value +} + +func (v *NullableAdjustCommentVotesParams) Set(val *AdjustCommentVotesParams) { + v.value = val + v.isSet = true +} + +func (v NullableAdjustCommentVotesParams) IsSet() bool { + return v.isSet +} + +func (v *NullableAdjustCommentVotesParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAdjustCommentVotesParams(val *AdjustCommentVotesParams) *NullableAdjustCommentVotesParams { + return &NullableAdjustCommentVotesParams{value: val, isSet: true} +} + +func (v NullableAdjustCommentVotesParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAdjustCommentVotesParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_adjust_votes_response.go b/client/model_adjust_votes_response.go new file mode 100644 index 0000000..f6857af --- /dev/null +++ b/client/model_adjust_votes_response.go @@ -0,0 +1,186 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the AdjustVotesResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AdjustVotesResponse{} + +// AdjustVotesResponse struct for AdjustVotesResponse +type AdjustVotesResponse struct { + Status string `json:"status"` + NewCommentVotes int32 `json:"newCommentVotes"` +} + +type _AdjustVotesResponse AdjustVotesResponse + +// NewAdjustVotesResponse instantiates a new AdjustVotesResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAdjustVotesResponse(status string, newCommentVotes int32) *AdjustVotesResponse { + this := AdjustVotesResponse{} + this.Status = status + this.NewCommentVotes = newCommentVotes + return &this +} + +// NewAdjustVotesResponseWithDefaults instantiates a new AdjustVotesResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAdjustVotesResponseWithDefaults() *AdjustVotesResponse { + this := AdjustVotesResponse{} + return &this +} + +// GetStatus returns the Status field value +func (o *AdjustVotesResponse) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *AdjustVotesResponse) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *AdjustVotesResponse) SetStatus(v string) { + o.Status = v +} + +// GetNewCommentVotes returns the NewCommentVotes field value +func (o *AdjustVotesResponse) GetNewCommentVotes() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.NewCommentVotes +} + +// GetNewCommentVotesOk returns a tuple with the NewCommentVotes field value +// and a boolean to check if the value has been set. +func (o *AdjustVotesResponse) GetNewCommentVotesOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.NewCommentVotes, true +} + +// SetNewCommentVotes sets field value +func (o *AdjustVotesResponse) SetNewCommentVotes(v int32) { + o.NewCommentVotes = v +} + +func (o AdjustVotesResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AdjustVotesResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["status"] = o.Status + toSerialize["newCommentVotes"] = o.NewCommentVotes + return toSerialize, nil +} + +func (o *AdjustVotesResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "status", + "newCommentVotes", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAdjustVotesResponse := _AdjustVotesResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAdjustVotesResponse) + + if err != nil { + return err + } + + *o = AdjustVotesResponse(varAdjustVotesResponse) + + return err +} + +type NullableAdjustVotesResponse struct { + value *AdjustVotesResponse + isSet bool +} + +func (v NullableAdjustVotesResponse) Get() *AdjustVotesResponse { + return v.value +} + +func (v *NullableAdjustVotesResponse) Set(val *AdjustVotesResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAdjustVotesResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAdjustVotesResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAdjustVotesResponse(val *AdjustVotesResponse) *NullableAdjustVotesResponse { + return &NullableAdjustVotesResponse{value: val, isSet: true} +} + +func (v NullableAdjustVotesResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAdjustVotesResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_aggregate_question_results_200_response.go b/client/model_aggregate_question_results_200_response.go deleted file mode 100644 index d49773e..0000000 --- a/client/model_aggregate_question_results_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// AggregateQuestionResults200Response struct for AggregateQuestionResults200Response -type AggregateQuestionResults200Response struct { - APIError *APIError - AggregateQuestionResultsResponse *AggregateQuestionResultsResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *AggregateQuestionResults200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into AggregateQuestionResultsResponse - err = json.Unmarshal(data, &dst.AggregateQuestionResultsResponse); - if err == nil { - jsonAggregateQuestionResultsResponse, _ := json.Marshal(dst.AggregateQuestionResultsResponse) - if string(jsonAggregateQuestionResultsResponse) == "{}" { // empty struct - dst.AggregateQuestionResultsResponse = nil - } else { - return nil // data stored in dst.AggregateQuestionResultsResponse, return on the first match - } - } else { - dst.AggregateQuestionResultsResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(AggregateQuestionResults200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src AggregateQuestionResults200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.AggregateQuestionResultsResponse != nil { - return json.Marshal(&src.AggregateQuestionResultsResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableAggregateQuestionResults200Response struct { - value *AggregateQuestionResults200Response - isSet bool -} - -func (v NullableAggregateQuestionResults200Response) Get() *AggregateQuestionResults200Response { - return v.value -} - -func (v *NullableAggregateQuestionResults200Response) Set(val *AggregateQuestionResults200Response) { - v.value = val - v.isSet = true -} - -func (v NullableAggregateQuestionResults200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableAggregateQuestionResults200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAggregateQuestionResults200Response(val *AggregateQuestionResults200Response) *NullableAggregateQuestionResults200Response { - return &NullableAggregateQuestionResults200Response{value: val, isSet: true} -} - -func (v NullableAggregateQuestionResults200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAggregateQuestionResults200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_aggregate_response.go b/client/model_aggregate_response.go new file mode 100644 index 0000000..96b258c --- /dev/null +++ b/client/model_aggregate_response.go @@ -0,0 +1,107 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "fmt" +) + + +// AggregateResponse struct for AggregateResponse +type AggregateResponse struct { + AggregationAPIError *AggregationAPIError + AggregationResponse *AggregationResponse +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *AggregateResponse) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into AggregationAPIError + err = json.Unmarshal(data, &dst.AggregationAPIError); + if err == nil { + jsonAggregationAPIError, _ := json.Marshal(dst.AggregationAPIError) + if string(jsonAggregationAPIError) == "{}" { // empty struct + dst.AggregationAPIError = nil + } else { + return nil // data stored in dst.AggregationAPIError, return on the first match + } + } else { + dst.AggregationAPIError = nil + } + + // try to unmarshal JSON data into AggregationResponse + err = json.Unmarshal(data, &dst.AggregationResponse); + if err == nil { + jsonAggregationResponse, _ := json.Marshal(dst.AggregationResponse) + if string(jsonAggregationResponse) == "{}" { // empty struct + dst.AggregationResponse = nil + } else { + return nil // data stored in dst.AggregationResponse, return on the first match + } + } else { + dst.AggregationResponse = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(AggregateResponse)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src AggregateResponse) MarshalJSON() ([]byte, error) { + if src.AggregationAPIError != nil { + return json.Marshal(&src.AggregationAPIError) + } + + if src.AggregationResponse != nil { + return json.Marshal(&src.AggregationResponse) + } + + return nil, nil // no data in anyOf schemas +} + + +type NullableAggregateResponse struct { + value *AggregateResponse + isSet bool +} + +func (v NullableAggregateResponse) Get() *AggregateResponse { + return v.value +} + +func (v *NullableAggregateResponse) Set(val *AggregateResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAggregateResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAggregateResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAggregateResponse(val *AggregateResponse) *NullableAggregateResponse { + return &NullableAggregateResponse{value: val, isSet: true} +} + +func (v NullableAggregateResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAggregateResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_aggregation_api_error.go b/client/model_aggregation_api_error.go new file mode 100644 index 0000000..8571e4e --- /dev/null +++ b/client/model_aggregation_api_error.go @@ -0,0 +1,250 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the AggregationAPIError type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AggregationAPIError{} + +// AggregationAPIError struct for AggregationAPIError +type AggregationAPIError struct { + Status APIStatus `json:"status"` + Reason string `json:"reason"` + Code string `json:"code"` + ValidResourceNames []string `json:"validResourceNames,omitempty"` +} + +type _AggregationAPIError AggregationAPIError + +// NewAggregationAPIError instantiates a new AggregationAPIError object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAggregationAPIError(status APIStatus, reason string, code string) *AggregationAPIError { + this := AggregationAPIError{} + this.Status = status + this.Reason = reason + this.Code = code + return &this +} + +// NewAggregationAPIErrorWithDefaults instantiates a new AggregationAPIError object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAggregationAPIErrorWithDefaults() *AggregationAPIError { + this := AggregationAPIError{} + return &this +} + +// GetStatus returns the Status field value +func (o *AggregationAPIError) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *AggregationAPIError) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *AggregationAPIError) SetStatus(v APIStatus) { + o.Status = v +} + +// GetReason returns the Reason field value +func (o *AggregationAPIError) GetReason() string { + if o == nil { + var ret string + return ret + } + + return o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value +// and a boolean to check if the value has been set. +func (o *AggregationAPIError) GetReasonOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Reason, true +} + +// SetReason sets field value +func (o *AggregationAPIError) SetReason(v string) { + o.Reason = v +} + +// GetCode returns the Code field value +func (o *AggregationAPIError) GetCode() string { + if o == nil { + var ret string + return ret + } + + return o.Code +} + +// GetCodeOk returns a tuple with the Code field value +// and a boolean to check if the value has been set. +func (o *AggregationAPIError) GetCodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Code, true +} + +// SetCode sets field value +func (o *AggregationAPIError) SetCode(v string) { + o.Code = v +} + +// GetValidResourceNames returns the ValidResourceNames field value if set, zero value otherwise. +func (o *AggregationAPIError) GetValidResourceNames() []string { + if o == nil || IsNil(o.ValidResourceNames) { + var ret []string + return ret + } + return o.ValidResourceNames +} + +// GetValidResourceNamesOk returns a tuple with the ValidResourceNames field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AggregationAPIError) GetValidResourceNamesOk() ([]string, bool) { + if o == nil || IsNil(o.ValidResourceNames) { + return nil, false + } + return o.ValidResourceNames, true +} + +// HasValidResourceNames returns a boolean if a field has been set. +func (o *AggregationAPIError) HasValidResourceNames() bool { + if o != nil && !IsNil(o.ValidResourceNames) { + return true + } + + return false +} + +// SetValidResourceNames gets a reference to the given []string and assigns it to the ValidResourceNames field. +func (o *AggregationAPIError) SetValidResourceNames(v []string) { + o.ValidResourceNames = v +} + +func (o AggregationAPIError) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AggregationAPIError) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["status"] = o.Status + toSerialize["reason"] = o.Reason + toSerialize["code"] = o.Code + if !IsNil(o.ValidResourceNames) { + toSerialize["validResourceNames"] = o.ValidResourceNames + } + return toSerialize, nil +} + +func (o *AggregationAPIError) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "status", + "reason", + "code", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAggregationAPIError := _AggregationAPIError{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAggregationAPIError) + + if err != nil { + return err + } + + *o = AggregationAPIError(varAggregationAPIError) + + return err +} + +type NullableAggregationAPIError struct { + value *AggregationAPIError + isSet bool +} + +func (v NullableAggregationAPIError) Get() *AggregationAPIError { + return v.value +} + +func (v *NullableAggregationAPIError) Set(val *AggregationAPIError) { + v.value = val + v.isSet = true +} + +func (v NullableAggregationAPIError) IsSet() bool { + return v.isSet +} + +func (v *NullableAggregationAPIError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAggregationAPIError(val *AggregationAPIError) *NullableAggregationAPIError { + return &NullableAggregationAPIError{value: val, isSet: true} +} + +func (v NullableAggregationAPIError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAggregationAPIError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_api_ban_user_change_log.go b/client/model_api_ban_user_change_log.go new file mode 100644 index 0000000..b62f32a --- /dev/null +++ b/client/model_api_ban_user_change_log.go @@ -0,0 +1,234 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" +) + +// checks if the APIBanUserChangeLog type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &APIBanUserChangeLog{} + +// APIBanUserChangeLog struct for APIBanUserChangeLog +type APIBanUserChangeLog struct { + CreatedBannedUserId *string `json:"createdBannedUserId,omitempty"` + UpdatedBannedUserId *string `json:"updatedBannedUserId,omitempty"` + DeletedBannedUsers []APIBannedUser `json:"deletedBannedUsers,omitempty"` + ChangedValuesBefore *APIBanUserChangedValues `json:"changedValuesBefore,omitempty"` +} + +// NewAPIBanUserChangeLog instantiates a new APIBanUserChangeLog object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAPIBanUserChangeLog() *APIBanUserChangeLog { + this := APIBanUserChangeLog{} + return &this +} + +// NewAPIBanUserChangeLogWithDefaults instantiates a new APIBanUserChangeLog object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAPIBanUserChangeLogWithDefaults() *APIBanUserChangeLog { + this := APIBanUserChangeLog{} + return &this +} + +// GetCreatedBannedUserId returns the CreatedBannedUserId field value if set, zero value otherwise. +func (o *APIBanUserChangeLog) GetCreatedBannedUserId() string { + if o == nil || IsNil(o.CreatedBannedUserId) { + var ret string + return ret + } + return *o.CreatedBannedUserId +} + +// GetCreatedBannedUserIdOk returns a tuple with the CreatedBannedUserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APIBanUserChangeLog) GetCreatedBannedUserIdOk() (*string, bool) { + if o == nil || IsNil(o.CreatedBannedUserId) { + return nil, false + } + return o.CreatedBannedUserId, true +} + +// HasCreatedBannedUserId returns a boolean if a field has been set. +func (o *APIBanUserChangeLog) HasCreatedBannedUserId() bool { + if o != nil && !IsNil(o.CreatedBannedUserId) { + return true + } + + return false +} + +// SetCreatedBannedUserId gets a reference to the given string and assigns it to the CreatedBannedUserId field. +func (o *APIBanUserChangeLog) SetCreatedBannedUserId(v string) { + o.CreatedBannedUserId = &v +} + +// GetUpdatedBannedUserId returns the UpdatedBannedUserId field value if set, zero value otherwise. +func (o *APIBanUserChangeLog) GetUpdatedBannedUserId() string { + if o == nil || IsNil(o.UpdatedBannedUserId) { + var ret string + return ret + } + return *o.UpdatedBannedUserId +} + +// GetUpdatedBannedUserIdOk returns a tuple with the UpdatedBannedUserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APIBanUserChangeLog) GetUpdatedBannedUserIdOk() (*string, bool) { + if o == nil || IsNil(o.UpdatedBannedUserId) { + return nil, false + } + return o.UpdatedBannedUserId, true +} + +// HasUpdatedBannedUserId returns a boolean if a field has been set. +func (o *APIBanUserChangeLog) HasUpdatedBannedUserId() bool { + if o != nil && !IsNil(o.UpdatedBannedUserId) { + return true + } + + return false +} + +// SetUpdatedBannedUserId gets a reference to the given string and assigns it to the UpdatedBannedUserId field. +func (o *APIBanUserChangeLog) SetUpdatedBannedUserId(v string) { + o.UpdatedBannedUserId = &v +} + +// GetDeletedBannedUsers returns the DeletedBannedUsers field value if set, zero value otherwise. +func (o *APIBanUserChangeLog) GetDeletedBannedUsers() []APIBannedUser { + if o == nil || IsNil(o.DeletedBannedUsers) { + var ret []APIBannedUser + return ret + } + return o.DeletedBannedUsers +} + +// GetDeletedBannedUsersOk returns a tuple with the DeletedBannedUsers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APIBanUserChangeLog) GetDeletedBannedUsersOk() ([]APIBannedUser, bool) { + if o == nil || IsNil(o.DeletedBannedUsers) { + return nil, false + } + return o.DeletedBannedUsers, true +} + +// HasDeletedBannedUsers returns a boolean if a field has been set. +func (o *APIBanUserChangeLog) HasDeletedBannedUsers() bool { + if o != nil && !IsNil(o.DeletedBannedUsers) { + return true + } + + return false +} + +// SetDeletedBannedUsers gets a reference to the given []APIBannedUser and assigns it to the DeletedBannedUsers field. +func (o *APIBanUserChangeLog) SetDeletedBannedUsers(v []APIBannedUser) { + o.DeletedBannedUsers = v +} + +// GetChangedValuesBefore returns the ChangedValuesBefore field value if set, zero value otherwise. +func (o *APIBanUserChangeLog) GetChangedValuesBefore() APIBanUserChangedValues { + if o == nil || IsNil(o.ChangedValuesBefore) { + var ret APIBanUserChangedValues + return ret + } + return *o.ChangedValuesBefore +} + +// GetChangedValuesBeforeOk returns a tuple with the ChangedValuesBefore field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APIBanUserChangeLog) GetChangedValuesBeforeOk() (*APIBanUserChangedValues, bool) { + if o == nil || IsNil(o.ChangedValuesBefore) { + return nil, false + } + return o.ChangedValuesBefore, true +} + +// HasChangedValuesBefore returns a boolean if a field has been set. +func (o *APIBanUserChangeLog) HasChangedValuesBefore() bool { + if o != nil && !IsNil(o.ChangedValuesBefore) { + return true + } + + return false +} + +// SetChangedValuesBefore gets a reference to the given APIBanUserChangedValues and assigns it to the ChangedValuesBefore field. +func (o *APIBanUserChangeLog) SetChangedValuesBefore(v APIBanUserChangedValues) { + o.ChangedValuesBefore = &v +} + +func (o APIBanUserChangeLog) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o APIBanUserChangeLog) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CreatedBannedUserId) { + toSerialize["createdBannedUserId"] = o.CreatedBannedUserId + } + if !IsNil(o.UpdatedBannedUserId) { + toSerialize["updatedBannedUserId"] = o.UpdatedBannedUserId + } + if !IsNil(o.DeletedBannedUsers) { + toSerialize["deletedBannedUsers"] = o.DeletedBannedUsers + } + if !IsNil(o.ChangedValuesBefore) { + toSerialize["changedValuesBefore"] = o.ChangedValuesBefore + } + return toSerialize, nil +} + +type NullableAPIBanUserChangeLog struct { + value *APIBanUserChangeLog + isSet bool +} + +func (v NullableAPIBanUserChangeLog) Get() *APIBanUserChangeLog { + return v.value +} + +func (v *NullableAPIBanUserChangeLog) Set(val *APIBanUserChangeLog) { + v.value = val + v.isSet = true +} + +func (v NullableAPIBanUserChangeLog) IsSet() bool { + return v.isSet +} + +func (v *NullableAPIBanUserChangeLog) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAPIBanUserChangeLog(val *APIBanUserChangeLog) *NullableAPIBanUserChangeLog { + return &NullableAPIBanUserChangeLog{value: val, isSet: true} +} + +func (v NullableAPIBanUserChangeLog) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAPIBanUserChangeLog) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_api_ban_user_changed_values.go b/client/model_api_ban_user_changed_values.go new file mode 100644 index 0000000..1b0184f --- /dev/null +++ b/client/model_api_ban_user_changed_values.go @@ -0,0 +1,609 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "time" +) + +// checks if the APIBanUserChangedValues type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &APIBanUserChangedValues{} + +// APIBanUserChangedValues struct for APIBanUserChangedValues +type APIBanUserChangedValues struct { + Id *string `json:"_id,omitempty"` + TenantId *string `json:"tenantId,omitempty"` + UserId NullableString `json:"userId,omitempty"` + Email NullableString `json:"email,omitempty"` + Username NullableString `json:"username,omitempty"` + IpHash NullableString `json:"ipHash,omitempty"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + BannedByUserId *string `json:"bannedByUserId,omitempty"` + BannedCommentText *string `json:"bannedCommentText,omitempty"` + BanType *string `json:"banType,omitempty"` + BannedUntil NullableTime `json:"bannedUntil,omitempty"` + HasEmailWildcard *bool `json:"hasEmailWildcard,omitempty"` + BanReason *string `json:"banReason,omitempty"` +} + +// NewAPIBanUserChangedValues instantiates a new APIBanUserChangedValues object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAPIBanUserChangedValues() *APIBanUserChangedValues { + this := APIBanUserChangedValues{} + return &this +} + +// NewAPIBanUserChangedValuesWithDefaults instantiates a new APIBanUserChangedValues object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAPIBanUserChangedValuesWithDefaults() *APIBanUserChangedValues { + this := APIBanUserChangedValues{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *APIBanUserChangedValues) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APIBanUserChangedValues) GetIdOk() (*string, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *APIBanUserChangedValues) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *APIBanUserChangedValues) SetId(v string) { + o.Id = &v +} + +// GetTenantId returns the TenantId field value if set, zero value otherwise. +func (o *APIBanUserChangedValues) GetTenantId() string { + if o == nil || IsNil(o.TenantId) { + var ret string + return ret + } + return *o.TenantId +} + +// GetTenantIdOk returns a tuple with the TenantId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APIBanUserChangedValues) GetTenantIdOk() (*string, bool) { + if o == nil || IsNil(o.TenantId) { + return nil, false + } + return o.TenantId, true +} + +// HasTenantId returns a boolean if a field has been set. +func (o *APIBanUserChangedValues) HasTenantId() bool { + if o != nil && !IsNil(o.TenantId) { + return true + } + + return false +} + +// SetTenantId gets a reference to the given string and assigns it to the TenantId field. +func (o *APIBanUserChangedValues) SetTenantId(v string) { + o.TenantId = &v +} + +// GetUserId returns the UserId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIBanUserChangedValues) GetUserId() string { + if o == nil || IsNil(o.UserId.Get()) { + var ret string + return ret + } + return *o.UserId.Get() +} + +// GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIBanUserChangedValues) GetUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.UserId.Get(), o.UserId.IsSet() +} + +// HasUserId returns a boolean if a field has been set. +func (o *APIBanUserChangedValues) HasUserId() bool { + if o != nil && o.UserId.IsSet() { + return true + } + + return false +} + +// SetUserId gets a reference to the given NullableString and assigns it to the UserId field. +func (o *APIBanUserChangedValues) SetUserId(v string) { + o.UserId.Set(&v) +} +// SetUserIdNil sets the value for UserId to be an explicit nil +func (o *APIBanUserChangedValues) SetUserIdNil() { + o.UserId.Set(nil) +} + +// UnsetUserId ensures that no value is present for UserId, not even an explicit nil +func (o *APIBanUserChangedValues) UnsetUserId() { + o.UserId.Unset() +} + +// GetEmail returns the Email field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIBanUserChangedValues) GetEmail() string { + if o == nil || IsNil(o.Email.Get()) { + var ret string + return ret + } + return *o.Email.Get() +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIBanUserChangedValues) GetEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Email.Get(), o.Email.IsSet() +} + +// HasEmail returns a boolean if a field has been set. +func (o *APIBanUserChangedValues) HasEmail() bool { + if o != nil && o.Email.IsSet() { + return true + } + + return false +} + +// SetEmail gets a reference to the given NullableString and assigns it to the Email field. +func (o *APIBanUserChangedValues) SetEmail(v string) { + o.Email.Set(&v) +} +// SetEmailNil sets the value for Email to be an explicit nil +func (o *APIBanUserChangedValues) SetEmailNil() { + o.Email.Set(nil) +} + +// UnsetEmail ensures that no value is present for Email, not even an explicit nil +func (o *APIBanUserChangedValues) UnsetEmail() { + o.Email.Unset() +} + +// GetUsername returns the Username field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIBanUserChangedValues) GetUsername() string { + if o == nil || IsNil(o.Username.Get()) { + var ret string + return ret + } + return *o.Username.Get() +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIBanUserChangedValues) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Username.Get(), o.Username.IsSet() +} + +// HasUsername returns a boolean if a field has been set. +func (o *APIBanUserChangedValues) HasUsername() bool { + if o != nil && o.Username.IsSet() { + return true + } + + return false +} + +// SetUsername gets a reference to the given NullableString and assigns it to the Username field. +func (o *APIBanUserChangedValues) SetUsername(v string) { + o.Username.Set(&v) +} +// SetUsernameNil sets the value for Username to be an explicit nil +func (o *APIBanUserChangedValues) SetUsernameNil() { + o.Username.Set(nil) +} + +// UnsetUsername ensures that no value is present for Username, not even an explicit nil +func (o *APIBanUserChangedValues) UnsetUsername() { + o.Username.Unset() +} + +// GetIpHash returns the IpHash field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIBanUserChangedValues) GetIpHash() string { + if o == nil || IsNil(o.IpHash.Get()) { + var ret string + return ret + } + return *o.IpHash.Get() +} + +// GetIpHashOk returns a tuple with the IpHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIBanUserChangedValues) GetIpHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IpHash.Get(), o.IpHash.IsSet() +} + +// HasIpHash returns a boolean if a field has been set. +func (o *APIBanUserChangedValues) HasIpHash() bool { + if o != nil && o.IpHash.IsSet() { + return true + } + + return false +} + +// SetIpHash gets a reference to the given NullableString and assigns it to the IpHash field. +func (o *APIBanUserChangedValues) SetIpHash(v string) { + o.IpHash.Set(&v) +} +// SetIpHashNil sets the value for IpHash to be an explicit nil +func (o *APIBanUserChangedValues) SetIpHashNil() { + o.IpHash.Set(nil) +} + +// UnsetIpHash ensures that no value is present for IpHash, not even an explicit nil +func (o *APIBanUserChangedValues) UnsetIpHash() { + o.IpHash.Unset() +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *APIBanUserChangedValues) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APIBanUserChangedValues) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *APIBanUserChangedValues) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *APIBanUserChangedValues) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetBannedByUserId returns the BannedByUserId field value if set, zero value otherwise. +func (o *APIBanUserChangedValues) GetBannedByUserId() string { + if o == nil || IsNil(o.BannedByUserId) { + var ret string + return ret + } + return *o.BannedByUserId +} + +// GetBannedByUserIdOk returns a tuple with the BannedByUserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APIBanUserChangedValues) GetBannedByUserIdOk() (*string, bool) { + if o == nil || IsNil(o.BannedByUserId) { + return nil, false + } + return o.BannedByUserId, true +} + +// HasBannedByUserId returns a boolean if a field has been set. +func (o *APIBanUserChangedValues) HasBannedByUserId() bool { + if o != nil && !IsNil(o.BannedByUserId) { + return true + } + + return false +} + +// SetBannedByUserId gets a reference to the given string and assigns it to the BannedByUserId field. +func (o *APIBanUserChangedValues) SetBannedByUserId(v string) { + o.BannedByUserId = &v +} + +// GetBannedCommentText returns the BannedCommentText field value if set, zero value otherwise. +func (o *APIBanUserChangedValues) GetBannedCommentText() string { + if o == nil || IsNil(o.BannedCommentText) { + var ret string + return ret + } + return *o.BannedCommentText +} + +// GetBannedCommentTextOk returns a tuple with the BannedCommentText field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APIBanUserChangedValues) GetBannedCommentTextOk() (*string, bool) { + if o == nil || IsNil(o.BannedCommentText) { + return nil, false + } + return o.BannedCommentText, true +} + +// HasBannedCommentText returns a boolean if a field has been set. +func (o *APIBanUserChangedValues) HasBannedCommentText() bool { + if o != nil && !IsNil(o.BannedCommentText) { + return true + } + + return false +} + +// SetBannedCommentText gets a reference to the given string and assigns it to the BannedCommentText field. +func (o *APIBanUserChangedValues) SetBannedCommentText(v string) { + o.BannedCommentText = &v +} + +// GetBanType returns the BanType field value if set, zero value otherwise. +func (o *APIBanUserChangedValues) GetBanType() string { + if o == nil || IsNil(o.BanType) { + var ret string + return ret + } + return *o.BanType +} + +// GetBanTypeOk returns a tuple with the BanType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APIBanUserChangedValues) GetBanTypeOk() (*string, bool) { + if o == nil || IsNil(o.BanType) { + return nil, false + } + return o.BanType, true +} + +// HasBanType returns a boolean if a field has been set. +func (o *APIBanUserChangedValues) HasBanType() bool { + if o != nil && !IsNil(o.BanType) { + return true + } + + return false +} + +// SetBanType gets a reference to the given string and assigns it to the BanType field. +func (o *APIBanUserChangedValues) SetBanType(v string) { + o.BanType = &v +} + +// GetBannedUntil returns the BannedUntil field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIBanUserChangedValues) GetBannedUntil() time.Time { + if o == nil || IsNil(o.BannedUntil.Get()) { + var ret time.Time + return ret + } + return *o.BannedUntil.Get() +} + +// GetBannedUntilOk returns a tuple with the BannedUntil field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIBanUserChangedValues) GetBannedUntilOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.BannedUntil.Get(), o.BannedUntil.IsSet() +} + +// HasBannedUntil returns a boolean if a field has been set. +func (o *APIBanUserChangedValues) HasBannedUntil() bool { + if o != nil && o.BannedUntil.IsSet() { + return true + } + + return false +} + +// SetBannedUntil gets a reference to the given NullableTime and assigns it to the BannedUntil field. +func (o *APIBanUserChangedValues) SetBannedUntil(v time.Time) { + o.BannedUntil.Set(&v) +} +// SetBannedUntilNil sets the value for BannedUntil to be an explicit nil +func (o *APIBanUserChangedValues) SetBannedUntilNil() { + o.BannedUntil.Set(nil) +} + +// UnsetBannedUntil ensures that no value is present for BannedUntil, not even an explicit nil +func (o *APIBanUserChangedValues) UnsetBannedUntil() { + o.BannedUntil.Unset() +} + +// GetHasEmailWildcard returns the HasEmailWildcard field value if set, zero value otherwise. +func (o *APIBanUserChangedValues) GetHasEmailWildcard() bool { + if o == nil || IsNil(o.HasEmailWildcard) { + var ret bool + return ret + } + return *o.HasEmailWildcard +} + +// GetHasEmailWildcardOk returns a tuple with the HasEmailWildcard field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APIBanUserChangedValues) GetHasEmailWildcardOk() (*bool, bool) { + if o == nil || IsNil(o.HasEmailWildcard) { + return nil, false + } + return o.HasEmailWildcard, true +} + +// HasHasEmailWildcard returns a boolean if a field has been set. +func (o *APIBanUserChangedValues) HasHasEmailWildcard() bool { + if o != nil && !IsNil(o.HasEmailWildcard) { + return true + } + + return false +} + +// SetHasEmailWildcard gets a reference to the given bool and assigns it to the HasEmailWildcard field. +func (o *APIBanUserChangedValues) SetHasEmailWildcard(v bool) { + o.HasEmailWildcard = &v +} + +// GetBanReason returns the BanReason field value if set, zero value otherwise. +func (o *APIBanUserChangedValues) GetBanReason() string { + if o == nil || IsNil(o.BanReason) { + var ret string + return ret + } + return *o.BanReason +} + +// GetBanReasonOk returns a tuple with the BanReason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APIBanUserChangedValues) GetBanReasonOk() (*string, bool) { + if o == nil || IsNil(o.BanReason) { + return nil, false + } + return o.BanReason, true +} + +// HasBanReason returns a boolean if a field has been set. +func (o *APIBanUserChangedValues) HasBanReason() bool { + if o != nil && !IsNil(o.BanReason) { + return true + } + + return false +} + +// SetBanReason gets a reference to the given string and assigns it to the BanReason field. +func (o *APIBanUserChangedValues) SetBanReason(v string) { + o.BanReason = &v +} + +func (o APIBanUserChangedValues) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o APIBanUserChangedValues) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Id) { + toSerialize["_id"] = o.Id + } + if !IsNil(o.TenantId) { + toSerialize["tenantId"] = o.TenantId + } + if o.UserId.IsSet() { + toSerialize["userId"] = o.UserId.Get() + } + if o.Email.IsSet() { + toSerialize["email"] = o.Email.Get() + } + if o.Username.IsSet() { + toSerialize["username"] = o.Username.Get() + } + if o.IpHash.IsSet() { + toSerialize["ipHash"] = o.IpHash.Get() + } + if !IsNil(o.CreatedAt) { + toSerialize["createdAt"] = o.CreatedAt + } + if !IsNil(o.BannedByUserId) { + toSerialize["bannedByUserId"] = o.BannedByUserId + } + if !IsNil(o.BannedCommentText) { + toSerialize["bannedCommentText"] = o.BannedCommentText + } + if !IsNil(o.BanType) { + toSerialize["banType"] = o.BanType + } + if o.BannedUntil.IsSet() { + toSerialize["bannedUntil"] = o.BannedUntil.Get() + } + if !IsNil(o.HasEmailWildcard) { + toSerialize["hasEmailWildcard"] = o.HasEmailWildcard + } + if !IsNil(o.BanReason) { + toSerialize["banReason"] = o.BanReason + } + return toSerialize, nil +} + +type NullableAPIBanUserChangedValues struct { + value *APIBanUserChangedValues + isSet bool +} + +func (v NullableAPIBanUserChangedValues) Get() *APIBanUserChangedValues { + return v.value +} + +func (v *NullableAPIBanUserChangedValues) Set(val *APIBanUserChangedValues) { + v.value = val + v.isSet = true +} + +func (v NullableAPIBanUserChangedValues) IsSet() bool { + return v.isSet +} + +func (v *NullableAPIBanUserChangedValues) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAPIBanUserChangedValues(val *APIBanUserChangedValues) *NullableAPIBanUserChangedValues { + return &NullableAPIBanUserChangedValues{value: val, isSet: true} +} + +func (v NullableAPIBanUserChangedValues) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAPIBanUserChangedValues) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_api_banned_user.go b/client/model_api_banned_user.go new file mode 100644 index 0000000..8d93075 --- /dev/null +++ b/client/model_api_banned_user.go @@ -0,0 +1,577 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "time" + "bytes" + "fmt" +) + +// checks if the APIBannedUser type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &APIBannedUser{} + +// APIBannedUser struct for APIBannedUser +type APIBannedUser struct { + Id string `json:"_id"` + TenantId string `json:"tenantId"` + UserId NullableString `json:"userId,omitempty"` + Email NullableString `json:"email,omitempty"` + Username NullableString `json:"username,omitempty"` + IpHash NullableString `json:"ipHash,omitempty"` + CreatedAt time.Time `json:"createdAt"` + BannedByUserId string `json:"bannedByUserId"` + BannedCommentText string `json:"bannedCommentText"` + BanType string `json:"banType"` + BannedUntil NullableTime `json:"bannedUntil"` + HasEmailWildcard bool `json:"hasEmailWildcard"` + BanReason *string `json:"banReason,omitempty"` +} + +type _APIBannedUser APIBannedUser + +// NewAPIBannedUser instantiates a new APIBannedUser object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAPIBannedUser(id string, tenantId string, createdAt time.Time, bannedByUserId string, bannedCommentText string, banType string, bannedUntil NullableTime, hasEmailWildcard bool) *APIBannedUser { + this := APIBannedUser{} + this.Id = id + this.TenantId = tenantId + this.CreatedAt = createdAt + this.BannedByUserId = bannedByUserId + this.BannedCommentText = bannedCommentText + this.BanType = banType + this.BannedUntil = bannedUntil + this.HasEmailWildcard = hasEmailWildcard + return &this +} + +// NewAPIBannedUserWithDefaults instantiates a new APIBannedUser object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAPIBannedUserWithDefaults() *APIBannedUser { + this := APIBannedUser{} + return &this +} + +// GetId returns the Id field value +func (o *APIBannedUser) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *APIBannedUser) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *APIBannedUser) SetId(v string) { + o.Id = v +} + +// GetTenantId returns the TenantId field value +func (o *APIBannedUser) GetTenantId() string { + if o == nil { + var ret string + return ret + } + + return o.TenantId +} + +// GetTenantIdOk returns a tuple with the TenantId field value +// and a boolean to check if the value has been set. +func (o *APIBannedUser) GetTenantIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TenantId, true +} + +// SetTenantId sets field value +func (o *APIBannedUser) SetTenantId(v string) { + o.TenantId = v +} + +// GetUserId returns the UserId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIBannedUser) GetUserId() string { + if o == nil || IsNil(o.UserId.Get()) { + var ret string + return ret + } + return *o.UserId.Get() +} + +// GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIBannedUser) GetUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.UserId.Get(), o.UserId.IsSet() +} + +// HasUserId returns a boolean if a field has been set. +func (o *APIBannedUser) HasUserId() bool { + if o != nil && o.UserId.IsSet() { + return true + } + + return false +} + +// SetUserId gets a reference to the given NullableString and assigns it to the UserId field. +func (o *APIBannedUser) SetUserId(v string) { + o.UserId.Set(&v) +} +// SetUserIdNil sets the value for UserId to be an explicit nil +func (o *APIBannedUser) SetUserIdNil() { + o.UserId.Set(nil) +} + +// UnsetUserId ensures that no value is present for UserId, not even an explicit nil +func (o *APIBannedUser) UnsetUserId() { + o.UserId.Unset() +} + +// GetEmail returns the Email field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIBannedUser) GetEmail() string { + if o == nil || IsNil(o.Email.Get()) { + var ret string + return ret + } + return *o.Email.Get() +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIBannedUser) GetEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Email.Get(), o.Email.IsSet() +} + +// HasEmail returns a boolean if a field has been set. +func (o *APIBannedUser) HasEmail() bool { + if o != nil && o.Email.IsSet() { + return true + } + + return false +} + +// SetEmail gets a reference to the given NullableString and assigns it to the Email field. +func (o *APIBannedUser) SetEmail(v string) { + o.Email.Set(&v) +} +// SetEmailNil sets the value for Email to be an explicit nil +func (o *APIBannedUser) SetEmailNil() { + o.Email.Set(nil) +} + +// UnsetEmail ensures that no value is present for Email, not even an explicit nil +func (o *APIBannedUser) UnsetEmail() { + o.Email.Unset() +} + +// GetUsername returns the Username field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIBannedUser) GetUsername() string { + if o == nil || IsNil(o.Username.Get()) { + var ret string + return ret + } + return *o.Username.Get() +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIBannedUser) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Username.Get(), o.Username.IsSet() +} + +// HasUsername returns a boolean if a field has been set. +func (o *APIBannedUser) HasUsername() bool { + if o != nil && o.Username.IsSet() { + return true + } + + return false +} + +// SetUsername gets a reference to the given NullableString and assigns it to the Username field. +func (o *APIBannedUser) SetUsername(v string) { + o.Username.Set(&v) +} +// SetUsernameNil sets the value for Username to be an explicit nil +func (o *APIBannedUser) SetUsernameNil() { + o.Username.Set(nil) +} + +// UnsetUsername ensures that no value is present for Username, not even an explicit nil +func (o *APIBannedUser) UnsetUsername() { + o.Username.Unset() +} + +// GetIpHash returns the IpHash field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIBannedUser) GetIpHash() string { + if o == nil || IsNil(o.IpHash.Get()) { + var ret string + return ret + } + return *o.IpHash.Get() +} + +// GetIpHashOk returns a tuple with the IpHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIBannedUser) GetIpHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IpHash.Get(), o.IpHash.IsSet() +} + +// HasIpHash returns a boolean if a field has been set. +func (o *APIBannedUser) HasIpHash() bool { + if o != nil && o.IpHash.IsSet() { + return true + } + + return false +} + +// SetIpHash gets a reference to the given NullableString and assigns it to the IpHash field. +func (o *APIBannedUser) SetIpHash(v string) { + o.IpHash.Set(&v) +} +// SetIpHashNil sets the value for IpHash to be an explicit nil +func (o *APIBannedUser) SetIpHashNil() { + o.IpHash.Set(nil) +} + +// UnsetIpHash ensures that no value is present for IpHash, not even an explicit nil +func (o *APIBannedUser) UnsetIpHash() { + o.IpHash.Unset() +} + +// GetCreatedAt returns the CreatedAt field value +func (o *APIBannedUser) GetCreatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *APIBannedUser) GetCreatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *APIBannedUser) SetCreatedAt(v time.Time) { + o.CreatedAt = v +} + +// GetBannedByUserId returns the BannedByUserId field value +func (o *APIBannedUser) GetBannedByUserId() string { + if o == nil { + var ret string + return ret + } + + return o.BannedByUserId +} + +// GetBannedByUserIdOk returns a tuple with the BannedByUserId field value +// and a boolean to check if the value has been set. +func (o *APIBannedUser) GetBannedByUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.BannedByUserId, true +} + +// SetBannedByUserId sets field value +func (o *APIBannedUser) SetBannedByUserId(v string) { + o.BannedByUserId = v +} + +// GetBannedCommentText returns the BannedCommentText field value +func (o *APIBannedUser) GetBannedCommentText() string { + if o == nil { + var ret string + return ret + } + + return o.BannedCommentText +} + +// GetBannedCommentTextOk returns a tuple with the BannedCommentText field value +// and a boolean to check if the value has been set. +func (o *APIBannedUser) GetBannedCommentTextOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.BannedCommentText, true +} + +// SetBannedCommentText sets field value +func (o *APIBannedUser) SetBannedCommentText(v string) { + o.BannedCommentText = v +} + +// GetBanType returns the BanType field value +func (o *APIBannedUser) GetBanType() string { + if o == nil { + var ret string + return ret + } + + return o.BanType +} + +// GetBanTypeOk returns a tuple with the BanType field value +// and a boolean to check if the value has been set. +func (o *APIBannedUser) GetBanTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.BanType, true +} + +// SetBanType sets field value +func (o *APIBannedUser) SetBanType(v string) { + o.BanType = v +} + +// GetBannedUntil returns the BannedUntil field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *APIBannedUser) GetBannedUntil() time.Time { + if o == nil || o.BannedUntil.Get() == nil { + var ret time.Time + return ret + } + + return *o.BannedUntil.Get() +} + +// GetBannedUntilOk returns a tuple with the BannedUntil field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIBannedUser) GetBannedUntilOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.BannedUntil.Get(), o.BannedUntil.IsSet() +} + +// SetBannedUntil sets field value +func (o *APIBannedUser) SetBannedUntil(v time.Time) { + o.BannedUntil.Set(&v) +} + +// GetHasEmailWildcard returns the HasEmailWildcard field value +func (o *APIBannedUser) GetHasEmailWildcard() bool { + if o == nil { + var ret bool + return ret + } + + return o.HasEmailWildcard +} + +// GetHasEmailWildcardOk returns a tuple with the HasEmailWildcard field value +// and a boolean to check if the value has been set. +func (o *APIBannedUser) GetHasEmailWildcardOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.HasEmailWildcard, true +} + +// SetHasEmailWildcard sets field value +func (o *APIBannedUser) SetHasEmailWildcard(v bool) { + o.HasEmailWildcard = v +} + +// GetBanReason returns the BanReason field value if set, zero value otherwise. +func (o *APIBannedUser) GetBanReason() string { + if o == nil || IsNil(o.BanReason) { + var ret string + return ret + } + return *o.BanReason +} + +// GetBanReasonOk returns a tuple with the BanReason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APIBannedUser) GetBanReasonOk() (*string, bool) { + if o == nil || IsNil(o.BanReason) { + return nil, false + } + return o.BanReason, true +} + +// HasBanReason returns a boolean if a field has been set. +func (o *APIBannedUser) HasBanReason() bool { + if o != nil && !IsNil(o.BanReason) { + return true + } + + return false +} + +// SetBanReason gets a reference to the given string and assigns it to the BanReason field. +func (o *APIBannedUser) SetBanReason(v string) { + o.BanReason = &v +} + +func (o APIBannedUser) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o APIBannedUser) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["_id"] = o.Id + toSerialize["tenantId"] = o.TenantId + if o.UserId.IsSet() { + toSerialize["userId"] = o.UserId.Get() + } + if o.Email.IsSet() { + toSerialize["email"] = o.Email.Get() + } + if o.Username.IsSet() { + toSerialize["username"] = o.Username.Get() + } + if o.IpHash.IsSet() { + toSerialize["ipHash"] = o.IpHash.Get() + } + toSerialize["createdAt"] = o.CreatedAt + toSerialize["bannedByUserId"] = o.BannedByUserId + toSerialize["bannedCommentText"] = o.BannedCommentText + toSerialize["banType"] = o.BanType + toSerialize["bannedUntil"] = o.BannedUntil.Get() + toSerialize["hasEmailWildcard"] = o.HasEmailWildcard + if !IsNil(o.BanReason) { + toSerialize["banReason"] = o.BanReason + } + return toSerialize, nil +} + +func (o *APIBannedUser) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "_id", + "tenantId", + "createdAt", + "bannedByUserId", + "bannedCommentText", + "banType", + "bannedUntil", + "hasEmailWildcard", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAPIBannedUser := _APIBannedUser{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAPIBannedUser) + + if err != nil { + return err + } + + *o = APIBannedUser(varAPIBannedUser) + + return err +} + +type NullableAPIBannedUser struct { + value *APIBannedUser + isSet bool +} + +func (v NullableAPIBannedUser) Get() *APIBannedUser { + return v.value +} + +func (v *NullableAPIBannedUser) Set(val *APIBannedUser) { + v.value = val + v.isSet = true +} + +func (v NullableAPIBannedUser) IsSet() bool { + return v.isSet +} + +func (v *NullableAPIBannedUser) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAPIBannedUser(val *APIBannedUser) *NullableAPIBannedUser { + return &NullableAPIBannedUser{value: val, isSet: true} +} + +func (v NullableAPIBannedUser) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAPIBannedUser) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_api_banned_user_with_multi_match_info.go b/client/model_api_banned_user_with_multi_match_info.go new file mode 100644 index 0000000..1fd9fa7 --- /dev/null +++ b/client/model_api_banned_user_with_multi_match_info.go @@ -0,0 +1,447 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "time" + "bytes" + "fmt" +) + +// checks if the APIBannedUserWithMultiMatchInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &APIBannedUserWithMultiMatchInfo{} + +// APIBannedUserWithMultiMatchInfo struct for APIBannedUserWithMultiMatchInfo +type APIBannedUserWithMultiMatchInfo struct { + Id string `json:"_id"` + UserId NullableString `json:"userId,omitempty"` + BanType string `json:"banType"` + Email NullableString `json:"email,omitempty"` + IpHash NullableString `json:"ipHash,omitempty"` + BannedUntil NullableTime `json:"bannedUntil"` + HasEmailWildcard bool `json:"hasEmailWildcard"` + BanReason *string `json:"banReason,omitempty"` + Matches []BannedUserMatch `json:"matches"` +} + +type _APIBannedUserWithMultiMatchInfo APIBannedUserWithMultiMatchInfo + +// NewAPIBannedUserWithMultiMatchInfo instantiates a new APIBannedUserWithMultiMatchInfo object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAPIBannedUserWithMultiMatchInfo(id string, banType string, bannedUntil NullableTime, hasEmailWildcard bool, matches []BannedUserMatch) *APIBannedUserWithMultiMatchInfo { + this := APIBannedUserWithMultiMatchInfo{} + this.Id = id + this.BanType = banType + this.BannedUntil = bannedUntil + this.HasEmailWildcard = hasEmailWildcard + this.Matches = matches + return &this +} + +// NewAPIBannedUserWithMultiMatchInfoWithDefaults instantiates a new APIBannedUserWithMultiMatchInfo object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAPIBannedUserWithMultiMatchInfoWithDefaults() *APIBannedUserWithMultiMatchInfo { + this := APIBannedUserWithMultiMatchInfo{} + return &this +} + +// GetId returns the Id field value +func (o *APIBannedUserWithMultiMatchInfo) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *APIBannedUserWithMultiMatchInfo) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *APIBannedUserWithMultiMatchInfo) SetId(v string) { + o.Id = v +} + +// GetUserId returns the UserId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIBannedUserWithMultiMatchInfo) GetUserId() string { + if o == nil || IsNil(o.UserId.Get()) { + var ret string + return ret + } + return *o.UserId.Get() +} + +// GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIBannedUserWithMultiMatchInfo) GetUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.UserId.Get(), o.UserId.IsSet() +} + +// HasUserId returns a boolean if a field has been set. +func (o *APIBannedUserWithMultiMatchInfo) HasUserId() bool { + if o != nil && o.UserId.IsSet() { + return true + } + + return false +} + +// SetUserId gets a reference to the given NullableString and assigns it to the UserId field. +func (o *APIBannedUserWithMultiMatchInfo) SetUserId(v string) { + o.UserId.Set(&v) +} +// SetUserIdNil sets the value for UserId to be an explicit nil +func (o *APIBannedUserWithMultiMatchInfo) SetUserIdNil() { + o.UserId.Set(nil) +} + +// UnsetUserId ensures that no value is present for UserId, not even an explicit nil +func (o *APIBannedUserWithMultiMatchInfo) UnsetUserId() { + o.UserId.Unset() +} + +// GetBanType returns the BanType field value +func (o *APIBannedUserWithMultiMatchInfo) GetBanType() string { + if o == nil { + var ret string + return ret + } + + return o.BanType +} + +// GetBanTypeOk returns a tuple with the BanType field value +// and a boolean to check if the value has been set. +func (o *APIBannedUserWithMultiMatchInfo) GetBanTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.BanType, true +} + +// SetBanType sets field value +func (o *APIBannedUserWithMultiMatchInfo) SetBanType(v string) { + o.BanType = v +} + +// GetEmail returns the Email field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIBannedUserWithMultiMatchInfo) GetEmail() string { + if o == nil || IsNil(o.Email.Get()) { + var ret string + return ret + } + return *o.Email.Get() +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIBannedUserWithMultiMatchInfo) GetEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Email.Get(), o.Email.IsSet() +} + +// HasEmail returns a boolean if a field has been set. +func (o *APIBannedUserWithMultiMatchInfo) HasEmail() bool { + if o != nil && o.Email.IsSet() { + return true + } + + return false +} + +// SetEmail gets a reference to the given NullableString and assigns it to the Email field. +func (o *APIBannedUserWithMultiMatchInfo) SetEmail(v string) { + o.Email.Set(&v) +} +// SetEmailNil sets the value for Email to be an explicit nil +func (o *APIBannedUserWithMultiMatchInfo) SetEmailNil() { + o.Email.Set(nil) +} + +// UnsetEmail ensures that no value is present for Email, not even an explicit nil +func (o *APIBannedUserWithMultiMatchInfo) UnsetEmail() { + o.Email.Unset() +} + +// GetIpHash returns the IpHash field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIBannedUserWithMultiMatchInfo) GetIpHash() string { + if o == nil || IsNil(o.IpHash.Get()) { + var ret string + return ret + } + return *o.IpHash.Get() +} + +// GetIpHashOk returns a tuple with the IpHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIBannedUserWithMultiMatchInfo) GetIpHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IpHash.Get(), o.IpHash.IsSet() +} + +// HasIpHash returns a boolean if a field has been set. +func (o *APIBannedUserWithMultiMatchInfo) HasIpHash() bool { + if o != nil && o.IpHash.IsSet() { + return true + } + + return false +} + +// SetIpHash gets a reference to the given NullableString and assigns it to the IpHash field. +func (o *APIBannedUserWithMultiMatchInfo) SetIpHash(v string) { + o.IpHash.Set(&v) +} +// SetIpHashNil sets the value for IpHash to be an explicit nil +func (o *APIBannedUserWithMultiMatchInfo) SetIpHashNil() { + o.IpHash.Set(nil) +} + +// UnsetIpHash ensures that no value is present for IpHash, not even an explicit nil +func (o *APIBannedUserWithMultiMatchInfo) UnsetIpHash() { + o.IpHash.Unset() +} + +// GetBannedUntil returns the BannedUntil field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *APIBannedUserWithMultiMatchInfo) GetBannedUntil() time.Time { + if o == nil || o.BannedUntil.Get() == nil { + var ret time.Time + return ret + } + + return *o.BannedUntil.Get() +} + +// GetBannedUntilOk returns a tuple with the BannedUntil field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIBannedUserWithMultiMatchInfo) GetBannedUntilOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.BannedUntil.Get(), o.BannedUntil.IsSet() +} + +// SetBannedUntil sets field value +func (o *APIBannedUserWithMultiMatchInfo) SetBannedUntil(v time.Time) { + o.BannedUntil.Set(&v) +} + +// GetHasEmailWildcard returns the HasEmailWildcard field value +func (o *APIBannedUserWithMultiMatchInfo) GetHasEmailWildcard() bool { + if o == nil { + var ret bool + return ret + } + + return o.HasEmailWildcard +} + +// GetHasEmailWildcardOk returns a tuple with the HasEmailWildcard field value +// and a boolean to check if the value has been set. +func (o *APIBannedUserWithMultiMatchInfo) GetHasEmailWildcardOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.HasEmailWildcard, true +} + +// SetHasEmailWildcard sets field value +func (o *APIBannedUserWithMultiMatchInfo) SetHasEmailWildcard(v bool) { + o.HasEmailWildcard = v +} + +// GetBanReason returns the BanReason field value if set, zero value otherwise. +func (o *APIBannedUserWithMultiMatchInfo) GetBanReason() string { + if o == nil || IsNil(o.BanReason) { + var ret string + return ret + } + return *o.BanReason +} + +// GetBanReasonOk returns a tuple with the BanReason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APIBannedUserWithMultiMatchInfo) GetBanReasonOk() (*string, bool) { + if o == nil || IsNil(o.BanReason) { + return nil, false + } + return o.BanReason, true +} + +// HasBanReason returns a boolean if a field has been set. +func (o *APIBannedUserWithMultiMatchInfo) HasBanReason() bool { + if o != nil && !IsNil(o.BanReason) { + return true + } + + return false +} + +// SetBanReason gets a reference to the given string and assigns it to the BanReason field. +func (o *APIBannedUserWithMultiMatchInfo) SetBanReason(v string) { + o.BanReason = &v +} + +// GetMatches returns the Matches field value +func (o *APIBannedUserWithMultiMatchInfo) GetMatches() []BannedUserMatch { + if o == nil { + var ret []BannedUserMatch + return ret + } + + return o.Matches +} + +// GetMatchesOk returns a tuple with the Matches field value +// and a boolean to check if the value has been set. +func (o *APIBannedUserWithMultiMatchInfo) GetMatchesOk() ([]BannedUserMatch, bool) { + if o == nil { + return nil, false + } + return o.Matches, true +} + +// SetMatches sets field value +func (o *APIBannedUserWithMultiMatchInfo) SetMatches(v []BannedUserMatch) { + o.Matches = v +} + +func (o APIBannedUserWithMultiMatchInfo) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o APIBannedUserWithMultiMatchInfo) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["_id"] = o.Id + if o.UserId.IsSet() { + toSerialize["userId"] = o.UserId.Get() + } + toSerialize["banType"] = o.BanType + if o.Email.IsSet() { + toSerialize["email"] = o.Email.Get() + } + if o.IpHash.IsSet() { + toSerialize["ipHash"] = o.IpHash.Get() + } + toSerialize["bannedUntil"] = o.BannedUntil.Get() + toSerialize["hasEmailWildcard"] = o.HasEmailWildcard + if !IsNil(o.BanReason) { + toSerialize["banReason"] = o.BanReason + } + toSerialize["matches"] = o.Matches + return toSerialize, nil +} + +func (o *APIBannedUserWithMultiMatchInfo) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "_id", + "banType", + "bannedUntil", + "hasEmailWildcard", + "matches", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAPIBannedUserWithMultiMatchInfo := _APIBannedUserWithMultiMatchInfo{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAPIBannedUserWithMultiMatchInfo) + + if err != nil { + return err + } + + *o = APIBannedUserWithMultiMatchInfo(varAPIBannedUserWithMultiMatchInfo) + + return err +} + +type NullableAPIBannedUserWithMultiMatchInfo struct { + value *APIBannedUserWithMultiMatchInfo + isSet bool +} + +func (v NullableAPIBannedUserWithMultiMatchInfo) Get() *APIBannedUserWithMultiMatchInfo { + return v.value +} + +func (v *NullableAPIBannedUserWithMultiMatchInfo) Set(val *APIBannedUserWithMultiMatchInfo) { + v.value = val + v.isSet = true +} + +func (v NullableAPIBannedUserWithMultiMatchInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableAPIBannedUserWithMultiMatchInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAPIBannedUserWithMultiMatchInfo(val *APIBannedUserWithMultiMatchInfo) *NullableAPIBannedUserWithMultiMatchInfo { + return &NullableAPIBannedUserWithMultiMatchInfo{value: val, isSet: true} +} + +func (v NullableAPIBannedUserWithMultiMatchInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAPIBannedUserWithMultiMatchInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_api_comment.go b/client/model_api_comment.go index 6544c5f..e2bf499 100644 --- a/client/model_api_comment.go +++ b/client/model_api_comment.go @@ -22,7 +22,7 @@ var _ MappedNullable = &APIComment{} // APIComment struct for APIComment type APIComment struct { - Id string `json:"_id"` + Id string `json:"id"` AiDeterminedSpam *bool `json:"aiDeterminedSpam,omitempty"` AnonUserId NullableString `json:"anonUserId,omitempty"` Approved bool `json:"approved"` @@ -1951,7 +1951,7 @@ func (o APIComment) MarshalJSON() ([]byte, error) { func (o APIComment) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["_id"] = o.Id + toSerialize["id"] = o.Id if !IsNil(o.AiDeterminedSpam) { toSerialize["aiDeterminedSpam"] = o.AiDeterminedSpam } @@ -2096,7 +2096,7 @@ func (o *APIComment) UnmarshalJSON(data []byte) (err error) { // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ - "_id", + "id", "approved", "comment", "commentHTML", diff --git a/client/model_api_comment_base.go b/client/model_api_comment_base.go index d722379..ebbc7a3 100644 --- a/client/model_api_comment_base.go +++ b/client/model_api_comment_base.go @@ -22,7 +22,7 @@ var _ MappedNullable = &APICommentBase{} // APICommentBase struct for APICommentBase type APICommentBase struct { - Id string `json:"_id"` + Id string `json:"id"` AiDeterminedSpam *bool `json:"aiDeterminedSpam,omitempty"` AnonUserId NullableString `json:"anonUserId,omitempty"` Approved bool `json:"approved"` @@ -1951,7 +1951,7 @@ func (o APICommentBase) MarshalJSON() ([]byte, error) { func (o APICommentBase) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["_id"] = o.Id + toSerialize["id"] = o.Id if !IsNil(o.AiDeterminedSpam) { toSerialize["aiDeterminedSpam"] = o.AiDeterminedSpam } @@ -2096,7 +2096,7 @@ func (o *APICommentBase) UnmarshalJSON(data []byte) (err error) { // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ - "_id", + "id", "approved", "comment", "commentHTML", diff --git a/client/model_api_comment_common_banned_user.go b/client/model_api_comment_common_banned_user.go new file mode 100644 index 0000000..b8f3eab --- /dev/null +++ b/client/model_api_comment_common_banned_user.go @@ -0,0 +1,419 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "time" + "bytes" + "fmt" +) + +// checks if the APICommentCommonBannedUser type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &APICommentCommonBannedUser{} + +// APICommentCommonBannedUser struct for APICommentCommonBannedUser +type APICommentCommonBannedUser struct { + Id string `json:"_id"` + UserId NullableString `json:"userId,omitempty"` + BanType string `json:"banType"` + Email NullableString `json:"email,omitempty"` + IpHash NullableString `json:"ipHash,omitempty"` + BannedUntil NullableTime `json:"bannedUntil"` + HasEmailWildcard bool `json:"hasEmailWildcard"` + BanReason *string `json:"banReason,omitempty"` +} + +type _APICommentCommonBannedUser APICommentCommonBannedUser + +// NewAPICommentCommonBannedUser instantiates a new APICommentCommonBannedUser object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAPICommentCommonBannedUser(id string, banType string, bannedUntil NullableTime, hasEmailWildcard bool) *APICommentCommonBannedUser { + this := APICommentCommonBannedUser{} + this.Id = id + this.BanType = banType + this.BannedUntil = bannedUntil + this.HasEmailWildcard = hasEmailWildcard + return &this +} + +// NewAPICommentCommonBannedUserWithDefaults instantiates a new APICommentCommonBannedUser object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAPICommentCommonBannedUserWithDefaults() *APICommentCommonBannedUser { + this := APICommentCommonBannedUser{} + return &this +} + +// GetId returns the Id field value +func (o *APICommentCommonBannedUser) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *APICommentCommonBannedUser) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *APICommentCommonBannedUser) SetId(v string) { + o.Id = v +} + +// GetUserId returns the UserId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APICommentCommonBannedUser) GetUserId() string { + if o == nil || IsNil(o.UserId.Get()) { + var ret string + return ret + } + return *o.UserId.Get() +} + +// GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APICommentCommonBannedUser) GetUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.UserId.Get(), o.UserId.IsSet() +} + +// HasUserId returns a boolean if a field has been set. +func (o *APICommentCommonBannedUser) HasUserId() bool { + if o != nil && o.UserId.IsSet() { + return true + } + + return false +} + +// SetUserId gets a reference to the given NullableString and assigns it to the UserId field. +func (o *APICommentCommonBannedUser) SetUserId(v string) { + o.UserId.Set(&v) +} +// SetUserIdNil sets the value for UserId to be an explicit nil +func (o *APICommentCommonBannedUser) SetUserIdNil() { + o.UserId.Set(nil) +} + +// UnsetUserId ensures that no value is present for UserId, not even an explicit nil +func (o *APICommentCommonBannedUser) UnsetUserId() { + o.UserId.Unset() +} + +// GetBanType returns the BanType field value +func (o *APICommentCommonBannedUser) GetBanType() string { + if o == nil { + var ret string + return ret + } + + return o.BanType +} + +// GetBanTypeOk returns a tuple with the BanType field value +// and a boolean to check if the value has been set. +func (o *APICommentCommonBannedUser) GetBanTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.BanType, true +} + +// SetBanType sets field value +func (o *APICommentCommonBannedUser) SetBanType(v string) { + o.BanType = v +} + +// GetEmail returns the Email field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APICommentCommonBannedUser) GetEmail() string { + if o == nil || IsNil(o.Email.Get()) { + var ret string + return ret + } + return *o.Email.Get() +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APICommentCommonBannedUser) GetEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Email.Get(), o.Email.IsSet() +} + +// HasEmail returns a boolean if a field has been set. +func (o *APICommentCommonBannedUser) HasEmail() bool { + if o != nil && o.Email.IsSet() { + return true + } + + return false +} + +// SetEmail gets a reference to the given NullableString and assigns it to the Email field. +func (o *APICommentCommonBannedUser) SetEmail(v string) { + o.Email.Set(&v) +} +// SetEmailNil sets the value for Email to be an explicit nil +func (o *APICommentCommonBannedUser) SetEmailNil() { + o.Email.Set(nil) +} + +// UnsetEmail ensures that no value is present for Email, not even an explicit nil +func (o *APICommentCommonBannedUser) UnsetEmail() { + o.Email.Unset() +} + +// GetIpHash returns the IpHash field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APICommentCommonBannedUser) GetIpHash() string { + if o == nil || IsNil(o.IpHash.Get()) { + var ret string + return ret + } + return *o.IpHash.Get() +} + +// GetIpHashOk returns a tuple with the IpHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APICommentCommonBannedUser) GetIpHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IpHash.Get(), o.IpHash.IsSet() +} + +// HasIpHash returns a boolean if a field has been set. +func (o *APICommentCommonBannedUser) HasIpHash() bool { + if o != nil && o.IpHash.IsSet() { + return true + } + + return false +} + +// SetIpHash gets a reference to the given NullableString and assigns it to the IpHash field. +func (o *APICommentCommonBannedUser) SetIpHash(v string) { + o.IpHash.Set(&v) +} +// SetIpHashNil sets the value for IpHash to be an explicit nil +func (o *APICommentCommonBannedUser) SetIpHashNil() { + o.IpHash.Set(nil) +} + +// UnsetIpHash ensures that no value is present for IpHash, not even an explicit nil +func (o *APICommentCommonBannedUser) UnsetIpHash() { + o.IpHash.Unset() +} + +// GetBannedUntil returns the BannedUntil field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *APICommentCommonBannedUser) GetBannedUntil() time.Time { + if o == nil || o.BannedUntil.Get() == nil { + var ret time.Time + return ret + } + + return *o.BannedUntil.Get() +} + +// GetBannedUntilOk returns a tuple with the BannedUntil field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APICommentCommonBannedUser) GetBannedUntilOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.BannedUntil.Get(), o.BannedUntil.IsSet() +} + +// SetBannedUntil sets field value +func (o *APICommentCommonBannedUser) SetBannedUntil(v time.Time) { + o.BannedUntil.Set(&v) +} + +// GetHasEmailWildcard returns the HasEmailWildcard field value +func (o *APICommentCommonBannedUser) GetHasEmailWildcard() bool { + if o == nil { + var ret bool + return ret + } + + return o.HasEmailWildcard +} + +// GetHasEmailWildcardOk returns a tuple with the HasEmailWildcard field value +// and a boolean to check if the value has been set. +func (o *APICommentCommonBannedUser) GetHasEmailWildcardOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.HasEmailWildcard, true +} + +// SetHasEmailWildcard sets field value +func (o *APICommentCommonBannedUser) SetHasEmailWildcard(v bool) { + o.HasEmailWildcard = v +} + +// GetBanReason returns the BanReason field value if set, zero value otherwise. +func (o *APICommentCommonBannedUser) GetBanReason() string { + if o == nil || IsNil(o.BanReason) { + var ret string + return ret + } + return *o.BanReason +} + +// GetBanReasonOk returns a tuple with the BanReason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APICommentCommonBannedUser) GetBanReasonOk() (*string, bool) { + if o == nil || IsNil(o.BanReason) { + return nil, false + } + return o.BanReason, true +} + +// HasBanReason returns a boolean if a field has been set. +func (o *APICommentCommonBannedUser) HasBanReason() bool { + if o != nil && !IsNil(o.BanReason) { + return true + } + + return false +} + +// SetBanReason gets a reference to the given string and assigns it to the BanReason field. +func (o *APICommentCommonBannedUser) SetBanReason(v string) { + o.BanReason = &v +} + +func (o APICommentCommonBannedUser) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o APICommentCommonBannedUser) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["_id"] = o.Id + if o.UserId.IsSet() { + toSerialize["userId"] = o.UserId.Get() + } + toSerialize["banType"] = o.BanType + if o.Email.IsSet() { + toSerialize["email"] = o.Email.Get() + } + if o.IpHash.IsSet() { + toSerialize["ipHash"] = o.IpHash.Get() + } + toSerialize["bannedUntil"] = o.BannedUntil.Get() + toSerialize["hasEmailWildcard"] = o.HasEmailWildcard + if !IsNil(o.BanReason) { + toSerialize["banReason"] = o.BanReason + } + return toSerialize, nil +} + +func (o *APICommentCommonBannedUser) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "_id", + "banType", + "bannedUntil", + "hasEmailWildcard", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAPICommentCommonBannedUser := _APICommentCommonBannedUser{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAPICommentCommonBannedUser) + + if err != nil { + return err + } + + *o = APICommentCommonBannedUser(varAPICommentCommonBannedUser) + + return err +} + +type NullableAPICommentCommonBannedUser struct { + value *APICommentCommonBannedUser + isSet bool +} + +func (v NullableAPICommentCommonBannedUser) Get() *APICommentCommonBannedUser { + return v.value +} + +func (v *NullableAPICommentCommonBannedUser) Set(val *APICommentCommonBannedUser) { + v.value = val + v.isSet = true +} + +func (v NullableAPICommentCommonBannedUser) IsSet() bool { + return v.isSet +} + +func (v *NullableAPICommentCommonBannedUser) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAPICommentCommonBannedUser(val *APICommentCommonBannedUser) *NullableAPICommentCommonBannedUser { + return &NullableAPICommentCommonBannedUser{value: val, isSet: true} +} + +func (v NullableAPICommentCommonBannedUser) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAPICommentCommonBannedUser) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_api_moderate_get_user_ban_preferences_response.go b/client/model_api_moderate_get_user_ban_preferences_response.go new file mode 100644 index 0000000..1081b97 --- /dev/null +++ b/client/model_api_moderate_get_user_ban_preferences_response.go @@ -0,0 +1,188 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the APIModerateGetUserBanPreferencesResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &APIModerateGetUserBanPreferencesResponse{} + +// APIModerateGetUserBanPreferencesResponse struct for APIModerateGetUserBanPreferencesResponse +type APIModerateGetUserBanPreferencesResponse struct { + Preferences NullableAPIModerateUserBanPreferences `json:"preferences"` + Status APIStatus `json:"status"` +} + +type _APIModerateGetUserBanPreferencesResponse APIModerateGetUserBanPreferencesResponse + +// NewAPIModerateGetUserBanPreferencesResponse instantiates a new APIModerateGetUserBanPreferencesResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAPIModerateGetUserBanPreferencesResponse(preferences NullableAPIModerateUserBanPreferences, status APIStatus) *APIModerateGetUserBanPreferencesResponse { + this := APIModerateGetUserBanPreferencesResponse{} + this.Preferences = preferences + this.Status = status + return &this +} + +// NewAPIModerateGetUserBanPreferencesResponseWithDefaults instantiates a new APIModerateGetUserBanPreferencesResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAPIModerateGetUserBanPreferencesResponseWithDefaults() *APIModerateGetUserBanPreferencesResponse { + this := APIModerateGetUserBanPreferencesResponse{} + return &this +} + +// GetPreferences returns the Preferences field value +// If the value is explicit nil, the zero value for APIModerateUserBanPreferences will be returned +func (o *APIModerateGetUserBanPreferencesResponse) GetPreferences() APIModerateUserBanPreferences { + if o == nil || o.Preferences.Get() == nil { + var ret APIModerateUserBanPreferences + return ret + } + + return *o.Preferences.Get() +} + +// GetPreferencesOk returns a tuple with the Preferences field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIModerateGetUserBanPreferencesResponse) GetPreferencesOk() (*APIModerateUserBanPreferences, bool) { + if o == nil { + return nil, false + } + return o.Preferences.Get(), o.Preferences.IsSet() +} + +// SetPreferences sets field value +func (o *APIModerateGetUserBanPreferencesResponse) SetPreferences(v APIModerateUserBanPreferences) { + o.Preferences.Set(&v) +} + +// GetStatus returns the Status field value +func (o *APIModerateGetUserBanPreferencesResponse) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *APIModerateGetUserBanPreferencesResponse) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *APIModerateGetUserBanPreferencesResponse) SetStatus(v APIStatus) { + o.Status = v +} + +func (o APIModerateGetUserBanPreferencesResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o APIModerateGetUserBanPreferencesResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["preferences"] = o.Preferences.Get() + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *APIModerateGetUserBanPreferencesResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "preferences", + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAPIModerateGetUserBanPreferencesResponse := _APIModerateGetUserBanPreferencesResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAPIModerateGetUserBanPreferencesResponse) + + if err != nil { + return err + } + + *o = APIModerateGetUserBanPreferencesResponse(varAPIModerateGetUserBanPreferencesResponse) + + return err +} + +type NullableAPIModerateGetUserBanPreferencesResponse struct { + value *APIModerateGetUserBanPreferencesResponse + isSet bool +} + +func (v NullableAPIModerateGetUserBanPreferencesResponse) Get() *APIModerateGetUserBanPreferencesResponse { + return v.value +} + +func (v *NullableAPIModerateGetUserBanPreferencesResponse) Set(val *APIModerateGetUserBanPreferencesResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAPIModerateGetUserBanPreferencesResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAPIModerateGetUserBanPreferencesResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAPIModerateGetUserBanPreferencesResponse(val *APIModerateGetUserBanPreferencesResponse) *NullableAPIModerateGetUserBanPreferencesResponse { + return &NullableAPIModerateGetUserBanPreferencesResponse{value: val, isSet: true} +} + +func (v NullableAPIModerateGetUserBanPreferencesResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAPIModerateGetUserBanPreferencesResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_api_moderate_user_ban_preferences.go b/client/model_api_moderate_user_ban_preferences.go new file mode 100644 index 0000000..6688f97 --- /dev/null +++ b/client/model_api_moderate_user_ban_preferences.go @@ -0,0 +1,242 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the APIModerateUserBanPreferences type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &APIModerateUserBanPreferences{} + +// APIModerateUserBanPreferences struct for APIModerateUserBanPreferences +type APIModerateUserBanPreferences struct { + ShouldBanEmail bool `json:"shouldBanEmail"` + ShouldBanByIP bool `json:"shouldBanByIP"` + LastBanType string `json:"lastBanType"` + LastBanDuration string `json:"lastBanDuration"` +} + +type _APIModerateUserBanPreferences APIModerateUserBanPreferences + +// NewAPIModerateUserBanPreferences instantiates a new APIModerateUserBanPreferences object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAPIModerateUserBanPreferences(shouldBanEmail bool, shouldBanByIP bool, lastBanType string, lastBanDuration string) *APIModerateUserBanPreferences { + this := APIModerateUserBanPreferences{} + this.ShouldBanEmail = shouldBanEmail + this.ShouldBanByIP = shouldBanByIP + this.LastBanType = lastBanType + this.LastBanDuration = lastBanDuration + return &this +} + +// NewAPIModerateUserBanPreferencesWithDefaults instantiates a new APIModerateUserBanPreferences object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAPIModerateUserBanPreferencesWithDefaults() *APIModerateUserBanPreferences { + this := APIModerateUserBanPreferences{} + return &this +} + +// GetShouldBanEmail returns the ShouldBanEmail field value +func (o *APIModerateUserBanPreferences) GetShouldBanEmail() bool { + if o == nil { + var ret bool + return ret + } + + return o.ShouldBanEmail +} + +// GetShouldBanEmailOk returns a tuple with the ShouldBanEmail field value +// and a boolean to check if the value has been set. +func (o *APIModerateUserBanPreferences) GetShouldBanEmailOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.ShouldBanEmail, true +} + +// SetShouldBanEmail sets field value +func (o *APIModerateUserBanPreferences) SetShouldBanEmail(v bool) { + o.ShouldBanEmail = v +} + +// GetShouldBanByIP returns the ShouldBanByIP field value +func (o *APIModerateUserBanPreferences) GetShouldBanByIP() bool { + if o == nil { + var ret bool + return ret + } + + return o.ShouldBanByIP +} + +// GetShouldBanByIPOk returns a tuple with the ShouldBanByIP field value +// and a boolean to check if the value has been set. +func (o *APIModerateUserBanPreferences) GetShouldBanByIPOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.ShouldBanByIP, true +} + +// SetShouldBanByIP sets field value +func (o *APIModerateUserBanPreferences) SetShouldBanByIP(v bool) { + o.ShouldBanByIP = v +} + +// GetLastBanType returns the LastBanType field value +func (o *APIModerateUserBanPreferences) GetLastBanType() string { + if o == nil { + var ret string + return ret + } + + return o.LastBanType +} + +// GetLastBanTypeOk returns a tuple with the LastBanType field value +// and a boolean to check if the value has been set. +func (o *APIModerateUserBanPreferences) GetLastBanTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.LastBanType, true +} + +// SetLastBanType sets field value +func (o *APIModerateUserBanPreferences) SetLastBanType(v string) { + o.LastBanType = v +} + +// GetLastBanDuration returns the LastBanDuration field value +func (o *APIModerateUserBanPreferences) GetLastBanDuration() string { + if o == nil { + var ret string + return ret + } + + return o.LastBanDuration +} + +// GetLastBanDurationOk returns a tuple with the LastBanDuration field value +// and a boolean to check if the value has been set. +func (o *APIModerateUserBanPreferences) GetLastBanDurationOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.LastBanDuration, true +} + +// SetLastBanDuration sets field value +func (o *APIModerateUserBanPreferences) SetLastBanDuration(v string) { + o.LastBanDuration = v +} + +func (o APIModerateUserBanPreferences) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o APIModerateUserBanPreferences) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["shouldBanEmail"] = o.ShouldBanEmail + toSerialize["shouldBanByIP"] = o.ShouldBanByIP + toSerialize["lastBanType"] = o.LastBanType + toSerialize["lastBanDuration"] = o.LastBanDuration + return toSerialize, nil +} + +func (o *APIModerateUserBanPreferences) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "shouldBanEmail", + "shouldBanByIP", + "lastBanType", + "lastBanDuration", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAPIModerateUserBanPreferences := _APIModerateUserBanPreferences{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAPIModerateUserBanPreferences) + + if err != nil { + return err + } + + *o = APIModerateUserBanPreferences(varAPIModerateUserBanPreferences) + + return err +} + +type NullableAPIModerateUserBanPreferences struct { + value *APIModerateUserBanPreferences + isSet bool +} + +func (v NullableAPIModerateUserBanPreferences) Get() *APIModerateUserBanPreferences { + return v.value +} + +func (v *NullableAPIModerateUserBanPreferences) Set(val *APIModerateUserBanPreferences) { + v.value = val + v.isSet = true +} + +func (v NullableAPIModerateUserBanPreferences) IsSet() bool { + return v.isSet +} + +func (v *NullableAPIModerateUserBanPreferences) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAPIModerateUserBanPreferences(val *APIModerateUserBanPreferences) *NullableAPIModerateUserBanPreferences { + return &NullableAPIModerateUserBanPreferences{value: val, isSet: true} +} + +func (v NullableAPIModerateUserBanPreferences) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAPIModerateUserBanPreferences) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_save_comment_response.go b/client/model_api_save_comment_response.go similarity index 61% rename from client/model_save_comment_response.go rename to client/model_api_save_comment_response.go index 4ce40b3..ae3ef2f 100644 --- a/client/model_save_comment_response.go +++ b/client/model_api_save_comment_response.go @@ -16,42 +16,42 @@ import ( "fmt" ) -// checks if the SaveCommentResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SaveCommentResponse{} +// checks if the APISaveCommentResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &APISaveCommentResponse{} -// SaveCommentResponse struct for SaveCommentResponse -type SaveCommentResponse struct { +// APISaveCommentResponse struct for APISaveCommentResponse +type APISaveCommentResponse struct { Status APIStatus `json:"status"` - Comment FComment `json:"comment"` + Comment APIComment `json:"comment"` User NullableUserSessionInfo `json:"user"` // Construct a type with a set of properties K of type T ModuleData map[string]interface{} `json:"moduleData,omitempty"` } -type _SaveCommentResponse SaveCommentResponse +type _APISaveCommentResponse APISaveCommentResponse -// NewSaveCommentResponse instantiates a new SaveCommentResponse object +// NewAPISaveCommentResponse instantiates a new APISaveCommentResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewSaveCommentResponse(status APIStatus, comment FComment, user NullableUserSessionInfo) *SaveCommentResponse { - this := SaveCommentResponse{} +func NewAPISaveCommentResponse(status APIStatus, comment APIComment, user NullableUserSessionInfo) *APISaveCommentResponse { + this := APISaveCommentResponse{} this.Status = status this.Comment = comment this.User = user return &this } -// NewSaveCommentResponseWithDefaults instantiates a new SaveCommentResponse object +// NewAPISaveCommentResponseWithDefaults instantiates a new APISaveCommentResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewSaveCommentResponseWithDefaults() *SaveCommentResponse { - this := SaveCommentResponse{} +func NewAPISaveCommentResponseWithDefaults() *APISaveCommentResponse { + this := APISaveCommentResponse{} return &this } // GetStatus returns the Status field value -func (o *SaveCommentResponse) GetStatus() APIStatus { +func (o *APISaveCommentResponse) GetStatus() APIStatus { if o == nil { var ret APIStatus return ret @@ -62,7 +62,7 @@ func (o *SaveCommentResponse) GetStatus() APIStatus { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *SaveCommentResponse) GetStatusOk() (*APIStatus, bool) { +func (o *APISaveCommentResponse) GetStatusOk() (*APIStatus, bool) { if o == nil { return nil, false } @@ -70,14 +70,14 @@ func (o *SaveCommentResponse) GetStatusOk() (*APIStatus, bool) { } // SetStatus sets field value -func (o *SaveCommentResponse) SetStatus(v APIStatus) { +func (o *APISaveCommentResponse) SetStatus(v APIStatus) { o.Status = v } // GetComment returns the Comment field value -func (o *SaveCommentResponse) GetComment() FComment { +func (o *APISaveCommentResponse) GetComment() APIComment { if o == nil { - var ret FComment + var ret APIComment return ret } @@ -86,7 +86,7 @@ func (o *SaveCommentResponse) GetComment() FComment { // GetCommentOk returns a tuple with the Comment field value // and a boolean to check if the value has been set. -func (o *SaveCommentResponse) GetCommentOk() (*FComment, bool) { +func (o *APISaveCommentResponse) GetCommentOk() (*APIComment, bool) { if o == nil { return nil, false } @@ -94,13 +94,13 @@ func (o *SaveCommentResponse) GetCommentOk() (*FComment, bool) { } // SetComment sets field value -func (o *SaveCommentResponse) SetComment(v FComment) { +func (o *APISaveCommentResponse) SetComment(v APIComment) { o.Comment = v } // GetUser returns the User field value // If the value is explicit nil, the zero value for UserSessionInfo will be returned -func (o *SaveCommentResponse) GetUser() UserSessionInfo { +func (o *APISaveCommentResponse) GetUser() UserSessionInfo { if o == nil || o.User.Get() == nil { var ret UserSessionInfo return ret @@ -112,7 +112,7 @@ func (o *SaveCommentResponse) GetUser() UserSessionInfo { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *SaveCommentResponse) GetUserOk() (*UserSessionInfo, bool) { +func (o *APISaveCommentResponse) GetUserOk() (*UserSessionInfo, bool) { if o == nil { return nil, false } @@ -120,12 +120,12 @@ func (o *SaveCommentResponse) GetUserOk() (*UserSessionInfo, bool) { } // SetUser sets field value -func (o *SaveCommentResponse) SetUser(v UserSessionInfo) { +func (o *APISaveCommentResponse) SetUser(v UserSessionInfo) { o.User.Set(&v) } // GetModuleData returns the ModuleData field value if set, zero value otherwise. -func (o *SaveCommentResponse) GetModuleData() map[string]interface{} { +func (o *APISaveCommentResponse) GetModuleData() map[string]interface{} { if o == nil || IsNil(o.ModuleData) { var ret map[string]interface{} return ret @@ -135,7 +135,7 @@ func (o *SaveCommentResponse) GetModuleData() map[string]interface{} { // GetModuleDataOk returns a tuple with the ModuleData field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SaveCommentResponse) GetModuleDataOk() (map[string]interface{}, bool) { +func (o *APISaveCommentResponse) GetModuleDataOk() (map[string]interface{}, bool) { if o == nil || IsNil(o.ModuleData) { return map[string]interface{}{}, false } @@ -143,7 +143,7 @@ func (o *SaveCommentResponse) GetModuleDataOk() (map[string]interface{}, bool) { } // HasModuleData returns a boolean if a field has been set. -func (o *SaveCommentResponse) HasModuleData() bool { +func (o *APISaveCommentResponse) HasModuleData() bool { if o != nil && !IsNil(o.ModuleData) { return true } @@ -152,11 +152,11 @@ func (o *SaveCommentResponse) HasModuleData() bool { } // SetModuleData gets a reference to the given map[string]interface{} and assigns it to the ModuleData field. -func (o *SaveCommentResponse) SetModuleData(v map[string]interface{}) { +func (o *APISaveCommentResponse) SetModuleData(v map[string]interface{}) { o.ModuleData = v } -func (o SaveCommentResponse) MarshalJSON() ([]byte, error) { +func (o APISaveCommentResponse) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err @@ -164,7 +164,7 @@ func (o SaveCommentResponse) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o SaveCommentResponse) ToMap() (map[string]interface{}, error) { +func (o APISaveCommentResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["status"] = o.Status toSerialize["comment"] = o.Comment @@ -175,7 +175,7 @@ func (o SaveCommentResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SaveCommentResponse) UnmarshalJSON(data []byte) (err error) { +func (o *APISaveCommentResponse) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. @@ -199,53 +199,53 @@ func (o *SaveCommentResponse) UnmarshalJSON(data []byte) (err error) { } } - varSaveCommentResponse := _SaveCommentResponse{} + varAPISaveCommentResponse := _APISaveCommentResponse{} decoder := json.NewDecoder(bytes.NewReader(data)) decoder.DisallowUnknownFields() - err = decoder.Decode(&varSaveCommentResponse) + err = decoder.Decode(&varAPISaveCommentResponse) if err != nil { return err } - *o = SaveCommentResponse(varSaveCommentResponse) + *o = APISaveCommentResponse(varAPISaveCommentResponse) return err } -type NullableSaveCommentResponse struct { - value *SaveCommentResponse +type NullableAPISaveCommentResponse struct { + value *APISaveCommentResponse isSet bool } -func (v NullableSaveCommentResponse) Get() *SaveCommentResponse { +func (v NullableAPISaveCommentResponse) Get() *APISaveCommentResponse { return v.value } -func (v *NullableSaveCommentResponse) Set(val *SaveCommentResponse) { +func (v *NullableAPISaveCommentResponse) Set(val *APISaveCommentResponse) { v.value = val v.isSet = true } -func (v NullableSaveCommentResponse) IsSet() bool { +func (v NullableAPISaveCommentResponse) IsSet() bool { return v.isSet } -func (v *NullableSaveCommentResponse) Unset() { +func (v *NullableAPISaveCommentResponse) Unset() { v.value = nil v.isSet = false } -func NewNullableSaveCommentResponse(val *SaveCommentResponse) *NullableSaveCommentResponse { - return &NullableSaveCommentResponse{value: val, isSet: true} +func NewNullableAPISaveCommentResponse(val *APISaveCommentResponse) *NullableAPISaveCommentResponse { + return &NullableAPISaveCommentResponse{value: val, isSet: true} } -func (v NullableSaveCommentResponse) MarshalJSON() ([]byte, error) { +func (v NullableAPISaveCommentResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableSaveCommentResponse) UnmarshalJSON(src []byte) error { +func (v *NullableAPISaveCommentResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/client/model_award_user_badge_response.go b/client/model_award_user_badge_response.go new file mode 100644 index 0000000..5cda84a --- /dev/null +++ b/client/model_award_user_badge_response.go @@ -0,0 +1,230 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the AwardUserBadgeResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AwardUserBadgeResponse{} + +// AwardUserBadgeResponse struct for AwardUserBadgeResponse +type AwardUserBadgeResponse struct { + Notes []string `json:"notes,omitempty"` + Badges []CommentUserBadgeInfo `json:"badges,omitempty"` + Status APIStatus `json:"status"` +} + +type _AwardUserBadgeResponse AwardUserBadgeResponse + +// NewAwardUserBadgeResponse instantiates a new AwardUserBadgeResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAwardUserBadgeResponse(status APIStatus) *AwardUserBadgeResponse { + this := AwardUserBadgeResponse{} + this.Status = status + return &this +} + +// NewAwardUserBadgeResponseWithDefaults instantiates a new AwardUserBadgeResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAwardUserBadgeResponseWithDefaults() *AwardUserBadgeResponse { + this := AwardUserBadgeResponse{} + return &this +} + +// GetNotes returns the Notes field value if set, zero value otherwise. +func (o *AwardUserBadgeResponse) GetNotes() []string { + if o == nil || IsNil(o.Notes) { + var ret []string + return ret + } + return o.Notes +} + +// GetNotesOk returns a tuple with the Notes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AwardUserBadgeResponse) GetNotesOk() ([]string, bool) { + if o == nil || IsNil(o.Notes) { + return nil, false + } + return o.Notes, true +} + +// HasNotes returns a boolean if a field has been set. +func (o *AwardUserBadgeResponse) HasNotes() bool { + if o != nil && !IsNil(o.Notes) { + return true + } + + return false +} + +// SetNotes gets a reference to the given []string and assigns it to the Notes field. +func (o *AwardUserBadgeResponse) SetNotes(v []string) { + o.Notes = v +} + +// GetBadges returns the Badges field value if set, zero value otherwise. +func (o *AwardUserBadgeResponse) GetBadges() []CommentUserBadgeInfo { + if o == nil || IsNil(o.Badges) { + var ret []CommentUserBadgeInfo + return ret + } + return o.Badges +} + +// GetBadgesOk returns a tuple with the Badges field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AwardUserBadgeResponse) GetBadgesOk() ([]CommentUserBadgeInfo, bool) { + if o == nil || IsNil(o.Badges) { + return nil, false + } + return o.Badges, true +} + +// HasBadges returns a boolean if a field has been set. +func (o *AwardUserBadgeResponse) HasBadges() bool { + if o != nil && !IsNil(o.Badges) { + return true + } + + return false +} + +// SetBadges gets a reference to the given []CommentUserBadgeInfo and assigns it to the Badges field. +func (o *AwardUserBadgeResponse) SetBadges(v []CommentUserBadgeInfo) { + o.Badges = v +} + +// GetStatus returns the Status field value +func (o *AwardUserBadgeResponse) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *AwardUserBadgeResponse) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *AwardUserBadgeResponse) SetStatus(v APIStatus) { + o.Status = v +} + +func (o AwardUserBadgeResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AwardUserBadgeResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Notes) { + toSerialize["notes"] = o.Notes + } + if !IsNil(o.Badges) { + toSerialize["badges"] = o.Badges + } + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *AwardUserBadgeResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAwardUserBadgeResponse := _AwardUserBadgeResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAwardUserBadgeResponse) + + if err != nil { + return err + } + + *o = AwardUserBadgeResponse(varAwardUserBadgeResponse) + + return err +} + +type NullableAwardUserBadgeResponse struct { + value *AwardUserBadgeResponse + isSet bool +} + +func (v NullableAwardUserBadgeResponse) Get() *AwardUserBadgeResponse { + return v.value +} + +func (v *NullableAwardUserBadgeResponse) Set(val *AwardUserBadgeResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAwardUserBadgeResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAwardUserBadgeResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAwardUserBadgeResponse(val *AwardUserBadgeResponse) *NullableAwardUserBadgeResponse { + return &NullableAwardUserBadgeResponse{value: val, isSet: true} +} + +func (v NullableAwardUserBadgeResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAwardUserBadgeResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_ban_user_from_comment_result.go b/client/model_ban_user_from_comment_result.go new file mode 100644 index 0000000..54f5a09 --- /dev/null +++ b/client/model_ban_user_from_comment_result.go @@ -0,0 +1,266 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the BanUserFromCommentResult type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BanUserFromCommentResult{} + +// BanUserFromCommentResult struct for BanUserFromCommentResult +type BanUserFromCommentResult struct { + Status string `json:"status"` + Changelog *APIBanUserChangeLog `json:"changelog,omitempty"` + Code *string `json:"code,omitempty"` + Reason *string `json:"reason,omitempty"` +} + +type _BanUserFromCommentResult BanUserFromCommentResult + +// NewBanUserFromCommentResult instantiates a new BanUserFromCommentResult object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBanUserFromCommentResult(status string) *BanUserFromCommentResult { + this := BanUserFromCommentResult{} + this.Status = status + return &this +} + +// NewBanUserFromCommentResultWithDefaults instantiates a new BanUserFromCommentResult object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBanUserFromCommentResultWithDefaults() *BanUserFromCommentResult { + this := BanUserFromCommentResult{} + return &this +} + +// GetStatus returns the Status field value +func (o *BanUserFromCommentResult) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *BanUserFromCommentResult) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *BanUserFromCommentResult) SetStatus(v string) { + o.Status = v +} + +// GetChangelog returns the Changelog field value if set, zero value otherwise. +func (o *BanUserFromCommentResult) GetChangelog() APIBanUserChangeLog { + if o == nil || IsNil(o.Changelog) { + var ret APIBanUserChangeLog + return ret + } + return *o.Changelog +} + +// GetChangelogOk returns a tuple with the Changelog field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BanUserFromCommentResult) GetChangelogOk() (*APIBanUserChangeLog, bool) { + if o == nil || IsNil(o.Changelog) { + return nil, false + } + return o.Changelog, true +} + +// HasChangelog returns a boolean if a field has been set. +func (o *BanUserFromCommentResult) HasChangelog() bool { + if o != nil && !IsNil(o.Changelog) { + return true + } + + return false +} + +// SetChangelog gets a reference to the given APIBanUserChangeLog and assigns it to the Changelog field. +func (o *BanUserFromCommentResult) SetChangelog(v APIBanUserChangeLog) { + o.Changelog = &v +} + +// GetCode returns the Code field value if set, zero value otherwise. +func (o *BanUserFromCommentResult) GetCode() string { + if o == nil || IsNil(o.Code) { + var ret string + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BanUserFromCommentResult) GetCodeOk() (*string, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *BanUserFromCommentResult) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given string and assigns it to the Code field. +func (o *BanUserFromCommentResult) SetCode(v string) { + o.Code = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *BanUserFromCommentResult) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BanUserFromCommentResult) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *BanUserFromCommentResult) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *BanUserFromCommentResult) SetReason(v string) { + o.Reason = &v +} + +func (o BanUserFromCommentResult) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BanUserFromCommentResult) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["status"] = o.Status + if !IsNil(o.Changelog) { + toSerialize["changelog"] = o.Changelog + } + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason + } + return toSerialize, nil +} + +func (o *BanUserFromCommentResult) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBanUserFromCommentResult := _BanUserFromCommentResult{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varBanUserFromCommentResult) + + if err != nil { + return err + } + + *o = BanUserFromCommentResult(varBanUserFromCommentResult) + + return err +} + +type NullableBanUserFromCommentResult struct { + value *BanUserFromCommentResult + isSet bool +} + +func (v NullableBanUserFromCommentResult) Get() *BanUserFromCommentResult { + return v.value +} + +func (v *NullableBanUserFromCommentResult) Set(val *BanUserFromCommentResult) { + v.value = val + v.isSet = true +} + +func (v NullableBanUserFromCommentResult) IsSet() bool { + return v.isSet +} + +func (v *NullableBanUserFromCommentResult) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBanUserFromCommentResult(val *BanUserFromCommentResult) *NullableBanUserFromCommentResult { + return &NullableBanUserFromCommentResult{value: val, isSet: true} +} + +func (v NullableBanUserFromCommentResult) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBanUserFromCommentResult) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_ban_user_undo_params.go b/client/model_ban_user_undo_params.go new file mode 100644 index 0000000..c8e83f5 --- /dev/null +++ b/client/model_ban_user_undo_params.go @@ -0,0 +1,158 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the BanUserUndoParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BanUserUndoParams{} + +// BanUserUndoParams struct for BanUserUndoParams +type BanUserUndoParams struct { + Changelog APIBanUserChangeLog `json:"changelog"` +} + +type _BanUserUndoParams BanUserUndoParams + +// NewBanUserUndoParams instantiates a new BanUserUndoParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBanUserUndoParams(changelog APIBanUserChangeLog) *BanUserUndoParams { + this := BanUserUndoParams{} + this.Changelog = changelog + return &this +} + +// NewBanUserUndoParamsWithDefaults instantiates a new BanUserUndoParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBanUserUndoParamsWithDefaults() *BanUserUndoParams { + this := BanUserUndoParams{} + return &this +} + +// GetChangelog returns the Changelog field value +func (o *BanUserUndoParams) GetChangelog() APIBanUserChangeLog { + if o == nil { + var ret APIBanUserChangeLog + return ret + } + + return o.Changelog +} + +// GetChangelogOk returns a tuple with the Changelog field value +// and a boolean to check if the value has been set. +func (o *BanUserUndoParams) GetChangelogOk() (*APIBanUserChangeLog, bool) { + if o == nil { + return nil, false + } + return &o.Changelog, true +} + +// SetChangelog sets field value +func (o *BanUserUndoParams) SetChangelog(v APIBanUserChangeLog) { + o.Changelog = v +} + +func (o BanUserUndoParams) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BanUserUndoParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["changelog"] = o.Changelog + return toSerialize, nil +} + +func (o *BanUserUndoParams) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "changelog", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBanUserUndoParams := _BanUserUndoParams{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varBanUserUndoParams) + + if err != nil { + return err + } + + *o = BanUserUndoParams(varBanUserUndoParams) + + return err +} + +type NullableBanUserUndoParams struct { + value *BanUserUndoParams + isSet bool +} + +func (v NullableBanUserUndoParams) Get() *BanUserUndoParams { + return v.value +} + +func (v *NullableBanUserUndoParams) Set(val *BanUserUndoParams) { + v.value = val + v.isSet = true +} + +func (v NullableBanUserUndoParams) IsSet() bool { + return v.isSet +} + +func (v *NullableBanUserUndoParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBanUserUndoParams(val *BanUserUndoParams) *NullableBanUserUndoParams { + return &NullableBanUserUndoParams{value: val, isSet: true} +} + +func (v NullableBanUserUndoParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBanUserUndoParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_banned_user_match.go b/client/model_banned_user_match.go new file mode 100644 index 0000000..06630f0 --- /dev/null +++ b/client/model_banned_user_match.go @@ -0,0 +1,188 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the BannedUserMatch type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BannedUserMatch{} + +// BannedUserMatch struct for BannedUserMatch +type BannedUserMatch struct { + MatchedOn BannedUserMatchType `json:"matchedOn"` + MatchedOnValue NullableBannedUserMatchMatchedOnValue `json:"matchedOnValue"` +} + +type _BannedUserMatch BannedUserMatch + +// NewBannedUserMatch instantiates a new BannedUserMatch object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBannedUserMatch(matchedOn BannedUserMatchType, matchedOnValue NullableBannedUserMatchMatchedOnValue) *BannedUserMatch { + this := BannedUserMatch{} + this.MatchedOn = matchedOn + this.MatchedOnValue = matchedOnValue + return &this +} + +// NewBannedUserMatchWithDefaults instantiates a new BannedUserMatch object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBannedUserMatchWithDefaults() *BannedUserMatch { + this := BannedUserMatch{} + return &this +} + +// GetMatchedOn returns the MatchedOn field value +func (o *BannedUserMatch) GetMatchedOn() BannedUserMatchType { + if o == nil { + var ret BannedUserMatchType + return ret + } + + return o.MatchedOn +} + +// GetMatchedOnOk returns a tuple with the MatchedOn field value +// and a boolean to check if the value has been set. +func (o *BannedUserMatch) GetMatchedOnOk() (*BannedUserMatchType, bool) { + if o == nil { + return nil, false + } + return &o.MatchedOn, true +} + +// SetMatchedOn sets field value +func (o *BannedUserMatch) SetMatchedOn(v BannedUserMatchType) { + o.MatchedOn = v +} + +// GetMatchedOnValue returns the MatchedOnValue field value +// If the value is explicit nil, the zero value for BannedUserMatchMatchedOnValue will be returned +func (o *BannedUserMatch) GetMatchedOnValue() BannedUserMatchMatchedOnValue { + if o == nil || o.MatchedOnValue.Get() == nil { + var ret BannedUserMatchMatchedOnValue + return ret + } + + return *o.MatchedOnValue.Get() +} + +// GetMatchedOnValueOk returns a tuple with the MatchedOnValue field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BannedUserMatch) GetMatchedOnValueOk() (*BannedUserMatchMatchedOnValue, bool) { + if o == nil { + return nil, false + } + return o.MatchedOnValue.Get(), o.MatchedOnValue.IsSet() +} + +// SetMatchedOnValue sets field value +func (o *BannedUserMatch) SetMatchedOnValue(v BannedUserMatchMatchedOnValue) { + o.MatchedOnValue.Set(&v) +} + +func (o BannedUserMatch) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BannedUserMatch) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["matchedOn"] = o.MatchedOn + toSerialize["matchedOnValue"] = o.MatchedOnValue.Get() + return toSerialize, nil +} + +func (o *BannedUserMatch) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "matchedOn", + "matchedOnValue", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBannedUserMatch := _BannedUserMatch{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varBannedUserMatch) + + if err != nil { + return err + } + + *o = BannedUserMatch(varBannedUserMatch) + + return err +} + +type NullableBannedUserMatch struct { + value *BannedUserMatch + isSet bool +} + +func (v NullableBannedUserMatch) Get() *BannedUserMatch { + return v.value +} + +func (v *NullableBannedUserMatch) Set(val *BannedUserMatch) { + v.value = val + v.isSet = true +} + +func (v NullableBannedUserMatch) IsSet() bool { + return v.isSet +} + +func (v *NullableBannedUserMatch) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBannedUserMatch(val *BannedUserMatch) *NullableBannedUserMatch { + return &NullableBannedUserMatch{value: val, isSet: true} +} + +func (v NullableBannedUserMatch) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBannedUserMatch) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_banned_user_match_matched_on_value.go b/client/model_banned_user_match_matched_on_value.go new file mode 100644 index 0000000..4730baa --- /dev/null +++ b/client/model_banned_user_match_matched_on_value.go @@ -0,0 +1,112 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "fmt" +) + + +// BannedUserMatchMatchedOnValue struct for BannedUserMatchMatchedOnValue +type BannedUserMatchMatchedOnValue struct { + Float64 *float64 + String *string +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *BannedUserMatchMatchedOnValue) UnmarshalJSON(data []byte) error { + var err error + // this object is nullable so check if the payload is null or empty string + if string(data) == "" || string(data) == "{}" { + return nil + } + + // try to unmarshal JSON data into Float64 + err = json.Unmarshal(data, &dst.Float64); + if err == nil { + jsonFloat64, _ := json.Marshal(dst.Float64) + if string(jsonFloat64) == "{}" { // empty struct + dst.Float64 = nil + } else { + return nil // data stored in dst.Float64, return on the first match + } + } else { + dst.Float64 = nil + } + + // try to unmarshal JSON data into String + err = json.Unmarshal(data, &dst.String); + if err == nil { + jsonString, _ := json.Marshal(dst.String) + if string(jsonString) == "{}" { // empty struct + dst.String = nil + } else { + return nil // data stored in dst.String, return on the first match + } + } else { + dst.String = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(BannedUserMatchMatchedOnValue)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src BannedUserMatchMatchedOnValue) MarshalJSON() ([]byte, error) { + if src.Float64 != nil { + return json.Marshal(&src.Float64) + } + + if src.String != nil { + return json.Marshal(&src.String) + } + + return nil, nil // no data in anyOf schemas +} + + +type NullableBannedUserMatchMatchedOnValue struct { + value *BannedUserMatchMatchedOnValue + isSet bool +} + +func (v NullableBannedUserMatchMatchedOnValue) Get() *BannedUserMatchMatchedOnValue { + return v.value +} + +func (v *NullableBannedUserMatchMatchedOnValue) Set(val *BannedUserMatchMatchedOnValue) { + v.value = val + v.isSet = true +} + +func (v NullableBannedUserMatchMatchedOnValue) IsSet() bool { + return v.isSet +} + +func (v *NullableBannedUserMatchMatchedOnValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBannedUserMatchMatchedOnValue(val *BannedUserMatchMatchedOnValue) *NullableBannedUserMatchMatchedOnValue { + return &NullableBannedUserMatchMatchedOnValue{value: val, isSet: true} +} + +func (v NullableBannedUserMatchMatchedOnValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBannedUserMatchMatchedOnValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_banned_user_match_type.go b/client/model_banned_user_match_type.go new file mode 100644 index 0000000..24b875a --- /dev/null +++ b/client/model_banned_user_match_type.go @@ -0,0 +1,115 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "fmt" +) + +// BannedUserMatchType the model 'BannedUserMatchType' +type BannedUserMatchType string + +// List of BannedUserMatchType +const ( + BANNEDUSERMATCHTYPE_USER_ID BannedUserMatchType = "userId" + BANNEDUSERMATCHTYPE_EMAIL BannedUserMatchType = "email" + BANNEDUSERMATCHTYPE_EMAIL_WILDCARD BannedUserMatchType = "email-wildcard" + BANNEDUSERMATCHTYPE_IP BannedUserMatchType = "IP" +) + +// All allowed values of BannedUserMatchType enum +var AllowedBannedUserMatchTypeEnumValues = []BannedUserMatchType{ + "userId", + "email", + "email-wildcard", + "IP", +} + +func (v *BannedUserMatchType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := BannedUserMatchType(value) + for _, existing := range AllowedBannedUserMatchTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid BannedUserMatchType", value) +} + +// NewBannedUserMatchTypeFromValue returns a pointer to a valid BannedUserMatchType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewBannedUserMatchTypeFromValue(v string) (*BannedUserMatchType, error) { + ev := BannedUserMatchType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for BannedUserMatchType: valid values are %v", v, AllowedBannedUserMatchTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v BannedUserMatchType) IsValid() bool { + for _, existing := range AllowedBannedUserMatchTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to BannedUserMatchType value +func (v BannedUserMatchType) Ptr() *BannedUserMatchType { + return &v +} + +type NullableBannedUserMatchType struct { + value *BannedUserMatchType + isSet bool +} + +func (v NullableBannedUserMatchType) Get() *BannedUserMatchType { + return v.value +} + +func (v *NullableBannedUserMatchType) Set(val *BannedUserMatchType) { + v.value = val + v.isSet = true +} + +func (v NullableBannedUserMatchType) IsSet() bool { + return v.isSet +} + +func (v *NullableBannedUserMatchType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBannedUserMatchType(val *BannedUserMatchType) *NullableBannedUserMatchType { + return &NullableBannedUserMatchType{value: val, isSet: true} +} + +func (v NullableBannedUserMatchType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBannedUserMatchType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/client/model_block_from_comment_public_200_response.go b/client/model_block_from_comment_public_200_response.go deleted file mode 100644 index 38b5972..0000000 --- a/client/model_block_from_comment_public_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// BlockFromCommentPublic200Response struct for BlockFromCommentPublic200Response -type BlockFromCommentPublic200Response struct { - APIError *APIError - BlockSuccess *BlockSuccess -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *BlockFromCommentPublic200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into BlockSuccess - err = json.Unmarshal(data, &dst.BlockSuccess); - if err == nil { - jsonBlockSuccess, _ := json.Marshal(dst.BlockSuccess) - if string(jsonBlockSuccess) == "{}" { // empty struct - dst.BlockSuccess = nil - } else { - return nil // data stored in dst.BlockSuccess, return on the first match - } - } else { - dst.BlockSuccess = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(BlockFromCommentPublic200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src BlockFromCommentPublic200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.BlockSuccess != nil { - return json.Marshal(&src.BlockSuccess) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableBlockFromCommentPublic200Response struct { - value *BlockFromCommentPublic200Response - isSet bool -} - -func (v NullableBlockFromCommentPublic200Response) Get() *BlockFromCommentPublic200Response { - return v.value -} - -func (v *NullableBlockFromCommentPublic200Response) Set(val *BlockFromCommentPublic200Response) { - v.value = val - v.isSet = true -} - -func (v NullableBlockFromCommentPublic200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableBlockFromCommentPublic200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBlockFromCommentPublic200Response(val *BlockFromCommentPublic200Response) *NullableBlockFromCommentPublic200Response { - return &NullableBlockFromCommentPublic200Response{value: val, isSet: true} -} - -func (v NullableBlockFromCommentPublic200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableBlockFromCommentPublic200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_build_moderation_filter_params.go b/client/model_build_moderation_filter_params.go new file mode 100644 index 0000000..a91f49a --- /dev/null +++ b/client/model_build_moderation_filter_params.go @@ -0,0 +1,308 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "fmt" +) + +// checks if the BuildModerationFilterParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BuildModerationFilterParams{} + +// BuildModerationFilterParams struct for BuildModerationFilterParams +type BuildModerationFilterParams struct { + UserId string `json:"userId"` + TenantId string `json:"tenantId"` + Filters *string `json:"filters,omitempty"` + SearchFilters *string `json:"searchFilters,omitempty"` + TextSearch *string `json:"textSearch,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BuildModerationFilterParams BuildModerationFilterParams + +// NewBuildModerationFilterParams instantiates a new BuildModerationFilterParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBuildModerationFilterParams(userId string, tenantId string) *BuildModerationFilterParams { + this := BuildModerationFilterParams{} + this.UserId = userId + this.TenantId = tenantId + return &this +} + +// NewBuildModerationFilterParamsWithDefaults instantiates a new BuildModerationFilterParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBuildModerationFilterParamsWithDefaults() *BuildModerationFilterParams { + this := BuildModerationFilterParams{} + return &this +} + +// GetUserId returns the UserId field value +func (o *BuildModerationFilterParams) GetUserId() string { + if o == nil { + var ret string + return ret + } + + return o.UserId +} + +// GetUserIdOk returns a tuple with the UserId field value +// and a boolean to check if the value has been set. +func (o *BuildModerationFilterParams) GetUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UserId, true +} + +// SetUserId sets field value +func (o *BuildModerationFilterParams) SetUserId(v string) { + o.UserId = v +} + +// GetTenantId returns the TenantId field value +func (o *BuildModerationFilterParams) GetTenantId() string { + if o == nil { + var ret string + return ret + } + + return o.TenantId +} + +// GetTenantIdOk returns a tuple with the TenantId field value +// and a boolean to check if the value has been set. +func (o *BuildModerationFilterParams) GetTenantIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TenantId, true +} + +// SetTenantId sets field value +func (o *BuildModerationFilterParams) SetTenantId(v string) { + o.TenantId = v +} + +// GetFilters returns the Filters field value if set, zero value otherwise. +func (o *BuildModerationFilterParams) GetFilters() string { + if o == nil || IsNil(o.Filters) { + var ret string + return ret + } + return *o.Filters +} + +// GetFiltersOk returns a tuple with the Filters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuildModerationFilterParams) GetFiltersOk() (*string, bool) { + if o == nil || IsNil(o.Filters) { + return nil, false + } + return o.Filters, true +} + +// HasFilters returns a boolean if a field has been set. +func (o *BuildModerationFilterParams) HasFilters() bool { + if o != nil && !IsNil(o.Filters) { + return true + } + + return false +} + +// SetFilters gets a reference to the given string and assigns it to the Filters field. +func (o *BuildModerationFilterParams) SetFilters(v string) { + o.Filters = &v +} + +// GetSearchFilters returns the SearchFilters field value if set, zero value otherwise. +func (o *BuildModerationFilterParams) GetSearchFilters() string { + if o == nil || IsNil(o.SearchFilters) { + var ret string + return ret + } + return *o.SearchFilters +} + +// GetSearchFiltersOk returns a tuple with the SearchFilters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuildModerationFilterParams) GetSearchFiltersOk() (*string, bool) { + if o == nil || IsNil(o.SearchFilters) { + return nil, false + } + return o.SearchFilters, true +} + +// HasSearchFilters returns a boolean if a field has been set. +func (o *BuildModerationFilterParams) HasSearchFilters() bool { + if o != nil && !IsNil(o.SearchFilters) { + return true + } + + return false +} + +// SetSearchFilters gets a reference to the given string and assigns it to the SearchFilters field. +func (o *BuildModerationFilterParams) SetSearchFilters(v string) { + o.SearchFilters = &v +} + +// GetTextSearch returns the TextSearch field value if set, zero value otherwise. +func (o *BuildModerationFilterParams) GetTextSearch() string { + if o == nil || IsNil(o.TextSearch) { + var ret string + return ret + } + return *o.TextSearch +} + +// GetTextSearchOk returns a tuple with the TextSearch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuildModerationFilterParams) GetTextSearchOk() (*string, bool) { + if o == nil || IsNil(o.TextSearch) { + return nil, false + } + return o.TextSearch, true +} + +// HasTextSearch returns a boolean if a field has been set. +func (o *BuildModerationFilterParams) HasTextSearch() bool { + if o != nil && !IsNil(o.TextSearch) { + return true + } + + return false +} + +// SetTextSearch gets a reference to the given string and assigns it to the TextSearch field. +func (o *BuildModerationFilterParams) SetTextSearch(v string) { + o.TextSearch = &v +} + +func (o BuildModerationFilterParams) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BuildModerationFilterParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["userId"] = o.UserId + toSerialize["tenantId"] = o.TenantId + if !IsNil(o.Filters) { + toSerialize["filters"] = o.Filters + } + if !IsNil(o.SearchFilters) { + toSerialize["searchFilters"] = o.SearchFilters + } + if !IsNil(o.TextSearch) { + toSerialize["textSearch"] = o.TextSearch + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BuildModerationFilterParams) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "userId", + "tenantId", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBuildModerationFilterParams := _BuildModerationFilterParams{} + + err = json.Unmarshal(data, &varBuildModerationFilterParams) + + if err != nil { + return err + } + + *o = BuildModerationFilterParams(varBuildModerationFilterParams) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "userId") + delete(additionalProperties, "tenantId") + delete(additionalProperties, "filters") + delete(additionalProperties, "searchFilters") + delete(additionalProperties, "textSearch") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBuildModerationFilterParams struct { + value *BuildModerationFilterParams + isSet bool +} + +func (v NullableBuildModerationFilterParams) Get() *BuildModerationFilterParams { + return v.value +} + +func (v *NullableBuildModerationFilterParams) Set(val *BuildModerationFilterParams) { + v.value = val + v.isSet = true +} + +func (v NullableBuildModerationFilterParams) IsSet() bool { + return v.isSet +} + +func (v *NullableBuildModerationFilterParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBuildModerationFilterParams(val *BuildModerationFilterParams) *NullableBuildModerationFilterParams { + return &NullableBuildModerationFilterParams{value: val, isSet: true} +} + +func (v NullableBuildModerationFilterParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBuildModerationFilterParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_build_moderation_filter_response.go b/client/model_build_moderation_filter_response.go new file mode 100644 index 0000000..c6ed4e3 --- /dev/null +++ b/client/model_build_moderation_filter_response.go @@ -0,0 +1,186 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the BuildModerationFilterResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BuildModerationFilterResponse{} + +// BuildModerationFilterResponse struct for BuildModerationFilterResponse +type BuildModerationFilterResponse struct { + Status string `json:"status"` + ModerationFilter ModerationFilter `json:"moderationFilter"` +} + +type _BuildModerationFilterResponse BuildModerationFilterResponse + +// NewBuildModerationFilterResponse instantiates a new BuildModerationFilterResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBuildModerationFilterResponse(status string, moderationFilter ModerationFilter) *BuildModerationFilterResponse { + this := BuildModerationFilterResponse{} + this.Status = status + this.ModerationFilter = moderationFilter + return &this +} + +// NewBuildModerationFilterResponseWithDefaults instantiates a new BuildModerationFilterResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBuildModerationFilterResponseWithDefaults() *BuildModerationFilterResponse { + this := BuildModerationFilterResponse{} + return &this +} + +// GetStatus returns the Status field value +func (o *BuildModerationFilterResponse) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *BuildModerationFilterResponse) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *BuildModerationFilterResponse) SetStatus(v string) { + o.Status = v +} + +// GetModerationFilter returns the ModerationFilter field value +func (o *BuildModerationFilterResponse) GetModerationFilter() ModerationFilter { + if o == nil { + var ret ModerationFilter + return ret + } + + return o.ModerationFilter +} + +// GetModerationFilterOk returns a tuple with the ModerationFilter field value +// and a boolean to check if the value has been set. +func (o *BuildModerationFilterResponse) GetModerationFilterOk() (*ModerationFilter, bool) { + if o == nil { + return nil, false + } + return &o.ModerationFilter, true +} + +// SetModerationFilter sets field value +func (o *BuildModerationFilterResponse) SetModerationFilter(v ModerationFilter) { + o.ModerationFilter = v +} + +func (o BuildModerationFilterResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BuildModerationFilterResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["status"] = o.Status + toSerialize["moderationFilter"] = o.ModerationFilter + return toSerialize, nil +} + +func (o *BuildModerationFilterResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "status", + "moderationFilter", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBuildModerationFilterResponse := _BuildModerationFilterResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varBuildModerationFilterResponse) + + if err != nil { + return err + } + + *o = BuildModerationFilterResponse(varBuildModerationFilterResponse) + + return err +} + +type NullableBuildModerationFilterResponse struct { + value *BuildModerationFilterResponse + isSet bool +} + +func (v NullableBuildModerationFilterResponse) Get() *BuildModerationFilterResponse { + return v.value +} + +func (v *NullableBuildModerationFilterResponse) Set(val *BuildModerationFilterResponse) { + v.value = val + v.isSet = true +} + +func (v NullableBuildModerationFilterResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableBuildModerationFilterResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBuildModerationFilterResponse(val *BuildModerationFilterResponse) *NullableBuildModerationFilterResponse { + return &NullableBuildModerationFilterResponse{value: val, isSet: true} +} + +func (v NullableBuildModerationFilterResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBuildModerationFilterResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_bulk_aggregate_question_results_200_response.go b/client/model_bulk_aggregate_question_results_200_response.go deleted file mode 100644 index 3b08106..0000000 --- a/client/model_bulk_aggregate_question_results_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// BulkAggregateQuestionResults200Response struct for BulkAggregateQuestionResults200Response -type BulkAggregateQuestionResults200Response struct { - APIError *APIError - BulkAggregateQuestionResultsResponse *BulkAggregateQuestionResultsResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *BulkAggregateQuestionResults200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into BulkAggregateQuestionResultsResponse - err = json.Unmarshal(data, &dst.BulkAggregateQuestionResultsResponse); - if err == nil { - jsonBulkAggregateQuestionResultsResponse, _ := json.Marshal(dst.BulkAggregateQuestionResultsResponse) - if string(jsonBulkAggregateQuestionResultsResponse) == "{}" { // empty struct - dst.BulkAggregateQuestionResultsResponse = nil - } else { - return nil // data stored in dst.BulkAggregateQuestionResultsResponse, return on the first match - } - } else { - dst.BulkAggregateQuestionResultsResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(BulkAggregateQuestionResults200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src BulkAggregateQuestionResults200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.BulkAggregateQuestionResultsResponse != nil { - return json.Marshal(&src.BulkAggregateQuestionResultsResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableBulkAggregateQuestionResults200Response struct { - value *BulkAggregateQuestionResults200Response - isSet bool -} - -func (v NullableBulkAggregateQuestionResults200Response) Get() *BulkAggregateQuestionResults200Response { - return v.value -} - -func (v *NullableBulkAggregateQuestionResults200Response) Set(val *BulkAggregateQuestionResults200Response) { - v.value = val - v.isSet = true -} - -func (v NullableBulkAggregateQuestionResults200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableBulkAggregateQuestionResults200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBulkAggregateQuestionResults200Response(val *BulkAggregateQuestionResults200Response) *NullableBulkAggregateQuestionResults200Response { - return &NullableBulkAggregateQuestionResults200Response{value: val, isSet: true} -} - -func (v NullableBulkAggregateQuestionResults200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableBulkAggregateQuestionResults200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_bulk_create_hash_tags_response.go b/client/model_bulk_create_hash_tags_response.go index 20af614..ce19894 100644 --- a/client/model_bulk_create_hash_tags_response.go +++ b/client/model_bulk_create_hash_tags_response.go @@ -22,7 +22,7 @@ var _ MappedNullable = &BulkCreateHashTagsResponse{} // BulkCreateHashTagsResponse struct for BulkCreateHashTagsResponse type BulkCreateHashTagsResponse struct { Status APIStatus `json:"status"` - Results []AddHashTag200Response `json:"results"` + Results []BulkCreateHashTagsResponseResultsInner `json:"results"` } type _BulkCreateHashTagsResponse BulkCreateHashTagsResponse @@ -31,7 +31,7 @@ type _BulkCreateHashTagsResponse BulkCreateHashTagsResponse // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewBulkCreateHashTagsResponse(status APIStatus, results []AddHashTag200Response) *BulkCreateHashTagsResponse { +func NewBulkCreateHashTagsResponse(status APIStatus, results []BulkCreateHashTagsResponseResultsInner) *BulkCreateHashTagsResponse { this := BulkCreateHashTagsResponse{} this.Status = status this.Results = results @@ -71,9 +71,9 @@ func (o *BulkCreateHashTagsResponse) SetStatus(v APIStatus) { } // GetResults returns the Results field value -func (o *BulkCreateHashTagsResponse) GetResults() []AddHashTag200Response { +func (o *BulkCreateHashTagsResponse) GetResults() []BulkCreateHashTagsResponseResultsInner { if o == nil { - var ret []AddHashTag200Response + var ret []BulkCreateHashTagsResponseResultsInner return ret } @@ -82,7 +82,7 @@ func (o *BulkCreateHashTagsResponse) GetResults() []AddHashTag200Response { // GetResultsOk returns a tuple with the Results field value // and a boolean to check if the value has been set. -func (o *BulkCreateHashTagsResponse) GetResultsOk() ([]AddHashTag200Response, bool) { +func (o *BulkCreateHashTagsResponse) GetResultsOk() ([]BulkCreateHashTagsResponseResultsInner, bool) { if o == nil { return nil, false } @@ -90,7 +90,7 @@ func (o *BulkCreateHashTagsResponse) GetResultsOk() ([]AddHashTag200Response, bo } // SetResults sets field value -func (o *BulkCreateHashTagsResponse) SetResults(v []AddHashTag200Response) { +func (o *BulkCreateHashTagsResponse) SetResults(v []BulkCreateHashTagsResponseResultsInner) { o.Results = v } diff --git a/client/model_add_hash_tag_200_response.go b/client/model_bulk_create_hash_tags_response_results_inner.go similarity index 57% rename from client/model_add_hash_tag_200_response.go rename to client/model_bulk_create_hash_tags_response_results_inner.go index 60e7360..31d38a6 100644 --- a/client/model_add_hash_tag_200_response.go +++ b/client/model_bulk_create_hash_tags_response_results_inner.go @@ -16,14 +16,14 @@ import ( ) -// AddHashTag200Response struct for AddHashTag200Response -type AddHashTag200Response struct { +// BulkCreateHashTagsResponseResultsInner struct for BulkCreateHashTagsResponseResultsInner +type BulkCreateHashTagsResponseResultsInner struct { APIError *APIError CreateHashTagResponse *CreateHashTagResponse } // Unmarshal JSON data into any of the pointers in the struct -func (dst *AddHashTag200Response) UnmarshalJSON(data []byte) error { +func (dst *BulkCreateHashTagsResponseResultsInner) UnmarshalJSON(data []byte) error { var err error // try to unmarshal JSON data into APIError err = json.Unmarshal(data, &dst.APIError); @@ -51,11 +51,11 @@ func (dst *AddHashTag200Response) UnmarshalJSON(data []byte) error { dst.CreateHashTagResponse = nil } - return fmt.Errorf("data failed to match schemas in anyOf(AddHashTag200Response)") + return fmt.Errorf("data failed to match schemas in anyOf(BulkCreateHashTagsResponseResultsInner)") } // Marshal data from the first non-nil pointers in the struct to JSON -func (src AddHashTag200Response) MarshalJSON() ([]byte, error) { +func (src BulkCreateHashTagsResponseResultsInner) MarshalJSON() ([]byte, error) { if src.APIError != nil { return json.Marshal(&src.APIError) } @@ -68,38 +68,38 @@ func (src AddHashTag200Response) MarshalJSON() ([]byte, error) { } -type NullableAddHashTag200Response struct { - value *AddHashTag200Response +type NullableBulkCreateHashTagsResponseResultsInner struct { + value *BulkCreateHashTagsResponseResultsInner isSet bool } -func (v NullableAddHashTag200Response) Get() *AddHashTag200Response { +func (v NullableBulkCreateHashTagsResponseResultsInner) Get() *BulkCreateHashTagsResponseResultsInner { return v.value } -func (v *NullableAddHashTag200Response) Set(val *AddHashTag200Response) { +func (v *NullableBulkCreateHashTagsResponseResultsInner) Set(val *BulkCreateHashTagsResponseResultsInner) { v.value = val v.isSet = true } -func (v NullableAddHashTag200Response) IsSet() bool { +func (v NullableBulkCreateHashTagsResponseResultsInner) IsSet() bool { return v.isSet } -func (v *NullableAddHashTag200Response) Unset() { +func (v *NullableBulkCreateHashTagsResponseResultsInner) Unset() { v.value = nil v.isSet = false } -func NewNullableAddHashTag200Response(val *AddHashTag200Response) *NullableAddHashTag200Response { - return &NullableAddHashTag200Response{value: val, isSet: true} +func NewNullableBulkCreateHashTagsResponseResultsInner(val *BulkCreateHashTagsResponseResultsInner) *NullableBulkCreateHashTagsResponseResultsInner { + return &NullableBulkCreateHashTagsResponseResultsInner{value: val, isSet: true} } -func (v NullableAddHashTag200Response) MarshalJSON() ([]byte, error) { +func (v NullableBulkCreateHashTagsResponseResultsInner) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableAddHashTag200Response) UnmarshalJSON(src []byte) error { +func (v *NullableBulkCreateHashTagsResponseResultsInner) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/client/model_bulk_pre_ban_params.go b/client/model_bulk_pre_ban_params.go new file mode 100644 index 0000000..1c5aadc --- /dev/null +++ b/client/model_bulk_pre_ban_params.go @@ -0,0 +1,158 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the BulkPreBanParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BulkPreBanParams{} + +// BulkPreBanParams struct for BulkPreBanParams +type BulkPreBanParams struct { + CommentIds []string `json:"commentIds"` +} + +type _BulkPreBanParams BulkPreBanParams + +// NewBulkPreBanParams instantiates a new BulkPreBanParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBulkPreBanParams(commentIds []string) *BulkPreBanParams { + this := BulkPreBanParams{} + this.CommentIds = commentIds + return &this +} + +// NewBulkPreBanParamsWithDefaults instantiates a new BulkPreBanParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBulkPreBanParamsWithDefaults() *BulkPreBanParams { + this := BulkPreBanParams{} + return &this +} + +// GetCommentIds returns the CommentIds field value +func (o *BulkPreBanParams) GetCommentIds() []string { + if o == nil { + var ret []string + return ret + } + + return o.CommentIds +} + +// GetCommentIdsOk returns a tuple with the CommentIds field value +// and a boolean to check if the value has been set. +func (o *BulkPreBanParams) GetCommentIdsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.CommentIds, true +} + +// SetCommentIds sets field value +func (o *BulkPreBanParams) SetCommentIds(v []string) { + o.CommentIds = v +} + +func (o BulkPreBanParams) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BulkPreBanParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["commentIds"] = o.CommentIds + return toSerialize, nil +} + +func (o *BulkPreBanParams) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "commentIds", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBulkPreBanParams := _BulkPreBanParams{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varBulkPreBanParams) + + if err != nil { + return err + } + + *o = BulkPreBanParams(varBulkPreBanParams) + + return err +} + +type NullableBulkPreBanParams struct { + value *BulkPreBanParams + isSet bool +} + +func (v NullableBulkPreBanParams) Get() *BulkPreBanParams { + return v.value +} + +func (v *NullableBulkPreBanParams) Set(val *BulkPreBanParams) { + v.value = val + v.isSet = true +} + +func (v NullableBulkPreBanParams) IsSet() bool { + return v.isSet +} + +func (v *NullableBulkPreBanParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBulkPreBanParams(val *BulkPreBanParams) *NullableBulkPreBanParams { + return &NullableBulkPreBanParams{value: val, isSet: true} +} + +func (v NullableBulkPreBanParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBulkPreBanParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_bulk_pre_ban_summary.go b/client/model_bulk_pre_ban_summary.go new file mode 100644 index 0000000..5a9a797 --- /dev/null +++ b/client/model_bulk_pre_ban_summary.go @@ -0,0 +1,298 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the BulkPreBanSummary type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BulkPreBanSummary{} + +// BulkPreBanSummary struct for BulkPreBanSummary +type BulkPreBanSummary struct { + Status string `json:"status"` + TotalRelatedCommentCount int32 `json:"totalRelatedCommentCount"` + EmailDomains []string `json:"emailDomains"` + Emails []string `json:"emails"` + UserIds []string `json:"userIds"` + IpHashes []string `json:"ipHashes"` +} + +type _BulkPreBanSummary BulkPreBanSummary + +// NewBulkPreBanSummary instantiates a new BulkPreBanSummary object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBulkPreBanSummary(status string, totalRelatedCommentCount int32, emailDomains []string, emails []string, userIds []string, ipHashes []string) *BulkPreBanSummary { + this := BulkPreBanSummary{} + this.Status = status + this.TotalRelatedCommentCount = totalRelatedCommentCount + this.EmailDomains = emailDomains + this.Emails = emails + this.UserIds = userIds + this.IpHashes = ipHashes + return &this +} + +// NewBulkPreBanSummaryWithDefaults instantiates a new BulkPreBanSummary object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBulkPreBanSummaryWithDefaults() *BulkPreBanSummary { + this := BulkPreBanSummary{} + return &this +} + +// GetStatus returns the Status field value +func (o *BulkPreBanSummary) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *BulkPreBanSummary) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *BulkPreBanSummary) SetStatus(v string) { + o.Status = v +} + +// GetTotalRelatedCommentCount returns the TotalRelatedCommentCount field value +func (o *BulkPreBanSummary) GetTotalRelatedCommentCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.TotalRelatedCommentCount +} + +// GetTotalRelatedCommentCountOk returns a tuple with the TotalRelatedCommentCount field value +// and a boolean to check if the value has been set. +func (o *BulkPreBanSummary) GetTotalRelatedCommentCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.TotalRelatedCommentCount, true +} + +// SetTotalRelatedCommentCount sets field value +func (o *BulkPreBanSummary) SetTotalRelatedCommentCount(v int32) { + o.TotalRelatedCommentCount = v +} + +// GetEmailDomains returns the EmailDomains field value +func (o *BulkPreBanSummary) GetEmailDomains() []string { + if o == nil { + var ret []string + return ret + } + + return o.EmailDomains +} + +// GetEmailDomainsOk returns a tuple with the EmailDomains field value +// and a boolean to check if the value has been set. +func (o *BulkPreBanSummary) GetEmailDomainsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.EmailDomains, true +} + +// SetEmailDomains sets field value +func (o *BulkPreBanSummary) SetEmailDomains(v []string) { + o.EmailDomains = v +} + +// GetEmails returns the Emails field value +func (o *BulkPreBanSummary) GetEmails() []string { + if o == nil { + var ret []string + return ret + } + + return o.Emails +} + +// GetEmailsOk returns a tuple with the Emails field value +// and a boolean to check if the value has been set. +func (o *BulkPreBanSummary) GetEmailsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Emails, true +} + +// SetEmails sets field value +func (o *BulkPreBanSummary) SetEmails(v []string) { + o.Emails = v +} + +// GetUserIds returns the UserIds field value +func (o *BulkPreBanSummary) GetUserIds() []string { + if o == nil { + var ret []string + return ret + } + + return o.UserIds +} + +// GetUserIdsOk returns a tuple with the UserIds field value +// and a boolean to check if the value has been set. +func (o *BulkPreBanSummary) GetUserIdsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.UserIds, true +} + +// SetUserIds sets field value +func (o *BulkPreBanSummary) SetUserIds(v []string) { + o.UserIds = v +} + +// GetIpHashes returns the IpHashes field value +func (o *BulkPreBanSummary) GetIpHashes() []string { + if o == nil { + var ret []string + return ret + } + + return o.IpHashes +} + +// GetIpHashesOk returns a tuple with the IpHashes field value +// and a boolean to check if the value has been set. +func (o *BulkPreBanSummary) GetIpHashesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.IpHashes, true +} + +// SetIpHashes sets field value +func (o *BulkPreBanSummary) SetIpHashes(v []string) { + o.IpHashes = v +} + +func (o BulkPreBanSummary) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BulkPreBanSummary) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["status"] = o.Status + toSerialize["totalRelatedCommentCount"] = o.TotalRelatedCommentCount + toSerialize["emailDomains"] = o.EmailDomains + toSerialize["emails"] = o.Emails + toSerialize["userIds"] = o.UserIds + toSerialize["ipHashes"] = o.IpHashes + return toSerialize, nil +} + +func (o *BulkPreBanSummary) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "status", + "totalRelatedCommentCount", + "emailDomains", + "emails", + "userIds", + "ipHashes", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBulkPreBanSummary := _BulkPreBanSummary{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varBulkPreBanSummary) + + if err != nil { + return err + } + + *o = BulkPreBanSummary(varBulkPreBanSummary) + + return err +} + +type NullableBulkPreBanSummary struct { + value *BulkPreBanSummary + isSet bool +} + +func (v NullableBulkPreBanSummary) Get() *BulkPreBanSummary { + return v.value +} + +func (v *NullableBulkPreBanSummary) Set(val *BulkPreBanSummary) { + v.value = val + v.isSet = true +} + +func (v NullableBulkPreBanSummary) IsSet() bool { + return v.isSet +} + +func (v *NullableBulkPreBanSummary) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBulkPreBanSummary(val *BulkPreBanSummary) *NullableBulkPreBanSummary { + return &NullableBulkPreBanSummary{value: val, isSet: true} +} + +func (v NullableBulkPreBanSummary) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBulkPreBanSummary) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_change_ticket_state_200_response.go b/client/model_change_ticket_state_200_response.go deleted file mode 100644 index abe5f1e..0000000 --- a/client/model_change_ticket_state_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// ChangeTicketState200Response struct for ChangeTicketState200Response -type ChangeTicketState200Response struct { - APIError *APIError - ChangeTicketStateResponse *ChangeTicketStateResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *ChangeTicketState200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into ChangeTicketStateResponse - err = json.Unmarshal(data, &dst.ChangeTicketStateResponse); - if err == nil { - jsonChangeTicketStateResponse, _ := json.Marshal(dst.ChangeTicketStateResponse) - if string(jsonChangeTicketStateResponse) == "{}" { // empty struct - dst.ChangeTicketStateResponse = nil - } else { - return nil // data stored in dst.ChangeTicketStateResponse, return on the first match - } - } else { - dst.ChangeTicketStateResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(ChangeTicketState200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src ChangeTicketState200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.ChangeTicketStateResponse != nil { - return json.Marshal(&src.ChangeTicketStateResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableChangeTicketState200Response struct { - value *ChangeTicketState200Response - isSet bool -} - -func (v NullableChangeTicketState200Response) Get() *ChangeTicketState200Response { - return v.value -} - -func (v *NullableChangeTicketState200Response) Set(val *ChangeTicketState200Response) { - v.value = val - v.isSet = true -} - -func (v NullableChangeTicketState200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableChangeTicketState200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableChangeTicketState200Response(val *ChangeTicketState200Response) *NullableChangeTicketState200Response { - return &NullableChangeTicketState200Response{value: val, isSet: true} -} - -func (v NullableChangeTicketState200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableChangeTicketState200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_checked_comments_for_blocked_200_response.go b/client/model_checked_comments_for_blocked_200_response.go deleted file mode 100644 index 7a39090..0000000 --- a/client/model_checked_comments_for_blocked_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// CheckedCommentsForBlocked200Response struct for CheckedCommentsForBlocked200Response -type CheckedCommentsForBlocked200Response struct { - APIError *APIError - CheckBlockedCommentsResponse *CheckBlockedCommentsResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *CheckedCommentsForBlocked200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into CheckBlockedCommentsResponse - err = json.Unmarshal(data, &dst.CheckBlockedCommentsResponse); - if err == nil { - jsonCheckBlockedCommentsResponse, _ := json.Marshal(dst.CheckBlockedCommentsResponse) - if string(jsonCheckBlockedCommentsResponse) == "{}" { // empty struct - dst.CheckBlockedCommentsResponse = nil - } else { - return nil // data stored in dst.CheckBlockedCommentsResponse, return on the first match - } - } else { - dst.CheckBlockedCommentsResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(CheckedCommentsForBlocked200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src CheckedCommentsForBlocked200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.CheckBlockedCommentsResponse != nil { - return json.Marshal(&src.CheckBlockedCommentsResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableCheckedCommentsForBlocked200Response struct { - value *CheckedCommentsForBlocked200Response - isSet bool -} - -func (v NullableCheckedCommentsForBlocked200Response) Get() *CheckedCommentsForBlocked200Response { - return v.value -} - -func (v *NullableCheckedCommentsForBlocked200Response) Set(val *CheckedCommentsForBlocked200Response) { - v.value = val - v.isSet = true -} - -func (v NullableCheckedCommentsForBlocked200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableCheckedCommentsForBlocked200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCheckedCommentsForBlocked200Response(val *CheckedCommentsForBlocked200Response) *NullableCheckedCommentsForBlocked200Response { - return &NullableCheckedCommentsForBlocked200Response{value: val, isSet: true} -} - -func (v NullableCheckedCommentsForBlocked200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCheckedCommentsForBlocked200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_combine_comments_with_question_results_200_response.go b/client/model_combine_comments_with_question_results_200_response.go deleted file mode 100644 index 9da6059..0000000 --- a/client/model_combine_comments_with_question_results_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// CombineCommentsWithQuestionResults200Response struct for CombineCommentsWithQuestionResults200Response -type CombineCommentsWithQuestionResults200Response struct { - APIError *APIError - CombineQuestionResultsWithCommentsResponse *CombineQuestionResultsWithCommentsResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *CombineCommentsWithQuestionResults200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into CombineQuestionResultsWithCommentsResponse - err = json.Unmarshal(data, &dst.CombineQuestionResultsWithCommentsResponse); - if err == nil { - jsonCombineQuestionResultsWithCommentsResponse, _ := json.Marshal(dst.CombineQuestionResultsWithCommentsResponse) - if string(jsonCombineQuestionResultsWithCommentsResponse) == "{}" { // empty struct - dst.CombineQuestionResultsWithCommentsResponse = nil - } else { - return nil // data stored in dst.CombineQuestionResultsWithCommentsResponse, return on the first match - } - } else { - dst.CombineQuestionResultsWithCommentsResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(CombineCommentsWithQuestionResults200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src CombineCommentsWithQuestionResults200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.CombineQuestionResultsWithCommentsResponse != nil { - return json.Marshal(&src.CombineQuestionResultsWithCommentsResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableCombineCommentsWithQuestionResults200Response struct { - value *CombineCommentsWithQuestionResults200Response - isSet bool -} - -func (v NullableCombineCommentsWithQuestionResults200Response) Get() *CombineCommentsWithQuestionResults200Response { - return v.value -} - -func (v *NullableCombineCommentsWithQuestionResults200Response) Set(val *CombineCommentsWithQuestionResults200Response) { - v.value = val - v.isSet = true -} - -func (v NullableCombineCommentsWithQuestionResults200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableCombineCommentsWithQuestionResults200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCombineCommentsWithQuestionResults200Response(val *CombineCommentsWithQuestionResults200Response) *NullableCombineCommentsWithQuestionResults200Response { - return &NullableCombineCommentsWithQuestionResults200Response{value: val, isSet: true} -} - -func (v NullableCombineCommentsWithQuestionResults200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCombineCommentsWithQuestionResults200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_comment_data.go b/client/model_comment_data.go index 00061cb..7e488d5 100644 --- a/client/model_comment_data.go +++ b/client/model_comment_data.go @@ -45,8 +45,9 @@ type CommentData struct { AutoplayDelayMS *int64 `json:"autoplayDelayMS,omitempty"` FeedbackIds []string `json:"feedbackIds,omitempty"` // Construct a type with a set of properties K of type T - QuestionValues map[string]RecordStringStringOrNumberValue `json:"questionValues,omitempty"` + QuestionValues map[string]GifSearchResponseImagesInnerInner `json:"questionValues,omitempty"` Tos *bool `json:"tos,omitempty"` + BotId *string `json:"botId,omitempty"` } type _CommentData CommentData @@ -827,9 +828,9 @@ func (o *CommentData) SetFeedbackIds(v []string) { } // GetQuestionValues returns the QuestionValues field value if set, zero value otherwise. -func (o *CommentData) GetQuestionValues() map[string]RecordStringStringOrNumberValue { +func (o *CommentData) GetQuestionValues() map[string]GifSearchResponseImagesInnerInner { if o == nil || IsNil(o.QuestionValues) { - var ret map[string]RecordStringStringOrNumberValue + var ret map[string]GifSearchResponseImagesInnerInner return ret } return o.QuestionValues @@ -837,9 +838,9 @@ func (o *CommentData) GetQuestionValues() map[string]RecordStringStringOrNumberV // GetQuestionValuesOk returns a tuple with the QuestionValues field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CommentData) GetQuestionValuesOk() (map[string]RecordStringStringOrNumberValue, bool) { +func (o *CommentData) GetQuestionValuesOk() (map[string]GifSearchResponseImagesInnerInner, bool) { if o == nil || IsNil(o.QuestionValues) { - return map[string]RecordStringStringOrNumberValue{}, false + return map[string]GifSearchResponseImagesInnerInner{}, false } return o.QuestionValues, true } @@ -853,8 +854,8 @@ func (o *CommentData) HasQuestionValues() bool { return false } -// SetQuestionValues gets a reference to the given map[string]RecordStringStringOrNumberValue and assigns it to the QuestionValues field. -func (o *CommentData) SetQuestionValues(v map[string]RecordStringStringOrNumberValue) { +// SetQuestionValues gets a reference to the given map[string]GifSearchResponseImagesInnerInner and assigns it to the QuestionValues field. +func (o *CommentData) SetQuestionValues(v map[string]GifSearchResponseImagesInnerInner) { o.QuestionValues = v } @@ -890,6 +891,38 @@ func (o *CommentData) SetTos(v bool) { o.Tos = &v } +// GetBotId returns the BotId field value if set, zero value otherwise. +func (o *CommentData) GetBotId() string { + if o == nil || IsNil(o.BotId) { + var ret string + return ret + } + return *o.BotId +} + +// GetBotIdOk returns a tuple with the BotId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommentData) GetBotIdOk() (*string, bool) { + if o == nil || IsNil(o.BotId) { + return nil, false + } + return o.BotId, true +} + +// HasBotId returns a boolean if a field has been set. +func (o *CommentData) HasBotId() bool { + if o != nil && !IsNil(o.BotId) { + return true + } + + return false +} + +// SetBotId gets a reference to the given string and assigns it to the BotId field. +func (o *CommentData) SetBotId(v string) { + o.BotId = &v +} + func (o CommentData) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -967,6 +1000,9 @@ func (o CommentData) ToMap() (map[string]interface{}, error) { if !IsNil(o.Tos) { toSerialize["tos"] = o.Tos } + if !IsNil(o.BotId) { + toSerialize["botId"] = o.BotId + } return toSerialize, nil } diff --git a/client/model_comment_log_data.go b/client/model_comment_log_data.go index 0b50921..2b3486a 100644 --- a/client/model_comment_log_data.go +++ b/client/model_comment_log_data.go @@ -35,6 +35,7 @@ type CommentLogData struct { EngineResponse *string `json:"engineResponse,omitempty"` EngineTokens *float64 `json:"engineTokens,omitempty"` TrustFactor *float64 `json:"trustFactor,omitempty"` + Source *string `json:"source,omitempty"` Rule *SpamRule `json:"rule,omitempty"` UserId *string `json:"userId,omitempty"` Subscribers *float64 `json:"subscribers,omitempty"` @@ -565,6 +566,38 @@ func (o *CommentLogData) SetTrustFactor(v float64) { o.TrustFactor = &v } +// GetSource returns the Source field value if set, zero value otherwise. +func (o *CommentLogData) GetSource() string { + if o == nil || IsNil(o.Source) { + var ret string + return ret + } + return *o.Source +} + +// GetSourceOk returns a tuple with the Source field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommentLogData) GetSourceOk() (*string, bool) { + if o == nil || IsNil(o.Source) { + return nil, false + } + return o.Source, true +} + +// HasSource returns a boolean if a field has been set. +func (o *CommentLogData) HasSource() bool { + if o != nil && !IsNil(o.Source) { + return true + } + + return false +} + +// SetSource gets a reference to the given string and assigns it to the Source field. +func (o *CommentLogData) SetSource(v string) { + o.Source = &v +} + // GetRule returns the Rule field value if set, zero value otherwise. func (o *CommentLogData) GetRule() SpamRule { if o == nil || IsNil(o.Rule) { @@ -1703,6 +1736,9 @@ func (o CommentLogData) ToMap() (map[string]interface{}, error) { if !IsNil(o.TrustFactor) { toSerialize["trustFactor"] = o.TrustFactor } + if !IsNil(o.Source) { + toSerialize["source"] = o.Source + } if !IsNil(o.Rule) { toSerialize["rule"] = o.Rule } diff --git a/client/model_comments_by_ids_params.go b/client/model_comments_by_ids_params.go new file mode 100644 index 0000000..1a8f34b --- /dev/null +++ b/client/model_comments_by_ids_params.go @@ -0,0 +1,158 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the CommentsByIdsParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CommentsByIdsParams{} + +// CommentsByIdsParams struct for CommentsByIdsParams +type CommentsByIdsParams struct { + Ids []string `json:"ids"` +} + +type _CommentsByIdsParams CommentsByIdsParams + +// NewCommentsByIdsParams instantiates a new CommentsByIdsParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCommentsByIdsParams(ids []string) *CommentsByIdsParams { + this := CommentsByIdsParams{} + this.Ids = ids + return &this +} + +// NewCommentsByIdsParamsWithDefaults instantiates a new CommentsByIdsParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCommentsByIdsParamsWithDefaults() *CommentsByIdsParams { + this := CommentsByIdsParams{} + return &this +} + +// GetIds returns the Ids field value +func (o *CommentsByIdsParams) GetIds() []string { + if o == nil { + var ret []string + return ret + } + + return o.Ids +} + +// GetIdsOk returns a tuple with the Ids field value +// and a boolean to check if the value has been set. +func (o *CommentsByIdsParams) GetIdsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Ids, true +} + +// SetIds sets field value +func (o *CommentsByIdsParams) SetIds(v []string) { + o.Ids = v +} + +func (o CommentsByIdsParams) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CommentsByIdsParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["ids"] = o.Ids + return toSerialize, nil +} + +func (o *CommentsByIdsParams) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "ids", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCommentsByIdsParams := _CommentsByIdsParams{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCommentsByIdsParams) + + if err != nil { + return err + } + + *o = CommentsByIdsParams(varCommentsByIdsParams) + + return err +} + +type NullableCommentsByIdsParams struct { + value *CommentsByIdsParams + isSet bool +} + +func (v NullableCommentsByIdsParams) Get() *CommentsByIdsParams { + return v.value +} + +func (v *NullableCommentsByIdsParams) Set(val *CommentsByIdsParams) { + v.value = val + v.isSet = true +} + +func (v NullableCommentsByIdsParams) IsSet() bool { + return v.isSet +} + +func (v *NullableCommentsByIdsParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCommentsByIdsParams(val *CommentsByIdsParams) *NullableCommentsByIdsParams { + return &NullableCommentsByIdsParams{value: val, isSet: true} +} + +func (v NullableCommentsByIdsParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCommentsByIdsParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_create_comment_params.go b/client/model_create_comment_params.go index eea8b19..a45c0ed 100644 --- a/client/model_create_comment_params.go +++ b/client/model_create_comment_params.go @@ -45,8 +45,9 @@ type CreateCommentParams struct { AutoplayDelayMS *int64 `json:"autoplayDelayMS,omitempty"` FeedbackIds []string `json:"feedbackIds,omitempty"` // Construct a type with a set of properties K of type T - QuestionValues map[string]RecordStringStringOrNumberValue `json:"questionValues,omitempty"` + QuestionValues map[string]GifSearchResponseImagesInnerInner `json:"questionValues,omitempty"` Tos *bool `json:"tos,omitempty"` + BotId *string `json:"botId,omitempty"` Approved *bool `json:"approved,omitempty"` Domain *string `json:"domain,omitempty"` Ip *string `json:"ip,omitempty"` @@ -839,9 +840,9 @@ func (o *CreateCommentParams) SetFeedbackIds(v []string) { } // GetQuestionValues returns the QuestionValues field value if set, zero value otherwise. -func (o *CreateCommentParams) GetQuestionValues() map[string]RecordStringStringOrNumberValue { +func (o *CreateCommentParams) GetQuestionValues() map[string]GifSearchResponseImagesInnerInner { if o == nil || IsNil(o.QuestionValues) { - var ret map[string]RecordStringStringOrNumberValue + var ret map[string]GifSearchResponseImagesInnerInner return ret } return o.QuestionValues @@ -849,9 +850,9 @@ func (o *CreateCommentParams) GetQuestionValues() map[string]RecordStringStringO // GetQuestionValuesOk returns a tuple with the QuestionValues field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CreateCommentParams) GetQuestionValuesOk() (map[string]RecordStringStringOrNumberValue, bool) { +func (o *CreateCommentParams) GetQuestionValuesOk() (map[string]GifSearchResponseImagesInnerInner, bool) { if o == nil || IsNil(o.QuestionValues) { - return map[string]RecordStringStringOrNumberValue{}, false + return map[string]GifSearchResponseImagesInnerInner{}, false } return o.QuestionValues, true } @@ -865,8 +866,8 @@ func (o *CreateCommentParams) HasQuestionValues() bool { return false } -// SetQuestionValues gets a reference to the given map[string]RecordStringStringOrNumberValue and assigns it to the QuestionValues field. -func (o *CreateCommentParams) SetQuestionValues(v map[string]RecordStringStringOrNumberValue) { +// SetQuestionValues gets a reference to the given map[string]GifSearchResponseImagesInnerInner and assigns it to the QuestionValues field. +func (o *CreateCommentParams) SetQuestionValues(v map[string]GifSearchResponseImagesInnerInner) { o.QuestionValues = v } @@ -902,6 +903,38 @@ func (o *CreateCommentParams) SetTos(v bool) { o.Tos = &v } +// GetBotId returns the BotId field value if set, zero value otherwise. +func (o *CreateCommentParams) GetBotId() string { + if o == nil || IsNil(o.BotId) { + var ret string + return ret + } + return *o.BotId +} + +// GetBotIdOk returns a tuple with the BotId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateCommentParams) GetBotIdOk() (*string, bool) { + if o == nil || IsNil(o.BotId) { + return nil, false + } + return o.BotId, true +} + +// HasBotId returns a boolean if a field has been set. +func (o *CreateCommentParams) HasBotId() bool { + if o != nil && !IsNil(o.BotId) { + return true + } + + return false +} + +// SetBotId gets a reference to the given string and assigns it to the BotId field. +func (o *CreateCommentParams) SetBotId(v string) { + o.BotId = &v +} + // GetApproved returns the Approved field value if set, zero value otherwise. func (o *CreateCommentParams) GetApproved() bool { if o == nil || IsNil(o.Approved) { @@ -1291,6 +1324,9 @@ func (o CreateCommentParams) ToMap() (map[string]interface{}, error) { if !IsNil(o.Tos) { toSerialize["tos"] = o.Tos } + if !IsNil(o.BotId) { + toSerialize["botId"] = o.BotId + } if !IsNil(o.Approved) { toSerialize["approved"] = o.Approved } diff --git a/client/model_create_comment_public_200_response.go b/client/model_create_comment_public_200_response.go deleted file mode 100644 index 43414c3..0000000 --- a/client/model_create_comment_public_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// CreateCommentPublic200Response struct for CreateCommentPublic200Response -type CreateCommentPublic200Response struct { - APIError *APIError - SaveCommentsResponseWithPresence *SaveCommentsResponseWithPresence -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *CreateCommentPublic200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into SaveCommentsResponseWithPresence - err = json.Unmarshal(data, &dst.SaveCommentsResponseWithPresence); - if err == nil { - jsonSaveCommentsResponseWithPresence, _ := json.Marshal(dst.SaveCommentsResponseWithPresence) - if string(jsonSaveCommentsResponseWithPresence) == "{}" { // empty struct - dst.SaveCommentsResponseWithPresence = nil - } else { - return nil // data stored in dst.SaveCommentsResponseWithPresence, return on the first match - } - } else { - dst.SaveCommentsResponseWithPresence = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(CreateCommentPublic200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src CreateCommentPublic200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.SaveCommentsResponseWithPresence != nil { - return json.Marshal(&src.SaveCommentsResponseWithPresence) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableCreateCommentPublic200Response struct { - value *CreateCommentPublic200Response - isSet bool -} - -func (v NullableCreateCommentPublic200Response) Get() *CreateCommentPublic200Response { - return v.value -} - -func (v *NullableCreateCommentPublic200Response) Set(val *CreateCommentPublic200Response) { - v.value = val - v.isSet = true -} - -func (v NullableCreateCommentPublic200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableCreateCommentPublic200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCreateCommentPublic200Response(val *CreateCommentPublic200Response) *NullableCreateCommentPublic200Response { - return &NullableCreateCommentPublic200Response{value: val, isSet: true} -} - -func (v NullableCreateCommentPublic200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCreateCommentPublic200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_create_email_template_200_response.go b/client/model_create_email_template_200_response.go deleted file mode 100644 index 20bb088..0000000 --- a/client/model_create_email_template_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// CreateEmailTemplate200Response struct for CreateEmailTemplate200Response -type CreateEmailTemplate200Response struct { - APIError *APIError - CreateEmailTemplateResponse *CreateEmailTemplateResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *CreateEmailTemplate200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into CreateEmailTemplateResponse - err = json.Unmarshal(data, &dst.CreateEmailTemplateResponse); - if err == nil { - jsonCreateEmailTemplateResponse, _ := json.Marshal(dst.CreateEmailTemplateResponse) - if string(jsonCreateEmailTemplateResponse) == "{}" { // empty struct - dst.CreateEmailTemplateResponse = nil - } else { - return nil // data stored in dst.CreateEmailTemplateResponse, return on the first match - } - } else { - dst.CreateEmailTemplateResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(CreateEmailTemplate200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src CreateEmailTemplate200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.CreateEmailTemplateResponse != nil { - return json.Marshal(&src.CreateEmailTemplateResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableCreateEmailTemplate200Response struct { - value *CreateEmailTemplate200Response - isSet bool -} - -func (v NullableCreateEmailTemplate200Response) Get() *CreateEmailTemplate200Response { - return v.value -} - -func (v *NullableCreateEmailTemplate200Response) Set(val *CreateEmailTemplate200Response) { - v.value = val - v.isSet = true -} - -func (v NullableCreateEmailTemplate200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableCreateEmailTemplate200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCreateEmailTemplate200Response(val *CreateEmailTemplate200Response) *NullableCreateEmailTemplate200Response { - return &NullableCreateEmailTemplate200Response{value: val, isSet: true} -} - -func (v NullableCreateEmailTemplate200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCreateEmailTemplate200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_create_feed_post_200_response.go b/client/model_create_feed_post_200_response.go deleted file mode 100644 index f69b20b..0000000 --- a/client/model_create_feed_post_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// CreateFeedPost200Response struct for CreateFeedPost200Response -type CreateFeedPost200Response struct { - APIError *APIError - CreateFeedPostsResponse *CreateFeedPostsResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *CreateFeedPost200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into CreateFeedPostsResponse - err = json.Unmarshal(data, &dst.CreateFeedPostsResponse); - if err == nil { - jsonCreateFeedPostsResponse, _ := json.Marshal(dst.CreateFeedPostsResponse) - if string(jsonCreateFeedPostsResponse) == "{}" { // empty struct - dst.CreateFeedPostsResponse = nil - } else { - return nil // data stored in dst.CreateFeedPostsResponse, return on the first match - } - } else { - dst.CreateFeedPostsResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(CreateFeedPost200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src CreateFeedPost200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.CreateFeedPostsResponse != nil { - return json.Marshal(&src.CreateFeedPostsResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableCreateFeedPost200Response struct { - value *CreateFeedPost200Response - isSet bool -} - -func (v NullableCreateFeedPost200Response) Get() *CreateFeedPost200Response { - return v.value -} - -func (v *NullableCreateFeedPost200Response) Set(val *CreateFeedPost200Response) { - v.value = val - v.isSet = true -} - -func (v NullableCreateFeedPost200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableCreateFeedPost200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCreateFeedPost200Response(val *CreateFeedPost200Response) *NullableCreateFeedPost200Response { - return &NullableCreateFeedPost200Response{value: val, isSet: true} -} - -func (v NullableCreateFeedPost200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCreateFeedPost200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_create_feed_post_public_200_response.go b/client/model_create_feed_post_public_200_response.go deleted file mode 100644 index efcb64c..0000000 --- a/client/model_create_feed_post_public_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// CreateFeedPostPublic200Response struct for CreateFeedPostPublic200Response -type CreateFeedPostPublic200Response struct { - APIError *APIError - CreateFeedPostResponse *CreateFeedPostResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *CreateFeedPostPublic200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into CreateFeedPostResponse - err = json.Unmarshal(data, &dst.CreateFeedPostResponse); - if err == nil { - jsonCreateFeedPostResponse, _ := json.Marshal(dst.CreateFeedPostResponse) - if string(jsonCreateFeedPostResponse) == "{}" { // empty struct - dst.CreateFeedPostResponse = nil - } else { - return nil // data stored in dst.CreateFeedPostResponse, return on the first match - } - } else { - dst.CreateFeedPostResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(CreateFeedPostPublic200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src CreateFeedPostPublic200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.CreateFeedPostResponse != nil { - return json.Marshal(&src.CreateFeedPostResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableCreateFeedPostPublic200Response struct { - value *CreateFeedPostPublic200Response - isSet bool -} - -func (v NullableCreateFeedPostPublic200Response) Get() *CreateFeedPostPublic200Response { - return v.value -} - -func (v *NullableCreateFeedPostPublic200Response) Set(val *CreateFeedPostPublic200Response) { - v.value = val - v.isSet = true -} - -func (v NullableCreateFeedPostPublic200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableCreateFeedPostPublic200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCreateFeedPostPublic200Response(val *CreateFeedPostPublic200Response) *NullableCreateFeedPostPublic200Response { - return &NullableCreateFeedPostPublic200Response{value: val, isSet: true} -} - -func (v NullableCreateFeedPostPublic200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCreateFeedPostPublic200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_create_moderator_200_response.go b/client/model_create_moderator_200_response.go deleted file mode 100644 index 529f35c..0000000 --- a/client/model_create_moderator_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// CreateModerator200Response struct for CreateModerator200Response -type CreateModerator200Response struct { - APIError *APIError - CreateModeratorResponse *CreateModeratorResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *CreateModerator200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into CreateModeratorResponse - err = json.Unmarshal(data, &dst.CreateModeratorResponse); - if err == nil { - jsonCreateModeratorResponse, _ := json.Marshal(dst.CreateModeratorResponse) - if string(jsonCreateModeratorResponse) == "{}" { // empty struct - dst.CreateModeratorResponse = nil - } else { - return nil // data stored in dst.CreateModeratorResponse, return on the first match - } - } else { - dst.CreateModeratorResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(CreateModerator200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src CreateModerator200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.CreateModeratorResponse != nil { - return json.Marshal(&src.CreateModeratorResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableCreateModerator200Response struct { - value *CreateModerator200Response - isSet bool -} - -func (v NullableCreateModerator200Response) Get() *CreateModerator200Response { - return v.value -} - -func (v *NullableCreateModerator200Response) Set(val *CreateModerator200Response) { - v.value = val - v.isSet = true -} - -func (v NullableCreateModerator200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableCreateModerator200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCreateModerator200Response(val *CreateModerator200Response) *NullableCreateModerator200Response { - return &NullableCreateModerator200Response{value: val, isSet: true} -} - -func (v NullableCreateModerator200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCreateModerator200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_create_question_config_200_response.go b/client/model_create_question_config_200_response.go deleted file mode 100644 index 213c38a..0000000 --- a/client/model_create_question_config_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// CreateQuestionConfig200Response struct for CreateQuestionConfig200Response -type CreateQuestionConfig200Response struct { - APIError *APIError - CreateQuestionConfigResponse *CreateQuestionConfigResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *CreateQuestionConfig200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into CreateQuestionConfigResponse - err = json.Unmarshal(data, &dst.CreateQuestionConfigResponse); - if err == nil { - jsonCreateQuestionConfigResponse, _ := json.Marshal(dst.CreateQuestionConfigResponse) - if string(jsonCreateQuestionConfigResponse) == "{}" { // empty struct - dst.CreateQuestionConfigResponse = nil - } else { - return nil // data stored in dst.CreateQuestionConfigResponse, return on the first match - } - } else { - dst.CreateQuestionConfigResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(CreateQuestionConfig200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src CreateQuestionConfig200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.CreateQuestionConfigResponse != nil { - return json.Marshal(&src.CreateQuestionConfigResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableCreateQuestionConfig200Response struct { - value *CreateQuestionConfig200Response - isSet bool -} - -func (v NullableCreateQuestionConfig200Response) Get() *CreateQuestionConfig200Response { - return v.value -} - -func (v *NullableCreateQuestionConfig200Response) Set(val *CreateQuestionConfig200Response) { - v.value = val - v.isSet = true -} - -func (v NullableCreateQuestionConfig200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableCreateQuestionConfig200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCreateQuestionConfig200Response(val *CreateQuestionConfig200Response) *NullableCreateQuestionConfig200Response { - return &NullableCreateQuestionConfig200Response{value: val, isSet: true} -} - -func (v NullableCreateQuestionConfig200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCreateQuestionConfig200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_create_question_result_200_response.go b/client/model_create_question_result_200_response.go deleted file mode 100644 index 667aa11..0000000 --- a/client/model_create_question_result_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// CreateQuestionResult200Response struct for CreateQuestionResult200Response -type CreateQuestionResult200Response struct { - APIError *APIError - CreateQuestionResultResponse *CreateQuestionResultResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *CreateQuestionResult200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into CreateQuestionResultResponse - err = json.Unmarshal(data, &dst.CreateQuestionResultResponse); - if err == nil { - jsonCreateQuestionResultResponse, _ := json.Marshal(dst.CreateQuestionResultResponse) - if string(jsonCreateQuestionResultResponse) == "{}" { // empty struct - dst.CreateQuestionResultResponse = nil - } else { - return nil // data stored in dst.CreateQuestionResultResponse, return on the first match - } - } else { - dst.CreateQuestionResultResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(CreateQuestionResult200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src CreateQuestionResult200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.CreateQuestionResultResponse != nil { - return json.Marshal(&src.CreateQuestionResultResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableCreateQuestionResult200Response struct { - value *CreateQuestionResult200Response - isSet bool -} - -func (v NullableCreateQuestionResult200Response) Get() *CreateQuestionResult200Response { - return v.value -} - -func (v *NullableCreateQuestionResult200Response) Set(val *CreateQuestionResult200Response) { - v.value = val - v.isSet = true -} - -func (v NullableCreateQuestionResult200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableCreateQuestionResult200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCreateQuestionResult200Response(val *CreateQuestionResult200Response) *NullableCreateQuestionResult200Response { - return &NullableCreateQuestionResult200Response{value: val, isSet: true} -} - -func (v NullableCreateQuestionResult200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCreateQuestionResult200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_create_tenant_200_response.go b/client/model_create_tenant_200_response.go deleted file mode 100644 index 8df5377..0000000 --- a/client/model_create_tenant_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// CreateTenant200Response struct for CreateTenant200Response -type CreateTenant200Response struct { - APIError *APIError - CreateTenantResponse *CreateTenantResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *CreateTenant200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into CreateTenantResponse - err = json.Unmarshal(data, &dst.CreateTenantResponse); - if err == nil { - jsonCreateTenantResponse, _ := json.Marshal(dst.CreateTenantResponse) - if string(jsonCreateTenantResponse) == "{}" { // empty struct - dst.CreateTenantResponse = nil - } else { - return nil // data stored in dst.CreateTenantResponse, return on the first match - } - } else { - dst.CreateTenantResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(CreateTenant200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src CreateTenant200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.CreateTenantResponse != nil { - return json.Marshal(&src.CreateTenantResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableCreateTenant200Response struct { - value *CreateTenant200Response - isSet bool -} - -func (v NullableCreateTenant200Response) Get() *CreateTenant200Response { - return v.value -} - -func (v *NullableCreateTenant200Response) Set(val *CreateTenant200Response) { - v.value = val - v.isSet = true -} - -func (v NullableCreateTenant200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableCreateTenant200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCreateTenant200Response(val *CreateTenant200Response) *NullableCreateTenant200Response { - return &NullableCreateTenant200Response{value: val, isSet: true} -} - -func (v NullableCreateTenant200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCreateTenant200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_create_tenant_package_200_response.go b/client/model_create_tenant_package_200_response.go deleted file mode 100644 index b09754e..0000000 --- a/client/model_create_tenant_package_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// CreateTenantPackage200Response struct for CreateTenantPackage200Response -type CreateTenantPackage200Response struct { - APIError *APIError - CreateTenantPackageResponse *CreateTenantPackageResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *CreateTenantPackage200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into CreateTenantPackageResponse - err = json.Unmarshal(data, &dst.CreateTenantPackageResponse); - if err == nil { - jsonCreateTenantPackageResponse, _ := json.Marshal(dst.CreateTenantPackageResponse) - if string(jsonCreateTenantPackageResponse) == "{}" { // empty struct - dst.CreateTenantPackageResponse = nil - } else { - return nil // data stored in dst.CreateTenantPackageResponse, return on the first match - } - } else { - dst.CreateTenantPackageResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(CreateTenantPackage200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src CreateTenantPackage200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.CreateTenantPackageResponse != nil { - return json.Marshal(&src.CreateTenantPackageResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableCreateTenantPackage200Response struct { - value *CreateTenantPackage200Response - isSet bool -} - -func (v NullableCreateTenantPackage200Response) Get() *CreateTenantPackage200Response { - return v.value -} - -func (v *NullableCreateTenantPackage200Response) Set(val *CreateTenantPackage200Response) { - v.value = val - v.isSet = true -} - -func (v NullableCreateTenantPackage200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableCreateTenantPackage200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCreateTenantPackage200Response(val *CreateTenantPackage200Response) *NullableCreateTenantPackage200Response { - return &NullableCreateTenantPackage200Response{value: val, isSet: true} -} - -func (v NullableCreateTenantPackage200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCreateTenantPackage200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_create_tenant_package_body.go b/client/model_create_tenant_package_body.go index 194d674..68e6909 100644 --- a/client/model_create_tenant_package_body.go +++ b/client/model_create_tenant_package_body.go @@ -62,8 +62,8 @@ type CreateTenantPackageBody struct { FlexAdminUnit *float64 `json:"flexAdminUnit,omitempty"` FlexDomainCostCents *float64 `json:"flexDomainCostCents,omitempty"` FlexDomainUnit *float64 `json:"flexDomainUnit,omitempty"` - FlexChatGPTCostCents *float64 `json:"flexChatGPTCostCents,omitempty"` - FlexChatGPTUnit *float64 `json:"flexChatGPTUnit,omitempty"` + FlexLLMCostCents *float64 `json:"flexLLMCostCents,omitempty"` + FlexLLMUnit *float64 `json:"flexLLMUnit,omitempty"` FlexMinimumCostCents *float64 `json:"flexMinimumCostCents,omitempty"` FlexManagedTenantCostCents *float64 `json:"flexManagedTenantCostCents,omitempty"` FlexSSOAdminCostCents *float64 `json:"flexSSOAdminCostCents,omitempty"` @@ -1352,68 +1352,68 @@ func (o *CreateTenantPackageBody) SetFlexDomainUnit(v float64) { o.FlexDomainUnit = &v } -// GetFlexChatGPTCostCents returns the FlexChatGPTCostCents field value if set, zero value otherwise. -func (o *CreateTenantPackageBody) GetFlexChatGPTCostCents() float64 { - if o == nil || IsNil(o.FlexChatGPTCostCents) { +// GetFlexLLMCostCents returns the FlexLLMCostCents field value if set, zero value otherwise. +func (o *CreateTenantPackageBody) GetFlexLLMCostCents() float64 { + if o == nil || IsNil(o.FlexLLMCostCents) { var ret float64 return ret } - return *o.FlexChatGPTCostCents + return *o.FlexLLMCostCents } -// GetFlexChatGPTCostCentsOk returns a tuple with the FlexChatGPTCostCents field value if set, nil otherwise +// GetFlexLLMCostCentsOk returns a tuple with the FlexLLMCostCents field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CreateTenantPackageBody) GetFlexChatGPTCostCentsOk() (*float64, bool) { - if o == nil || IsNil(o.FlexChatGPTCostCents) { +func (o *CreateTenantPackageBody) GetFlexLLMCostCentsOk() (*float64, bool) { + if o == nil || IsNil(o.FlexLLMCostCents) { return nil, false } - return o.FlexChatGPTCostCents, true + return o.FlexLLMCostCents, true } -// HasFlexChatGPTCostCents returns a boolean if a field has been set. -func (o *CreateTenantPackageBody) HasFlexChatGPTCostCents() bool { - if o != nil && !IsNil(o.FlexChatGPTCostCents) { +// HasFlexLLMCostCents returns a boolean if a field has been set. +func (o *CreateTenantPackageBody) HasFlexLLMCostCents() bool { + if o != nil && !IsNil(o.FlexLLMCostCents) { return true } return false } -// SetFlexChatGPTCostCents gets a reference to the given float64 and assigns it to the FlexChatGPTCostCents field. -func (o *CreateTenantPackageBody) SetFlexChatGPTCostCents(v float64) { - o.FlexChatGPTCostCents = &v +// SetFlexLLMCostCents gets a reference to the given float64 and assigns it to the FlexLLMCostCents field. +func (o *CreateTenantPackageBody) SetFlexLLMCostCents(v float64) { + o.FlexLLMCostCents = &v } -// GetFlexChatGPTUnit returns the FlexChatGPTUnit field value if set, zero value otherwise. -func (o *CreateTenantPackageBody) GetFlexChatGPTUnit() float64 { - if o == nil || IsNil(o.FlexChatGPTUnit) { +// GetFlexLLMUnit returns the FlexLLMUnit field value if set, zero value otherwise. +func (o *CreateTenantPackageBody) GetFlexLLMUnit() float64 { + if o == nil || IsNil(o.FlexLLMUnit) { var ret float64 return ret } - return *o.FlexChatGPTUnit + return *o.FlexLLMUnit } -// GetFlexChatGPTUnitOk returns a tuple with the FlexChatGPTUnit field value if set, nil otherwise +// GetFlexLLMUnitOk returns a tuple with the FlexLLMUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CreateTenantPackageBody) GetFlexChatGPTUnitOk() (*float64, bool) { - if o == nil || IsNil(o.FlexChatGPTUnit) { +func (o *CreateTenantPackageBody) GetFlexLLMUnitOk() (*float64, bool) { + if o == nil || IsNil(o.FlexLLMUnit) { return nil, false } - return o.FlexChatGPTUnit, true + return o.FlexLLMUnit, true } -// HasFlexChatGPTUnit returns a boolean if a field has been set. -func (o *CreateTenantPackageBody) HasFlexChatGPTUnit() bool { - if o != nil && !IsNil(o.FlexChatGPTUnit) { +// HasFlexLLMUnit returns a boolean if a field has been set. +func (o *CreateTenantPackageBody) HasFlexLLMUnit() bool { + if o != nil && !IsNil(o.FlexLLMUnit) { return true } return false } -// SetFlexChatGPTUnit gets a reference to the given float64 and assigns it to the FlexChatGPTUnit field. -func (o *CreateTenantPackageBody) SetFlexChatGPTUnit(v float64) { - o.FlexChatGPTUnit = &v +// SetFlexLLMUnit gets a reference to the given float64 and assigns it to the FlexLLMUnit field. +func (o *CreateTenantPackageBody) SetFlexLLMUnit(v float64) { + o.FlexLLMUnit = &v } // GetFlexMinimumCostCents returns the FlexMinimumCostCents field value if set, zero value otherwise. @@ -1715,11 +1715,11 @@ func (o CreateTenantPackageBody) ToMap() (map[string]interface{}, error) { if !IsNil(o.FlexDomainUnit) { toSerialize["flexDomainUnit"] = o.FlexDomainUnit } - if !IsNil(o.FlexChatGPTCostCents) { - toSerialize["flexChatGPTCostCents"] = o.FlexChatGPTCostCents + if !IsNil(o.FlexLLMCostCents) { + toSerialize["flexLLMCostCents"] = o.FlexLLMCostCents } - if !IsNil(o.FlexChatGPTUnit) { - toSerialize["flexChatGPTUnit"] = o.FlexChatGPTUnit + if !IsNil(o.FlexLLMUnit) { + toSerialize["flexLLMUnit"] = o.FlexLLMUnit } if !IsNil(o.FlexMinimumCostCents) { toSerialize["flexMinimumCostCents"] = o.FlexMinimumCostCents diff --git a/client/model_create_tenant_user_200_response.go b/client/model_create_tenant_user_200_response.go deleted file mode 100644 index 38a5e4c..0000000 --- a/client/model_create_tenant_user_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// CreateTenantUser200Response struct for CreateTenantUser200Response -type CreateTenantUser200Response struct { - APIError *APIError - CreateTenantUserResponse *CreateTenantUserResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *CreateTenantUser200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into CreateTenantUserResponse - err = json.Unmarshal(data, &dst.CreateTenantUserResponse); - if err == nil { - jsonCreateTenantUserResponse, _ := json.Marshal(dst.CreateTenantUserResponse) - if string(jsonCreateTenantUserResponse) == "{}" { // empty struct - dst.CreateTenantUserResponse = nil - } else { - return nil // data stored in dst.CreateTenantUserResponse, return on the first match - } - } else { - dst.CreateTenantUserResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(CreateTenantUser200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src CreateTenantUser200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.CreateTenantUserResponse != nil { - return json.Marshal(&src.CreateTenantUserResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableCreateTenantUser200Response struct { - value *CreateTenantUser200Response - isSet bool -} - -func (v NullableCreateTenantUser200Response) Get() *CreateTenantUser200Response { - return v.value -} - -func (v *NullableCreateTenantUser200Response) Set(val *CreateTenantUser200Response) { - v.value = val - v.isSet = true -} - -func (v NullableCreateTenantUser200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableCreateTenantUser200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCreateTenantUser200Response(val *CreateTenantUser200Response) *NullableCreateTenantUser200Response { - return &NullableCreateTenantUser200Response{value: val, isSet: true} -} - -func (v NullableCreateTenantUser200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCreateTenantUser200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_create_ticket_200_response.go b/client/model_create_ticket_200_response.go deleted file mode 100644 index 595e875..0000000 --- a/client/model_create_ticket_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// CreateTicket200Response struct for CreateTicket200Response -type CreateTicket200Response struct { - APIError *APIError - CreateTicketResponse *CreateTicketResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *CreateTicket200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into CreateTicketResponse - err = json.Unmarshal(data, &dst.CreateTicketResponse); - if err == nil { - jsonCreateTicketResponse, _ := json.Marshal(dst.CreateTicketResponse) - if string(jsonCreateTicketResponse) == "{}" { // empty struct - dst.CreateTicketResponse = nil - } else { - return nil // data stored in dst.CreateTicketResponse, return on the first match - } - } else { - dst.CreateTicketResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(CreateTicket200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src CreateTicket200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.CreateTicketResponse != nil { - return json.Marshal(&src.CreateTicketResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableCreateTicket200Response struct { - value *CreateTicket200Response - isSet bool -} - -func (v NullableCreateTicket200Response) Get() *CreateTicket200Response { - return v.value -} - -func (v *NullableCreateTicket200Response) Set(val *CreateTicket200Response) { - v.value = val - v.isSet = true -} - -func (v NullableCreateTicket200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableCreateTicket200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCreateTicket200Response(val *CreateTicket200Response) *NullableCreateTicket200Response { - return &NullableCreateTicket200Response{value: val, isSet: true} -} - -func (v NullableCreateTicket200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCreateTicket200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_create_user_badge_200_response.go b/client/model_create_user_badge_200_response.go deleted file mode 100644 index a0b736f..0000000 --- a/client/model_create_user_badge_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// CreateUserBadge200Response struct for CreateUserBadge200Response -type CreateUserBadge200Response struct { - APICreateUserBadgeResponse *APICreateUserBadgeResponse - APIError *APIError -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *CreateUserBadge200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APICreateUserBadgeResponse - err = json.Unmarshal(data, &dst.APICreateUserBadgeResponse); - if err == nil { - jsonAPICreateUserBadgeResponse, _ := json.Marshal(dst.APICreateUserBadgeResponse) - if string(jsonAPICreateUserBadgeResponse) == "{}" { // empty struct - dst.APICreateUserBadgeResponse = nil - } else { - return nil // data stored in dst.APICreateUserBadgeResponse, return on the first match - } - } else { - dst.APICreateUserBadgeResponse = nil - } - - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(CreateUserBadge200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src CreateUserBadge200Response) MarshalJSON() ([]byte, error) { - if src.APICreateUserBadgeResponse != nil { - return json.Marshal(&src.APICreateUserBadgeResponse) - } - - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableCreateUserBadge200Response struct { - value *CreateUserBadge200Response - isSet bool -} - -func (v NullableCreateUserBadge200Response) Get() *CreateUserBadge200Response { - return v.value -} - -func (v *NullableCreateUserBadge200Response) Set(val *CreateUserBadge200Response) { - v.value = val - v.isSet = true -} - -func (v NullableCreateUserBadge200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableCreateUserBadge200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCreateUserBadge200Response(val *CreateUserBadge200Response) *NullableCreateUserBadge200Response { - return &NullableCreateUserBadge200Response{value: val, isSet: true} -} - -func (v NullableCreateUserBadge200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCreateUserBadge200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_create_v1_page_react.go b/client/model_create_v1_page_react.go new file mode 100644 index 0000000..6d0b5e9 --- /dev/null +++ b/client/model_create_v1_page_react.go @@ -0,0 +1,194 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the CreateV1PageReact type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateV1PageReact{} + +// CreateV1PageReact struct for CreateV1PageReact +type CreateV1PageReact struct { + Code *string `json:"code,omitempty"` + Status APIStatus `json:"status"` +} + +type _CreateV1PageReact CreateV1PageReact + +// NewCreateV1PageReact instantiates a new CreateV1PageReact object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateV1PageReact(status APIStatus) *CreateV1PageReact { + this := CreateV1PageReact{} + this.Status = status + return &this +} + +// NewCreateV1PageReactWithDefaults instantiates a new CreateV1PageReact object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateV1PageReactWithDefaults() *CreateV1PageReact { + this := CreateV1PageReact{} + return &this +} + +// GetCode returns the Code field value if set, zero value otherwise. +func (o *CreateV1PageReact) GetCode() string { + if o == nil || IsNil(o.Code) { + var ret string + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateV1PageReact) GetCodeOk() (*string, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *CreateV1PageReact) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given string and assigns it to the Code field. +func (o *CreateV1PageReact) SetCode(v string) { + o.Code = &v +} + +// GetStatus returns the Status field value +func (o *CreateV1PageReact) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *CreateV1PageReact) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *CreateV1PageReact) SetStatus(v APIStatus) { + o.Status = v +} + +func (o CreateV1PageReact) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateV1PageReact) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *CreateV1PageReact) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateV1PageReact := _CreateV1PageReact{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateV1PageReact) + + if err != nil { + return err + } + + *o = CreateV1PageReact(varCreateV1PageReact) + + return err +} + +type NullableCreateV1PageReact struct { + value *CreateV1PageReact + isSet bool +} + +func (v NullableCreateV1PageReact) Get() *CreateV1PageReact { + return v.value +} + +func (v *NullableCreateV1PageReact) Set(val *CreateV1PageReact) { + v.value = val + v.isSet = true +} + +func (v NullableCreateV1PageReact) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateV1PageReact) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateV1PageReact(val *CreateV1PageReact) *NullableCreateV1PageReact { + return &NullableCreateV1PageReact{value: val, isSet: true} +} + +func (v NullableCreateV1PageReact) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateV1PageReact) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_custom_config_parameters.go b/client/model_custom_config_parameters.go index 2421e3a..e221e82 100644 --- a/client/model_custom_config_parameters.go +++ b/client/model_custom_config_parameters.go @@ -71,11 +71,14 @@ type CustomConfigParameters struct { NoCustomConfig *bool `json:"noCustomConfig,omitempty"` MentionAutoCompleteMode NullableMentionAutoCompleteMode `json:"mentionAutoCompleteMode,omitempty"` NoImageUploads *bool `json:"noImageUploads,omitempty"` + AllowEmbeds *bool `json:"allowEmbeds,omitempty"` + AllowedEmbedDomains []string `json:"allowedEmbedDomains,omitempty"` NoStyles *bool `json:"noStyles,omitempty"` PageSize NullableInt32 `json:"pageSize,omitempty"` Readonly *bool `json:"readonly,omitempty"` NoNewRootComments *bool `json:"noNewRootComments,omitempty"` RequireSSO *bool `json:"requireSSO,omitempty"` + EnableFChat *bool `json:"enableFChat,omitempty"` EnableResizeHandle *bool `json:"enableResizeHandle,omitempty"` RestrictedLinkDomains []string `json:"restrictedLinkDomains,omitempty"` ShowBadgesInTopBar *bool `json:"showBadgesInTopBar,omitempty"` @@ -97,6 +100,8 @@ type CustomConfigParameters struct { WidgetQuestionsRequired *CommentQuestionsRequired `json:"widgetQuestionsRequired,omitempty"` WidgetSubQuestionVisibility *QuestionSubQuestionVisibility `json:"widgetSubQuestionVisibility,omitempty"` Wrap *bool `json:"wrap,omitempty"` + UsersListLocation *UsersListLocation `json:"usersListLocation,omitempty"` + UsersListIncludeOffline *bool `json:"usersListIncludeOffline,omitempty"` TicketBaseUrl *string `json:"ticketBaseUrl,omitempty"` TicketKBSearchEndpoint *string `json:"ticketKBSearchEndpoint,omitempty"` TicketFileUploadsEnabled *bool `json:"ticketFileUploadsEnabled,omitempty"` @@ -1917,6 +1922,71 @@ func (o *CustomConfigParameters) SetNoImageUploads(v bool) { o.NoImageUploads = &v } +// GetAllowEmbeds returns the AllowEmbeds field value if set, zero value otherwise. +func (o *CustomConfigParameters) GetAllowEmbeds() bool { + if o == nil || IsNil(o.AllowEmbeds) { + var ret bool + return ret + } + return *o.AllowEmbeds +} + +// GetAllowEmbedsOk returns a tuple with the AllowEmbeds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomConfigParameters) GetAllowEmbedsOk() (*bool, bool) { + if o == nil || IsNil(o.AllowEmbeds) { + return nil, false + } + return o.AllowEmbeds, true +} + +// HasAllowEmbeds returns a boolean if a field has been set. +func (o *CustomConfigParameters) HasAllowEmbeds() bool { + if o != nil && !IsNil(o.AllowEmbeds) { + return true + } + + return false +} + +// SetAllowEmbeds gets a reference to the given bool and assigns it to the AllowEmbeds field. +func (o *CustomConfigParameters) SetAllowEmbeds(v bool) { + o.AllowEmbeds = &v +} + +// GetAllowedEmbedDomains returns the AllowedEmbedDomains field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CustomConfigParameters) GetAllowedEmbedDomains() []string { + if o == nil { + var ret []string + return ret + } + return o.AllowedEmbedDomains +} + +// GetAllowedEmbedDomainsOk returns a tuple with the AllowedEmbedDomains field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CustomConfigParameters) GetAllowedEmbedDomainsOk() ([]string, bool) { + if o == nil || IsNil(o.AllowedEmbedDomains) { + return nil, false + } + return o.AllowedEmbedDomains, true +} + +// HasAllowedEmbedDomains returns a boolean if a field has been set. +func (o *CustomConfigParameters) HasAllowedEmbedDomains() bool { + if o != nil && !IsNil(o.AllowedEmbedDomains) { + return true + } + + return false +} + +// SetAllowedEmbedDomains gets a reference to the given []string and assigns it to the AllowedEmbedDomains field. +func (o *CustomConfigParameters) SetAllowedEmbedDomains(v []string) { + o.AllowedEmbedDomains = v +} + // GetNoStyles returns the NoStyles field value if set, zero value otherwise. func (o *CustomConfigParameters) GetNoStyles() bool { if o == nil || IsNil(o.NoStyles) { @@ -2087,6 +2157,38 @@ func (o *CustomConfigParameters) SetRequireSSO(v bool) { o.RequireSSO = &v } +// GetEnableFChat returns the EnableFChat field value if set, zero value otherwise. +func (o *CustomConfigParameters) GetEnableFChat() bool { + if o == nil || IsNil(o.EnableFChat) { + var ret bool + return ret + } + return *o.EnableFChat +} + +// GetEnableFChatOk returns a tuple with the EnableFChat field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomConfigParameters) GetEnableFChatOk() (*bool, bool) { + if o == nil || IsNil(o.EnableFChat) { + return nil, false + } + return o.EnableFChat, true +} + +// HasEnableFChat returns a boolean if a field has been set. +func (o *CustomConfigParameters) HasEnableFChat() bool { + if o != nil && !IsNil(o.EnableFChat) { + return true + } + + return false +} + +// SetEnableFChat gets a reference to the given bool and assigns it to the EnableFChat field. +func (o *CustomConfigParameters) SetEnableFChat(v bool) { + o.EnableFChat = &v +} + // GetEnableResizeHandle returns the EnableResizeHandle field value if set, zero value otherwise. func (o *CustomConfigParameters) GetEnableResizeHandle() bool { if o == nil || IsNil(o.EnableResizeHandle) { @@ -2729,6 +2831,70 @@ func (o *CustomConfigParameters) SetWrap(v bool) { o.Wrap = &v } +// GetUsersListLocation returns the UsersListLocation field value if set, zero value otherwise. +func (o *CustomConfigParameters) GetUsersListLocation() UsersListLocation { + if o == nil || IsNil(o.UsersListLocation) { + var ret UsersListLocation + return ret + } + return *o.UsersListLocation +} + +// GetUsersListLocationOk returns a tuple with the UsersListLocation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomConfigParameters) GetUsersListLocationOk() (*UsersListLocation, bool) { + if o == nil || IsNil(o.UsersListLocation) { + return nil, false + } + return o.UsersListLocation, true +} + +// HasUsersListLocation returns a boolean if a field has been set. +func (o *CustomConfigParameters) HasUsersListLocation() bool { + if o != nil && !IsNil(o.UsersListLocation) { + return true + } + + return false +} + +// SetUsersListLocation gets a reference to the given UsersListLocation and assigns it to the UsersListLocation field. +func (o *CustomConfigParameters) SetUsersListLocation(v UsersListLocation) { + o.UsersListLocation = &v +} + +// GetUsersListIncludeOffline returns the UsersListIncludeOffline field value if set, zero value otherwise. +func (o *CustomConfigParameters) GetUsersListIncludeOffline() bool { + if o == nil || IsNil(o.UsersListIncludeOffline) { + var ret bool + return ret + } + return *o.UsersListIncludeOffline +} + +// GetUsersListIncludeOfflineOk returns a tuple with the UsersListIncludeOffline field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomConfigParameters) GetUsersListIncludeOfflineOk() (*bool, bool) { + if o == nil || IsNil(o.UsersListIncludeOffline) { + return nil, false + } + return o.UsersListIncludeOffline, true +} + +// HasUsersListIncludeOffline returns a boolean if a field has been set. +func (o *CustomConfigParameters) HasUsersListIncludeOffline() bool { + if o != nil && !IsNil(o.UsersListIncludeOffline) { + return true + } + + return false +} + +// SetUsersListIncludeOffline gets a reference to the given bool and assigns it to the UsersListIncludeOffline field. +func (o *CustomConfigParameters) SetUsersListIncludeOffline(v bool) { + o.UsersListIncludeOffline = &v +} + // GetTicketBaseUrl returns the TicketBaseUrl field value if set, zero value otherwise. func (o *CustomConfigParameters) GetTicketBaseUrl() string { if o == nil || IsNil(o.TicketBaseUrl) { @@ -3087,6 +3253,12 @@ func (o CustomConfigParameters) ToMap() (map[string]interface{}, error) { if !IsNil(o.NoImageUploads) { toSerialize["noImageUploads"] = o.NoImageUploads } + if !IsNil(o.AllowEmbeds) { + toSerialize["allowEmbeds"] = o.AllowEmbeds + } + if o.AllowedEmbedDomains != nil { + toSerialize["allowedEmbedDomains"] = o.AllowedEmbedDomains + } if !IsNil(o.NoStyles) { toSerialize["noStyles"] = o.NoStyles } @@ -3102,6 +3274,9 @@ func (o CustomConfigParameters) ToMap() (map[string]interface{}, error) { if !IsNil(o.RequireSSO) { toSerialize["requireSSO"] = o.RequireSSO } + if !IsNil(o.EnableFChat) { + toSerialize["enableFChat"] = o.EnableFChat + } if !IsNil(o.EnableResizeHandle) { toSerialize["enableResizeHandle"] = o.EnableResizeHandle } @@ -3162,6 +3337,12 @@ func (o CustomConfigParameters) ToMap() (map[string]interface{}, error) { if !IsNil(o.Wrap) { toSerialize["wrap"] = o.Wrap } + if !IsNil(o.UsersListLocation) { + toSerialize["usersListLocation"] = o.UsersListLocation + } + if !IsNil(o.UsersListIncludeOffline) { + toSerialize["usersListIncludeOffline"] = o.UsersListIncludeOffline + } if !IsNil(o.TicketBaseUrl) { toSerialize["ticketBaseUrl"] = o.TicketBaseUrl } diff --git a/client/model_delete_comment_200_response.go b/client/model_delete_comment_200_response.go deleted file mode 100644 index 73f0279..0000000 --- a/client/model_delete_comment_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// DeleteComment200Response struct for DeleteComment200Response -type DeleteComment200Response struct { - APIError *APIError - DeleteCommentResult *DeleteCommentResult -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *DeleteComment200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into DeleteCommentResult - err = json.Unmarshal(data, &dst.DeleteCommentResult); - if err == nil { - jsonDeleteCommentResult, _ := json.Marshal(dst.DeleteCommentResult) - if string(jsonDeleteCommentResult) == "{}" { // empty struct - dst.DeleteCommentResult = nil - } else { - return nil // data stored in dst.DeleteCommentResult, return on the first match - } - } else { - dst.DeleteCommentResult = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(DeleteComment200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src DeleteComment200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.DeleteCommentResult != nil { - return json.Marshal(&src.DeleteCommentResult) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableDeleteComment200Response struct { - value *DeleteComment200Response - isSet bool -} - -func (v NullableDeleteComment200Response) Get() *DeleteComment200Response { - return v.value -} - -func (v *NullableDeleteComment200Response) Set(val *DeleteComment200Response) { - v.value = val - v.isSet = true -} - -func (v NullableDeleteComment200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableDeleteComment200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDeleteComment200Response(val *DeleteComment200Response) *NullableDeleteComment200Response { - return &NullableDeleteComment200Response{value: val, isSet: true} -} - -func (v NullableDeleteComment200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDeleteComment200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_delete_comment_public_200_response.go b/client/model_delete_comment_public_200_response.go deleted file mode 100644 index ac35f83..0000000 --- a/client/model_delete_comment_public_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// DeleteCommentPublic200Response struct for DeleteCommentPublic200Response -type DeleteCommentPublic200Response struct { - APIError *APIError - PublicAPIDeleteCommentResponse *PublicAPIDeleteCommentResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *DeleteCommentPublic200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into PublicAPIDeleteCommentResponse - err = json.Unmarshal(data, &dst.PublicAPIDeleteCommentResponse); - if err == nil { - jsonPublicAPIDeleteCommentResponse, _ := json.Marshal(dst.PublicAPIDeleteCommentResponse) - if string(jsonPublicAPIDeleteCommentResponse) == "{}" { // empty struct - dst.PublicAPIDeleteCommentResponse = nil - } else { - return nil // data stored in dst.PublicAPIDeleteCommentResponse, return on the first match - } - } else { - dst.PublicAPIDeleteCommentResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(DeleteCommentPublic200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src DeleteCommentPublic200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.PublicAPIDeleteCommentResponse != nil { - return json.Marshal(&src.PublicAPIDeleteCommentResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableDeleteCommentPublic200Response struct { - value *DeleteCommentPublic200Response - isSet bool -} - -func (v NullableDeleteCommentPublic200Response) Get() *DeleteCommentPublic200Response { - return v.value -} - -func (v *NullableDeleteCommentPublic200Response) Set(val *DeleteCommentPublic200Response) { - v.value = val - v.isSet = true -} - -func (v NullableDeleteCommentPublic200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableDeleteCommentPublic200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDeleteCommentPublic200Response(val *DeleteCommentPublic200Response) *NullableDeleteCommentPublic200Response { - return &NullableDeleteCommentPublic200Response{value: val, isSet: true} -} - -func (v NullableDeleteCommentPublic200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDeleteCommentPublic200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_delete_comment_vote_200_response.go b/client/model_delete_comment_vote_200_response.go deleted file mode 100644 index 3ba877b..0000000 --- a/client/model_delete_comment_vote_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// DeleteCommentVote200Response struct for DeleteCommentVote200Response -type DeleteCommentVote200Response struct { - APIError *APIError - VoteDeleteResponse *VoteDeleteResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *DeleteCommentVote200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into VoteDeleteResponse - err = json.Unmarshal(data, &dst.VoteDeleteResponse); - if err == nil { - jsonVoteDeleteResponse, _ := json.Marshal(dst.VoteDeleteResponse) - if string(jsonVoteDeleteResponse) == "{}" { // empty struct - dst.VoteDeleteResponse = nil - } else { - return nil // data stored in dst.VoteDeleteResponse, return on the first match - } - } else { - dst.VoteDeleteResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(DeleteCommentVote200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src DeleteCommentVote200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.VoteDeleteResponse != nil { - return json.Marshal(&src.VoteDeleteResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableDeleteCommentVote200Response struct { - value *DeleteCommentVote200Response - isSet bool -} - -func (v NullableDeleteCommentVote200Response) Get() *DeleteCommentVote200Response { - return v.value -} - -func (v *NullableDeleteCommentVote200Response) Set(val *DeleteCommentVote200Response) { - v.value = val - v.isSet = true -} - -func (v NullableDeleteCommentVote200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableDeleteCommentVote200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDeleteCommentVote200Response(val *DeleteCommentVote200Response) *NullableDeleteCommentVote200Response { - return &NullableDeleteCommentVote200Response{value: val, isSet: true} -} - -func (v NullableDeleteCommentVote200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDeleteCommentVote200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_delete_domain_config_200_response.go b/client/model_delete_domain_config_response.go similarity index 53% rename from client/model_delete_domain_config_200_response.go rename to client/model_delete_domain_config_response.go index 80135a2..b95f82d 100644 --- a/client/model_delete_domain_config_200_response.go +++ b/client/model_delete_domain_config_response.go @@ -16,37 +16,37 @@ import ( "fmt" ) -// checks if the DeleteDomainConfig200Response type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DeleteDomainConfig200Response{} +// checks if the DeleteDomainConfigResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeleteDomainConfigResponse{} -// DeleteDomainConfig200Response struct for DeleteDomainConfig200Response -type DeleteDomainConfig200Response struct { +// DeleteDomainConfigResponse struct for DeleteDomainConfigResponse +type DeleteDomainConfigResponse struct { Status interface{} `json:"status"` } -type _DeleteDomainConfig200Response DeleteDomainConfig200Response +type _DeleteDomainConfigResponse DeleteDomainConfigResponse -// NewDeleteDomainConfig200Response instantiates a new DeleteDomainConfig200Response object +// NewDeleteDomainConfigResponse instantiates a new DeleteDomainConfigResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeleteDomainConfig200Response(status interface{}) *DeleteDomainConfig200Response { - this := DeleteDomainConfig200Response{} +func NewDeleteDomainConfigResponse(status interface{}) *DeleteDomainConfigResponse { + this := DeleteDomainConfigResponse{} this.Status = status return &this } -// NewDeleteDomainConfig200ResponseWithDefaults instantiates a new DeleteDomainConfig200Response object +// NewDeleteDomainConfigResponseWithDefaults instantiates a new DeleteDomainConfigResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewDeleteDomainConfig200ResponseWithDefaults() *DeleteDomainConfig200Response { - this := DeleteDomainConfig200Response{} +func NewDeleteDomainConfigResponseWithDefaults() *DeleteDomainConfigResponse { + this := DeleteDomainConfigResponse{} return &this } // GetStatus returns the Status field value // If the value is explicit nil, the zero value for interface{} will be returned -func (o *DeleteDomainConfig200Response) GetStatus() interface{} { +func (o *DeleteDomainConfigResponse) GetStatus() interface{} { if o == nil { var ret interface{} return ret @@ -58,7 +58,7 @@ func (o *DeleteDomainConfig200Response) GetStatus() interface{} { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeleteDomainConfig200Response) GetStatusOk() (*interface{}, bool) { +func (o *DeleteDomainConfigResponse) GetStatusOk() (*interface{}, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -66,11 +66,11 @@ func (o *DeleteDomainConfig200Response) GetStatusOk() (*interface{}, bool) { } // SetStatus sets field value -func (o *DeleteDomainConfig200Response) SetStatus(v interface{}) { +func (o *DeleteDomainConfigResponse) SetStatus(v interface{}) { o.Status = v } -func (o DeleteDomainConfig200Response) MarshalJSON() ([]byte, error) { +func (o DeleteDomainConfigResponse) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err @@ -78,7 +78,7 @@ func (o DeleteDomainConfig200Response) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o DeleteDomainConfig200Response) ToMap() (map[string]interface{}, error) { +func (o DeleteDomainConfigResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if o.Status != nil { toSerialize["status"] = o.Status @@ -86,7 +86,7 @@ func (o DeleteDomainConfig200Response) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *DeleteDomainConfig200Response) UnmarshalJSON(data []byte) (err error) { +func (o *DeleteDomainConfigResponse) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. @@ -108,53 +108,53 @@ func (o *DeleteDomainConfig200Response) UnmarshalJSON(data []byte) (err error) { } } - varDeleteDomainConfig200Response := _DeleteDomainConfig200Response{} + varDeleteDomainConfigResponse := _DeleteDomainConfigResponse{} decoder := json.NewDecoder(bytes.NewReader(data)) decoder.DisallowUnknownFields() - err = decoder.Decode(&varDeleteDomainConfig200Response) + err = decoder.Decode(&varDeleteDomainConfigResponse) if err != nil { return err } - *o = DeleteDomainConfig200Response(varDeleteDomainConfig200Response) + *o = DeleteDomainConfigResponse(varDeleteDomainConfigResponse) return err } -type NullableDeleteDomainConfig200Response struct { - value *DeleteDomainConfig200Response +type NullableDeleteDomainConfigResponse struct { + value *DeleteDomainConfigResponse isSet bool } -func (v NullableDeleteDomainConfig200Response) Get() *DeleteDomainConfig200Response { +func (v NullableDeleteDomainConfigResponse) Get() *DeleteDomainConfigResponse { return v.value } -func (v *NullableDeleteDomainConfig200Response) Set(val *DeleteDomainConfig200Response) { +func (v *NullableDeleteDomainConfigResponse) Set(val *DeleteDomainConfigResponse) { v.value = val v.isSet = true } -func (v NullableDeleteDomainConfig200Response) IsSet() bool { +func (v NullableDeleteDomainConfigResponse) IsSet() bool { return v.isSet } -func (v *NullableDeleteDomainConfig200Response) Unset() { +func (v *NullableDeleteDomainConfigResponse) Unset() { v.value = nil v.isSet = false } -func NewNullableDeleteDomainConfig200Response(val *DeleteDomainConfig200Response) *NullableDeleteDomainConfig200Response { - return &NullableDeleteDomainConfig200Response{value: val, isSet: true} +func NewNullableDeleteDomainConfigResponse(val *DeleteDomainConfigResponse) *NullableDeleteDomainConfigResponse { + return &NullableDeleteDomainConfigResponse{value: val, isSet: true} } -func (v NullableDeleteDomainConfig200Response) MarshalJSON() ([]byte, error) { +func (v NullableDeleteDomainConfigResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableDeleteDomainConfig200Response) UnmarshalJSON(src []byte) error { +func (v *NullableDeleteDomainConfigResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/client/model_delete_feed_post_public_200_response.go b/client/model_delete_feed_post_public_200_response.go deleted file mode 100644 index f9ead90..0000000 --- a/client/model_delete_feed_post_public_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// DeleteFeedPostPublic200Response struct for DeleteFeedPostPublic200Response -type DeleteFeedPostPublic200Response struct { - APIError *APIError - DeleteFeedPostPublic200ResponseAnyOf *DeleteFeedPostPublic200ResponseAnyOf -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *DeleteFeedPostPublic200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into DeleteFeedPostPublic200ResponseAnyOf - err = json.Unmarshal(data, &dst.DeleteFeedPostPublic200ResponseAnyOf); - if err == nil { - jsonDeleteFeedPostPublic200ResponseAnyOf, _ := json.Marshal(dst.DeleteFeedPostPublic200ResponseAnyOf) - if string(jsonDeleteFeedPostPublic200ResponseAnyOf) == "{}" { // empty struct - dst.DeleteFeedPostPublic200ResponseAnyOf = nil - } else { - return nil // data stored in dst.DeleteFeedPostPublic200ResponseAnyOf, return on the first match - } - } else { - dst.DeleteFeedPostPublic200ResponseAnyOf = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(DeleteFeedPostPublic200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src DeleteFeedPostPublic200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.DeleteFeedPostPublic200ResponseAnyOf != nil { - return json.Marshal(&src.DeleteFeedPostPublic200ResponseAnyOf) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableDeleteFeedPostPublic200Response struct { - value *DeleteFeedPostPublic200Response - isSet bool -} - -func (v NullableDeleteFeedPostPublic200Response) Get() *DeleteFeedPostPublic200Response { - return v.value -} - -func (v *NullableDeleteFeedPostPublic200Response) Set(val *DeleteFeedPostPublic200Response) { - v.value = val - v.isSet = true -} - -func (v NullableDeleteFeedPostPublic200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableDeleteFeedPostPublic200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDeleteFeedPostPublic200Response(val *DeleteFeedPostPublic200Response) *NullableDeleteFeedPostPublic200Response { - return &NullableDeleteFeedPostPublic200Response{value: val, isSet: true} -} - -func (v NullableDeleteFeedPostPublic200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDeleteFeedPostPublic200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_delete_feed_post_public_200_response_any_of.go b/client/model_delete_feed_post_public_200_response_any_of.go deleted file mode 100644 index be075f6..0000000 --- a/client/model_delete_feed_post_public_200_response_any_of.go +++ /dev/null @@ -1,158 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "bytes" - "fmt" -) - -// checks if the DeleteFeedPostPublic200ResponseAnyOf type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DeleteFeedPostPublic200ResponseAnyOf{} - -// DeleteFeedPostPublic200ResponseAnyOf struct for DeleteFeedPostPublic200ResponseAnyOf -type DeleteFeedPostPublic200ResponseAnyOf struct { - Status APIStatus `json:"status"` -} - -type _DeleteFeedPostPublic200ResponseAnyOf DeleteFeedPostPublic200ResponseAnyOf - -// NewDeleteFeedPostPublic200ResponseAnyOf instantiates a new DeleteFeedPostPublic200ResponseAnyOf object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewDeleteFeedPostPublic200ResponseAnyOf(status APIStatus) *DeleteFeedPostPublic200ResponseAnyOf { - this := DeleteFeedPostPublic200ResponseAnyOf{} - this.Status = status - return &this -} - -// NewDeleteFeedPostPublic200ResponseAnyOfWithDefaults instantiates a new DeleteFeedPostPublic200ResponseAnyOf object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewDeleteFeedPostPublic200ResponseAnyOfWithDefaults() *DeleteFeedPostPublic200ResponseAnyOf { - this := DeleteFeedPostPublic200ResponseAnyOf{} - return &this -} - -// GetStatus returns the Status field value -func (o *DeleteFeedPostPublic200ResponseAnyOf) GetStatus() APIStatus { - if o == nil { - var ret APIStatus - return ret - } - - return o.Status -} - -// GetStatusOk returns a tuple with the Status field value -// and a boolean to check if the value has been set. -func (o *DeleteFeedPostPublic200ResponseAnyOf) GetStatusOk() (*APIStatus, bool) { - if o == nil { - return nil, false - } - return &o.Status, true -} - -// SetStatus sets field value -func (o *DeleteFeedPostPublic200ResponseAnyOf) SetStatus(v APIStatus) { - o.Status = v -} - -func (o DeleteFeedPostPublic200ResponseAnyOf) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o DeleteFeedPostPublic200ResponseAnyOf) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["status"] = o.Status - return toSerialize, nil -} - -func (o *DeleteFeedPostPublic200ResponseAnyOf) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "status", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varDeleteFeedPostPublic200ResponseAnyOf := _DeleteFeedPostPublic200ResponseAnyOf{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varDeleteFeedPostPublic200ResponseAnyOf) - - if err != nil { - return err - } - - *o = DeleteFeedPostPublic200ResponseAnyOf(varDeleteFeedPostPublic200ResponseAnyOf) - - return err -} - -type NullableDeleteFeedPostPublic200ResponseAnyOf struct { - value *DeleteFeedPostPublic200ResponseAnyOf - isSet bool -} - -func (v NullableDeleteFeedPostPublic200ResponseAnyOf) Get() *DeleteFeedPostPublic200ResponseAnyOf { - return v.value -} - -func (v *NullableDeleteFeedPostPublic200ResponseAnyOf) Set(val *DeleteFeedPostPublic200ResponseAnyOf) { - v.value = val - v.isSet = true -} - -func (v NullableDeleteFeedPostPublic200ResponseAnyOf) IsSet() bool { - return v.isSet -} - -func (v *NullableDeleteFeedPostPublic200ResponseAnyOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDeleteFeedPostPublic200ResponseAnyOf(val *DeleteFeedPostPublic200ResponseAnyOf) *NullableDeleteFeedPostPublic200ResponseAnyOf { - return &NullableDeleteFeedPostPublic200ResponseAnyOf{value: val, isSet: true} -} - -func (v NullableDeleteFeedPostPublic200ResponseAnyOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDeleteFeedPostPublic200ResponseAnyOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_delete_feed_post_public_response.go b/client/model_delete_feed_post_public_response.go new file mode 100644 index 0000000..c4cd91a --- /dev/null +++ b/client/model_delete_feed_post_public_response.go @@ -0,0 +1,158 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the DeleteFeedPostPublicResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeleteFeedPostPublicResponse{} + +// DeleteFeedPostPublicResponse struct for DeleteFeedPostPublicResponse +type DeleteFeedPostPublicResponse struct { + Status APIStatus `json:"status"` +} + +type _DeleteFeedPostPublicResponse DeleteFeedPostPublicResponse + +// NewDeleteFeedPostPublicResponse instantiates a new DeleteFeedPostPublicResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeleteFeedPostPublicResponse(status APIStatus) *DeleteFeedPostPublicResponse { + this := DeleteFeedPostPublicResponse{} + this.Status = status + return &this +} + +// NewDeleteFeedPostPublicResponseWithDefaults instantiates a new DeleteFeedPostPublicResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeleteFeedPostPublicResponseWithDefaults() *DeleteFeedPostPublicResponse { + this := DeleteFeedPostPublicResponse{} + return &this +} + +// GetStatus returns the Status field value +func (o *DeleteFeedPostPublicResponse) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *DeleteFeedPostPublicResponse) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *DeleteFeedPostPublicResponse) SetStatus(v APIStatus) { + o.Status = v +} + +func (o DeleteFeedPostPublicResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeleteFeedPostPublicResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *DeleteFeedPostPublicResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varDeleteFeedPostPublicResponse := _DeleteFeedPostPublicResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varDeleteFeedPostPublicResponse) + + if err != nil { + return err + } + + *o = DeleteFeedPostPublicResponse(varDeleteFeedPostPublicResponse) + + return err +} + +type NullableDeleteFeedPostPublicResponse struct { + value *DeleteFeedPostPublicResponse + isSet bool +} + +func (v NullableDeleteFeedPostPublicResponse) Get() *DeleteFeedPostPublicResponse { + return v.value +} + +func (v *NullableDeleteFeedPostPublicResponse) Set(val *DeleteFeedPostPublicResponse) { + v.value = val + v.isSet = true +} + +func (v NullableDeleteFeedPostPublicResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableDeleteFeedPostPublicResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeleteFeedPostPublicResponse(val *DeleteFeedPostPublicResponse) *NullableDeleteFeedPostPublicResponse { + return &NullableDeleteFeedPostPublicResponse{value: val, isSet: true} +} + +func (v NullableDeleteFeedPostPublicResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeleteFeedPostPublicResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_delete_hash_tag_request.go b/client/model_delete_hash_tag_request_body.go similarity index 52% rename from client/model_delete_hash_tag_request.go rename to client/model_delete_hash_tag_request_body.go index 01d4240..e885426 100644 --- a/client/model_delete_hash_tag_request.go +++ b/client/model_delete_hash_tag_request_body.go @@ -14,33 +14,33 @@ import ( "encoding/json" ) -// checks if the DeleteHashTagRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DeleteHashTagRequest{} +// checks if the DeleteHashTagRequestBody type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeleteHashTagRequestBody{} -// DeleteHashTagRequest struct for DeleteHashTagRequest -type DeleteHashTagRequest struct { +// DeleteHashTagRequestBody struct for DeleteHashTagRequestBody +type DeleteHashTagRequestBody struct { TenantId *string `json:"tenantId,omitempty"` } -// NewDeleteHashTagRequest instantiates a new DeleteHashTagRequest object +// NewDeleteHashTagRequestBody instantiates a new DeleteHashTagRequestBody object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeleteHashTagRequest() *DeleteHashTagRequest { - this := DeleteHashTagRequest{} +func NewDeleteHashTagRequestBody() *DeleteHashTagRequestBody { + this := DeleteHashTagRequestBody{} return &this } -// NewDeleteHashTagRequestWithDefaults instantiates a new DeleteHashTagRequest object +// NewDeleteHashTagRequestBodyWithDefaults instantiates a new DeleteHashTagRequestBody object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewDeleteHashTagRequestWithDefaults() *DeleteHashTagRequest { - this := DeleteHashTagRequest{} +func NewDeleteHashTagRequestBodyWithDefaults() *DeleteHashTagRequestBody { + this := DeleteHashTagRequestBody{} return &this } // GetTenantId returns the TenantId field value if set, zero value otherwise. -func (o *DeleteHashTagRequest) GetTenantId() string { +func (o *DeleteHashTagRequestBody) GetTenantId() string { if o == nil || IsNil(o.TenantId) { var ret string return ret @@ -50,7 +50,7 @@ func (o *DeleteHashTagRequest) GetTenantId() string { // GetTenantIdOk returns a tuple with the TenantId field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *DeleteHashTagRequest) GetTenantIdOk() (*string, bool) { +func (o *DeleteHashTagRequestBody) GetTenantIdOk() (*string, bool) { if o == nil || IsNil(o.TenantId) { return nil, false } @@ -58,7 +58,7 @@ func (o *DeleteHashTagRequest) GetTenantIdOk() (*string, bool) { } // HasTenantId returns a boolean if a field has been set. -func (o *DeleteHashTagRequest) HasTenantId() bool { +func (o *DeleteHashTagRequestBody) HasTenantId() bool { if o != nil && !IsNil(o.TenantId) { return true } @@ -67,11 +67,11 @@ func (o *DeleteHashTagRequest) HasTenantId() bool { } // SetTenantId gets a reference to the given string and assigns it to the TenantId field. -func (o *DeleteHashTagRequest) SetTenantId(v string) { +func (o *DeleteHashTagRequestBody) SetTenantId(v string) { o.TenantId = &v } -func (o DeleteHashTagRequest) MarshalJSON() ([]byte, error) { +func (o DeleteHashTagRequestBody) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err @@ -79,7 +79,7 @@ func (o DeleteHashTagRequest) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o DeleteHashTagRequest) ToMap() (map[string]interface{}, error) { +func (o DeleteHashTagRequestBody) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.TenantId) { toSerialize["tenantId"] = o.TenantId @@ -87,38 +87,38 @@ func (o DeleteHashTagRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -type NullableDeleteHashTagRequest struct { - value *DeleteHashTagRequest +type NullableDeleteHashTagRequestBody struct { + value *DeleteHashTagRequestBody isSet bool } -func (v NullableDeleteHashTagRequest) Get() *DeleteHashTagRequest { +func (v NullableDeleteHashTagRequestBody) Get() *DeleteHashTagRequestBody { return v.value } -func (v *NullableDeleteHashTagRequest) Set(val *DeleteHashTagRequest) { +func (v *NullableDeleteHashTagRequestBody) Set(val *DeleteHashTagRequestBody) { v.value = val v.isSet = true } -func (v NullableDeleteHashTagRequest) IsSet() bool { +func (v NullableDeleteHashTagRequestBody) IsSet() bool { return v.isSet } -func (v *NullableDeleteHashTagRequest) Unset() { +func (v *NullableDeleteHashTagRequestBody) Unset() { v.value = nil v.isSet = false } -func NewNullableDeleteHashTagRequest(val *DeleteHashTagRequest) *NullableDeleteHashTagRequest { - return &NullableDeleteHashTagRequest{value: val, isSet: true} +func NewNullableDeleteHashTagRequestBody(val *DeleteHashTagRequestBody) *NullableDeleteHashTagRequestBody { + return &NullableDeleteHashTagRequestBody{value: val, isSet: true} } -func (v NullableDeleteHashTagRequest) MarshalJSON() ([]byte, error) { +func (v NullableDeleteHashTagRequestBody) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableDeleteHashTagRequest) UnmarshalJSON(src []byte) error { +func (v *NullableDeleteHashTagRequestBody) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/client/model_f_comment.go b/client/model_f_comment.go index 27e841e..2fea3f7 100644 --- a/client/model_f_comment.go +++ b/client/model_f_comment.go @@ -94,6 +94,7 @@ type FComment struct { RequiresVerification *bool `json:"requiresVerification,omitempty"` EditKey *string `json:"editKey,omitempty"` TosAcceptedAt *time.Time `json:"tosAcceptedAt,omitempty"` + BotId *string `json:"botId,omitempty"` } type _FComment FComment @@ -2620,6 +2621,38 @@ func (o *FComment) SetTosAcceptedAt(v time.Time) { o.TosAcceptedAt = &v } +// GetBotId returns the BotId field value if set, zero value otherwise. +func (o *FComment) GetBotId() string { + if o == nil || IsNil(o.BotId) { + var ret string + return ret + } + return *o.BotId +} + +// GetBotIdOk returns a tuple with the BotId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FComment) GetBotIdOk() (*string, bool) { + if o == nil || IsNil(o.BotId) { + return nil, false + } + return o.BotId, true +} + +// HasBotId returns a boolean if a field has been set. +func (o *FComment) HasBotId() bool { + if o != nil && !IsNil(o.BotId) { + return true + } + + return false +} + +// SetBotId gets a reference to the given string and assigns it to the BotId field. +func (o *FComment) SetBotId(v string) { + o.BotId = &v +} + func (o FComment) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -2824,6 +2857,9 @@ func (o FComment) ToMap() (map[string]interface{}, error) { if !IsNil(o.TosAcceptedAt) { toSerialize["tosAcceptedAt"] = o.TosAcceptedAt } + if !IsNil(o.BotId) { + toSerialize["botId"] = o.BotId + } return toSerialize, nil } diff --git a/client/model_flag_comment_200_response.go b/client/model_flag_comment_200_response.go deleted file mode 100644 index 16dccc6..0000000 --- a/client/model_flag_comment_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// FlagComment200Response struct for FlagComment200Response -type FlagComment200Response struct { - APIError *APIError - FlagCommentResponse *FlagCommentResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *FlagComment200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into FlagCommentResponse - err = json.Unmarshal(data, &dst.FlagCommentResponse); - if err == nil { - jsonFlagCommentResponse, _ := json.Marshal(dst.FlagCommentResponse) - if string(jsonFlagCommentResponse) == "{}" { // empty struct - dst.FlagCommentResponse = nil - } else { - return nil // data stored in dst.FlagCommentResponse, return on the first match - } - } else { - dst.FlagCommentResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(FlagComment200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src FlagComment200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.FlagCommentResponse != nil { - return json.Marshal(&src.FlagCommentResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableFlagComment200Response struct { - value *FlagComment200Response - isSet bool -} - -func (v NullableFlagComment200Response) Get() *FlagComment200Response { - return v.value -} - -func (v *NullableFlagComment200Response) Set(val *FlagComment200Response) { - v.value = val - v.isSet = true -} - -func (v NullableFlagComment200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableFlagComment200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFlagComment200Response(val *FlagComment200Response) *NullableFlagComment200Response { - return &NullableFlagComment200Response{value: val, isSet: true} -} - -func (v NullableFlagComment200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableFlagComment200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_flag_comment_public_200_response.go b/client/model_flag_comment_public_200_response.go deleted file mode 100644 index ddf92e4..0000000 --- a/client/model_flag_comment_public_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// FlagCommentPublic200Response struct for FlagCommentPublic200Response -type FlagCommentPublic200Response struct { - APIEmptyResponse *APIEmptyResponse - APIError *APIError -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *FlagCommentPublic200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIEmptyResponse - err = json.Unmarshal(data, &dst.APIEmptyResponse); - if err == nil { - jsonAPIEmptyResponse, _ := json.Marshal(dst.APIEmptyResponse) - if string(jsonAPIEmptyResponse) == "{}" { // empty struct - dst.APIEmptyResponse = nil - } else { - return nil // data stored in dst.APIEmptyResponse, return on the first match - } - } else { - dst.APIEmptyResponse = nil - } - - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(FlagCommentPublic200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src FlagCommentPublic200Response) MarshalJSON() ([]byte, error) { - if src.APIEmptyResponse != nil { - return json.Marshal(&src.APIEmptyResponse) - } - - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableFlagCommentPublic200Response struct { - value *FlagCommentPublic200Response - isSet bool -} - -func (v NullableFlagCommentPublic200Response) Get() *FlagCommentPublic200Response { - return v.value -} - -func (v *NullableFlagCommentPublic200Response) Set(val *FlagCommentPublic200Response) { - v.value = val - v.isSet = true -} - -func (v NullableFlagCommentPublic200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableFlagCommentPublic200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFlagCommentPublic200Response(val *FlagCommentPublic200Response) *NullableFlagCommentPublic200Response { - return &NullableFlagCommentPublic200Response{value: val, isSet: true} -} - -func (v NullableFlagCommentPublic200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableFlagCommentPublic200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_audit_logs_200_response.go b/client/model_get_audit_logs_200_response.go deleted file mode 100644 index 6e58623..0000000 --- a/client/model_get_audit_logs_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetAuditLogs200Response struct for GetAuditLogs200Response -type GetAuditLogs200Response struct { - APIError *APIError - GetAuditLogsResponse *GetAuditLogsResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetAuditLogs200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into GetAuditLogsResponse - err = json.Unmarshal(data, &dst.GetAuditLogsResponse); - if err == nil { - jsonGetAuditLogsResponse, _ := json.Marshal(dst.GetAuditLogsResponse) - if string(jsonGetAuditLogsResponse) == "{}" { // empty struct - dst.GetAuditLogsResponse = nil - } else { - return nil // data stored in dst.GetAuditLogsResponse, return on the first match - } - } else { - dst.GetAuditLogsResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetAuditLogs200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetAuditLogs200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.GetAuditLogsResponse != nil { - return json.Marshal(&src.GetAuditLogsResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetAuditLogs200Response struct { - value *GetAuditLogs200Response - isSet bool -} - -func (v NullableGetAuditLogs200Response) Get() *GetAuditLogs200Response { - return v.value -} - -func (v *NullableGetAuditLogs200Response) Set(val *GetAuditLogs200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetAuditLogs200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetAuditLogs200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetAuditLogs200Response(val *GetAuditLogs200Response) *NullableGetAuditLogs200Response { - return &NullableGetAuditLogs200Response{value: val, isSet: true} -} - -func (v NullableGetAuditLogs200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetAuditLogs200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_banned_users_count_response.go b/client/model_get_banned_users_count_response.go new file mode 100644 index 0000000..6baaefd --- /dev/null +++ b/client/model_get_banned_users_count_response.go @@ -0,0 +1,186 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the GetBannedUsersCountResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetBannedUsersCountResponse{} + +// GetBannedUsersCountResponse struct for GetBannedUsersCountResponse +type GetBannedUsersCountResponse struct { + TotalCount float64 `json:"totalCount"` + Status string `json:"status"` +} + +type _GetBannedUsersCountResponse GetBannedUsersCountResponse + +// NewGetBannedUsersCountResponse instantiates a new GetBannedUsersCountResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetBannedUsersCountResponse(totalCount float64, status string) *GetBannedUsersCountResponse { + this := GetBannedUsersCountResponse{} + this.TotalCount = totalCount + this.Status = status + return &this +} + +// NewGetBannedUsersCountResponseWithDefaults instantiates a new GetBannedUsersCountResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetBannedUsersCountResponseWithDefaults() *GetBannedUsersCountResponse { + this := GetBannedUsersCountResponse{} + return &this +} + +// GetTotalCount returns the TotalCount field value +func (o *GetBannedUsersCountResponse) GetTotalCount() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.TotalCount +} + +// GetTotalCountOk returns a tuple with the TotalCount field value +// and a boolean to check if the value has been set. +func (o *GetBannedUsersCountResponse) GetTotalCountOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.TotalCount, true +} + +// SetTotalCount sets field value +func (o *GetBannedUsersCountResponse) SetTotalCount(v float64) { + o.TotalCount = v +} + +// GetStatus returns the Status field value +func (o *GetBannedUsersCountResponse) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *GetBannedUsersCountResponse) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *GetBannedUsersCountResponse) SetStatus(v string) { + o.Status = v +} + +func (o GetBannedUsersCountResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetBannedUsersCountResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["totalCount"] = o.TotalCount + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *GetBannedUsersCountResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "totalCount", + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetBannedUsersCountResponse := _GetBannedUsersCountResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGetBannedUsersCountResponse) + + if err != nil { + return err + } + + *o = GetBannedUsersCountResponse(varGetBannedUsersCountResponse) + + return err +} + +type NullableGetBannedUsersCountResponse struct { + value *GetBannedUsersCountResponse + isSet bool +} + +func (v NullableGetBannedUsersCountResponse) Get() *GetBannedUsersCountResponse { + return v.value +} + +func (v *NullableGetBannedUsersCountResponse) Set(val *GetBannedUsersCountResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGetBannedUsersCountResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGetBannedUsersCountResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetBannedUsersCountResponse(val *GetBannedUsersCountResponse) *NullableGetBannedUsersCountResponse { + return &NullableGetBannedUsersCountResponse{value: val, isSet: true} +} + +func (v NullableGetBannedUsersCountResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetBannedUsersCountResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_get_banned_users_from_comment_response.go b/client/model_get_banned_users_from_comment_response.go new file mode 100644 index 0000000..655d799 --- /dev/null +++ b/client/model_get_banned_users_from_comment_response.go @@ -0,0 +1,222 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the GetBannedUsersFromCommentResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetBannedUsersFromCommentResponse{} + +// GetBannedUsersFromCommentResponse struct for GetBannedUsersFromCommentResponse +type GetBannedUsersFromCommentResponse struct { + BannedUsers []APIBannedUserWithMultiMatchInfo `json:"bannedUsers"` + Code *string `json:"code,omitempty"` + Status APIStatus `json:"status"` +} + +type _GetBannedUsersFromCommentResponse GetBannedUsersFromCommentResponse + +// NewGetBannedUsersFromCommentResponse instantiates a new GetBannedUsersFromCommentResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetBannedUsersFromCommentResponse(bannedUsers []APIBannedUserWithMultiMatchInfo, status APIStatus) *GetBannedUsersFromCommentResponse { + this := GetBannedUsersFromCommentResponse{} + this.BannedUsers = bannedUsers + this.Status = status + return &this +} + +// NewGetBannedUsersFromCommentResponseWithDefaults instantiates a new GetBannedUsersFromCommentResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetBannedUsersFromCommentResponseWithDefaults() *GetBannedUsersFromCommentResponse { + this := GetBannedUsersFromCommentResponse{} + return &this +} + +// GetBannedUsers returns the BannedUsers field value +func (o *GetBannedUsersFromCommentResponse) GetBannedUsers() []APIBannedUserWithMultiMatchInfo { + if o == nil { + var ret []APIBannedUserWithMultiMatchInfo + return ret + } + + return o.BannedUsers +} + +// GetBannedUsersOk returns a tuple with the BannedUsers field value +// and a boolean to check if the value has been set. +func (o *GetBannedUsersFromCommentResponse) GetBannedUsersOk() ([]APIBannedUserWithMultiMatchInfo, bool) { + if o == nil { + return nil, false + } + return o.BannedUsers, true +} + +// SetBannedUsers sets field value +func (o *GetBannedUsersFromCommentResponse) SetBannedUsers(v []APIBannedUserWithMultiMatchInfo) { + o.BannedUsers = v +} + +// GetCode returns the Code field value if set, zero value otherwise. +func (o *GetBannedUsersFromCommentResponse) GetCode() string { + if o == nil || IsNil(o.Code) { + var ret string + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetBannedUsersFromCommentResponse) GetCodeOk() (*string, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *GetBannedUsersFromCommentResponse) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given string and assigns it to the Code field. +func (o *GetBannedUsersFromCommentResponse) SetCode(v string) { + o.Code = &v +} + +// GetStatus returns the Status field value +func (o *GetBannedUsersFromCommentResponse) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *GetBannedUsersFromCommentResponse) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *GetBannedUsersFromCommentResponse) SetStatus(v APIStatus) { + o.Status = v +} + +func (o GetBannedUsersFromCommentResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetBannedUsersFromCommentResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["bannedUsers"] = o.BannedUsers + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *GetBannedUsersFromCommentResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "bannedUsers", + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetBannedUsersFromCommentResponse := _GetBannedUsersFromCommentResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGetBannedUsersFromCommentResponse) + + if err != nil { + return err + } + + *o = GetBannedUsersFromCommentResponse(varGetBannedUsersFromCommentResponse) + + return err +} + +type NullableGetBannedUsersFromCommentResponse struct { + value *GetBannedUsersFromCommentResponse + isSet bool +} + +func (v NullableGetBannedUsersFromCommentResponse) Get() *GetBannedUsersFromCommentResponse { + return v.value +} + +func (v *NullableGetBannedUsersFromCommentResponse) Set(val *GetBannedUsersFromCommentResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGetBannedUsersFromCommentResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGetBannedUsersFromCommentResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetBannedUsersFromCommentResponse(val *GetBannedUsersFromCommentResponse) *NullableGetBannedUsersFromCommentResponse { + return &NullableGetBannedUsersFromCommentResponse{value: val, isSet: true} +} + +func (v NullableGetBannedUsersFromCommentResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetBannedUsersFromCommentResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_get_cached_notification_count_200_response.go b/client/model_get_cached_notification_count_200_response.go deleted file mode 100644 index 704bbc6..0000000 --- a/client/model_get_cached_notification_count_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetCachedNotificationCount200Response struct for GetCachedNotificationCount200Response -type GetCachedNotificationCount200Response struct { - APIError *APIError - GetCachedNotificationCountResponse *GetCachedNotificationCountResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetCachedNotificationCount200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into GetCachedNotificationCountResponse - err = json.Unmarshal(data, &dst.GetCachedNotificationCountResponse); - if err == nil { - jsonGetCachedNotificationCountResponse, _ := json.Marshal(dst.GetCachedNotificationCountResponse) - if string(jsonGetCachedNotificationCountResponse) == "{}" { // empty struct - dst.GetCachedNotificationCountResponse = nil - } else { - return nil // data stored in dst.GetCachedNotificationCountResponse, return on the first match - } - } else { - dst.GetCachedNotificationCountResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetCachedNotificationCount200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetCachedNotificationCount200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.GetCachedNotificationCountResponse != nil { - return json.Marshal(&src.GetCachedNotificationCountResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetCachedNotificationCount200Response struct { - value *GetCachedNotificationCount200Response - isSet bool -} - -func (v NullableGetCachedNotificationCount200Response) Get() *GetCachedNotificationCount200Response { - return v.value -} - -func (v *NullableGetCachedNotificationCount200Response) Set(val *GetCachedNotificationCount200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetCachedNotificationCount200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetCachedNotificationCount200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetCachedNotificationCount200Response(val *GetCachedNotificationCount200Response) *NullableGetCachedNotificationCount200Response { - return &NullableGetCachedNotificationCount200Response{value: val, isSet: true} -} - -func (v NullableGetCachedNotificationCount200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetCachedNotificationCount200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_comment_200_response.go b/client/model_get_comment_200_response.go deleted file mode 100644 index 27b9ef5..0000000 --- a/client/model_get_comment_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetComment200Response struct for GetComment200Response -type GetComment200Response struct { - APIError *APIError - APIGetCommentResponse *APIGetCommentResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetComment200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into APIGetCommentResponse - err = json.Unmarshal(data, &dst.APIGetCommentResponse); - if err == nil { - jsonAPIGetCommentResponse, _ := json.Marshal(dst.APIGetCommentResponse) - if string(jsonAPIGetCommentResponse) == "{}" { // empty struct - dst.APIGetCommentResponse = nil - } else { - return nil // data stored in dst.APIGetCommentResponse, return on the first match - } - } else { - dst.APIGetCommentResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetComment200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetComment200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.APIGetCommentResponse != nil { - return json.Marshal(&src.APIGetCommentResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetComment200Response struct { - value *GetComment200Response - isSet bool -} - -func (v NullableGetComment200Response) Get() *GetComment200Response { - return v.value -} - -func (v *NullableGetComment200Response) Set(val *GetComment200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetComment200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetComment200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetComment200Response(val *GetComment200Response) *NullableGetComment200Response { - return &NullableGetComment200Response{value: val, isSet: true} -} - -func (v NullableGetComment200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetComment200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_comment_ban_status_response.go b/client/model_get_comment_ban_status_response.go new file mode 100644 index 0000000..676bf7c --- /dev/null +++ b/client/model_get_comment_ban_status_response.go @@ -0,0 +1,218 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the GetCommentBanStatusResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetCommentBanStatusResponse{} + +// GetCommentBanStatusResponse struct for GetCommentBanStatusResponse +type GetCommentBanStatusResponse struct { + Status string `json:"status"` + EmailDomain NullableString `json:"emailDomain"` + CanIPBan NullableBool `json:"canIPBan"` +} + +type _GetCommentBanStatusResponse GetCommentBanStatusResponse + +// NewGetCommentBanStatusResponse instantiates a new GetCommentBanStatusResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetCommentBanStatusResponse(status string, emailDomain NullableString, canIPBan NullableBool) *GetCommentBanStatusResponse { + this := GetCommentBanStatusResponse{} + this.Status = status + this.EmailDomain = emailDomain + this.CanIPBan = canIPBan + return &this +} + +// NewGetCommentBanStatusResponseWithDefaults instantiates a new GetCommentBanStatusResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetCommentBanStatusResponseWithDefaults() *GetCommentBanStatusResponse { + this := GetCommentBanStatusResponse{} + return &this +} + +// GetStatus returns the Status field value +func (o *GetCommentBanStatusResponse) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *GetCommentBanStatusResponse) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *GetCommentBanStatusResponse) SetStatus(v string) { + o.Status = v +} + +// GetEmailDomain returns the EmailDomain field value +// If the value is explicit nil, the zero value for string will be returned +func (o *GetCommentBanStatusResponse) GetEmailDomain() string { + if o == nil || o.EmailDomain.Get() == nil { + var ret string + return ret + } + + return *o.EmailDomain.Get() +} + +// GetEmailDomainOk returns a tuple with the EmailDomain field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetCommentBanStatusResponse) GetEmailDomainOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.EmailDomain.Get(), o.EmailDomain.IsSet() +} + +// SetEmailDomain sets field value +func (o *GetCommentBanStatusResponse) SetEmailDomain(v string) { + o.EmailDomain.Set(&v) +} + +// GetCanIPBan returns the CanIPBan field value +// If the value is explicit nil, the zero value for bool will be returned +func (o *GetCommentBanStatusResponse) GetCanIPBan() bool { + if o == nil || o.CanIPBan.Get() == nil { + var ret bool + return ret + } + + return *o.CanIPBan.Get() +} + +// GetCanIPBanOk returns a tuple with the CanIPBan field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetCommentBanStatusResponse) GetCanIPBanOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.CanIPBan.Get(), o.CanIPBan.IsSet() +} + +// SetCanIPBan sets field value +func (o *GetCommentBanStatusResponse) SetCanIPBan(v bool) { + o.CanIPBan.Set(&v) +} + +func (o GetCommentBanStatusResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetCommentBanStatusResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["status"] = o.Status + toSerialize["emailDomain"] = o.EmailDomain.Get() + toSerialize["canIPBan"] = o.CanIPBan.Get() + return toSerialize, nil +} + +func (o *GetCommentBanStatusResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "status", + "emailDomain", + "canIPBan", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetCommentBanStatusResponse := _GetCommentBanStatusResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGetCommentBanStatusResponse) + + if err != nil { + return err + } + + *o = GetCommentBanStatusResponse(varGetCommentBanStatusResponse) + + return err +} + +type NullableGetCommentBanStatusResponse struct { + value *GetCommentBanStatusResponse + isSet bool +} + +func (v NullableGetCommentBanStatusResponse) Get() *GetCommentBanStatusResponse { + return v.value +} + +func (v *NullableGetCommentBanStatusResponse) Set(val *GetCommentBanStatusResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGetCommentBanStatusResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGetCommentBanStatusResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetCommentBanStatusResponse(val *GetCommentBanStatusResponse) *NullableGetCommentBanStatusResponse { + return &NullableGetCommentBanStatusResponse{value: val, isSet: true} +} + +func (v NullableGetCommentBanStatusResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetCommentBanStatusResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_get_comment_text_200_response.go b/client/model_get_comment_text_200_response.go deleted file mode 100644 index 196c4c9..0000000 --- a/client/model_get_comment_text_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetCommentText200Response struct for GetCommentText200Response -type GetCommentText200Response struct { - APIError *APIError - PublicAPIGetCommentTextResponse *PublicAPIGetCommentTextResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetCommentText200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into PublicAPIGetCommentTextResponse - err = json.Unmarshal(data, &dst.PublicAPIGetCommentTextResponse); - if err == nil { - jsonPublicAPIGetCommentTextResponse, _ := json.Marshal(dst.PublicAPIGetCommentTextResponse) - if string(jsonPublicAPIGetCommentTextResponse) == "{}" { // empty struct - dst.PublicAPIGetCommentTextResponse = nil - } else { - return nil // data stored in dst.PublicAPIGetCommentTextResponse, return on the first match - } - } else { - dst.PublicAPIGetCommentTextResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetCommentText200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetCommentText200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.PublicAPIGetCommentTextResponse != nil { - return json.Marshal(&src.PublicAPIGetCommentTextResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetCommentText200Response struct { - value *GetCommentText200Response - isSet bool -} - -func (v NullableGetCommentText200Response) Get() *GetCommentText200Response { - return v.value -} - -func (v *NullableGetCommentText200Response) Set(val *GetCommentText200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetCommentText200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetCommentText200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetCommentText200Response(val *GetCommentText200Response) *NullableGetCommentText200Response { - return &NullableGetCommentText200Response{value: val, isSet: true} -} - -func (v NullableGetCommentText200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetCommentText200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_comment_text_response.go b/client/model_get_comment_text_response.go new file mode 100644 index 0000000..428b562 --- /dev/null +++ b/client/model_get_comment_text_response.go @@ -0,0 +1,204 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the GetCommentTextResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetCommentTextResponse{} + +// GetCommentTextResponse struct for GetCommentTextResponse +type GetCommentTextResponse struct { + Comment NullableString `json:"comment,omitempty"` + Status APIStatus `json:"status"` +} + +type _GetCommentTextResponse GetCommentTextResponse + +// NewGetCommentTextResponse instantiates a new GetCommentTextResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetCommentTextResponse(status APIStatus) *GetCommentTextResponse { + this := GetCommentTextResponse{} + this.Status = status + return &this +} + +// NewGetCommentTextResponseWithDefaults instantiates a new GetCommentTextResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetCommentTextResponseWithDefaults() *GetCommentTextResponse { + this := GetCommentTextResponse{} + return &this +} + +// GetComment returns the Comment field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetCommentTextResponse) GetComment() string { + if o == nil || IsNil(o.Comment.Get()) { + var ret string + return ret + } + return *o.Comment.Get() +} + +// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetCommentTextResponse) GetCommentOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Comment.Get(), o.Comment.IsSet() +} + +// HasComment returns a boolean if a field has been set. +func (o *GetCommentTextResponse) HasComment() bool { + if o != nil && o.Comment.IsSet() { + return true + } + + return false +} + +// SetComment gets a reference to the given NullableString and assigns it to the Comment field. +func (o *GetCommentTextResponse) SetComment(v string) { + o.Comment.Set(&v) +} +// SetCommentNil sets the value for Comment to be an explicit nil +func (o *GetCommentTextResponse) SetCommentNil() { + o.Comment.Set(nil) +} + +// UnsetComment ensures that no value is present for Comment, not even an explicit nil +func (o *GetCommentTextResponse) UnsetComment() { + o.Comment.Unset() +} + +// GetStatus returns the Status field value +func (o *GetCommentTextResponse) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *GetCommentTextResponse) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *GetCommentTextResponse) SetStatus(v APIStatus) { + o.Status = v +} + +func (o GetCommentTextResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetCommentTextResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Comment.IsSet() { + toSerialize["comment"] = o.Comment.Get() + } + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *GetCommentTextResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetCommentTextResponse := _GetCommentTextResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGetCommentTextResponse) + + if err != nil { + return err + } + + *o = GetCommentTextResponse(varGetCommentTextResponse) + + return err +} + +type NullableGetCommentTextResponse struct { + value *GetCommentTextResponse + isSet bool +} + +func (v NullableGetCommentTextResponse) Get() *GetCommentTextResponse { + return v.value +} + +func (v *NullableGetCommentTextResponse) Set(val *GetCommentTextResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGetCommentTextResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGetCommentTextResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetCommentTextResponse(val *GetCommentTextResponse) *NullableGetCommentTextResponse { + return &NullableGetCommentTextResponse{value: val, isSet: true} +} + +func (v NullableGetCommentTextResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetCommentTextResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_get_comment_vote_user_names_200_response.go b/client/model_get_comment_vote_user_names_200_response.go deleted file mode 100644 index 0c4484e..0000000 --- a/client/model_get_comment_vote_user_names_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetCommentVoteUserNames200Response struct for GetCommentVoteUserNames200Response -type GetCommentVoteUserNames200Response struct { - APIError *APIError - GetCommentVoteUserNamesSuccessResponse *GetCommentVoteUserNamesSuccessResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetCommentVoteUserNames200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into GetCommentVoteUserNamesSuccessResponse - err = json.Unmarshal(data, &dst.GetCommentVoteUserNamesSuccessResponse); - if err == nil { - jsonGetCommentVoteUserNamesSuccessResponse, _ := json.Marshal(dst.GetCommentVoteUserNamesSuccessResponse) - if string(jsonGetCommentVoteUserNamesSuccessResponse) == "{}" { // empty struct - dst.GetCommentVoteUserNamesSuccessResponse = nil - } else { - return nil // data stored in dst.GetCommentVoteUserNamesSuccessResponse, return on the first match - } - } else { - dst.GetCommentVoteUserNamesSuccessResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetCommentVoteUserNames200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetCommentVoteUserNames200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.GetCommentVoteUserNamesSuccessResponse != nil { - return json.Marshal(&src.GetCommentVoteUserNamesSuccessResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetCommentVoteUserNames200Response struct { - value *GetCommentVoteUserNames200Response - isSet bool -} - -func (v NullableGetCommentVoteUserNames200Response) Get() *GetCommentVoteUserNames200Response { - return v.value -} - -func (v *NullableGetCommentVoteUserNames200Response) Set(val *GetCommentVoteUserNames200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetCommentVoteUserNames200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetCommentVoteUserNames200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetCommentVoteUserNames200Response(val *GetCommentVoteUserNames200Response) *NullableGetCommentVoteUserNames200Response { - return &NullableGetCommentVoteUserNames200Response{value: val, isSet: true} -} - -func (v NullableGetCommentVoteUserNames200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetCommentVoteUserNames200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_comments_200_response.go b/client/model_get_comments_200_response.go deleted file mode 100644 index f19ef48..0000000 --- a/client/model_get_comments_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetComments200Response struct for GetComments200Response -type GetComments200Response struct { - APIError *APIError - APIGetCommentsResponse *APIGetCommentsResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetComments200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into APIGetCommentsResponse - err = json.Unmarshal(data, &dst.APIGetCommentsResponse); - if err == nil { - jsonAPIGetCommentsResponse, _ := json.Marshal(dst.APIGetCommentsResponse) - if string(jsonAPIGetCommentsResponse) == "{}" { // empty struct - dst.APIGetCommentsResponse = nil - } else { - return nil // data stored in dst.APIGetCommentsResponse, return on the first match - } - } else { - dst.APIGetCommentsResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetComments200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetComments200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.APIGetCommentsResponse != nil { - return json.Marshal(&src.APIGetCommentsResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetComments200Response struct { - value *GetComments200Response - isSet bool -} - -func (v NullableGetComments200Response) Get() *GetComments200Response { - return v.value -} - -func (v *NullableGetComments200Response) Set(val *GetComments200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetComments200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetComments200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetComments200Response(val *GetComments200Response) *NullableGetComments200Response { - return &NullableGetComments200Response{value: val, isSet: true} -} - -func (v NullableGetComments200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetComments200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_comments_for_user_response.go b/client/model_get_comments_for_user_response.go new file mode 100644 index 0000000..685b30a --- /dev/null +++ b/client/model_get_comments_for_user_response.go @@ -0,0 +1,126 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" +) + +// checks if the GetCommentsForUserResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetCommentsForUserResponse{} + +// GetCommentsForUserResponse struct for GetCommentsForUserResponse +type GetCommentsForUserResponse struct { + ModeratingTenantIds []string `json:"moderatingTenantIds,omitempty"` +} + +// NewGetCommentsForUserResponse instantiates a new GetCommentsForUserResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetCommentsForUserResponse() *GetCommentsForUserResponse { + this := GetCommentsForUserResponse{} + return &this +} + +// NewGetCommentsForUserResponseWithDefaults instantiates a new GetCommentsForUserResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetCommentsForUserResponseWithDefaults() *GetCommentsForUserResponse { + this := GetCommentsForUserResponse{} + return &this +} + +// GetModeratingTenantIds returns the ModeratingTenantIds field value if set, zero value otherwise. +func (o *GetCommentsForUserResponse) GetModeratingTenantIds() []string { + if o == nil || IsNil(o.ModeratingTenantIds) { + var ret []string + return ret + } + return o.ModeratingTenantIds +} + +// GetModeratingTenantIdsOk returns a tuple with the ModeratingTenantIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetCommentsForUserResponse) GetModeratingTenantIdsOk() ([]string, bool) { + if o == nil || IsNil(o.ModeratingTenantIds) { + return nil, false + } + return o.ModeratingTenantIds, true +} + +// HasModeratingTenantIds returns a boolean if a field has been set. +func (o *GetCommentsForUserResponse) HasModeratingTenantIds() bool { + if o != nil && !IsNil(o.ModeratingTenantIds) { + return true + } + + return false +} + +// SetModeratingTenantIds gets a reference to the given []string and assigns it to the ModeratingTenantIds field. +func (o *GetCommentsForUserResponse) SetModeratingTenantIds(v []string) { + o.ModeratingTenantIds = v +} + +func (o GetCommentsForUserResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetCommentsForUserResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ModeratingTenantIds) { + toSerialize["moderatingTenantIds"] = o.ModeratingTenantIds + } + return toSerialize, nil +} + +type NullableGetCommentsForUserResponse struct { + value *GetCommentsForUserResponse + isSet bool +} + +func (v NullableGetCommentsForUserResponse) Get() *GetCommentsForUserResponse { + return v.value +} + +func (v *NullableGetCommentsForUserResponse) Set(val *GetCommentsForUserResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGetCommentsForUserResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGetCommentsForUserResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetCommentsForUserResponse(val *GetCommentsForUserResponse) *NullableGetCommentsForUserResponse { + return &NullableGetCommentsForUserResponse{value: val, isSet: true} +} + +func (v NullableGetCommentsForUserResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetCommentsForUserResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_get_comments_public_200_response.go b/client/model_get_comments_public_200_response.go deleted file mode 100644 index 715f5bf..0000000 --- a/client/model_get_comments_public_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetCommentsPublic200Response struct for GetCommentsPublic200Response -type GetCommentsPublic200Response struct { - APIError *APIError - GetCommentsResponseWithPresencePublicComment *GetCommentsResponseWithPresencePublicComment -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetCommentsPublic200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into GetCommentsResponseWithPresencePublicComment - err = json.Unmarshal(data, &dst.GetCommentsResponseWithPresencePublicComment); - if err == nil { - jsonGetCommentsResponseWithPresencePublicComment, _ := json.Marshal(dst.GetCommentsResponseWithPresencePublicComment) - if string(jsonGetCommentsResponseWithPresencePublicComment) == "{}" { // empty struct - dst.GetCommentsResponseWithPresencePublicComment = nil - } else { - return nil // data stored in dst.GetCommentsResponseWithPresencePublicComment, return on the first match - } - } else { - dst.GetCommentsResponseWithPresencePublicComment = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetCommentsPublic200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetCommentsPublic200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.GetCommentsResponseWithPresencePublicComment != nil { - return json.Marshal(&src.GetCommentsResponseWithPresencePublicComment) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetCommentsPublic200Response struct { - value *GetCommentsPublic200Response - isSet bool -} - -func (v NullableGetCommentsPublic200Response) Get() *GetCommentsPublic200Response { - return v.value -} - -func (v *NullableGetCommentsPublic200Response) Set(val *GetCommentsPublic200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetCommentsPublic200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetCommentsPublic200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetCommentsPublic200Response(val *GetCommentsPublic200Response) *NullableGetCommentsPublic200Response { - return &NullableGetCommentsPublic200Response{value: val, isSet: true} -} - -func (v NullableGetCommentsPublic200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetCommentsPublic200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_domain_config_200_response.go b/client/model_get_domain_config_200_response.go deleted file mode 100644 index e5250dd..0000000 --- a/client/model_get_domain_config_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetDomainConfig200Response struct for GetDomainConfig200Response -type GetDomainConfig200Response struct { - AddDomainConfig200ResponseAnyOf *AddDomainConfig200ResponseAnyOf - GetDomainConfigs200ResponseAnyOf1 *GetDomainConfigs200ResponseAnyOf1 -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetDomainConfig200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into AddDomainConfig200ResponseAnyOf - err = json.Unmarshal(data, &dst.AddDomainConfig200ResponseAnyOf); - if err == nil { - jsonAddDomainConfig200ResponseAnyOf, _ := json.Marshal(dst.AddDomainConfig200ResponseAnyOf) - if string(jsonAddDomainConfig200ResponseAnyOf) == "{}" { // empty struct - dst.AddDomainConfig200ResponseAnyOf = nil - } else { - return nil // data stored in dst.AddDomainConfig200ResponseAnyOf, return on the first match - } - } else { - dst.AddDomainConfig200ResponseAnyOf = nil - } - - // try to unmarshal JSON data into GetDomainConfigs200ResponseAnyOf1 - err = json.Unmarshal(data, &dst.GetDomainConfigs200ResponseAnyOf1); - if err == nil { - jsonGetDomainConfigs200ResponseAnyOf1, _ := json.Marshal(dst.GetDomainConfigs200ResponseAnyOf1) - if string(jsonGetDomainConfigs200ResponseAnyOf1) == "{}" { // empty struct - dst.GetDomainConfigs200ResponseAnyOf1 = nil - } else { - return nil // data stored in dst.GetDomainConfigs200ResponseAnyOf1, return on the first match - } - } else { - dst.GetDomainConfigs200ResponseAnyOf1 = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetDomainConfig200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetDomainConfig200Response) MarshalJSON() ([]byte, error) { - if src.AddDomainConfig200ResponseAnyOf != nil { - return json.Marshal(&src.AddDomainConfig200ResponseAnyOf) - } - - if src.GetDomainConfigs200ResponseAnyOf1 != nil { - return json.Marshal(&src.GetDomainConfigs200ResponseAnyOf1) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetDomainConfig200Response struct { - value *GetDomainConfig200Response - isSet bool -} - -func (v NullableGetDomainConfig200Response) Get() *GetDomainConfig200Response { - return v.value -} - -func (v *NullableGetDomainConfig200Response) Set(val *GetDomainConfig200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetDomainConfig200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetDomainConfig200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetDomainConfig200Response(val *GetDomainConfig200Response) *NullableGetDomainConfig200Response { - return &NullableGetDomainConfig200Response{value: val, isSet: true} -} - -func (v NullableGetDomainConfig200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetDomainConfig200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_domain_config_response.go b/client/model_get_domain_config_response.go new file mode 100644 index 0000000..9c425d6 --- /dev/null +++ b/client/model_get_domain_config_response.go @@ -0,0 +1,107 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "fmt" +) + + +// GetDomainConfigResponse struct for GetDomainConfigResponse +type GetDomainConfigResponse struct { + AddDomainConfigResponseAnyOf *AddDomainConfigResponseAnyOf + GetDomainConfigsResponseAnyOf1 *GetDomainConfigsResponseAnyOf1 +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *GetDomainConfigResponse) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into AddDomainConfigResponseAnyOf + err = json.Unmarshal(data, &dst.AddDomainConfigResponseAnyOf); + if err == nil { + jsonAddDomainConfigResponseAnyOf, _ := json.Marshal(dst.AddDomainConfigResponseAnyOf) + if string(jsonAddDomainConfigResponseAnyOf) == "{}" { // empty struct + dst.AddDomainConfigResponseAnyOf = nil + } else { + return nil // data stored in dst.AddDomainConfigResponseAnyOf, return on the first match + } + } else { + dst.AddDomainConfigResponseAnyOf = nil + } + + // try to unmarshal JSON data into GetDomainConfigsResponseAnyOf1 + err = json.Unmarshal(data, &dst.GetDomainConfigsResponseAnyOf1); + if err == nil { + jsonGetDomainConfigsResponseAnyOf1, _ := json.Marshal(dst.GetDomainConfigsResponseAnyOf1) + if string(jsonGetDomainConfigsResponseAnyOf1) == "{}" { // empty struct + dst.GetDomainConfigsResponseAnyOf1 = nil + } else { + return nil // data stored in dst.GetDomainConfigsResponseAnyOf1, return on the first match + } + } else { + dst.GetDomainConfigsResponseAnyOf1 = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(GetDomainConfigResponse)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src GetDomainConfigResponse) MarshalJSON() ([]byte, error) { + if src.AddDomainConfigResponseAnyOf != nil { + return json.Marshal(&src.AddDomainConfigResponseAnyOf) + } + + if src.GetDomainConfigsResponseAnyOf1 != nil { + return json.Marshal(&src.GetDomainConfigsResponseAnyOf1) + } + + return nil, nil // no data in anyOf schemas +} + + +type NullableGetDomainConfigResponse struct { + value *GetDomainConfigResponse + isSet bool +} + +func (v NullableGetDomainConfigResponse) Get() *GetDomainConfigResponse { + return v.value +} + +func (v *NullableGetDomainConfigResponse) Set(val *GetDomainConfigResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGetDomainConfigResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGetDomainConfigResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetDomainConfigResponse(val *GetDomainConfigResponse) *NullableGetDomainConfigResponse { + return &NullableGetDomainConfigResponse{value: val, isSet: true} +} + +func (v NullableGetDomainConfigResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetDomainConfigResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_get_domain_configs_200_response.go b/client/model_get_domain_configs_200_response.go deleted file mode 100644 index 61fcf67..0000000 --- a/client/model_get_domain_configs_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetDomainConfigs200Response struct for GetDomainConfigs200Response -type GetDomainConfigs200Response struct { - GetDomainConfigs200ResponseAnyOf *GetDomainConfigs200ResponseAnyOf - GetDomainConfigs200ResponseAnyOf1 *GetDomainConfigs200ResponseAnyOf1 -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetDomainConfigs200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into GetDomainConfigs200ResponseAnyOf - err = json.Unmarshal(data, &dst.GetDomainConfigs200ResponseAnyOf); - if err == nil { - jsonGetDomainConfigs200ResponseAnyOf, _ := json.Marshal(dst.GetDomainConfigs200ResponseAnyOf) - if string(jsonGetDomainConfigs200ResponseAnyOf) == "{}" { // empty struct - dst.GetDomainConfigs200ResponseAnyOf = nil - } else { - return nil // data stored in dst.GetDomainConfigs200ResponseAnyOf, return on the first match - } - } else { - dst.GetDomainConfigs200ResponseAnyOf = nil - } - - // try to unmarshal JSON data into GetDomainConfigs200ResponseAnyOf1 - err = json.Unmarshal(data, &dst.GetDomainConfigs200ResponseAnyOf1); - if err == nil { - jsonGetDomainConfigs200ResponseAnyOf1, _ := json.Marshal(dst.GetDomainConfigs200ResponseAnyOf1) - if string(jsonGetDomainConfigs200ResponseAnyOf1) == "{}" { // empty struct - dst.GetDomainConfigs200ResponseAnyOf1 = nil - } else { - return nil // data stored in dst.GetDomainConfigs200ResponseAnyOf1, return on the first match - } - } else { - dst.GetDomainConfigs200ResponseAnyOf1 = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetDomainConfigs200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetDomainConfigs200Response) MarshalJSON() ([]byte, error) { - if src.GetDomainConfigs200ResponseAnyOf != nil { - return json.Marshal(&src.GetDomainConfigs200ResponseAnyOf) - } - - if src.GetDomainConfigs200ResponseAnyOf1 != nil { - return json.Marshal(&src.GetDomainConfigs200ResponseAnyOf1) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetDomainConfigs200Response struct { - value *GetDomainConfigs200Response - isSet bool -} - -func (v NullableGetDomainConfigs200Response) Get() *GetDomainConfigs200Response { - return v.value -} - -func (v *NullableGetDomainConfigs200Response) Set(val *GetDomainConfigs200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetDomainConfigs200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetDomainConfigs200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetDomainConfigs200Response(val *GetDomainConfigs200Response) *NullableGetDomainConfigs200Response { - return &NullableGetDomainConfigs200Response{value: val, isSet: true} -} - -func (v NullableGetDomainConfigs200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetDomainConfigs200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_domain_configs_response.go b/client/model_get_domain_configs_response.go new file mode 100644 index 0000000..1671c96 --- /dev/null +++ b/client/model_get_domain_configs_response.go @@ -0,0 +1,107 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "fmt" +) + + +// GetDomainConfigsResponse struct for GetDomainConfigsResponse +type GetDomainConfigsResponse struct { + GetDomainConfigsResponseAnyOf *GetDomainConfigsResponseAnyOf + GetDomainConfigsResponseAnyOf1 *GetDomainConfigsResponseAnyOf1 +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *GetDomainConfigsResponse) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into GetDomainConfigsResponseAnyOf + err = json.Unmarshal(data, &dst.GetDomainConfigsResponseAnyOf); + if err == nil { + jsonGetDomainConfigsResponseAnyOf, _ := json.Marshal(dst.GetDomainConfigsResponseAnyOf) + if string(jsonGetDomainConfigsResponseAnyOf) == "{}" { // empty struct + dst.GetDomainConfigsResponseAnyOf = nil + } else { + return nil // data stored in dst.GetDomainConfigsResponseAnyOf, return on the first match + } + } else { + dst.GetDomainConfigsResponseAnyOf = nil + } + + // try to unmarshal JSON data into GetDomainConfigsResponseAnyOf1 + err = json.Unmarshal(data, &dst.GetDomainConfigsResponseAnyOf1); + if err == nil { + jsonGetDomainConfigsResponseAnyOf1, _ := json.Marshal(dst.GetDomainConfigsResponseAnyOf1) + if string(jsonGetDomainConfigsResponseAnyOf1) == "{}" { // empty struct + dst.GetDomainConfigsResponseAnyOf1 = nil + } else { + return nil // data stored in dst.GetDomainConfigsResponseAnyOf1, return on the first match + } + } else { + dst.GetDomainConfigsResponseAnyOf1 = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(GetDomainConfigsResponse)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src GetDomainConfigsResponse) MarshalJSON() ([]byte, error) { + if src.GetDomainConfigsResponseAnyOf != nil { + return json.Marshal(&src.GetDomainConfigsResponseAnyOf) + } + + if src.GetDomainConfigsResponseAnyOf1 != nil { + return json.Marshal(&src.GetDomainConfigsResponseAnyOf1) + } + + return nil, nil // no data in anyOf schemas +} + + +type NullableGetDomainConfigsResponse struct { + value *GetDomainConfigsResponse + isSet bool +} + +func (v NullableGetDomainConfigsResponse) Get() *GetDomainConfigsResponse { + return v.value +} + +func (v *NullableGetDomainConfigsResponse) Set(val *GetDomainConfigsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGetDomainConfigsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGetDomainConfigsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetDomainConfigsResponse(val *GetDomainConfigsResponse) *NullableGetDomainConfigsResponse { + return &NullableGetDomainConfigsResponse{value: val, isSet: true} +} + +func (v NullableGetDomainConfigsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetDomainConfigsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_get_domain_configs_200_response_any_of.go b/client/model_get_domain_configs_response_any_of.go similarity index 55% rename from client/model_get_domain_configs_200_response_any_of.go rename to client/model_get_domain_configs_response_any_of.go index 4b5b017..282c648 100644 --- a/client/model_get_domain_configs_200_response_any_of.go +++ b/client/model_get_domain_configs_response_any_of.go @@ -16,39 +16,39 @@ import ( "fmt" ) -// checks if the GetDomainConfigs200ResponseAnyOf type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GetDomainConfigs200ResponseAnyOf{} +// checks if the GetDomainConfigsResponseAnyOf type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetDomainConfigsResponseAnyOf{} -// GetDomainConfigs200ResponseAnyOf struct for GetDomainConfigs200ResponseAnyOf -type GetDomainConfigs200ResponseAnyOf struct { +// GetDomainConfigsResponseAnyOf struct for GetDomainConfigsResponseAnyOf +type GetDomainConfigsResponseAnyOf struct { Configurations interface{} `json:"configurations"` Status interface{} `json:"status"` } -type _GetDomainConfigs200ResponseAnyOf GetDomainConfigs200ResponseAnyOf +type _GetDomainConfigsResponseAnyOf GetDomainConfigsResponseAnyOf -// NewGetDomainConfigs200ResponseAnyOf instantiates a new GetDomainConfigs200ResponseAnyOf object +// NewGetDomainConfigsResponseAnyOf instantiates a new GetDomainConfigsResponseAnyOf object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewGetDomainConfigs200ResponseAnyOf(configurations interface{}, status interface{}) *GetDomainConfigs200ResponseAnyOf { - this := GetDomainConfigs200ResponseAnyOf{} +func NewGetDomainConfigsResponseAnyOf(configurations interface{}, status interface{}) *GetDomainConfigsResponseAnyOf { + this := GetDomainConfigsResponseAnyOf{} this.Configurations = configurations this.Status = status return &this } -// NewGetDomainConfigs200ResponseAnyOfWithDefaults instantiates a new GetDomainConfigs200ResponseAnyOf object +// NewGetDomainConfigsResponseAnyOfWithDefaults instantiates a new GetDomainConfigsResponseAnyOf object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewGetDomainConfigs200ResponseAnyOfWithDefaults() *GetDomainConfigs200ResponseAnyOf { - this := GetDomainConfigs200ResponseAnyOf{} +func NewGetDomainConfigsResponseAnyOfWithDefaults() *GetDomainConfigsResponseAnyOf { + this := GetDomainConfigsResponseAnyOf{} return &this } // GetConfigurations returns the Configurations field value // If the value is explicit nil, the zero value for interface{} will be returned -func (o *GetDomainConfigs200ResponseAnyOf) GetConfigurations() interface{} { +func (o *GetDomainConfigsResponseAnyOf) GetConfigurations() interface{} { if o == nil { var ret interface{} return ret @@ -60,7 +60,7 @@ func (o *GetDomainConfigs200ResponseAnyOf) GetConfigurations() interface{} { // GetConfigurationsOk returns a tuple with the Configurations field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GetDomainConfigs200ResponseAnyOf) GetConfigurationsOk() (*interface{}, bool) { +func (o *GetDomainConfigsResponseAnyOf) GetConfigurationsOk() (*interface{}, bool) { if o == nil || IsNil(o.Configurations) { return nil, false } @@ -68,13 +68,13 @@ func (o *GetDomainConfigs200ResponseAnyOf) GetConfigurationsOk() (*interface{}, } // SetConfigurations sets field value -func (o *GetDomainConfigs200ResponseAnyOf) SetConfigurations(v interface{}) { +func (o *GetDomainConfigsResponseAnyOf) SetConfigurations(v interface{}) { o.Configurations = v } // GetStatus returns the Status field value // If the value is explicit nil, the zero value for interface{} will be returned -func (o *GetDomainConfigs200ResponseAnyOf) GetStatus() interface{} { +func (o *GetDomainConfigsResponseAnyOf) GetStatus() interface{} { if o == nil { var ret interface{} return ret @@ -86,7 +86,7 @@ func (o *GetDomainConfigs200ResponseAnyOf) GetStatus() interface{} { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GetDomainConfigs200ResponseAnyOf) GetStatusOk() (*interface{}, bool) { +func (o *GetDomainConfigsResponseAnyOf) GetStatusOk() (*interface{}, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -94,11 +94,11 @@ func (o *GetDomainConfigs200ResponseAnyOf) GetStatusOk() (*interface{}, bool) { } // SetStatus sets field value -func (o *GetDomainConfigs200ResponseAnyOf) SetStatus(v interface{}) { +func (o *GetDomainConfigsResponseAnyOf) SetStatus(v interface{}) { o.Status = v } -func (o GetDomainConfigs200ResponseAnyOf) MarshalJSON() ([]byte, error) { +func (o GetDomainConfigsResponseAnyOf) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err @@ -106,7 +106,7 @@ func (o GetDomainConfigs200ResponseAnyOf) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o GetDomainConfigs200ResponseAnyOf) ToMap() (map[string]interface{}, error) { +func (o GetDomainConfigsResponseAnyOf) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if o.Configurations != nil { toSerialize["configurations"] = o.Configurations @@ -117,7 +117,7 @@ func (o GetDomainConfigs200ResponseAnyOf) ToMap() (map[string]interface{}, error return toSerialize, nil } -func (o *GetDomainConfigs200ResponseAnyOf) UnmarshalJSON(data []byte) (err error) { +func (o *GetDomainConfigsResponseAnyOf) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. @@ -140,53 +140,53 @@ func (o *GetDomainConfigs200ResponseAnyOf) UnmarshalJSON(data []byte) (err error } } - varGetDomainConfigs200ResponseAnyOf := _GetDomainConfigs200ResponseAnyOf{} + varGetDomainConfigsResponseAnyOf := _GetDomainConfigsResponseAnyOf{} decoder := json.NewDecoder(bytes.NewReader(data)) decoder.DisallowUnknownFields() - err = decoder.Decode(&varGetDomainConfigs200ResponseAnyOf) + err = decoder.Decode(&varGetDomainConfigsResponseAnyOf) if err != nil { return err } - *o = GetDomainConfigs200ResponseAnyOf(varGetDomainConfigs200ResponseAnyOf) + *o = GetDomainConfigsResponseAnyOf(varGetDomainConfigsResponseAnyOf) return err } -type NullableGetDomainConfigs200ResponseAnyOf struct { - value *GetDomainConfigs200ResponseAnyOf +type NullableGetDomainConfigsResponseAnyOf struct { + value *GetDomainConfigsResponseAnyOf isSet bool } -func (v NullableGetDomainConfigs200ResponseAnyOf) Get() *GetDomainConfigs200ResponseAnyOf { +func (v NullableGetDomainConfigsResponseAnyOf) Get() *GetDomainConfigsResponseAnyOf { return v.value } -func (v *NullableGetDomainConfigs200ResponseAnyOf) Set(val *GetDomainConfigs200ResponseAnyOf) { +func (v *NullableGetDomainConfigsResponseAnyOf) Set(val *GetDomainConfigsResponseAnyOf) { v.value = val v.isSet = true } -func (v NullableGetDomainConfigs200ResponseAnyOf) IsSet() bool { +func (v NullableGetDomainConfigsResponseAnyOf) IsSet() bool { return v.isSet } -func (v *NullableGetDomainConfigs200ResponseAnyOf) Unset() { +func (v *NullableGetDomainConfigsResponseAnyOf) Unset() { v.value = nil v.isSet = false } -func NewNullableGetDomainConfigs200ResponseAnyOf(val *GetDomainConfigs200ResponseAnyOf) *NullableGetDomainConfigs200ResponseAnyOf { - return &NullableGetDomainConfigs200ResponseAnyOf{value: val, isSet: true} +func NewNullableGetDomainConfigsResponseAnyOf(val *GetDomainConfigsResponseAnyOf) *NullableGetDomainConfigsResponseAnyOf { + return &NullableGetDomainConfigsResponseAnyOf{value: val, isSet: true} } -func (v NullableGetDomainConfigs200ResponseAnyOf) MarshalJSON() ([]byte, error) { +func (v NullableGetDomainConfigsResponseAnyOf) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableGetDomainConfigs200ResponseAnyOf) UnmarshalJSON(src []byte) error { +func (v *NullableGetDomainConfigsResponseAnyOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/client/model_get_domain_configs_200_response_any_of_1.go b/client/model_get_domain_configs_response_any_of_1.go similarity index 54% rename from client/model_get_domain_configs_200_response_any_of_1.go rename to client/model_get_domain_configs_response_any_of_1.go index 830f827..815f300 100644 --- a/client/model_get_domain_configs_200_response_any_of_1.go +++ b/client/model_get_domain_configs_response_any_of_1.go @@ -16,40 +16,40 @@ import ( "fmt" ) -// checks if the GetDomainConfigs200ResponseAnyOf1 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GetDomainConfigs200ResponseAnyOf1{} +// checks if the GetDomainConfigsResponseAnyOf1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetDomainConfigsResponseAnyOf1{} -// GetDomainConfigs200ResponseAnyOf1 struct for GetDomainConfigs200ResponseAnyOf1 -type GetDomainConfigs200ResponseAnyOf1 struct { +// GetDomainConfigsResponseAnyOf1 struct for GetDomainConfigsResponseAnyOf1 +type GetDomainConfigsResponseAnyOf1 struct { Reason string `json:"reason"` Code string `json:"code"` Status interface{} `json:"status"` } -type _GetDomainConfigs200ResponseAnyOf1 GetDomainConfigs200ResponseAnyOf1 +type _GetDomainConfigsResponseAnyOf1 GetDomainConfigsResponseAnyOf1 -// NewGetDomainConfigs200ResponseAnyOf1 instantiates a new GetDomainConfigs200ResponseAnyOf1 object +// NewGetDomainConfigsResponseAnyOf1 instantiates a new GetDomainConfigsResponseAnyOf1 object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewGetDomainConfigs200ResponseAnyOf1(reason string, code string, status interface{}) *GetDomainConfigs200ResponseAnyOf1 { - this := GetDomainConfigs200ResponseAnyOf1{} +func NewGetDomainConfigsResponseAnyOf1(reason string, code string, status interface{}) *GetDomainConfigsResponseAnyOf1 { + this := GetDomainConfigsResponseAnyOf1{} this.Reason = reason this.Code = code this.Status = status return &this } -// NewGetDomainConfigs200ResponseAnyOf1WithDefaults instantiates a new GetDomainConfigs200ResponseAnyOf1 object +// NewGetDomainConfigsResponseAnyOf1WithDefaults instantiates a new GetDomainConfigsResponseAnyOf1 object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewGetDomainConfigs200ResponseAnyOf1WithDefaults() *GetDomainConfigs200ResponseAnyOf1 { - this := GetDomainConfigs200ResponseAnyOf1{} +func NewGetDomainConfigsResponseAnyOf1WithDefaults() *GetDomainConfigsResponseAnyOf1 { + this := GetDomainConfigsResponseAnyOf1{} return &this } // GetReason returns the Reason field value -func (o *GetDomainConfigs200ResponseAnyOf1) GetReason() string { +func (o *GetDomainConfigsResponseAnyOf1) GetReason() string { if o == nil { var ret string return ret @@ -60,7 +60,7 @@ func (o *GetDomainConfigs200ResponseAnyOf1) GetReason() string { // GetReasonOk returns a tuple with the Reason field value // and a boolean to check if the value has been set. -func (o *GetDomainConfigs200ResponseAnyOf1) GetReasonOk() (*string, bool) { +func (o *GetDomainConfigsResponseAnyOf1) GetReasonOk() (*string, bool) { if o == nil { return nil, false } @@ -68,12 +68,12 @@ func (o *GetDomainConfigs200ResponseAnyOf1) GetReasonOk() (*string, bool) { } // SetReason sets field value -func (o *GetDomainConfigs200ResponseAnyOf1) SetReason(v string) { +func (o *GetDomainConfigsResponseAnyOf1) SetReason(v string) { o.Reason = v } // GetCode returns the Code field value -func (o *GetDomainConfigs200ResponseAnyOf1) GetCode() string { +func (o *GetDomainConfigsResponseAnyOf1) GetCode() string { if o == nil { var ret string return ret @@ -84,7 +84,7 @@ func (o *GetDomainConfigs200ResponseAnyOf1) GetCode() string { // GetCodeOk returns a tuple with the Code field value // and a boolean to check if the value has been set. -func (o *GetDomainConfigs200ResponseAnyOf1) GetCodeOk() (*string, bool) { +func (o *GetDomainConfigsResponseAnyOf1) GetCodeOk() (*string, bool) { if o == nil { return nil, false } @@ -92,13 +92,13 @@ func (o *GetDomainConfigs200ResponseAnyOf1) GetCodeOk() (*string, bool) { } // SetCode sets field value -func (o *GetDomainConfigs200ResponseAnyOf1) SetCode(v string) { +func (o *GetDomainConfigsResponseAnyOf1) SetCode(v string) { o.Code = v } // GetStatus returns the Status field value // If the value is explicit nil, the zero value for interface{} will be returned -func (o *GetDomainConfigs200ResponseAnyOf1) GetStatus() interface{} { +func (o *GetDomainConfigsResponseAnyOf1) GetStatus() interface{} { if o == nil { var ret interface{} return ret @@ -110,7 +110,7 @@ func (o *GetDomainConfigs200ResponseAnyOf1) GetStatus() interface{} { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GetDomainConfigs200ResponseAnyOf1) GetStatusOk() (*interface{}, bool) { +func (o *GetDomainConfigsResponseAnyOf1) GetStatusOk() (*interface{}, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -118,11 +118,11 @@ func (o *GetDomainConfigs200ResponseAnyOf1) GetStatusOk() (*interface{}, bool) { } // SetStatus sets field value -func (o *GetDomainConfigs200ResponseAnyOf1) SetStatus(v interface{}) { +func (o *GetDomainConfigsResponseAnyOf1) SetStatus(v interface{}) { o.Status = v } -func (o GetDomainConfigs200ResponseAnyOf1) MarshalJSON() ([]byte, error) { +func (o GetDomainConfigsResponseAnyOf1) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err @@ -130,7 +130,7 @@ func (o GetDomainConfigs200ResponseAnyOf1) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o GetDomainConfigs200ResponseAnyOf1) ToMap() (map[string]interface{}, error) { +func (o GetDomainConfigsResponseAnyOf1) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["reason"] = o.Reason toSerialize["code"] = o.Code @@ -140,7 +140,7 @@ func (o GetDomainConfigs200ResponseAnyOf1) ToMap() (map[string]interface{}, erro return toSerialize, nil } -func (o *GetDomainConfigs200ResponseAnyOf1) UnmarshalJSON(data []byte) (err error) { +func (o *GetDomainConfigsResponseAnyOf1) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. @@ -164,53 +164,53 @@ func (o *GetDomainConfigs200ResponseAnyOf1) UnmarshalJSON(data []byte) (err erro } } - varGetDomainConfigs200ResponseAnyOf1 := _GetDomainConfigs200ResponseAnyOf1{} + varGetDomainConfigsResponseAnyOf1 := _GetDomainConfigsResponseAnyOf1{} decoder := json.NewDecoder(bytes.NewReader(data)) decoder.DisallowUnknownFields() - err = decoder.Decode(&varGetDomainConfigs200ResponseAnyOf1) + err = decoder.Decode(&varGetDomainConfigsResponseAnyOf1) if err != nil { return err } - *o = GetDomainConfigs200ResponseAnyOf1(varGetDomainConfigs200ResponseAnyOf1) + *o = GetDomainConfigsResponseAnyOf1(varGetDomainConfigsResponseAnyOf1) return err } -type NullableGetDomainConfigs200ResponseAnyOf1 struct { - value *GetDomainConfigs200ResponseAnyOf1 +type NullableGetDomainConfigsResponseAnyOf1 struct { + value *GetDomainConfigsResponseAnyOf1 isSet bool } -func (v NullableGetDomainConfigs200ResponseAnyOf1) Get() *GetDomainConfigs200ResponseAnyOf1 { +func (v NullableGetDomainConfigsResponseAnyOf1) Get() *GetDomainConfigsResponseAnyOf1 { return v.value } -func (v *NullableGetDomainConfigs200ResponseAnyOf1) Set(val *GetDomainConfigs200ResponseAnyOf1) { +func (v *NullableGetDomainConfigsResponseAnyOf1) Set(val *GetDomainConfigsResponseAnyOf1) { v.value = val v.isSet = true } -func (v NullableGetDomainConfigs200ResponseAnyOf1) IsSet() bool { +func (v NullableGetDomainConfigsResponseAnyOf1) IsSet() bool { return v.isSet } -func (v *NullableGetDomainConfigs200ResponseAnyOf1) Unset() { +func (v *NullableGetDomainConfigsResponseAnyOf1) Unset() { v.value = nil v.isSet = false } -func NewNullableGetDomainConfigs200ResponseAnyOf1(val *GetDomainConfigs200ResponseAnyOf1) *NullableGetDomainConfigs200ResponseAnyOf1 { - return &NullableGetDomainConfigs200ResponseAnyOf1{value: val, isSet: true} +func NewNullableGetDomainConfigsResponseAnyOf1(val *GetDomainConfigsResponseAnyOf1) *NullableGetDomainConfigsResponseAnyOf1 { + return &NullableGetDomainConfigsResponseAnyOf1{value: val, isSet: true} } -func (v NullableGetDomainConfigs200ResponseAnyOf1) MarshalJSON() ([]byte, error) { +func (v NullableGetDomainConfigsResponseAnyOf1) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableGetDomainConfigs200ResponseAnyOf1) UnmarshalJSON(src []byte) error { +func (v *NullableGetDomainConfigsResponseAnyOf1) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/client/model_get_email_template_200_response.go b/client/model_get_email_template_200_response.go deleted file mode 100644 index 020ae1b..0000000 --- a/client/model_get_email_template_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetEmailTemplate200Response struct for GetEmailTemplate200Response -type GetEmailTemplate200Response struct { - APIError *APIError - GetEmailTemplateResponse *GetEmailTemplateResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetEmailTemplate200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into GetEmailTemplateResponse - err = json.Unmarshal(data, &dst.GetEmailTemplateResponse); - if err == nil { - jsonGetEmailTemplateResponse, _ := json.Marshal(dst.GetEmailTemplateResponse) - if string(jsonGetEmailTemplateResponse) == "{}" { // empty struct - dst.GetEmailTemplateResponse = nil - } else { - return nil // data stored in dst.GetEmailTemplateResponse, return on the first match - } - } else { - dst.GetEmailTemplateResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetEmailTemplate200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetEmailTemplate200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.GetEmailTemplateResponse != nil { - return json.Marshal(&src.GetEmailTemplateResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetEmailTemplate200Response struct { - value *GetEmailTemplate200Response - isSet bool -} - -func (v NullableGetEmailTemplate200Response) Get() *GetEmailTemplate200Response { - return v.value -} - -func (v *NullableGetEmailTemplate200Response) Set(val *GetEmailTemplate200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetEmailTemplate200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetEmailTemplate200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetEmailTemplate200Response(val *GetEmailTemplate200Response) *NullableGetEmailTemplate200Response { - return &NullableGetEmailTemplate200Response{value: val, isSet: true} -} - -func (v NullableGetEmailTemplate200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetEmailTemplate200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_email_template_definitions_200_response.go b/client/model_get_email_template_definitions_200_response.go deleted file mode 100644 index 735ec97..0000000 --- a/client/model_get_email_template_definitions_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetEmailTemplateDefinitions200Response struct for GetEmailTemplateDefinitions200Response -type GetEmailTemplateDefinitions200Response struct { - APIError *APIError - GetEmailTemplateDefinitionsResponse *GetEmailTemplateDefinitionsResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetEmailTemplateDefinitions200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into GetEmailTemplateDefinitionsResponse - err = json.Unmarshal(data, &dst.GetEmailTemplateDefinitionsResponse); - if err == nil { - jsonGetEmailTemplateDefinitionsResponse, _ := json.Marshal(dst.GetEmailTemplateDefinitionsResponse) - if string(jsonGetEmailTemplateDefinitionsResponse) == "{}" { // empty struct - dst.GetEmailTemplateDefinitionsResponse = nil - } else { - return nil // data stored in dst.GetEmailTemplateDefinitionsResponse, return on the first match - } - } else { - dst.GetEmailTemplateDefinitionsResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetEmailTemplateDefinitions200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetEmailTemplateDefinitions200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.GetEmailTemplateDefinitionsResponse != nil { - return json.Marshal(&src.GetEmailTemplateDefinitionsResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetEmailTemplateDefinitions200Response struct { - value *GetEmailTemplateDefinitions200Response - isSet bool -} - -func (v NullableGetEmailTemplateDefinitions200Response) Get() *GetEmailTemplateDefinitions200Response { - return v.value -} - -func (v *NullableGetEmailTemplateDefinitions200Response) Set(val *GetEmailTemplateDefinitions200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetEmailTemplateDefinitions200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetEmailTemplateDefinitions200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetEmailTemplateDefinitions200Response(val *GetEmailTemplateDefinitions200Response) *NullableGetEmailTemplateDefinitions200Response { - return &NullableGetEmailTemplateDefinitions200Response{value: val, isSet: true} -} - -func (v NullableGetEmailTemplateDefinitions200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetEmailTemplateDefinitions200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_email_template_render_errors_200_response.go b/client/model_get_email_template_render_errors_200_response.go deleted file mode 100644 index bf0c8ae..0000000 --- a/client/model_get_email_template_render_errors_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetEmailTemplateRenderErrors200Response struct for GetEmailTemplateRenderErrors200Response -type GetEmailTemplateRenderErrors200Response struct { - APIError *APIError - GetEmailTemplateRenderErrorsResponse *GetEmailTemplateRenderErrorsResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetEmailTemplateRenderErrors200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into GetEmailTemplateRenderErrorsResponse - err = json.Unmarshal(data, &dst.GetEmailTemplateRenderErrorsResponse); - if err == nil { - jsonGetEmailTemplateRenderErrorsResponse, _ := json.Marshal(dst.GetEmailTemplateRenderErrorsResponse) - if string(jsonGetEmailTemplateRenderErrorsResponse) == "{}" { // empty struct - dst.GetEmailTemplateRenderErrorsResponse = nil - } else { - return nil // data stored in dst.GetEmailTemplateRenderErrorsResponse, return on the first match - } - } else { - dst.GetEmailTemplateRenderErrorsResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetEmailTemplateRenderErrors200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetEmailTemplateRenderErrors200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.GetEmailTemplateRenderErrorsResponse != nil { - return json.Marshal(&src.GetEmailTemplateRenderErrorsResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetEmailTemplateRenderErrors200Response struct { - value *GetEmailTemplateRenderErrors200Response - isSet bool -} - -func (v NullableGetEmailTemplateRenderErrors200Response) Get() *GetEmailTemplateRenderErrors200Response { - return v.value -} - -func (v *NullableGetEmailTemplateRenderErrors200Response) Set(val *GetEmailTemplateRenderErrors200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetEmailTemplateRenderErrors200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetEmailTemplateRenderErrors200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetEmailTemplateRenderErrors200Response(val *GetEmailTemplateRenderErrors200Response) *NullableGetEmailTemplateRenderErrors200Response { - return &NullableGetEmailTemplateRenderErrors200Response{value: val, isSet: true} -} - -func (v NullableGetEmailTemplateRenderErrors200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetEmailTemplateRenderErrors200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_email_templates_200_response.go b/client/model_get_email_templates_200_response.go deleted file mode 100644 index 06aeaf8..0000000 --- a/client/model_get_email_templates_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetEmailTemplates200Response struct for GetEmailTemplates200Response -type GetEmailTemplates200Response struct { - APIError *APIError - GetEmailTemplatesResponse *GetEmailTemplatesResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetEmailTemplates200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into GetEmailTemplatesResponse - err = json.Unmarshal(data, &dst.GetEmailTemplatesResponse); - if err == nil { - jsonGetEmailTemplatesResponse, _ := json.Marshal(dst.GetEmailTemplatesResponse) - if string(jsonGetEmailTemplatesResponse) == "{}" { // empty struct - dst.GetEmailTemplatesResponse = nil - } else { - return nil // data stored in dst.GetEmailTemplatesResponse, return on the first match - } - } else { - dst.GetEmailTemplatesResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetEmailTemplates200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetEmailTemplates200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.GetEmailTemplatesResponse != nil { - return json.Marshal(&src.GetEmailTemplatesResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetEmailTemplates200Response struct { - value *GetEmailTemplates200Response - isSet bool -} - -func (v NullableGetEmailTemplates200Response) Get() *GetEmailTemplates200Response { - return v.value -} - -func (v *NullableGetEmailTemplates200Response) Set(val *GetEmailTemplates200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetEmailTemplates200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetEmailTemplates200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetEmailTemplates200Response(val *GetEmailTemplates200Response) *NullableGetEmailTemplates200Response { - return &NullableGetEmailTemplates200Response{value: val, isSet: true} -} - -func (v NullableGetEmailTemplates200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetEmailTemplates200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_event_log_200_response.go b/client/model_get_event_log_200_response.go deleted file mode 100644 index 4b7ea3b..0000000 --- a/client/model_get_event_log_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetEventLog200Response struct for GetEventLog200Response -type GetEventLog200Response struct { - APIError *APIError - GetEventLogResponse *GetEventLogResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetEventLog200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into GetEventLogResponse - err = json.Unmarshal(data, &dst.GetEventLogResponse); - if err == nil { - jsonGetEventLogResponse, _ := json.Marshal(dst.GetEventLogResponse) - if string(jsonGetEventLogResponse) == "{}" { // empty struct - dst.GetEventLogResponse = nil - } else { - return nil // data stored in dst.GetEventLogResponse, return on the first match - } - } else { - dst.GetEventLogResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetEventLog200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetEventLog200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.GetEventLogResponse != nil { - return json.Marshal(&src.GetEventLogResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetEventLog200Response struct { - value *GetEventLog200Response - isSet bool -} - -func (v NullableGetEventLog200Response) Get() *GetEventLog200Response { - return v.value -} - -func (v *NullableGetEventLog200Response) Set(val *GetEventLog200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetEventLog200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetEventLog200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetEventLog200Response(val *GetEventLog200Response) *NullableGetEventLog200Response { - return &NullableGetEventLog200Response{value: val, isSet: true} -} - -func (v NullableGetEventLog200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetEventLog200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_feed_posts_200_response.go b/client/model_get_feed_posts_200_response.go deleted file mode 100644 index 3e90909..0000000 --- a/client/model_get_feed_posts_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetFeedPosts200Response struct for GetFeedPosts200Response -type GetFeedPosts200Response struct { - APIError *APIError - GetFeedPostsResponse *GetFeedPostsResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetFeedPosts200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into GetFeedPostsResponse - err = json.Unmarshal(data, &dst.GetFeedPostsResponse); - if err == nil { - jsonGetFeedPostsResponse, _ := json.Marshal(dst.GetFeedPostsResponse) - if string(jsonGetFeedPostsResponse) == "{}" { // empty struct - dst.GetFeedPostsResponse = nil - } else { - return nil // data stored in dst.GetFeedPostsResponse, return on the first match - } - } else { - dst.GetFeedPostsResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetFeedPosts200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetFeedPosts200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.GetFeedPostsResponse != nil { - return json.Marshal(&src.GetFeedPostsResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetFeedPosts200Response struct { - value *GetFeedPosts200Response - isSet bool -} - -func (v NullableGetFeedPosts200Response) Get() *GetFeedPosts200Response { - return v.value -} - -func (v *NullableGetFeedPosts200Response) Set(val *GetFeedPosts200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetFeedPosts200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetFeedPosts200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetFeedPosts200Response(val *GetFeedPosts200Response) *NullableGetFeedPosts200Response { - return &NullableGetFeedPosts200Response{value: val, isSet: true} -} - -func (v NullableGetFeedPosts200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetFeedPosts200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_feed_posts_public_200_response.go b/client/model_get_feed_posts_public_200_response.go deleted file mode 100644 index 0199ad0..0000000 --- a/client/model_get_feed_posts_public_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetFeedPostsPublic200Response struct for GetFeedPostsPublic200Response -type GetFeedPostsPublic200Response struct { - APIError *APIError - PublicFeedPostsResponse *PublicFeedPostsResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetFeedPostsPublic200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into PublicFeedPostsResponse - err = json.Unmarshal(data, &dst.PublicFeedPostsResponse); - if err == nil { - jsonPublicFeedPostsResponse, _ := json.Marshal(dst.PublicFeedPostsResponse) - if string(jsonPublicFeedPostsResponse) == "{}" { // empty struct - dst.PublicFeedPostsResponse = nil - } else { - return nil // data stored in dst.PublicFeedPostsResponse, return on the first match - } - } else { - dst.PublicFeedPostsResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetFeedPostsPublic200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetFeedPostsPublic200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.PublicFeedPostsResponse != nil { - return json.Marshal(&src.PublicFeedPostsResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetFeedPostsPublic200Response struct { - value *GetFeedPostsPublic200Response - isSet bool -} - -func (v NullableGetFeedPostsPublic200Response) Get() *GetFeedPostsPublic200Response { - return v.value -} - -func (v *NullableGetFeedPostsPublic200Response) Set(val *GetFeedPostsPublic200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetFeedPostsPublic200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetFeedPostsPublic200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetFeedPostsPublic200Response(val *GetFeedPostsPublic200Response) *NullableGetFeedPostsPublic200Response { - return &NullableGetFeedPostsPublic200Response{value: val, isSet: true} -} - -func (v NullableGetFeedPostsPublic200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetFeedPostsPublic200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_feed_posts_stats_200_response.go b/client/model_get_feed_posts_stats_200_response.go deleted file mode 100644 index 8b7438e..0000000 --- a/client/model_get_feed_posts_stats_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetFeedPostsStats200Response struct for GetFeedPostsStats200Response -type GetFeedPostsStats200Response struct { - APIError *APIError - FeedPostsStatsResponse *FeedPostsStatsResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetFeedPostsStats200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into FeedPostsStatsResponse - err = json.Unmarshal(data, &dst.FeedPostsStatsResponse); - if err == nil { - jsonFeedPostsStatsResponse, _ := json.Marshal(dst.FeedPostsStatsResponse) - if string(jsonFeedPostsStatsResponse) == "{}" { // empty struct - dst.FeedPostsStatsResponse = nil - } else { - return nil // data stored in dst.FeedPostsStatsResponse, return on the first match - } - } else { - dst.FeedPostsStatsResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetFeedPostsStats200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetFeedPostsStats200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.FeedPostsStatsResponse != nil { - return json.Marshal(&src.FeedPostsStatsResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetFeedPostsStats200Response struct { - value *GetFeedPostsStats200Response - isSet bool -} - -func (v NullableGetFeedPostsStats200Response) Get() *GetFeedPostsStats200Response { - return v.value -} - -func (v *NullableGetFeedPostsStats200Response) Set(val *GetFeedPostsStats200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetFeedPostsStats200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetFeedPostsStats200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetFeedPostsStats200Response(val *GetFeedPostsStats200Response) *NullableGetFeedPostsStats200Response { - return &NullableGetFeedPostsStats200Response{value: val, isSet: true} -} - -func (v NullableGetFeedPostsStats200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetFeedPostsStats200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_gifs_search_response.go b/client/model_get_gifs_search_response.go new file mode 100644 index 0000000..25494c2 --- /dev/null +++ b/client/model_get_gifs_search_response.go @@ -0,0 +1,107 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "fmt" +) + + +// GetGifsSearchResponse struct for GetGifsSearchResponse +type GetGifsSearchResponse struct { + GifSearchInternalError *GifSearchInternalError + GifSearchResponse *GifSearchResponse +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *GetGifsSearchResponse) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into GifSearchInternalError + err = json.Unmarshal(data, &dst.GifSearchInternalError); + if err == nil { + jsonGifSearchInternalError, _ := json.Marshal(dst.GifSearchInternalError) + if string(jsonGifSearchInternalError) == "{}" { // empty struct + dst.GifSearchInternalError = nil + } else { + return nil // data stored in dst.GifSearchInternalError, return on the first match + } + } else { + dst.GifSearchInternalError = nil + } + + // try to unmarshal JSON data into GifSearchResponse + err = json.Unmarshal(data, &dst.GifSearchResponse); + if err == nil { + jsonGifSearchResponse, _ := json.Marshal(dst.GifSearchResponse) + if string(jsonGifSearchResponse) == "{}" { // empty struct + dst.GifSearchResponse = nil + } else { + return nil // data stored in dst.GifSearchResponse, return on the first match + } + } else { + dst.GifSearchResponse = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(GetGifsSearchResponse)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src GetGifsSearchResponse) MarshalJSON() ([]byte, error) { + if src.GifSearchInternalError != nil { + return json.Marshal(&src.GifSearchInternalError) + } + + if src.GifSearchResponse != nil { + return json.Marshal(&src.GifSearchResponse) + } + + return nil, nil // no data in anyOf schemas +} + + +type NullableGetGifsSearchResponse struct { + value *GetGifsSearchResponse + isSet bool +} + +func (v NullableGetGifsSearchResponse) Get() *GetGifsSearchResponse { + return v.value +} + +func (v *NullableGetGifsSearchResponse) Set(val *GetGifsSearchResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGetGifsSearchResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGetGifsSearchResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetGifsSearchResponse(val *GetGifsSearchResponse) *NullableGetGifsSearchResponse { + return &NullableGetGifsSearchResponse{value: val, isSet: true} +} + +func (v NullableGetGifsSearchResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetGifsSearchResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_get_gifs_trending_response.go b/client/model_get_gifs_trending_response.go new file mode 100644 index 0000000..974206b --- /dev/null +++ b/client/model_get_gifs_trending_response.go @@ -0,0 +1,107 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "fmt" +) + + +// GetGifsTrendingResponse struct for GetGifsTrendingResponse +type GetGifsTrendingResponse struct { + GifSearchInternalError *GifSearchInternalError + GifSearchResponse *GifSearchResponse +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *GetGifsTrendingResponse) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into GifSearchInternalError + err = json.Unmarshal(data, &dst.GifSearchInternalError); + if err == nil { + jsonGifSearchInternalError, _ := json.Marshal(dst.GifSearchInternalError) + if string(jsonGifSearchInternalError) == "{}" { // empty struct + dst.GifSearchInternalError = nil + } else { + return nil // data stored in dst.GifSearchInternalError, return on the first match + } + } else { + dst.GifSearchInternalError = nil + } + + // try to unmarshal JSON data into GifSearchResponse + err = json.Unmarshal(data, &dst.GifSearchResponse); + if err == nil { + jsonGifSearchResponse, _ := json.Marshal(dst.GifSearchResponse) + if string(jsonGifSearchResponse) == "{}" { // empty struct + dst.GifSearchResponse = nil + } else { + return nil // data stored in dst.GifSearchResponse, return on the first match + } + } else { + dst.GifSearchResponse = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(GetGifsTrendingResponse)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src GetGifsTrendingResponse) MarshalJSON() ([]byte, error) { + if src.GifSearchInternalError != nil { + return json.Marshal(&src.GifSearchInternalError) + } + + if src.GifSearchResponse != nil { + return json.Marshal(&src.GifSearchResponse) + } + + return nil, nil // no data in anyOf schemas +} + + +type NullableGetGifsTrendingResponse struct { + value *GetGifsTrendingResponse + isSet bool +} + +func (v NullableGetGifsTrendingResponse) Get() *GetGifsTrendingResponse { + return v.value +} + +func (v *NullableGetGifsTrendingResponse) Set(val *GetGifsTrendingResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGetGifsTrendingResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGetGifsTrendingResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetGifsTrendingResponse(val *GetGifsTrendingResponse) *NullableGetGifsTrendingResponse { + return &NullableGetGifsTrendingResponse{value: val, isSet: true} +} + +func (v NullableGetGifsTrendingResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetGifsTrendingResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_get_hash_tags_200_response.go b/client/model_get_hash_tags_200_response.go deleted file mode 100644 index 35b2629..0000000 --- a/client/model_get_hash_tags_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetHashTags200Response struct for GetHashTags200Response -type GetHashTags200Response struct { - APIError *APIError - GetHashTagsResponse *GetHashTagsResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetHashTags200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into GetHashTagsResponse - err = json.Unmarshal(data, &dst.GetHashTagsResponse); - if err == nil { - jsonGetHashTagsResponse, _ := json.Marshal(dst.GetHashTagsResponse) - if string(jsonGetHashTagsResponse) == "{}" { // empty struct - dst.GetHashTagsResponse = nil - } else { - return nil // data stored in dst.GetHashTagsResponse, return on the first match - } - } else { - dst.GetHashTagsResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetHashTags200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetHashTags200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.GetHashTagsResponse != nil { - return json.Marshal(&src.GetHashTagsResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetHashTags200Response struct { - value *GetHashTags200Response - isSet bool -} - -func (v NullableGetHashTags200Response) Get() *GetHashTags200Response { - return v.value -} - -func (v *NullableGetHashTags200Response) Set(val *GetHashTags200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetHashTags200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetHashTags200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetHashTags200Response(val *GetHashTags200Response) *NullableGetHashTags200Response { - return &NullableGetHashTags200Response{value: val, isSet: true} -} - -func (v NullableGetHashTags200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetHashTags200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_moderator_200_response.go b/client/model_get_moderator_200_response.go deleted file mode 100644 index e4d3d65..0000000 --- a/client/model_get_moderator_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetModerator200Response struct for GetModerator200Response -type GetModerator200Response struct { - APIError *APIError - GetModeratorResponse *GetModeratorResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetModerator200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into GetModeratorResponse - err = json.Unmarshal(data, &dst.GetModeratorResponse); - if err == nil { - jsonGetModeratorResponse, _ := json.Marshal(dst.GetModeratorResponse) - if string(jsonGetModeratorResponse) == "{}" { // empty struct - dst.GetModeratorResponse = nil - } else { - return nil // data stored in dst.GetModeratorResponse, return on the first match - } - } else { - dst.GetModeratorResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetModerator200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetModerator200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.GetModeratorResponse != nil { - return json.Marshal(&src.GetModeratorResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetModerator200Response struct { - value *GetModerator200Response - isSet bool -} - -func (v NullableGetModerator200Response) Get() *GetModerator200Response { - return v.value -} - -func (v *NullableGetModerator200Response) Set(val *GetModerator200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetModerator200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetModerator200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetModerator200Response(val *GetModerator200Response) *NullableGetModerator200Response { - return &NullableGetModerator200Response{value: val, isSet: true} -} - -func (v NullableGetModerator200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetModerator200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_moderators_200_response.go b/client/model_get_moderators_200_response.go deleted file mode 100644 index c6970e3..0000000 --- a/client/model_get_moderators_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetModerators200Response struct for GetModerators200Response -type GetModerators200Response struct { - APIError *APIError - GetModeratorsResponse *GetModeratorsResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetModerators200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into GetModeratorsResponse - err = json.Unmarshal(data, &dst.GetModeratorsResponse); - if err == nil { - jsonGetModeratorsResponse, _ := json.Marshal(dst.GetModeratorsResponse) - if string(jsonGetModeratorsResponse) == "{}" { // empty struct - dst.GetModeratorsResponse = nil - } else { - return nil // data stored in dst.GetModeratorsResponse, return on the first match - } - } else { - dst.GetModeratorsResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetModerators200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetModerators200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.GetModeratorsResponse != nil { - return json.Marshal(&src.GetModeratorsResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetModerators200Response struct { - value *GetModerators200Response - isSet bool -} - -func (v NullableGetModerators200Response) Get() *GetModerators200Response { - return v.value -} - -func (v *NullableGetModerators200Response) Set(val *GetModerators200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetModerators200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetModerators200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetModerators200Response(val *GetModerators200Response) *NullableGetModerators200Response { - return &NullableGetModerators200Response{value: val, isSet: true} -} - -func (v NullableGetModerators200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetModerators200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_notification_count_200_response.go b/client/model_get_notification_count_200_response.go deleted file mode 100644 index 2bd4053..0000000 --- a/client/model_get_notification_count_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetNotificationCount200Response struct for GetNotificationCount200Response -type GetNotificationCount200Response struct { - APIError *APIError - GetNotificationCountResponse *GetNotificationCountResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetNotificationCount200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into GetNotificationCountResponse - err = json.Unmarshal(data, &dst.GetNotificationCountResponse); - if err == nil { - jsonGetNotificationCountResponse, _ := json.Marshal(dst.GetNotificationCountResponse) - if string(jsonGetNotificationCountResponse) == "{}" { // empty struct - dst.GetNotificationCountResponse = nil - } else { - return nil // data stored in dst.GetNotificationCountResponse, return on the first match - } - } else { - dst.GetNotificationCountResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetNotificationCount200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetNotificationCount200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.GetNotificationCountResponse != nil { - return json.Marshal(&src.GetNotificationCountResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetNotificationCount200Response struct { - value *GetNotificationCount200Response - isSet bool -} - -func (v NullableGetNotificationCount200Response) Get() *GetNotificationCount200Response { - return v.value -} - -func (v *NullableGetNotificationCount200Response) Set(val *GetNotificationCount200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetNotificationCount200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetNotificationCount200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetNotificationCount200Response(val *GetNotificationCount200Response) *NullableGetNotificationCount200Response { - return &NullableGetNotificationCount200Response{value: val, isSet: true} -} - -func (v NullableGetNotificationCount200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetNotificationCount200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_notifications_200_response.go b/client/model_get_notifications_200_response.go deleted file mode 100644 index 79db561..0000000 --- a/client/model_get_notifications_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetNotifications200Response struct for GetNotifications200Response -type GetNotifications200Response struct { - APIError *APIError - GetNotificationsResponse *GetNotificationsResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetNotifications200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into GetNotificationsResponse - err = json.Unmarshal(data, &dst.GetNotificationsResponse); - if err == nil { - jsonGetNotificationsResponse, _ := json.Marshal(dst.GetNotificationsResponse) - if string(jsonGetNotificationsResponse) == "{}" { // empty struct - dst.GetNotificationsResponse = nil - } else { - return nil // data stored in dst.GetNotificationsResponse, return on the first match - } - } else { - dst.GetNotificationsResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetNotifications200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetNotifications200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.GetNotificationsResponse != nil { - return json.Marshal(&src.GetNotificationsResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetNotifications200Response struct { - value *GetNotifications200Response - isSet bool -} - -func (v NullableGetNotifications200Response) Get() *GetNotifications200Response { - return v.value -} - -func (v *NullableGetNotifications200Response) Set(val *GetNotifications200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetNotifications200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetNotifications200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetNotifications200Response(val *GetNotifications200Response) *NullableGetNotifications200Response { - return &NullableGetNotifications200Response{value: val, isSet: true} -} - -func (v NullableGetNotifications200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetNotifications200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_pending_webhook_event_count_200_response.go b/client/model_get_pending_webhook_event_count_200_response.go deleted file mode 100644 index a603685..0000000 --- a/client/model_get_pending_webhook_event_count_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetPendingWebhookEventCount200Response struct for GetPendingWebhookEventCount200Response -type GetPendingWebhookEventCount200Response struct { - APIError *APIError - GetPendingWebhookEventCountResponse *GetPendingWebhookEventCountResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetPendingWebhookEventCount200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into GetPendingWebhookEventCountResponse - err = json.Unmarshal(data, &dst.GetPendingWebhookEventCountResponse); - if err == nil { - jsonGetPendingWebhookEventCountResponse, _ := json.Marshal(dst.GetPendingWebhookEventCountResponse) - if string(jsonGetPendingWebhookEventCountResponse) == "{}" { // empty struct - dst.GetPendingWebhookEventCountResponse = nil - } else { - return nil // data stored in dst.GetPendingWebhookEventCountResponse, return on the first match - } - } else { - dst.GetPendingWebhookEventCountResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetPendingWebhookEventCount200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetPendingWebhookEventCount200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.GetPendingWebhookEventCountResponse != nil { - return json.Marshal(&src.GetPendingWebhookEventCountResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetPendingWebhookEventCount200Response struct { - value *GetPendingWebhookEventCount200Response - isSet bool -} - -func (v NullableGetPendingWebhookEventCount200Response) Get() *GetPendingWebhookEventCount200Response { - return v.value -} - -func (v *NullableGetPendingWebhookEventCount200Response) Set(val *GetPendingWebhookEventCount200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetPendingWebhookEventCount200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetPendingWebhookEventCount200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetPendingWebhookEventCount200Response(val *GetPendingWebhookEventCount200Response) *NullableGetPendingWebhookEventCount200Response { - return &NullableGetPendingWebhookEventCount200Response{value: val, isSet: true} -} - -func (v NullableGetPendingWebhookEventCount200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetPendingWebhookEventCount200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_pending_webhook_events_200_response.go b/client/model_get_pending_webhook_events_200_response.go deleted file mode 100644 index b50b7b5..0000000 --- a/client/model_get_pending_webhook_events_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetPendingWebhookEvents200Response struct for GetPendingWebhookEvents200Response -type GetPendingWebhookEvents200Response struct { - APIError *APIError - GetPendingWebhookEventsResponse *GetPendingWebhookEventsResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetPendingWebhookEvents200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into GetPendingWebhookEventsResponse - err = json.Unmarshal(data, &dst.GetPendingWebhookEventsResponse); - if err == nil { - jsonGetPendingWebhookEventsResponse, _ := json.Marshal(dst.GetPendingWebhookEventsResponse) - if string(jsonGetPendingWebhookEventsResponse) == "{}" { // empty struct - dst.GetPendingWebhookEventsResponse = nil - } else { - return nil // data stored in dst.GetPendingWebhookEventsResponse, return on the first match - } - } else { - dst.GetPendingWebhookEventsResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetPendingWebhookEvents200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetPendingWebhookEvents200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.GetPendingWebhookEventsResponse != nil { - return json.Marshal(&src.GetPendingWebhookEventsResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetPendingWebhookEvents200Response struct { - value *GetPendingWebhookEvents200Response - isSet bool -} - -func (v NullableGetPendingWebhookEvents200Response) Get() *GetPendingWebhookEvents200Response { - return v.value -} - -func (v *NullableGetPendingWebhookEvents200Response) Set(val *GetPendingWebhookEvents200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetPendingWebhookEvents200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetPendingWebhookEvents200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetPendingWebhookEvents200Response(val *GetPendingWebhookEvents200Response) *NullableGetPendingWebhookEvents200Response { - return &NullableGetPendingWebhookEvents200Response{value: val, isSet: true} -} - -func (v NullableGetPendingWebhookEvents200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetPendingWebhookEvents200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_public_pages_response.go b/client/model_get_public_pages_response.go new file mode 100644 index 0000000..32f4d6c --- /dev/null +++ b/client/model_get_public_pages_response.go @@ -0,0 +1,216 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the GetPublicPagesResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetPublicPagesResponse{} + +// GetPublicPagesResponse struct for GetPublicPagesResponse +type GetPublicPagesResponse struct { + NextCursor NullableString `json:"nextCursor"` + Pages []PublicPage `json:"pages"` + Status APIStatus `json:"status"` +} + +type _GetPublicPagesResponse GetPublicPagesResponse + +// NewGetPublicPagesResponse instantiates a new GetPublicPagesResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetPublicPagesResponse(nextCursor NullableString, pages []PublicPage, status APIStatus) *GetPublicPagesResponse { + this := GetPublicPagesResponse{} + this.NextCursor = nextCursor + this.Pages = pages + this.Status = status + return &this +} + +// NewGetPublicPagesResponseWithDefaults instantiates a new GetPublicPagesResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetPublicPagesResponseWithDefaults() *GetPublicPagesResponse { + this := GetPublicPagesResponse{} + return &this +} + +// GetNextCursor returns the NextCursor field value +// If the value is explicit nil, the zero value for string will be returned +func (o *GetPublicPagesResponse) GetNextCursor() string { + if o == nil || o.NextCursor.Get() == nil { + var ret string + return ret + } + + return *o.NextCursor.Get() +} + +// GetNextCursorOk returns a tuple with the NextCursor field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetPublicPagesResponse) GetNextCursorOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.NextCursor.Get(), o.NextCursor.IsSet() +} + +// SetNextCursor sets field value +func (o *GetPublicPagesResponse) SetNextCursor(v string) { + o.NextCursor.Set(&v) +} + +// GetPages returns the Pages field value +func (o *GetPublicPagesResponse) GetPages() []PublicPage { + if o == nil { + var ret []PublicPage + return ret + } + + return o.Pages +} + +// GetPagesOk returns a tuple with the Pages field value +// and a boolean to check if the value has been set. +func (o *GetPublicPagesResponse) GetPagesOk() ([]PublicPage, bool) { + if o == nil { + return nil, false + } + return o.Pages, true +} + +// SetPages sets field value +func (o *GetPublicPagesResponse) SetPages(v []PublicPage) { + o.Pages = v +} + +// GetStatus returns the Status field value +func (o *GetPublicPagesResponse) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *GetPublicPagesResponse) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *GetPublicPagesResponse) SetStatus(v APIStatus) { + o.Status = v +} + +func (o GetPublicPagesResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetPublicPagesResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["nextCursor"] = o.NextCursor.Get() + toSerialize["pages"] = o.Pages + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *GetPublicPagesResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "nextCursor", + "pages", + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetPublicPagesResponse := _GetPublicPagesResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGetPublicPagesResponse) + + if err != nil { + return err + } + + *o = GetPublicPagesResponse(varGetPublicPagesResponse) + + return err +} + +type NullableGetPublicPagesResponse struct { + value *GetPublicPagesResponse + isSet bool +} + +func (v NullableGetPublicPagesResponse) Get() *GetPublicPagesResponse { + return v.value +} + +func (v *NullableGetPublicPagesResponse) Set(val *GetPublicPagesResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGetPublicPagesResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGetPublicPagesResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetPublicPagesResponse(val *GetPublicPagesResponse) *NullableGetPublicPagesResponse { + return &NullableGetPublicPagesResponse{value: val, isSet: true} +} + +func (v NullableGetPublicPagesResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetPublicPagesResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_get_question_config_200_response.go b/client/model_get_question_config_200_response.go deleted file mode 100644 index c5073c2..0000000 --- a/client/model_get_question_config_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetQuestionConfig200Response struct for GetQuestionConfig200Response -type GetQuestionConfig200Response struct { - APIError *APIError - GetQuestionConfigResponse *GetQuestionConfigResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetQuestionConfig200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into GetQuestionConfigResponse - err = json.Unmarshal(data, &dst.GetQuestionConfigResponse); - if err == nil { - jsonGetQuestionConfigResponse, _ := json.Marshal(dst.GetQuestionConfigResponse) - if string(jsonGetQuestionConfigResponse) == "{}" { // empty struct - dst.GetQuestionConfigResponse = nil - } else { - return nil // data stored in dst.GetQuestionConfigResponse, return on the first match - } - } else { - dst.GetQuestionConfigResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetQuestionConfig200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetQuestionConfig200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.GetQuestionConfigResponse != nil { - return json.Marshal(&src.GetQuestionConfigResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetQuestionConfig200Response struct { - value *GetQuestionConfig200Response - isSet bool -} - -func (v NullableGetQuestionConfig200Response) Get() *GetQuestionConfig200Response { - return v.value -} - -func (v *NullableGetQuestionConfig200Response) Set(val *GetQuestionConfig200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetQuestionConfig200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetQuestionConfig200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetQuestionConfig200Response(val *GetQuestionConfig200Response) *NullableGetQuestionConfig200Response { - return &NullableGetQuestionConfig200Response{value: val, isSet: true} -} - -func (v NullableGetQuestionConfig200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetQuestionConfig200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_question_configs_200_response.go b/client/model_get_question_configs_200_response.go deleted file mode 100644 index 0cc277b..0000000 --- a/client/model_get_question_configs_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetQuestionConfigs200Response struct for GetQuestionConfigs200Response -type GetQuestionConfigs200Response struct { - APIError *APIError - GetQuestionConfigsResponse *GetQuestionConfigsResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetQuestionConfigs200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into GetQuestionConfigsResponse - err = json.Unmarshal(data, &dst.GetQuestionConfigsResponse); - if err == nil { - jsonGetQuestionConfigsResponse, _ := json.Marshal(dst.GetQuestionConfigsResponse) - if string(jsonGetQuestionConfigsResponse) == "{}" { // empty struct - dst.GetQuestionConfigsResponse = nil - } else { - return nil // data stored in dst.GetQuestionConfigsResponse, return on the first match - } - } else { - dst.GetQuestionConfigsResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetQuestionConfigs200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetQuestionConfigs200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.GetQuestionConfigsResponse != nil { - return json.Marshal(&src.GetQuestionConfigsResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetQuestionConfigs200Response struct { - value *GetQuestionConfigs200Response - isSet bool -} - -func (v NullableGetQuestionConfigs200Response) Get() *GetQuestionConfigs200Response { - return v.value -} - -func (v *NullableGetQuestionConfigs200Response) Set(val *GetQuestionConfigs200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetQuestionConfigs200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetQuestionConfigs200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetQuestionConfigs200Response(val *GetQuestionConfigs200Response) *NullableGetQuestionConfigs200Response { - return &NullableGetQuestionConfigs200Response{value: val, isSet: true} -} - -func (v NullableGetQuestionConfigs200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetQuestionConfigs200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_question_result_200_response.go b/client/model_get_question_result_200_response.go deleted file mode 100644 index 8e0f54b..0000000 --- a/client/model_get_question_result_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetQuestionResult200Response struct for GetQuestionResult200Response -type GetQuestionResult200Response struct { - APIError *APIError - GetQuestionResultResponse *GetQuestionResultResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetQuestionResult200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into GetQuestionResultResponse - err = json.Unmarshal(data, &dst.GetQuestionResultResponse); - if err == nil { - jsonGetQuestionResultResponse, _ := json.Marshal(dst.GetQuestionResultResponse) - if string(jsonGetQuestionResultResponse) == "{}" { // empty struct - dst.GetQuestionResultResponse = nil - } else { - return nil // data stored in dst.GetQuestionResultResponse, return on the first match - } - } else { - dst.GetQuestionResultResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetQuestionResult200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetQuestionResult200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.GetQuestionResultResponse != nil { - return json.Marshal(&src.GetQuestionResultResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetQuestionResult200Response struct { - value *GetQuestionResult200Response - isSet bool -} - -func (v NullableGetQuestionResult200Response) Get() *GetQuestionResult200Response { - return v.value -} - -func (v *NullableGetQuestionResult200Response) Set(val *GetQuestionResult200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetQuestionResult200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetQuestionResult200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetQuestionResult200Response(val *GetQuestionResult200Response) *NullableGetQuestionResult200Response { - return &NullableGetQuestionResult200Response{value: val, isSet: true} -} - -func (v NullableGetQuestionResult200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetQuestionResult200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_question_results_200_response.go b/client/model_get_question_results_200_response.go deleted file mode 100644 index a19953b..0000000 --- a/client/model_get_question_results_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetQuestionResults200Response struct for GetQuestionResults200Response -type GetQuestionResults200Response struct { - APIError *APIError - GetQuestionResultsResponse *GetQuestionResultsResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetQuestionResults200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into GetQuestionResultsResponse - err = json.Unmarshal(data, &dst.GetQuestionResultsResponse); - if err == nil { - jsonGetQuestionResultsResponse, _ := json.Marshal(dst.GetQuestionResultsResponse) - if string(jsonGetQuestionResultsResponse) == "{}" { // empty struct - dst.GetQuestionResultsResponse = nil - } else { - return nil // data stored in dst.GetQuestionResultsResponse, return on the first match - } - } else { - dst.GetQuestionResultsResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetQuestionResults200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetQuestionResults200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.GetQuestionResultsResponse != nil { - return json.Marshal(&src.GetQuestionResultsResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetQuestionResults200Response struct { - value *GetQuestionResults200Response - isSet bool -} - -func (v NullableGetQuestionResults200Response) Get() *GetQuestionResults200Response { - return v.value -} - -func (v *NullableGetQuestionResults200Response) Set(val *GetQuestionResults200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetQuestionResults200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetQuestionResults200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetQuestionResults200Response(val *GetQuestionResults200Response) *NullableGetQuestionResults200Response { - return &NullableGetQuestionResults200Response{value: val, isSet: true} -} - -func (v NullableGetQuestionResults200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetQuestionResults200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_sso_users_200_response.go b/client/model_get_sso_users_response.go similarity index 56% rename from client/model_get_sso_users_200_response.go rename to client/model_get_sso_users_response.go index 2a33b83..3a804e8 100644 --- a/client/model_get_sso_users_200_response.go +++ b/client/model_get_sso_users_response.go @@ -16,38 +16,38 @@ import ( "fmt" ) -// checks if the GetSSOUsers200Response type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GetSSOUsers200Response{} +// checks if the GetSSOUsersResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetSSOUsersResponse{} -// GetSSOUsers200Response struct for GetSSOUsers200Response -type GetSSOUsers200Response struct { +// GetSSOUsersResponse struct for GetSSOUsersResponse +type GetSSOUsersResponse struct { Users []APISSOUser `json:"users"` Status string `json:"status"` } -type _GetSSOUsers200Response GetSSOUsers200Response +type _GetSSOUsersResponse GetSSOUsersResponse -// NewGetSSOUsers200Response instantiates a new GetSSOUsers200Response object +// NewGetSSOUsersResponse instantiates a new GetSSOUsersResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewGetSSOUsers200Response(users []APISSOUser, status string) *GetSSOUsers200Response { - this := GetSSOUsers200Response{} +func NewGetSSOUsersResponse(users []APISSOUser, status string) *GetSSOUsersResponse { + this := GetSSOUsersResponse{} this.Users = users this.Status = status return &this } -// NewGetSSOUsers200ResponseWithDefaults instantiates a new GetSSOUsers200Response object +// NewGetSSOUsersResponseWithDefaults instantiates a new GetSSOUsersResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewGetSSOUsers200ResponseWithDefaults() *GetSSOUsers200Response { - this := GetSSOUsers200Response{} +func NewGetSSOUsersResponseWithDefaults() *GetSSOUsersResponse { + this := GetSSOUsersResponse{} return &this } // GetUsers returns the Users field value -func (o *GetSSOUsers200Response) GetUsers() []APISSOUser { +func (o *GetSSOUsersResponse) GetUsers() []APISSOUser { if o == nil { var ret []APISSOUser return ret @@ -58,7 +58,7 @@ func (o *GetSSOUsers200Response) GetUsers() []APISSOUser { // GetUsersOk returns a tuple with the Users field value // and a boolean to check if the value has been set. -func (o *GetSSOUsers200Response) GetUsersOk() ([]APISSOUser, bool) { +func (o *GetSSOUsersResponse) GetUsersOk() ([]APISSOUser, bool) { if o == nil { return nil, false } @@ -66,12 +66,12 @@ func (o *GetSSOUsers200Response) GetUsersOk() ([]APISSOUser, bool) { } // SetUsers sets field value -func (o *GetSSOUsers200Response) SetUsers(v []APISSOUser) { +func (o *GetSSOUsersResponse) SetUsers(v []APISSOUser) { o.Users = v } // GetStatus returns the Status field value -func (o *GetSSOUsers200Response) GetStatus() string { +func (o *GetSSOUsersResponse) GetStatus() string { if o == nil { var ret string return ret @@ -82,7 +82,7 @@ func (o *GetSSOUsers200Response) GetStatus() string { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *GetSSOUsers200Response) GetStatusOk() (*string, bool) { +func (o *GetSSOUsersResponse) GetStatusOk() (*string, bool) { if o == nil { return nil, false } @@ -90,11 +90,11 @@ func (o *GetSSOUsers200Response) GetStatusOk() (*string, bool) { } // SetStatus sets field value -func (o *GetSSOUsers200Response) SetStatus(v string) { +func (o *GetSSOUsersResponse) SetStatus(v string) { o.Status = v } -func (o GetSSOUsers200Response) MarshalJSON() ([]byte, error) { +func (o GetSSOUsersResponse) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err @@ -102,14 +102,14 @@ func (o GetSSOUsers200Response) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o GetSSOUsers200Response) ToMap() (map[string]interface{}, error) { +func (o GetSSOUsersResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["users"] = o.Users toSerialize["status"] = o.Status return toSerialize, nil } -func (o *GetSSOUsers200Response) UnmarshalJSON(data []byte) (err error) { +func (o *GetSSOUsersResponse) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. @@ -132,53 +132,53 @@ func (o *GetSSOUsers200Response) UnmarshalJSON(data []byte) (err error) { } } - varGetSSOUsers200Response := _GetSSOUsers200Response{} + varGetSSOUsersResponse := _GetSSOUsersResponse{} decoder := json.NewDecoder(bytes.NewReader(data)) decoder.DisallowUnknownFields() - err = decoder.Decode(&varGetSSOUsers200Response) + err = decoder.Decode(&varGetSSOUsersResponse) if err != nil { return err } - *o = GetSSOUsers200Response(varGetSSOUsers200Response) + *o = GetSSOUsersResponse(varGetSSOUsersResponse) return err } -type NullableGetSSOUsers200Response struct { - value *GetSSOUsers200Response +type NullableGetSSOUsersResponse struct { + value *GetSSOUsersResponse isSet bool } -func (v NullableGetSSOUsers200Response) Get() *GetSSOUsers200Response { +func (v NullableGetSSOUsersResponse) Get() *GetSSOUsersResponse { return v.value } -func (v *NullableGetSSOUsers200Response) Set(val *GetSSOUsers200Response) { +func (v *NullableGetSSOUsersResponse) Set(val *GetSSOUsersResponse) { v.value = val v.isSet = true } -func (v NullableGetSSOUsers200Response) IsSet() bool { +func (v NullableGetSSOUsersResponse) IsSet() bool { return v.isSet } -func (v *NullableGetSSOUsers200Response) Unset() { +func (v *NullableGetSSOUsersResponse) Unset() { v.value = nil v.isSet = false } -func NewNullableGetSSOUsers200Response(val *GetSSOUsers200Response) *NullableGetSSOUsers200Response { - return &NullableGetSSOUsers200Response{value: val, isSet: true} +func NewNullableGetSSOUsersResponse(val *GetSSOUsersResponse) *NullableGetSSOUsersResponse { + return &NullableGetSSOUsersResponse{value: val, isSet: true} } -func (v NullableGetSSOUsers200Response) MarshalJSON() ([]byte, error) { +func (v NullableGetSSOUsersResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableGetSSOUsers200Response) UnmarshalJSON(src []byte) error { +func (v *NullableGetSSOUsersResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/client/model_get_tenant_200_response.go b/client/model_get_tenant_200_response.go deleted file mode 100644 index 9ed932b..0000000 --- a/client/model_get_tenant_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetTenant200Response struct for GetTenant200Response -type GetTenant200Response struct { - APIError *APIError - GetTenantResponse *GetTenantResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetTenant200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into GetTenantResponse - err = json.Unmarshal(data, &dst.GetTenantResponse); - if err == nil { - jsonGetTenantResponse, _ := json.Marshal(dst.GetTenantResponse) - if string(jsonGetTenantResponse) == "{}" { // empty struct - dst.GetTenantResponse = nil - } else { - return nil // data stored in dst.GetTenantResponse, return on the first match - } - } else { - dst.GetTenantResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetTenant200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetTenant200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.GetTenantResponse != nil { - return json.Marshal(&src.GetTenantResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetTenant200Response struct { - value *GetTenant200Response - isSet bool -} - -func (v NullableGetTenant200Response) Get() *GetTenant200Response { - return v.value -} - -func (v *NullableGetTenant200Response) Set(val *GetTenant200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetTenant200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetTenant200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetTenant200Response(val *GetTenant200Response) *NullableGetTenant200Response { - return &NullableGetTenant200Response{value: val, isSet: true} -} - -func (v NullableGetTenant200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetTenant200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_tenant_daily_usages_200_response.go b/client/model_get_tenant_daily_usages_200_response.go deleted file mode 100644 index 55c53f3..0000000 --- a/client/model_get_tenant_daily_usages_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetTenantDailyUsages200Response struct for GetTenantDailyUsages200Response -type GetTenantDailyUsages200Response struct { - APIError *APIError - GetTenantDailyUsagesResponse *GetTenantDailyUsagesResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetTenantDailyUsages200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into GetTenantDailyUsagesResponse - err = json.Unmarshal(data, &dst.GetTenantDailyUsagesResponse); - if err == nil { - jsonGetTenantDailyUsagesResponse, _ := json.Marshal(dst.GetTenantDailyUsagesResponse) - if string(jsonGetTenantDailyUsagesResponse) == "{}" { // empty struct - dst.GetTenantDailyUsagesResponse = nil - } else { - return nil // data stored in dst.GetTenantDailyUsagesResponse, return on the first match - } - } else { - dst.GetTenantDailyUsagesResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetTenantDailyUsages200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetTenantDailyUsages200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.GetTenantDailyUsagesResponse != nil { - return json.Marshal(&src.GetTenantDailyUsagesResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetTenantDailyUsages200Response struct { - value *GetTenantDailyUsages200Response - isSet bool -} - -func (v NullableGetTenantDailyUsages200Response) Get() *GetTenantDailyUsages200Response { - return v.value -} - -func (v *NullableGetTenantDailyUsages200Response) Set(val *GetTenantDailyUsages200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetTenantDailyUsages200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetTenantDailyUsages200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetTenantDailyUsages200Response(val *GetTenantDailyUsages200Response) *NullableGetTenantDailyUsages200Response { - return &NullableGetTenantDailyUsages200Response{value: val, isSet: true} -} - -func (v NullableGetTenantDailyUsages200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetTenantDailyUsages200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_tenant_manual_badges_response.go b/client/model_get_tenant_manual_badges_response.go new file mode 100644 index 0000000..b9b19c9 --- /dev/null +++ b/client/model_get_tenant_manual_badges_response.go @@ -0,0 +1,186 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the GetTenantManualBadgesResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetTenantManualBadgesResponse{} + +// GetTenantManualBadgesResponse struct for GetTenantManualBadgesResponse +type GetTenantManualBadgesResponse struct { + Badges []TenantBadge `json:"badges"` + Status APIStatus `json:"status"` +} + +type _GetTenantManualBadgesResponse GetTenantManualBadgesResponse + +// NewGetTenantManualBadgesResponse instantiates a new GetTenantManualBadgesResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetTenantManualBadgesResponse(badges []TenantBadge, status APIStatus) *GetTenantManualBadgesResponse { + this := GetTenantManualBadgesResponse{} + this.Badges = badges + this.Status = status + return &this +} + +// NewGetTenantManualBadgesResponseWithDefaults instantiates a new GetTenantManualBadgesResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetTenantManualBadgesResponseWithDefaults() *GetTenantManualBadgesResponse { + this := GetTenantManualBadgesResponse{} + return &this +} + +// GetBadges returns the Badges field value +func (o *GetTenantManualBadgesResponse) GetBadges() []TenantBadge { + if o == nil { + var ret []TenantBadge + return ret + } + + return o.Badges +} + +// GetBadgesOk returns a tuple with the Badges field value +// and a boolean to check if the value has been set. +func (o *GetTenantManualBadgesResponse) GetBadgesOk() ([]TenantBadge, bool) { + if o == nil { + return nil, false + } + return o.Badges, true +} + +// SetBadges sets field value +func (o *GetTenantManualBadgesResponse) SetBadges(v []TenantBadge) { + o.Badges = v +} + +// GetStatus returns the Status field value +func (o *GetTenantManualBadgesResponse) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *GetTenantManualBadgesResponse) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *GetTenantManualBadgesResponse) SetStatus(v APIStatus) { + o.Status = v +} + +func (o GetTenantManualBadgesResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetTenantManualBadgesResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["badges"] = o.Badges + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *GetTenantManualBadgesResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "badges", + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetTenantManualBadgesResponse := _GetTenantManualBadgesResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGetTenantManualBadgesResponse) + + if err != nil { + return err + } + + *o = GetTenantManualBadgesResponse(varGetTenantManualBadgesResponse) + + return err +} + +type NullableGetTenantManualBadgesResponse struct { + value *GetTenantManualBadgesResponse + isSet bool +} + +func (v NullableGetTenantManualBadgesResponse) Get() *GetTenantManualBadgesResponse { + return v.value +} + +func (v *NullableGetTenantManualBadgesResponse) Set(val *GetTenantManualBadgesResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGetTenantManualBadgesResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGetTenantManualBadgesResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetTenantManualBadgesResponse(val *GetTenantManualBadgesResponse) *NullableGetTenantManualBadgesResponse { + return &NullableGetTenantManualBadgesResponse{value: val, isSet: true} +} + +func (v NullableGetTenantManualBadgesResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetTenantManualBadgesResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_get_tenant_package_200_response.go b/client/model_get_tenant_package_200_response.go deleted file mode 100644 index 33f7d9f..0000000 --- a/client/model_get_tenant_package_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetTenantPackage200Response struct for GetTenantPackage200Response -type GetTenantPackage200Response struct { - APIError *APIError - GetTenantPackageResponse *GetTenantPackageResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetTenantPackage200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into GetTenantPackageResponse - err = json.Unmarshal(data, &dst.GetTenantPackageResponse); - if err == nil { - jsonGetTenantPackageResponse, _ := json.Marshal(dst.GetTenantPackageResponse) - if string(jsonGetTenantPackageResponse) == "{}" { // empty struct - dst.GetTenantPackageResponse = nil - } else { - return nil // data stored in dst.GetTenantPackageResponse, return on the first match - } - } else { - dst.GetTenantPackageResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetTenantPackage200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetTenantPackage200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.GetTenantPackageResponse != nil { - return json.Marshal(&src.GetTenantPackageResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetTenantPackage200Response struct { - value *GetTenantPackage200Response - isSet bool -} - -func (v NullableGetTenantPackage200Response) Get() *GetTenantPackage200Response { - return v.value -} - -func (v *NullableGetTenantPackage200Response) Set(val *GetTenantPackage200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetTenantPackage200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetTenantPackage200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetTenantPackage200Response(val *GetTenantPackage200Response) *NullableGetTenantPackage200Response { - return &NullableGetTenantPackage200Response{value: val, isSet: true} -} - -func (v NullableGetTenantPackage200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetTenantPackage200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_tenant_packages_200_response.go b/client/model_get_tenant_packages_200_response.go deleted file mode 100644 index 573ce88..0000000 --- a/client/model_get_tenant_packages_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetTenantPackages200Response struct for GetTenantPackages200Response -type GetTenantPackages200Response struct { - APIError *APIError - GetTenantPackagesResponse *GetTenantPackagesResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetTenantPackages200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into GetTenantPackagesResponse - err = json.Unmarshal(data, &dst.GetTenantPackagesResponse); - if err == nil { - jsonGetTenantPackagesResponse, _ := json.Marshal(dst.GetTenantPackagesResponse) - if string(jsonGetTenantPackagesResponse) == "{}" { // empty struct - dst.GetTenantPackagesResponse = nil - } else { - return nil // data stored in dst.GetTenantPackagesResponse, return on the first match - } - } else { - dst.GetTenantPackagesResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetTenantPackages200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetTenantPackages200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.GetTenantPackagesResponse != nil { - return json.Marshal(&src.GetTenantPackagesResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetTenantPackages200Response struct { - value *GetTenantPackages200Response - isSet bool -} - -func (v NullableGetTenantPackages200Response) Get() *GetTenantPackages200Response { - return v.value -} - -func (v *NullableGetTenantPackages200Response) Set(val *GetTenantPackages200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetTenantPackages200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetTenantPackages200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetTenantPackages200Response(val *GetTenantPackages200Response) *NullableGetTenantPackages200Response { - return &NullableGetTenantPackages200Response{value: val, isSet: true} -} - -func (v NullableGetTenantPackages200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetTenantPackages200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_tenant_user_200_response.go b/client/model_get_tenant_user_200_response.go deleted file mode 100644 index 6522bcb..0000000 --- a/client/model_get_tenant_user_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetTenantUser200Response struct for GetTenantUser200Response -type GetTenantUser200Response struct { - APIError *APIError - GetTenantUserResponse *GetTenantUserResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetTenantUser200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into GetTenantUserResponse - err = json.Unmarshal(data, &dst.GetTenantUserResponse); - if err == nil { - jsonGetTenantUserResponse, _ := json.Marshal(dst.GetTenantUserResponse) - if string(jsonGetTenantUserResponse) == "{}" { // empty struct - dst.GetTenantUserResponse = nil - } else { - return nil // data stored in dst.GetTenantUserResponse, return on the first match - } - } else { - dst.GetTenantUserResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetTenantUser200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetTenantUser200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.GetTenantUserResponse != nil { - return json.Marshal(&src.GetTenantUserResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetTenantUser200Response struct { - value *GetTenantUser200Response - isSet bool -} - -func (v NullableGetTenantUser200Response) Get() *GetTenantUser200Response { - return v.value -} - -func (v *NullableGetTenantUser200Response) Set(val *GetTenantUser200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetTenantUser200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetTenantUser200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetTenantUser200Response(val *GetTenantUser200Response) *NullableGetTenantUser200Response { - return &NullableGetTenantUser200Response{value: val, isSet: true} -} - -func (v NullableGetTenantUser200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetTenantUser200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_tenant_users_200_response.go b/client/model_get_tenant_users_200_response.go deleted file mode 100644 index 0b657d8..0000000 --- a/client/model_get_tenant_users_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetTenantUsers200Response struct for GetTenantUsers200Response -type GetTenantUsers200Response struct { - APIError *APIError - GetTenantUsersResponse *GetTenantUsersResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetTenantUsers200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into GetTenantUsersResponse - err = json.Unmarshal(data, &dst.GetTenantUsersResponse); - if err == nil { - jsonGetTenantUsersResponse, _ := json.Marshal(dst.GetTenantUsersResponse) - if string(jsonGetTenantUsersResponse) == "{}" { // empty struct - dst.GetTenantUsersResponse = nil - } else { - return nil // data stored in dst.GetTenantUsersResponse, return on the first match - } - } else { - dst.GetTenantUsersResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetTenantUsers200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetTenantUsers200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.GetTenantUsersResponse != nil { - return json.Marshal(&src.GetTenantUsersResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetTenantUsers200Response struct { - value *GetTenantUsers200Response - isSet bool -} - -func (v NullableGetTenantUsers200Response) Get() *GetTenantUsers200Response { - return v.value -} - -func (v *NullableGetTenantUsers200Response) Set(val *GetTenantUsers200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetTenantUsers200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetTenantUsers200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetTenantUsers200Response(val *GetTenantUsers200Response) *NullableGetTenantUsers200Response { - return &NullableGetTenantUsers200Response{value: val, isSet: true} -} - -func (v NullableGetTenantUsers200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetTenantUsers200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_tenants_200_response.go b/client/model_get_tenants_200_response.go deleted file mode 100644 index 5521c74..0000000 --- a/client/model_get_tenants_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetTenants200Response struct for GetTenants200Response -type GetTenants200Response struct { - APIError *APIError - GetTenantsResponse *GetTenantsResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetTenants200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into GetTenantsResponse - err = json.Unmarshal(data, &dst.GetTenantsResponse); - if err == nil { - jsonGetTenantsResponse, _ := json.Marshal(dst.GetTenantsResponse) - if string(jsonGetTenantsResponse) == "{}" { // empty struct - dst.GetTenantsResponse = nil - } else { - return nil // data stored in dst.GetTenantsResponse, return on the first match - } - } else { - dst.GetTenantsResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetTenants200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetTenants200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.GetTenantsResponse != nil { - return json.Marshal(&src.GetTenantsResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetTenants200Response struct { - value *GetTenants200Response - isSet bool -} - -func (v NullableGetTenants200Response) Get() *GetTenants200Response { - return v.value -} - -func (v *NullableGetTenants200Response) Set(val *GetTenants200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetTenants200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetTenants200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetTenants200Response(val *GetTenants200Response) *NullableGetTenants200Response { - return &NullableGetTenants200Response{value: val, isSet: true} -} - -func (v NullableGetTenants200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetTenants200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_ticket_200_response.go b/client/model_get_ticket_200_response.go deleted file mode 100644 index bc2cc36..0000000 --- a/client/model_get_ticket_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetTicket200Response struct for GetTicket200Response -type GetTicket200Response struct { - APIError *APIError - GetTicketResponse *GetTicketResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetTicket200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into GetTicketResponse - err = json.Unmarshal(data, &dst.GetTicketResponse); - if err == nil { - jsonGetTicketResponse, _ := json.Marshal(dst.GetTicketResponse) - if string(jsonGetTicketResponse) == "{}" { // empty struct - dst.GetTicketResponse = nil - } else { - return nil // data stored in dst.GetTicketResponse, return on the first match - } - } else { - dst.GetTicketResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetTicket200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetTicket200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.GetTicketResponse != nil { - return json.Marshal(&src.GetTicketResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetTicket200Response struct { - value *GetTicket200Response - isSet bool -} - -func (v NullableGetTicket200Response) Get() *GetTicket200Response { - return v.value -} - -func (v *NullableGetTicket200Response) Set(val *GetTicket200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetTicket200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetTicket200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetTicket200Response(val *GetTicket200Response) *NullableGetTicket200Response { - return &NullableGetTicket200Response{value: val, isSet: true} -} - -func (v NullableGetTicket200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetTicket200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_tickets_200_response.go b/client/model_get_tickets_200_response.go deleted file mode 100644 index 2964f16..0000000 --- a/client/model_get_tickets_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetTickets200Response struct for GetTickets200Response -type GetTickets200Response struct { - APIError *APIError - GetTicketsResponse *GetTicketsResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetTickets200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into GetTicketsResponse - err = json.Unmarshal(data, &dst.GetTicketsResponse); - if err == nil { - jsonGetTicketsResponse, _ := json.Marshal(dst.GetTicketsResponse) - if string(jsonGetTicketsResponse) == "{}" { // empty struct - dst.GetTicketsResponse = nil - } else { - return nil // data stored in dst.GetTicketsResponse, return on the first match - } - } else { - dst.GetTicketsResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetTickets200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetTickets200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.GetTicketsResponse != nil { - return json.Marshal(&src.GetTicketsResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetTickets200Response struct { - value *GetTickets200Response - isSet bool -} - -func (v NullableGetTickets200Response) Get() *GetTickets200Response { - return v.value -} - -func (v *NullableGetTickets200Response) Set(val *GetTickets200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetTickets200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetTickets200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetTickets200Response(val *GetTickets200Response) *NullableGetTickets200Response { - return &NullableGetTickets200Response{value: val, isSet: true} -} - -func (v NullableGetTickets200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetTickets200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_translations_response.go b/client/model_get_translations_response.go new file mode 100644 index 0000000..1e29131 --- /dev/null +++ b/client/model_get_translations_response.go @@ -0,0 +1,187 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the GetTranslationsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetTranslationsResponse{} + +// GetTranslationsResponse struct for GetTranslationsResponse +type GetTranslationsResponse struct { + // Construct a type with a set of properties K of type T + Translations map[string]string `json:"translations"` + Status APIStatus `json:"status"` +} + +type _GetTranslationsResponse GetTranslationsResponse + +// NewGetTranslationsResponse instantiates a new GetTranslationsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetTranslationsResponse(translations map[string]string, status APIStatus) *GetTranslationsResponse { + this := GetTranslationsResponse{} + this.Translations = translations + this.Status = status + return &this +} + +// NewGetTranslationsResponseWithDefaults instantiates a new GetTranslationsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetTranslationsResponseWithDefaults() *GetTranslationsResponse { + this := GetTranslationsResponse{} + return &this +} + +// GetTranslations returns the Translations field value +func (o *GetTranslationsResponse) GetTranslations() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + + return o.Translations +} + +// GetTranslationsOk returns a tuple with the Translations field value +// and a boolean to check if the value has been set. +func (o *GetTranslationsResponse) GetTranslationsOk() (*map[string]string, bool) { + if o == nil { + return nil, false + } + return &o.Translations, true +} + +// SetTranslations sets field value +func (o *GetTranslationsResponse) SetTranslations(v map[string]string) { + o.Translations = v +} + +// GetStatus returns the Status field value +func (o *GetTranslationsResponse) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *GetTranslationsResponse) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *GetTranslationsResponse) SetStatus(v APIStatus) { + o.Status = v +} + +func (o GetTranslationsResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetTranslationsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["translations"] = o.Translations + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *GetTranslationsResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "translations", + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetTranslationsResponse := _GetTranslationsResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGetTranslationsResponse) + + if err != nil { + return err + } + + *o = GetTranslationsResponse(varGetTranslationsResponse) + + return err +} + +type NullableGetTranslationsResponse struct { + value *GetTranslationsResponse + isSet bool +} + +func (v NullableGetTranslationsResponse) Get() *GetTranslationsResponse { + return v.value +} + +func (v *NullableGetTranslationsResponse) Set(val *GetTranslationsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGetTranslationsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGetTranslationsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetTranslationsResponse(val *GetTranslationsResponse) *NullableGetTranslationsResponse { + return &NullableGetTranslationsResponse{value: val, isSet: true} +} + +func (v NullableGetTranslationsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetTranslationsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_get_user_200_response.go b/client/model_get_user_200_response.go deleted file mode 100644 index 03388a0..0000000 --- a/client/model_get_user_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetUser200Response struct for GetUser200Response -type GetUser200Response struct { - APIError *APIError - GetUserResponse *GetUserResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetUser200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into GetUserResponse - err = json.Unmarshal(data, &dst.GetUserResponse); - if err == nil { - jsonGetUserResponse, _ := json.Marshal(dst.GetUserResponse) - if string(jsonGetUserResponse) == "{}" { // empty struct - dst.GetUserResponse = nil - } else { - return nil // data stored in dst.GetUserResponse, return on the first match - } - } else { - dst.GetUserResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetUser200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetUser200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.GetUserResponse != nil { - return json.Marshal(&src.GetUserResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetUser200Response struct { - value *GetUser200Response - isSet bool -} - -func (v NullableGetUser200Response) Get() *GetUser200Response { - return v.value -} - -func (v *NullableGetUser200Response) Set(val *GetUser200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetUser200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetUser200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetUser200Response(val *GetUser200Response) *NullableGetUser200Response { - return &NullableGetUser200Response{value: val, isSet: true} -} - -func (v NullableGetUser200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetUser200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_user_badge_200_response.go b/client/model_get_user_badge_200_response.go deleted file mode 100644 index 60c91e2..0000000 --- a/client/model_get_user_badge_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetUserBadge200Response struct for GetUserBadge200Response -type GetUserBadge200Response struct { - APIError *APIError - APIGetUserBadgeResponse *APIGetUserBadgeResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetUserBadge200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into APIGetUserBadgeResponse - err = json.Unmarshal(data, &dst.APIGetUserBadgeResponse); - if err == nil { - jsonAPIGetUserBadgeResponse, _ := json.Marshal(dst.APIGetUserBadgeResponse) - if string(jsonAPIGetUserBadgeResponse) == "{}" { // empty struct - dst.APIGetUserBadgeResponse = nil - } else { - return nil // data stored in dst.APIGetUserBadgeResponse, return on the first match - } - } else { - dst.APIGetUserBadgeResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetUserBadge200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetUserBadge200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.APIGetUserBadgeResponse != nil { - return json.Marshal(&src.APIGetUserBadgeResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetUserBadge200Response struct { - value *GetUserBadge200Response - isSet bool -} - -func (v NullableGetUserBadge200Response) Get() *GetUserBadge200Response { - return v.value -} - -func (v *NullableGetUserBadge200Response) Set(val *GetUserBadge200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetUserBadge200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetUserBadge200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetUserBadge200Response(val *GetUserBadge200Response) *NullableGetUserBadge200Response { - return &NullableGetUserBadge200Response{value: val, isSet: true} -} - -func (v NullableGetUserBadge200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetUserBadge200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_user_badge_progress_by_id_200_response.go b/client/model_get_user_badge_progress_by_id_200_response.go deleted file mode 100644 index 2e81ed4..0000000 --- a/client/model_get_user_badge_progress_by_id_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetUserBadgeProgressById200Response struct for GetUserBadgeProgressById200Response -type GetUserBadgeProgressById200Response struct { - APIError *APIError - APIGetUserBadgeProgressResponse *APIGetUserBadgeProgressResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetUserBadgeProgressById200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into APIGetUserBadgeProgressResponse - err = json.Unmarshal(data, &dst.APIGetUserBadgeProgressResponse); - if err == nil { - jsonAPIGetUserBadgeProgressResponse, _ := json.Marshal(dst.APIGetUserBadgeProgressResponse) - if string(jsonAPIGetUserBadgeProgressResponse) == "{}" { // empty struct - dst.APIGetUserBadgeProgressResponse = nil - } else { - return nil // data stored in dst.APIGetUserBadgeProgressResponse, return on the first match - } - } else { - dst.APIGetUserBadgeProgressResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetUserBadgeProgressById200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetUserBadgeProgressById200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.APIGetUserBadgeProgressResponse != nil { - return json.Marshal(&src.APIGetUserBadgeProgressResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetUserBadgeProgressById200Response struct { - value *GetUserBadgeProgressById200Response - isSet bool -} - -func (v NullableGetUserBadgeProgressById200Response) Get() *GetUserBadgeProgressById200Response { - return v.value -} - -func (v *NullableGetUserBadgeProgressById200Response) Set(val *GetUserBadgeProgressById200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetUserBadgeProgressById200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetUserBadgeProgressById200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetUserBadgeProgressById200Response(val *GetUserBadgeProgressById200Response) *NullableGetUserBadgeProgressById200Response { - return &NullableGetUserBadgeProgressById200Response{value: val, isSet: true} -} - -func (v NullableGetUserBadgeProgressById200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetUserBadgeProgressById200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_user_badge_progress_list_200_response.go b/client/model_get_user_badge_progress_list_200_response.go deleted file mode 100644 index 8c7b87f..0000000 --- a/client/model_get_user_badge_progress_list_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetUserBadgeProgressList200Response struct for GetUserBadgeProgressList200Response -type GetUserBadgeProgressList200Response struct { - APIError *APIError - APIGetUserBadgeProgressListResponse *APIGetUserBadgeProgressListResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetUserBadgeProgressList200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into APIGetUserBadgeProgressListResponse - err = json.Unmarshal(data, &dst.APIGetUserBadgeProgressListResponse); - if err == nil { - jsonAPIGetUserBadgeProgressListResponse, _ := json.Marshal(dst.APIGetUserBadgeProgressListResponse) - if string(jsonAPIGetUserBadgeProgressListResponse) == "{}" { // empty struct - dst.APIGetUserBadgeProgressListResponse = nil - } else { - return nil // data stored in dst.APIGetUserBadgeProgressListResponse, return on the first match - } - } else { - dst.APIGetUserBadgeProgressListResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetUserBadgeProgressList200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetUserBadgeProgressList200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.APIGetUserBadgeProgressListResponse != nil { - return json.Marshal(&src.APIGetUserBadgeProgressListResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetUserBadgeProgressList200Response struct { - value *GetUserBadgeProgressList200Response - isSet bool -} - -func (v NullableGetUserBadgeProgressList200Response) Get() *GetUserBadgeProgressList200Response { - return v.value -} - -func (v *NullableGetUserBadgeProgressList200Response) Set(val *GetUserBadgeProgressList200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetUserBadgeProgressList200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetUserBadgeProgressList200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetUserBadgeProgressList200Response(val *GetUserBadgeProgressList200Response) *NullableGetUserBadgeProgressList200Response { - return &NullableGetUserBadgeProgressList200Response{value: val, isSet: true} -} - -func (v NullableGetUserBadgeProgressList200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetUserBadgeProgressList200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_user_badges_200_response.go b/client/model_get_user_badges_200_response.go deleted file mode 100644 index deb9048..0000000 --- a/client/model_get_user_badges_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetUserBadges200Response struct for GetUserBadges200Response -type GetUserBadges200Response struct { - APIError *APIError - APIGetUserBadgesResponse *APIGetUserBadgesResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetUserBadges200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into APIGetUserBadgesResponse - err = json.Unmarshal(data, &dst.APIGetUserBadgesResponse); - if err == nil { - jsonAPIGetUserBadgesResponse, _ := json.Marshal(dst.APIGetUserBadgesResponse) - if string(jsonAPIGetUserBadgesResponse) == "{}" { // empty struct - dst.APIGetUserBadgesResponse = nil - } else { - return nil // data stored in dst.APIGetUserBadgesResponse, return on the first match - } - } else { - dst.APIGetUserBadgesResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetUserBadges200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetUserBadges200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.APIGetUserBadgesResponse != nil { - return json.Marshal(&src.APIGetUserBadgesResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetUserBadges200Response struct { - value *GetUserBadges200Response - isSet bool -} - -func (v NullableGetUserBadges200Response) Get() *GetUserBadges200Response { - return v.value -} - -func (v *NullableGetUserBadges200Response) Set(val *GetUserBadges200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetUserBadges200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetUserBadges200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetUserBadges200Response(val *GetUserBadges200Response) *NullableGetUserBadges200Response { - return &NullableGetUserBadges200Response{value: val, isSet: true} -} - -func (v NullableGetUserBadges200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetUserBadges200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_user_internal_profile_response.go b/client/model_get_user_internal_profile_response.go new file mode 100644 index 0000000..82ba875 --- /dev/null +++ b/client/model_get_user_internal_profile_response.go @@ -0,0 +1,186 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the GetUserInternalProfileResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetUserInternalProfileResponse{} + +// GetUserInternalProfileResponse struct for GetUserInternalProfileResponse +type GetUserInternalProfileResponse struct { + Profile GetUserInternalProfileResponseProfile `json:"profile"` + Status APIStatus `json:"status"` +} + +type _GetUserInternalProfileResponse GetUserInternalProfileResponse + +// NewGetUserInternalProfileResponse instantiates a new GetUserInternalProfileResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetUserInternalProfileResponse(profile GetUserInternalProfileResponseProfile, status APIStatus) *GetUserInternalProfileResponse { + this := GetUserInternalProfileResponse{} + this.Profile = profile + this.Status = status + return &this +} + +// NewGetUserInternalProfileResponseWithDefaults instantiates a new GetUserInternalProfileResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetUserInternalProfileResponseWithDefaults() *GetUserInternalProfileResponse { + this := GetUserInternalProfileResponse{} + return &this +} + +// GetProfile returns the Profile field value +func (o *GetUserInternalProfileResponse) GetProfile() GetUserInternalProfileResponseProfile { + if o == nil { + var ret GetUserInternalProfileResponseProfile + return ret + } + + return o.Profile +} + +// GetProfileOk returns a tuple with the Profile field value +// and a boolean to check if the value has been set. +func (o *GetUserInternalProfileResponse) GetProfileOk() (*GetUserInternalProfileResponseProfile, bool) { + if o == nil { + return nil, false + } + return &o.Profile, true +} + +// SetProfile sets field value +func (o *GetUserInternalProfileResponse) SetProfile(v GetUserInternalProfileResponseProfile) { + o.Profile = v +} + +// GetStatus returns the Status field value +func (o *GetUserInternalProfileResponse) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *GetUserInternalProfileResponse) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *GetUserInternalProfileResponse) SetStatus(v APIStatus) { + o.Status = v +} + +func (o GetUserInternalProfileResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetUserInternalProfileResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["profile"] = o.Profile + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *GetUserInternalProfileResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "profile", + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetUserInternalProfileResponse := _GetUserInternalProfileResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGetUserInternalProfileResponse) + + if err != nil { + return err + } + + *o = GetUserInternalProfileResponse(varGetUserInternalProfileResponse) + + return err +} + +type NullableGetUserInternalProfileResponse struct { + value *GetUserInternalProfileResponse + isSet bool +} + +func (v NullableGetUserInternalProfileResponse) Get() *GetUserInternalProfileResponse { + return v.value +} + +func (v *NullableGetUserInternalProfileResponse) Set(val *GetUserInternalProfileResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGetUserInternalProfileResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGetUserInternalProfileResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetUserInternalProfileResponse(val *GetUserInternalProfileResponse) *NullableGetUserInternalProfileResponse { + return &NullableGetUserInternalProfileResponse{value: val, isSet: true} +} + +func (v NullableGetUserInternalProfileResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetUserInternalProfileResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_get_user_internal_profile_response_profile.go b/client/model_get_user_internal_profile_response_profile.go new file mode 100644 index 0000000..856dc4d --- /dev/null +++ b/client/model_get_user_internal_profile_response_profile.go @@ -0,0 +1,773 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "time" +) + +// checks if the GetUserInternalProfileResponseProfile type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetUserInternalProfileResponseProfile{} + +// GetUserInternalProfileResponseProfile struct for GetUserInternalProfileResponseProfile +type GetUserInternalProfileResponseProfile struct { + CommenterName *string `json:"commenterName,omitempty"` + FirstCommentDate NullableTime `json:"firstCommentDate,omitempty"` + IpHash *string `json:"ipHash,omitempty"` + CountryFlag *string `json:"countryFlag,omitempty"` + CountryCode *string `json:"countryCode,omitempty"` + WebsiteUrl NullableString `json:"websiteUrl,omitempty"` + Bio *string `json:"bio,omitempty"` + Karma *float64 `json:"karma,omitempty"` + Locale *string `json:"locale,omitempty"` + Verified *bool `json:"verified,omitempty"` + AvatarSrc NullableString `json:"avatarSrc,omitempty"` + DisplayName *string `json:"displayName,omitempty"` + Username *string `json:"username,omitempty"` + CommenterEmail NullableString `json:"commenterEmail,omitempty"` + Email NullableString `json:"email,omitempty"` + AnonUserId NullableString `json:"anonUserId,omitempty"` + UserId NullableString `json:"userId,omitempty"` +} + +// NewGetUserInternalProfileResponseProfile instantiates a new GetUserInternalProfileResponseProfile object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetUserInternalProfileResponseProfile() *GetUserInternalProfileResponseProfile { + this := GetUserInternalProfileResponseProfile{} + return &this +} + +// NewGetUserInternalProfileResponseProfileWithDefaults instantiates a new GetUserInternalProfileResponseProfile object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetUserInternalProfileResponseProfileWithDefaults() *GetUserInternalProfileResponseProfile { + this := GetUserInternalProfileResponseProfile{} + return &this +} + +// GetCommenterName returns the CommenterName field value if set, zero value otherwise. +func (o *GetUserInternalProfileResponseProfile) GetCommenterName() string { + if o == nil || IsNil(o.CommenterName) { + var ret string + return ret + } + return *o.CommenterName +} + +// GetCommenterNameOk returns a tuple with the CommenterName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetUserInternalProfileResponseProfile) GetCommenterNameOk() (*string, bool) { + if o == nil || IsNil(o.CommenterName) { + return nil, false + } + return o.CommenterName, true +} + +// HasCommenterName returns a boolean if a field has been set. +func (o *GetUserInternalProfileResponseProfile) HasCommenterName() bool { + if o != nil && !IsNil(o.CommenterName) { + return true + } + + return false +} + +// SetCommenterName gets a reference to the given string and assigns it to the CommenterName field. +func (o *GetUserInternalProfileResponseProfile) SetCommenterName(v string) { + o.CommenterName = &v +} + +// GetFirstCommentDate returns the FirstCommentDate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetUserInternalProfileResponseProfile) GetFirstCommentDate() time.Time { + if o == nil || IsNil(o.FirstCommentDate.Get()) { + var ret time.Time + return ret + } + return *o.FirstCommentDate.Get() +} + +// GetFirstCommentDateOk returns a tuple with the FirstCommentDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetUserInternalProfileResponseProfile) GetFirstCommentDateOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.FirstCommentDate.Get(), o.FirstCommentDate.IsSet() +} + +// HasFirstCommentDate returns a boolean if a field has been set. +func (o *GetUserInternalProfileResponseProfile) HasFirstCommentDate() bool { + if o != nil && o.FirstCommentDate.IsSet() { + return true + } + + return false +} + +// SetFirstCommentDate gets a reference to the given NullableTime and assigns it to the FirstCommentDate field. +func (o *GetUserInternalProfileResponseProfile) SetFirstCommentDate(v time.Time) { + o.FirstCommentDate.Set(&v) +} +// SetFirstCommentDateNil sets the value for FirstCommentDate to be an explicit nil +func (o *GetUserInternalProfileResponseProfile) SetFirstCommentDateNil() { + o.FirstCommentDate.Set(nil) +} + +// UnsetFirstCommentDate ensures that no value is present for FirstCommentDate, not even an explicit nil +func (o *GetUserInternalProfileResponseProfile) UnsetFirstCommentDate() { + o.FirstCommentDate.Unset() +} + +// GetIpHash returns the IpHash field value if set, zero value otherwise. +func (o *GetUserInternalProfileResponseProfile) GetIpHash() string { + if o == nil || IsNil(o.IpHash) { + var ret string + return ret + } + return *o.IpHash +} + +// GetIpHashOk returns a tuple with the IpHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetUserInternalProfileResponseProfile) GetIpHashOk() (*string, bool) { + if o == nil || IsNil(o.IpHash) { + return nil, false + } + return o.IpHash, true +} + +// HasIpHash returns a boolean if a field has been set. +func (o *GetUserInternalProfileResponseProfile) HasIpHash() bool { + if o != nil && !IsNil(o.IpHash) { + return true + } + + return false +} + +// SetIpHash gets a reference to the given string and assigns it to the IpHash field. +func (o *GetUserInternalProfileResponseProfile) SetIpHash(v string) { + o.IpHash = &v +} + +// GetCountryFlag returns the CountryFlag field value if set, zero value otherwise. +func (o *GetUserInternalProfileResponseProfile) GetCountryFlag() string { + if o == nil || IsNil(o.CountryFlag) { + var ret string + return ret + } + return *o.CountryFlag +} + +// GetCountryFlagOk returns a tuple with the CountryFlag field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetUserInternalProfileResponseProfile) GetCountryFlagOk() (*string, bool) { + if o == nil || IsNil(o.CountryFlag) { + return nil, false + } + return o.CountryFlag, true +} + +// HasCountryFlag returns a boolean if a field has been set. +func (o *GetUserInternalProfileResponseProfile) HasCountryFlag() bool { + if o != nil && !IsNil(o.CountryFlag) { + return true + } + + return false +} + +// SetCountryFlag gets a reference to the given string and assigns it to the CountryFlag field. +func (o *GetUserInternalProfileResponseProfile) SetCountryFlag(v string) { + o.CountryFlag = &v +} + +// GetCountryCode returns the CountryCode field value if set, zero value otherwise. +func (o *GetUserInternalProfileResponseProfile) GetCountryCode() string { + if o == nil || IsNil(o.CountryCode) { + var ret string + return ret + } + return *o.CountryCode +} + +// GetCountryCodeOk returns a tuple with the CountryCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetUserInternalProfileResponseProfile) GetCountryCodeOk() (*string, bool) { + if o == nil || IsNil(o.CountryCode) { + return nil, false + } + return o.CountryCode, true +} + +// HasCountryCode returns a boolean if a field has been set. +func (o *GetUserInternalProfileResponseProfile) HasCountryCode() bool { + if o != nil && !IsNil(o.CountryCode) { + return true + } + + return false +} + +// SetCountryCode gets a reference to the given string and assigns it to the CountryCode field. +func (o *GetUserInternalProfileResponseProfile) SetCountryCode(v string) { + o.CountryCode = &v +} + +// GetWebsiteUrl returns the WebsiteUrl field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetUserInternalProfileResponseProfile) GetWebsiteUrl() string { + if o == nil || IsNil(o.WebsiteUrl.Get()) { + var ret string + return ret + } + return *o.WebsiteUrl.Get() +} + +// GetWebsiteUrlOk returns a tuple with the WebsiteUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetUserInternalProfileResponseProfile) GetWebsiteUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.WebsiteUrl.Get(), o.WebsiteUrl.IsSet() +} + +// HasWebsiteUrl returns a boolean if a field has been set. +func (o *GetUserInternalProfileResponseProfile) HasWebsiteUrl() bool { + if o != nil && o.WebsiteUrl.IsSet() { + return true + } + + return false +} + +// SetWebsiteUrl gets a reference to the given NullableString and assigns it to the WebsiteUrl field. +func (o *GetUserInternalProfileResponseProfile) SetWebsiteUrl(v string) { + o.WebsiteUrl.Set(&v) +} +// SetWebsiteUrlNil sets the value for WebsiteUrl to be an explicit nil +func (o *GetUserInternalProfileResponseProfile) SetWebsiteUrlNil() { + o.WebsiteUrl.Set(nil) +} + +// UnsetWebsiteUrl ensures that no value is present for WebsiteUrl, not even an explicit nil +func (o *GetUserInternalProfileResponseProfile) UnsetWebsiteUrl() { + o.WebsiteUrl.Unset() +} + +// GetBio returns the Bio field value if set, zero value otherwise. +func (o *GetUserInternalProfileResponseProfile) GetBio() string { + if o == nil || IsNil(o.Bio) { + var ret string + return ret + } + return *o.Bio +} + +// GetBioOk returns a tuple with the Bio field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetUserInternalProfileResponseProfile) GetBioOk() (*string, bool) { + if o == nil || IsNil(o.Bio) { + return nil, false + } + return o.Bio, true +} + +// HasBio returns a boolean if a field has been set. +func (o *GetUserInternalProfileResponseProfile) HasBio() bool { + if o != nil && !IsNil(o.Bio) { + return true + } + + return false +} + +// SetBio gets a reference to the given string and assigns it to the Bio field. +func (o *GetUserInternalProfileResponseProfile) SetBio(v string) { + o.Bio = &v +} + +// GetKarma returns the Karma field value if set, zero value otherwise. +func (o *GetUserInternalProfileResponseProfile) GetKarma() float64 { + if o == nil || IsNil(o.Karma) { + var ret float64 + return ret + } + return *o.Karma +} + +// GetKarmaOk returns a tuple with the Karma field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetUserInternalProfileResponseProfile) GetKarmaOk() (*float64, bool) { + if o == nil || IsNil(o.Karma) { + return nil, false + } + return o.Karma, true +} + +// HasKarma returns a boolean if a field has been set. +func (o *GetUserInternalProfileResponseProfile) HasKarma() bool { + if o != nil && !IsNil(o.Karma) { + return true + } + + return false +} + +// SetKarma gets a reference to the given float64 and assigns it to the Karma field. +func (o *GetUserInternalProfileResponseProfile) SetKarma(v float64) { + o.Karma = &v +} + +// GetLocale returns the Locale field value if set, zero value otherwise. +func (o *GetUserInternalProfileResponseProfile) GetLocale() string { + if o == nil || IsNil(o.Locale) { + var ret string + return ret + } + return *o.Locale +} + +// GetLocaleOk returns a tuple with the Locale field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetUserInternalProfileResponseProfile) GetLocaleOk() (*string, bool) { + if o == nil || IsNil(o.Locale) { + return nil, false + } + return o.Locale, true +} + +// HasLocale returns a boolean if a field has been set. +func (o *GetUserInternalProfileResponseProfile) HasLocale() bool { + if o != nil && !IsNil(o.Locale) { + return true + } + + return false +} + +// SetLocale gets a reference to the given string and assigns it to the Locale field. +func (o *GetUserInternalProfileResponseProfile) SetLocale(v string) { + o.Locale = &v +} + +// GetVerified returns the Verified field value if set, zero value otherwise. +func (o *GetUserInternalProfileResponseProfile) GetVerified() bool { + if o == nil || IsNil(o.Verified) { + var ret bool + return ret + } + return *o.Verified +} + +// GetVerifiedOk returns a tuple with the Verified field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetUserInternalProfileResponseProfile) GetVerifiedOk() (*bool, bool) { + if o == nil || IsNil(o.Verified) { + return nil, false + } + return o.Verified, true +} + +// HasVerified returns a boolean if a field has been set. +func (o *GetUserInternalProfileResponseProfile) HasVerified() bool { + if o != nil && !IsNil(o.Verified) { + return true + } + + return false +} + +// SetVerified gets a reference to the given bool and assigns it to the Verified field. +func (o *GetUserInternalProfileResponseProfile) SetVerified(v bool) { + o.Verified = &v +} + +// GetAvatarSrc returns the AvatarSrc field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetUserInternalProfileResponseProfile) GetAvatarSrc() string { + if o == nil || IsNil(o.AvatarSrc.Get()) { + var ret string + return ret + } + return *o.AvatarSrc.Get() +} + +// GetAvatarSrcOk returns a tuple with the AvatarSrc field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetUserInternalProfileResponseProfile) GetAvatarSrcOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AvatarSrc.Get(), o.AvatarSrc.IsSet() +} + +// HasAvatarSrc returns a boolean if a field has been set. +func (o *GetUserInternalProfileResponseProfile) HasAvatarSrc() bool { + if o != nil && o.AvatarSrc.IsSet() { + return true + } + + return false +} + +// SetAvatarSrc gets a reference to the given NullableString and assigns it to the AvatarSrc field. +func (o *GetUserInternalProfileResponseProfile) SetAvatarSrc(v string) { + o.AvatarSrc.Set(&v) +} +// SetAvatarSrcNil sets the value for AvatarSrc to be an explicit nil +func (o *GetUserInternalProfileResponseProfile) SetAvatarSrcNil() { + o.AvatarSrc.Set(nil) +} + +// UnsetAvatarSrc ensures that no value is present for AvatarSrc, not even an explicit nil +func (o *GetUserInternalProfileResponseProfile) UnsetAvatarSrc() { + o.AvatarSrc.Unset() +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *GetUserInternalProfileResponseProfile) GetDisplayName() string { + if o == nil || IsNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetUserInternalProfileResponseProfile) GetDisplayNameOk() (*string, bool) { + if o == nil || IsNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *GetUserInternalProfileResponseProfile) HasDisplayName() bool { + if o != nil && !IsNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *GetUserInternalProfileResponseProfile) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *GetUserInternalProfileResponseProfile) GetUsername() string { + if o == nil || IsNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetUserInternalProfileResponseProfile) GetUsernameOk() (*string, bool) { + if o == nil || IsNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *GetUserInternalProfileResponseProfile) HasUsername() bool { + if o != nil && !IsNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *GetUserInternalProfileResponseProfile) SetUsername(v string) { + o.Username = &v +} + +// GetCommenterEmail returns the CommenterEmail field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetUserInternalProfileResponseProfile) GetCommenterEmail() string { + if o == nil || IsNil(o.CommenterEmail.Get()) { + var ret string + return ret + } + return *o.CommenterEmail.Get() +} + +// GetCommenterEmailOk returns a tuple with the CommenterEmail field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetUserInternalProfileResponseProfile) GetCommenterEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CommenterEmail.Get(), o.CommenterEmail.IsSet() +} + +// HasCommenterEmail returns a boolean if a field has been set. +func (o *GetUserInternalProfileResponseProfile) HasCommenterEmail() bool { + if o != nil && o.CommenterEmail.IsSet() { + return true + } + + return false +} + +// SetCommenterEmail gets a reference to the given NullableString and assigns it to the CommenterEmail field. +func (o *GetUserInternalProfileResponseProfile) SetCommenterEmail(v string) { + o.CommenterEmail.Set(&v) +} +// SetCommenterEmailNil sets the value for CommenterEmail to be an explicit nil +func (o *GetUserInternalProfileResponseProfile) SetCommenterEmailNil() { + o.CommenterEmail.Set(nil) +} + +// UnsetCommenterEmail ensures that no value is present for CommenterEmail, not even an explicit nil +func (o *GetUserInternalProfileResponseProfile) UnsetCommenterEmail() { + o.CommenterEmail.Unset() +} + +// GetEmail returns the Email field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetUserInternalProfileResponseProfile) GetEmail() string { + if o == nil || IsNil(o.Email.Get()) { + var ret string + return ret + } + return *o.Email.Get() +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetUserInternalProfileResponseProfile) GetEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Email.Get(), o.Email.IsSet() +} + +// HasEmail returns a boolean if a field has been set. +func (o *GetUserInternalProfileResponseProfile) HasEmail() bool { + if o != nil && o.Email.IsSet() { + return true + } + + return false +} + +// SetEmail gets a reference to the given NullableString and assigns it to the Email field. +func (o *GetUserInternalProfileResponseProfile) SetEmail(v string) { + o.Email.Set(&v) +} +// SetEmailNil sets the value for Email to be an explicit nil +func (o *GetUserInternalProfileResponseProfile) SetEmailNil() { + o.Email.Set(nil) +} + +// UnsetEmail ensures that no value is present for Email, not even an explicit nil +func (o *GetUserInternalProfileResponseProfile) UnsetEmail() { + o.Email.Unset() +} + +// GetAnonUserId returns the AnonUserId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetUserInternalProfileResponseProfile) GetAnonUserId() string { + if o == nil || IsNil(o.AnonUserId.Get()) { + var ret string + return ret + } + return *o.AnonUserId.Get() +} + +// GetAnonUserIdOk returns a tuple with the AnonUserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetUserInternalProfileResponseProfile) GetAnonUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AnonUserId.Get(), o.AnonUserId.IsSet() +} + +// HasAnonUserId returns a boolean if a field has been set. +func (o *GetUserInternalProfileResponseProfile) HasAnonUserId() bool { + if o != nil && o.AnonUserId.IsSet() { + return true + } + + return false +} + +// SetAnonUserId gets a reference to the given NullableString and assigns it to the AnonUserId field. +func (o *GetUserInternalProfileResponseProfile) SetAnonUserId(v string) { + o.AnonUserId.Set(&v) +} +// SetAnonUserIdNil sets the value for AnonUserId to be an explicit nil +func (o *GetUserInternalProfileResponseProfile) SetAnonUserIdNil() { + o.AnonUserId.Set(nil) +} + +// UnsetAnonUserId ensures that no value is present for AnonUserId, not even an explicit nil +func (o *GetUserInternalProfileResponseProfile) UnsetAnonUserId() { + o.AnonUserId.Unset() +} + +// GetUserId returns the UserId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetUserInternalProfileResponseProfile) GetUserId() string { + if o == nil || IsNil(o.UserId.Get()) { + var ret string + return ret + } + return *o.UserId.Get() +} + +// GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetUserInternalProfileResponseProfile) GetUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.UserId.Get(), o.UserId.IsSet() +} + +// HasUserId returns a boolean if a field has been set. +func (o *GetUserInternalProfileResponseProfile) HasUserId() bool { + if o != nil && o.UserId.IsSet() { + return true + } + + return false +} + +// SetUserId gets a reference to the given NullableString and assigns it to the UserId field. +func (o *GetUserInternalProfileResponseProfile) SetUserId(v string) { + o.UserId.Set(&v) +} +// SetUserIdNil sets the value for UserId to be an explicit nil +func (o *GetUserInternalProfileResponseProfile) SetUserIdNil() { + o.UserId.Set(nil) +} + +// UnsetUserId ensures that no value is present for UserId, not even an explicit nil +func (o *GetUserInternalProfileResponseProfile) UnsetUserId() { + o.UserId.Unset() +} + +func (o GetUserInternalProfileResponseProfile) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetUserInternalProfileResponseProfile) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CommenterName) { + toSerialize["commenterName"] = o.CommenterName + } + if o.FirstCommentDate.IsSet() { + toSerialize["firstCommentDate"] = o.FirstCommentDate.Get() + } + if !IsNil(o.IpHash) { + toSerialize["ipHash"] = o.IpHash + } + if !IsNil(o.CountryFlag) { + toSerialize["countryFlag"] = o.CountryFlag + } + if !IsNil(o.CountryCode) { + toSerialize["countryCode"] = o.CountryCode + } + if o.WebsiteUrl.IsSet() { + toSerialize["websiteUrl"] = o.WebsiteUrl.Get() + } + if !IsNil(o.Bio) { + toSerialize["bio"] = o.Bio + } + if !IsNil(o.Karma) { + toSerialize["karma"] = o.Karma + } + if !IsNil(o.Locale) { + toSerialize["locale"] = o.Locale + } + if !IsNil(o.Verified) { + toSerialize["verified"] = o.Verified + } + if o.AvatarSrc.IsSet() { + toSerialize["avatarSrc"] = o.AvatarSrc.Get() + } + if !IsNil(o.DisplayName) { + toSerialize["displayName"] = o.DisplayName + } + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + if o.CommenterEmail.IsSet() { + toSerialize["commenterEmail"] = o.CommenterEmail.Get() + } + if o.Email.IsSet() { + toSerialize["email"] = o.Email.Get() + } + if o.AnonUserId.IsSet() { + toSerialize["anonUserId"] = o.AnonUserId.Get() + } + if o.UserId.IsSet() { + toSerialize["userId"] = o.UserId.Get() + } + return toSerialize, nil +} + +type NullableGetUserInternalProfileResponseProfile struct { + value *GetUserInternalProfileResponseProfile + isSet bool +} + +func (v NullableGetUserInternalProfileResponseProfile) Get() *GetUserInternalProfileResponseProfile { + return v.value +} + +func (v *NullableGetUserInternalProfileResponseProfile) Set(val *GetUserInternalProfileResponseProfile) { + v.value = val + v.isSet = true +} + +func (v NullableGetUserInternalProfileResponseProfile) IsSet() bool { + return v.isSet +} + +func (v *NullableGetUserInternalProfileResponseProfile) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetUserInternalProfileResponseProfile(val *GetUserInternalProfileResponseProfile) *NullableGetUserInternalProfileResponseProfile { + return &NullableGetUserInternalProfileResponseProfile{value: val, isSet: true} +} + +func (v NullableGetUserInternalProfileResponseProfile) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetUserInternalProfileResponseProfile) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_get_user_manual_badges_response.go b/client/model_get_user_manual_badges_response.go new file mode 100644 index 0000000..9507261 --- /dev/null +++ b/client/model_get_user_manual_badges_response.go @@ -0,0 +1,186 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the GetUserManualBadgesResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetUserManualBadgesResponse{} + +// GetUserManualBadgesResponse struct for GetUserManualBadgesResponse +type GetUserManualBadgesResponse struct { + Badges []UserBadge `json:"badges"` + Status APIStatus `json:"status"` +} + +type _GetUserManualBadgesResponse GetUserManualBadgesResponse + +// NewGetUserManualBadgesResponse instantiates a new GetUserManualBadgesResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetUserManualBadgesResponse(badges []UserBadge, status APIStatus) *GetUserManualBadgesResponse { + this := GetUserManualBadgesResponse{} + this.Badges = badges + this.Status = status + return &this +} + +// NewGetUserManualBadgesResponseWithDefaults instantiates a new GetUserManualBadgesResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetUserManualBadgesResponseWithDefaults() *GetUserManualBadgesResponse { + this := GetUserManualBadgesResponse{} + return &this +} + +// GetBadges returns the Badges field value +func (o *GetUserManualBadgesResponse) GetBadges() []UserBadge { + if o == nil { + var ret []UserBadge + return ret + } + + return o.Badges +} + +// GetBadgesOk returns a tuple with the Badges field value +// and a boolean to check if the value has been set. +func (o *GetUserManualBadgesResponse) GetBadgesOk() ([]UserBadge, bool) { + if o == nil { + return nil, false + } + return o.Badges, true +} + +// SetBadges sets field value +func (o *GetUserManualBadgesResponse) SetBadges(v []UserBadge) { + o.Badges = v +} + +// GetStatus returns the Status field value +func (o *GetUserManualBadgesResponse) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *GetUserManualBadgesResponse) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *GetUserManualBadgesResponse) SetStatus(v APIStatus) { + o.Status = v +} + +func (o GetUserManualBadgesResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetUserManualBadgesResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["badges"] = o.Badges + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *GetUserManualBadgesResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "badges", + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetUserManualBadgesResponse := _GetUserManualBadgesResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGetUserManualBadgesResponse) + + if err != nil { + return err + } + + *o = GetUserManualBadgesResponse(varGetUserManualBadgesResponse) + + return err +} + +type NullableGetUserManualBadgesResponse struct { + value *GetUserManualBadgesResponse + isSet bool +} + +func (v NullableGetUserManualBadgesResponse) Get() *GetUserManualBadgesResponse { + return v.value +} + +func (v *NullableGetUserManualBadgesResponse) Set(val *GetUserManualBadgesResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGetUserManualBadgesResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGetUserManualBadgesResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetUserManualBadgesResponse(val *GetUserManualBadgesResponse) *NullableGetUserManualBadgesResponse { + return &NullableGetUserManualBadgesResponse{value: val, isSet: true} +} + +func (v NullableGetUserManualBadgesResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetUserManualBadgesResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_get_user_notification_count_200_response.go b/client/model_get_user_notification_count_200_response.go deleted file mode 100644 index 8374f6c..0000000 --- a/client/model_get_user_notification_count_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetUserNotificationCount200Response struct for GetUserNotificationCount200Response -type GetUserNotificationCount200Response struct { - APIError *APIError - GetUserNotificationCountResponse *GetUserNotificationCountResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetUserNotificationCount200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into GetUserNotificationCountResponse - err = json.Unmarshal(data, &dst.GetUserNotificationCountResponse); - if err == nil { - jsonGetUserNotificationCountResponse, _ := json.Marshal(dst.GetUserNotificationCountResponse) - if string(jsonGetUserNotificationCountResponse) == "{}" { // empty struct - dst.GetUserNotificationCountResponse = nil - } else { - return nil // data stored in dst.GetUserNotificationCountResponse, return on the first match - } - } else { - dst.GetUserNotificationCountResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetUserNotificationCount200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetUserNotificationCount200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.GetUserNotificationCountResponse != nil { - return json.Marshal(&src.GetUserNotificationCountResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetUserNotificationCount200Response struct { - value *GetUserNotificationCount200Response - isSet bool -} - -func (v NullableGetUserNotificationCount200Response) Get() *GetUserNotificationCount200Response { - return v.value -} - -func (v *NullableGetUserNotificationCount200Response) Set(val *GetUserNotificationCount200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetUserNotificationCount200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetUserNotificationCount200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetUserNotificationCount200Response(val *GetUserNotificationCount200Response) *NullableGetUserNotificationCount200Response { - return &NullableGetUserNotificationCount200Response{value: val, isSet: true} -} - -func (v NullableGetUserNotificationCount200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetUserNotificationCount200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_user_notifications_200_response.go b/client/model_get_user_notifications_200_response.go deleted file mode 100644 index ea8fe2e..0000000 --- a/client/model_get_user_notifications_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetUserNotifications200Response struct for GetUserNotifications200Response -type GetUserNotifications200Response struct { - APIError *APIError - GetMyNotificationsResponse *GetMyNotificationsResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetUserNotifications200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into GetMyNotificationsResponse - err = json.Unmarshal(data, &dst.GetMyNotificationsResponse); - if err == nil { - jsonGetMyNotificationsResponse, _ := json.Marshal(dst.GetMyNotificationsResponse) - if string(jsonGetMyNotificationsResponse) == "{}" { // empty struct - dst.GetMyNotificationsResponse = nil - } else { - return nil // data stored in dst.GetMyNotificationsResponse, return on the first match - } - } else { - dst.GetMyNotificationsResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetUserNotifications200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetUserNotifications200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.GetMyNotificationsResponse != nil { - return json.Marshal(&src.GetMyNotificationsResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetUserNotifications200Response struct { - value *GetUserNotifications200Response - isSet bool -} - -func (v NullableGetUserNotifications200Response) Get() *GetUserNotifications200Response { - return v.value -} - -func (v *NullableGetUserNotifications200Response) Set(val *GetUserNotifications200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetUserNotifications200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetUserNotifications200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetUserNotifications200Response(val *GetUserNotifications200Response) *NullableGetUserNotifications200Response { - return &NullableGetUserNotifications200Response{value: val, isSet: true} -} - -func (v NullableGetUserNotifications200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetUserNotifications200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_user_presence_statuses_200_response.go b/client/model_get_user_presence_statuses_200_response.go deleted file mode 100644 index 2ac8fab..0000000 --- a/client/model_get_user_presence_statuses_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetUserPresenceStatuses200Response struct for GetUserPresenceStatuses200Response -type GetUserPresenceStatuses200Response struct { - APIError *APIError - GetUserPresenceStatusesResponse *GetUserPresenceStatusesResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetUserPresenceStatuses200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into GetUserPresenceStatusesResponse - err = json.Unmarshal(data, &dst.GetUserPresenceStatusesResponse); - if err == nil { - jsonGetUserPresenceStatusesResponse, _ := json.Marshal(dst.GetUserPresenceStatusesResponse) - if string(jsonGetUserPresenceStatusesResponse) == "{}" { // empty struct - dst.GetUserPresenceStatusesResponse = nil - } else { - return nil // data stored in dst.GetUserPresenceStatusesResponse, return on the first match - } - } else { - dst.GetUserPresenceStatusesResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetUserPresenceStatuses200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetUserPresenceStatuses200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.GetUserPresenceStatusesResponse != nil { - return json.Marshal(&src.GetUserPresenceStatusesResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetUserPresenceStatuses200Response struct { - value *GetUserPresenceStatuses200Response - isSet bool -} - -func (v NullableGetUserPresenceStatuses200Response) Get() *GetUserPresenceStatuses200Response { - return v.value -} - -func (v *NullableGetUserPresenceStatuses200Response) Set(val *GetUserPresenceStatuses200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetUserPresenceStatuses200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetUserPresenceStatuses200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetUserPresenceStatuses200Response(val *GetUserPresenceStatuses200Response) *NullableGetUserPresenceStatuses200Response { - return &NullableGetUserPresenceStatuses200Response{value: val, isSet: true} -} - -func (v NullableGetUserPresenceStatuses200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetUserPresenceStatuses200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_user_reacts_public_200_response.go b/client/model_get_user_reacts_public_200_response.go deleted file mode 100644 index a56e48c..0000000 --- a/client/model_get_user_reacts_public_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetUserReactsPublic200Response struct for GetUserReactsPublic200Response -type GetUserReactsPublic200Response struct { - APIError *APIError - UserReactsResponse *UserReactsResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetUserReactsPublic200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into UserReactsResponse - err = json.Unmarshal(data, &dst.UserReactsResponse); - if err == nil { - jsonUserReactsResponse, _ := json.Marshal(dst.UserReactsResponse) - if string(jsonUserReactsResponse) == "{}" { // empty struct - dst.UserReactsResponse = nil - } else { - return nil // data stored in dst.UserReactsResponse, return on the first match - } - } else { - dst.UserReactsResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetUserReactsPublic200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetUserReactsPublic200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.UserReactsResponse != nil { - return json.Marshal(&src.UserReactsResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetUserReactsPublic200Response struct { - value *GetUserReactsPublic200Response - isSet bool -} - -func (v NullableGetUserReactsPublic200Response) Get() *GetUserReactsPublic200Response { - return v.value -} - -func (v *NullableGetUserReactsPublic200Response) Set(val *GetUserReactsPublic200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetUserReactsPublic200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetUserReactsPublic200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetUserReactsPublic200Response(val *GetUserReactsPublic200Response) *NullableGetUserReactsPublic200Response { - return &NullableGetUserReactsPublic200Response{value: val, isSet: true} -} - -func (v NullableGetUserReactsPublic200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetUserReactsPublic200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_user_trust_factor_response.go b/client/model_get_user_trust_factor_response.go new file mode 100644 index 0000000..f0317a2 --- /dev/null +++ b/client/model_get_user_trust_factor_response.go @@ -0,0 +1,230 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the GetUserTrustFactorResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetUserTrustFactorResponse{} + +// GetUserTrustFactorResponse struct for GetUserTrustFactorResponse +type GetUserTrustFactorResponse struct { + ManualTrustFactor *float64 `json:"manualTrustFactor,omitempty"` + AutoTrustFactor *float64 `json:"autoTrustFactor,omitempty"` + Status APIStatus `json:"status"` +} + +type _GetUserTrustFactorResponse GetUserTrustFactorResponse + +// NewGetUserTrustFactorResponse instantiates a new GetUserTrustFactorResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetUserTrustFactorResponse(status APIStatus) *GetUserTrustFactorResponse { + this := GetUserTrustFactorResponse{} + this.Status = status + return &this +} + +// NewGetUserTrustFactorResponseWithDefaults instantiates a new GetUserTrustFactorResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetUserTrustFactorResponseWithDefaults() *GetUserTrustFactorResponse { + this := GetUserTrustFactorResponse{} + return &this +} + +// GetManualTrustFactor returns the ManualTrustFactor field value if set, zero value otherwise. +func (o *GetUserTrustFactorResponse) GetManualTrustFactor() float64 { + if o == nil || IsNil(o.ManualTrustFactor) { + var ret float64 + return ret + } + return *o.ManualTrustFactor +} + +// GetManualTrustFactorOk returns a tuple with the ManualTrustFactor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetUserTrustFactorResponse) GetManualTrustFactorOk() (*float64, bool) { + if o == nil || IsNil(o.ManualTrustFactor) { + return nil, false + } + return o.ManualTrustFactor, true +} + +// HasManualTrustFactor returns a boolean if a field has been set. +func (o *GetUserTrustFactorResponse) HasManualTrustFactor() bool { + if o != nil && !IsNil(o.ManualTrustFactor) { + return true + } + + return false +} + +// SetManualTrustFactor gets a reference to the given float64 and assigns it to the ManualTrustFactor field. +func (o *GetUserTrustFactorResponse) SetManualTrustFactor(v float64) { + o.ManualTrustFactor = &v +} + +// GetAutoTrustFactor returns the AutoTrustFactor field value if set, zero value otherwise. +func (o *GetUserTrustFactorResponse) GetAutoTrustFactor() float64 { + if o == nil || IsNil(o.AutoTrustFactor) { + var ret float64 + return ret + } + return *o.AutoTrustFactor +} + +// GetAutoTrustFactorOk returns a tuple with the AutoTrustFactor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetUserTrustFactorResponse) GetAutoTrustFactorOk() (*float64, bool) { + if o == nil || IsNil(o.AutoTrustFactor) { + return nil, false + } + return o.AutoTrustFactor, true +} + +// HasAutoTrustFactor returns a boolean if a field has been set. +func (o *GetUserTrustFactorResponse) HasAutoTrustFactor() bool { + if o != nil && !IsNil(o.AutoTrustFactor) { + return true + } + + return false +} + +// SetAutoTrustFactor gets a reference to the given float64 and assigns it to the AutoTrustFactor field. +func (o *GetUserTrustFactorResponse) SetAutoTrustFactor(v float64) { + o.AutoTrustFactor = &v +} + +// GetStatus returns the Status field value +func (o *GetUserTrustFactorResponse) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *GetUserTrustFactorResponse) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *GetUserTrustFactorResponse) SetStatus(v APIStatus) { + o.Status = v +} + +func (o GetUserTrustFactorResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetUserTrustFactorResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ManualTrustFactor) { + toSerialize["manualTrustFactor"] = o.ManualTrustFactor + } + if !IsNil(o.AutoTrustFactor) { + toSerialize["autoTrustFactor"] = o.AutoTrustFactor + } + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *GetUserTrustFactorResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetUserTrustFactorResponse := _GetUserTrustFactorResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGetUserTrustFactorResponse) + + if err != nil { + return err + } + + *o = GetUserTrustFactorResponse(varGetUserTrustFactorResponse) + + return err +} + +type NullableGetUserTrustFactorResponse struct { + value *GetUserTrustFactorResponse + isSet bool +} + +func (v NullableGetUserTrustFactorResponse) Get() *GetUserTrustFactorResponse { + return v.value +} + +func (v *NullableGetUserTrustFactorResponse) Set(val *GetUserTrustFactorResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGetUserTrustFactorResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGetUserTrustFactorResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetUserTrustFactorResponse(val *GetUserTrustFactorResponse) *NullableGetUserTrustFactorResponse { + return &NullableGetUserTrustFactorResponse{value: val, isSet: true} +} + +func (v NullableGetUserTrustFactorResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetUserTrustFactorResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_get_v1_page_likes.go b/client/model_get_v1_page_likes.go new file mode 100644 index 0000000..0c54192 --- /dev/null +++ b/client/model_get_v1_page_likes.go @@ -0,0 +1,270 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the GetV1PageLikes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetV1PageLikes{} + +// GetV1PageLikes struct for GetV1PageLikes +type GetV1PageLikes struct { + UrlIdWS string `json:"urlIdWS"` + DidLike bool `json:"didLike"` + CommentCount int32 `json:"commentCount"` + LikeCount int32 `json:"likeCount"` + Status APIStatus `json:"status"` +} + +type _GetV1PageLikes GetV1PageLikes + +// NewGetV1PageLikes instantiates a new GetV1PageLikes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetV1PageLikes(urlIdWS string, didLike bool, commentCount int32, likeCount int32, status APIStatus) *GetV1PageLikes { + this := GetV1PageLikes{} + this.UrlIdWS = urlIdWS + this.DidLike = didLike + this.CommentCount = commentCount + this.LikeCount = likeCount + this.Status = status + return &this +} + +// NewGetV1PageLikesWithDefaults instantiates a new GetV1PageLikes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetV1PageLikesWithDefaults() *GetV1PageLikes { + this := GetV1PageLikes{} + return &this +} + +// GetUrlIdWS returns the UrlIdWS field value +func (o *GetV1PageLikes) GetUrlIdWS() string { + if o == nil { + var ret string + return ret + } + + return o.UrlIdWS +} + +// GetUrlIdWSOk returns a tuple with the UrlIdWS field value +// and a boolean to check if the value has been set. +func (o *GetV1PageLikes) GetUrlIdWSOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UrlIdWS, true +} + +// SetUrlIdWS sets field value +func (o *GetV1PageLikes) SetUrlIdWS(v string) { + o.UrlIdWS = v +} + +// GetDidLike returns the DidLike field value +func (o *GetV1PageLikes) GetDidLike() bool { + if o == nil { + var ret bool + return ret + } + + return o.DidLike +} + +// GetDidLikeOk returns a tuple with the DidLike field value +// and a boolean to check if the value has been set. +func (o *GetV1PageLikes) GetDidLikeOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.DidLike, true +} + +// SetDidLike sets field value +func (o *GetV1PageLikes) SetDidLike(v bool) { + o.DidLike = v +} + +// GetCommentCount returns the CommentCount field value +func (o *GetV1PageLikes) GetCommentCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.CommentCount +} + +// GetCommentCountOk returns a tuple with the CommentCount field value +// and a boolean to check if the value has been set. +func (o *GetV1PageLikes) GetCommentCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.CommentCount, true +} + +// SetCommentCount sets field value +func (o *GetV1PageLikes) SetCommentCount(v int32) { + o.CommentCount = v +} + +// GetLikeCount returns the LikeCount field value +func (o *GetV1PageLikes) GetLikeCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.LikeCount +} + +// GetLikeCountOk returns a tuple with the LikeCount field value +// and a boolean to check if the value has been set. +func (o *GetV1PageLikes) GetLikeCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.LikeCount, true +} + +// SetLikeCount sets field value +func (o *GetV1PageLikes) SetLikeCount(v int32) { + o.LikeCount = v +} + +// GetStatus returns the Status field value +func (o *GetV1PageLikes) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *GetV1PageLikes) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *GetV1PageLikes) SetStatus(v APIStatus) { + o.Status = v +} + +func (o GetV1PageLikes) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetV1PageLikes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["urlIdWS"] = o.UrlIdWS + toSerialize["didLike"] = o.DidLike + toSerialize["commentCount"] = o.CommentCount + toSerialize["likeCount"] = o.LikeCount + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *GetV1PageLikes) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "urlIdWS", + "didLike", + "commentCount", + "likeCount", + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetV1PageLikes := _GetV1PageLikes{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGetV1PageLikes) + + if err != nil { + return err + } + + *o = GetV1PageLikes(varGetV1PageLikes) + + return err +} + +type NullableGetV1PageLikes struct { + value *GetV1PageLikes + isSet bool +} + +func (v NullableGetV1PageLikes) Get() *GetV1PageLikes { + return v.value +} + +func (v *NullableGetV1PageLikes) Set(val *GetV1PageLikes) { + v.value = val + v.isSet = true +} + +func (v NullableGetV1PageLikes) IsSet() bool { + return v.isSet +} + +func (v *NullableGetV1PageLikes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetV1PageLikes(val *GetV1PageLikes) *NullableGetV1PageLikes { + return &NullableGetV1PageLikes{value: val, isSet: true} +} + +func (v NullableGetV1PageLikes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetV1PageLikes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_get_v2_page_react_users_response.go b/client/model_get_v2_page_react_users_response.go new file mode 100644 index 0000000..c27f16c --- /dev/null +++ b/client/model_get_v2_page_react_users_response.go @@ -0,0 +1,186 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the GetV2PageReactUsersResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetV2PageReactUsersResponse{} + +// GetV2PageReactUsersResponse struct for GetV2PageReactUsersResponse +type GetV2PageReactUsersResponse struct { + UserNames []string `json:"userNames"` + Status APIStatus `json:"status"` +} + +type _GetV2PageReactUsersResponse GetV2PageReactUsersResponse + +// NewGetV2PageReactUsersResponse instantiates a new GetV2PageReactUsersResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetV2PageReactUsersResponse(userNames []string, status APIStatus) *GetV2PageReactUsersResponse { + this := GetV2PageReactUsersResponse{} + this.UserNames = userNames + this.Status = status + return &this +} + +// NewGetV2PageReactUsersResponseWithDefaults instantiates a new GetV2PageReactUsersResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetV2PageReactUsersResponseWithDefaults() *GetV2PageReactUsersResponse { + this := GetV2PageReactUsersResponse{} + return &this +} + +// GetUserNames returns the UserNames field value +func (o *GetV2PageReactUsersResponse) GetUserNames() []string { + if o == nil { + var ret []string + return ret + } + + return o.UserNames +} + +// GetUserNamesOk returns a tuple with the UserNames field value +// and a boolean to check if the value has been set. +func (o *GetV2PageReactUsersResponse) GetUserNamesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.UserNames, true +} + +// SetUserNames sets field value +func (o *GetV2PageReactUsersResponse) SetUserNames(v []string) { + o.UserNames = v +} + +// GetStatus returns the Status field value +func (o *GetV2PageReactUsersResponse) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *GetV2PageReactUsersResponse) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *GetV2PageReactUsersResponse) SetStatus(v APIStatus) { + o.Status = v +} + +func (o GetV2PageReactUsersResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetV2PageReactUsersResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["userNames"] = o.UserNames + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *GetV2PageReactUsersResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "userNames", + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetV2PageReactUsersResponse := _GetV2PageReactUsersResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGetV2PageReactUsersResponse) + + if err != nil { + return err + } + + *o = GetV2PageReactUsersResponse(varGetV2PageReactUsersResponse) + + return err +} + +type NullableGetV2PageReactUsersResponse struct { + value *GetV2PageReactUsersResponse + isSet bool +} + +func (v NullableGetV2PageReactUsersResponse) Get() *GetV2PageReactUsersResponse { + return v.value +} + +func (v *NullableGetV2PageReactUsersResponse) Set(val *GetV2PageReactUsersResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGetV2PageReactUsersResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGetV2PageReactUsersResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetV2PageReactUsersResponse(val *GetV2PageReactUsersResponse) *NullableGetV2PageReactUsersResponse { + return &NullableGetV2PageReactUsersResponse{value: val, isSet: true} +} + +func (v NullableGetV2PageReactUsersResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetV2PageReactUsersResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_get_v2_page_reacts.go b/client/model_get_v2_page_reacts.go new file mode 100644 index 0000000..89aae8d --- /dev/null +++ b/client/model_get_v2_page_reacts.go @@ -0,0 +1,231 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the GetV2PageReacts type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetV2PageReacts{} + +// GetV2PageReacts struct for GetV2PageReacts +type GetV2PageReacts struct { + ReactedIds []string `json:"reactedIds,omitempty"` + // Construct a type with a set of properties K of type T + Counts *map[string]float64 `json:"counts,omitempty"` + Status APIStatus `json:"status"` +} + +type _GetV2PageReacts GetV2PageReacts + +// NewGetV2PageReacts instantiates a new GetV2PageReacts object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetV2PageReacts(status APIStatus) *GetV2PageReacts { + this := GetV2PageReacts{} + this.Status = status + return &this +} + +// NewGetV2PageReactsWithDefaults instantiates a new GetV2PageReacts object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetV2PageReactsWithDefaults() *GetV2PageReacts { + this := GetV2PageReacts{} + return &this +} + +// GetReactedIds returns the ReactedIds field value if set, zero value otherwise. +func (o *GetV2PageReacts) GetReactedIds() []string { + if o == nil || IsNil(o.ReactedIds) { + var ret []string + return ret + } + return o.ReactedIds +} + +// GetReactedIdsOk returns a tuple with the ReactedIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetV2PageReacts) GetReactedIdsOk() ([]string, bool) { + if o == nil || IsNil(o.ReactedIds) { + return nil, false + } + return o.ReactedIds, true +} + +// HasReactedIds returns a boolean if a field has been set. +func (o *GetV2PageReacts) HasReactedIds() bool { + if o != nil && !IsNil(o.ReactedIds) { + return true + } + + return false +} + +// SetReactedIds gets a reference to the given []string and assigns it to the ReactedIds field. +func (o *GetV2PageReacts) SetReactedIds(v []string) { + o.ReactedIds = v +} + +// GetCounts returns the Counts field value if set, zero value otherwise. +func (o *GetV2PageReacts) GetCounts() map[string]float64 { + if o == nil || IsNil(o.Counts) { + var ret map[string]float64 + return ret + } + return *o.Counts +} + +// GetCountsOk returns a tuple with the Counts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetV2PageReacts) GetCountsOk() (*map[string]float64, bool) { + if o == nil || IsNil(o.Counts) { + return nil, false + } + return o.Counts, true +} + +// HasCounts returns a boolean if a field has been set. +func (o *GetV2PageReacts) HasCounts() bool { + if o != nil && !IsNil(o.Counts) { + return true + } + + return false +} + +// SetCounts gets a reference to the given map[string]float64 and assigns it to the Counts field. +func (o *GetV2PageReacts) SetCounts(v map[string]float64) { + o.Counts = &v +} + +// GetStatus returns the Status field value +func (o *GetV2PageReacts) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *GetV2PageReacts) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *GetV2PageReacts) SetStatus(v APIStatus) { + o.Status = v +} + +func (o GetV2PageReacts) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetV2PageReacts) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ReactedIds) { + toSerialize["reactedIds"] = o.ReactedIds + } + if !IsNil(o.Counts) { + toSerialize["counts"] = o.Counts + } + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *GetV2PageReacts) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetV2PageReacts := _GetV2PageReacts{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGetV2PageReacts) + + if err != nil { + return err + } + + *o = GetV2PageReacts(varGetV2PageReacts) + + return err +} + +type NullableGetV2PageReacts struct { + value *GetV2PageReacts + isSet bool +} + +func (v NullableGetV2PageReacts) Get() *GetV2PageReacts { + return v.value +} + +func (v *NullableGetV2PageReacts) Set(val *GetV2PageReacts) { + v.value = val + v.isSet = true +} + +func (v NullableGetV2PageReacts) IsSet() bool { + return v.isSet +} + +func (v *NullableGetV2PageReacts) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetV2PageReacts(val *GetV2PageReacts) *NullableGetV2PageReacts { + return &NullableGetV2PageReacts{value: val, isSet: true} +} + +func (v NullableGetV2PageReacts) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetV2PageReacts) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_get_votes_200_response.go b/client/model_get_votes_200_response.go deleted file mode 100644 index 40a7425..0000000 --- a/client/model_get_votes_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetVotes200Response struct for GetVotes200Response -type GetVotes200Response struct { - APIError *APIError - GetVotesResponse *GetVotesResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetVotes200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into GetVotesResponse - err = json.Unmarshal(data, &dst.GetVotesResponse); - if err == nil { - jsonGetVotesResponse, _ := json.Marshal(dst.GetVotesResponse) - if string(jsonGetVotesResponse) == "{}" { // empty struct - dst.GetVotesResponse = nil - } else { - return nil // data stored in dst.GetVotesResponse, return on the first match - } - } else { - dst.GetVotesResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetVotes200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetVotes200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.GetVotesResponse != nil { - return json.Marshal(&src.GetVotesResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetVotes200Response struct { - value *GetVotes200Response - isSet bool -} - -func (v NullableGetVotes200Response) Get() *GetVotes200Response { - return v.value -} - -func (v *NullableGetVotes200Response) Set(val *GetVotes200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetVotes200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetVotes200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetVotes200Response(val *GetVotes200Response) *NullableGetVotes200Response { - return &NullableGetVotes200Response{value: val, isSet: true} -} - -func (v NullableGetVotes200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetVotes200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_get_votes_for_user_200_response.go b/client/model_get_votes_for_user_200_response.go deleted file mode 100644 index b2a6f78..0000000 --- a/client/model_get_votes_for_user_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// GetVotesForUser200Response struct for GetVotesForUser200Response -type GetVotesForUser200Response struct { - APIError *APIError - GetVotesForUserResponse *GetVotesForUserResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *GetVotesForUser200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into GetVotesForUserResponse - err = json.Unmarshal(data, &dst.GetVotesForUserResponse); - if err == nil { - jsonGetVotesForUserResponse, _ := json.Marshal(dst.GetVotesForUserResponse) - if string(jsonGetVotesForUserResponse) == "{}" { // empty struct - dst.GetVotesForUserResponse = nil - } else { - return nil // data stored in dst.GetVotesForUserResponse, return on the first match - } - } else { - dst.GetVotesForUserResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(GetVotesForUser200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetVotesForUser200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.GetVotesForUserResponse != nil { - return json.Marshal(&src.GetVotesForUserResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableGetVotesForUser200Response struct { - value *GetVotesForUser200Response - isSet bool -} - -func (v NullableGetVotesForUser200Response) Get() *GetVotesForUser200Response { - return v.value -} - -func (v *NullableGetVotesForUser200Response) Set(val *GetVotesForUser200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetVotesForUser200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetVotesForUser200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetVotesForUser200Response(val *GetVotesForUser200Response) *NullableGetVotesForUser200Response { - return &NullableGetVotesForUser200Response{value: val, isSet: true} -} - -func (v NullableGetVotesForUser200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetVotesForUser200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_gif_get_large_response.go b/client/model_gif_get_large_response.go new file mode 100644 index 0000000..27be9fa --- /dev/null +++ b/client/model_gif_get_large_response.go @@ -0,0 +1,186 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the GifGetLargeResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GifGetLargeResponse{} + +// GifGetLargeResponse struct for GifGetLargeResponse +type GifGetLargeResponse struct { + Src string `json:"src"` + Status APIStatus `json:"status"` +} + +type _GifGetLargeResponse GifGetLargeResponse + +// NewGifGetLargeResponse instantiates a new GifGetLargeResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGifGetLargeResponse(src string, status APIStatus) *GifGetLargeResponse { + this := GifGetLargeResponse{} + this.Src = src + this.Status = status + return &this +} + +// NewGifGetLargeResponseWithDefaults instantiates a new GifGetLargeResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGifGetLargeResponseWithDefaults() *GifGetLargeResponse { + this := GifGetLargeResponse{} + return &this +} + +// GetSrc returns the Src field value +func (o *GifGetLargeResponse) GetSrc() string { + if o == nil { + var ret string + return ret + } + + return o.Src +} + +// GetSrcOk returns a tuple with the Src field value +// and a boolean to check if the value has been set. +func (o *GifGetLargeResponse) GetSrcOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Src, true +} + +// SetSrc sets field value +func (o *GifGetLargeResponse) SetSrc(v string) { + o.Src = v +} + +// GetStatus returns the Status field value +func (o *GifGetLargeResponse) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *GifGetLargeResponse) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *GifGetLargeResponse) SetStatus(v APIStatus) { + o.Status = v +} + +func (o GifGetLargeResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GifGetLargeResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["src"] = o.Src + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *GifGetLargeResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "src", + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGifGetLargeResponse := _GifGetLargeResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGifGetLargeResponse) + + if err != nil { + return err + } + + *o = GifGetLargeResponse(varGifGetLargeResponse) + + return err +} + +type NullableGifGetLargeResponse struct { + value *GifGetLargeResponse + isSet bool +} + +func (v NullableGifGetLargeResponse) Get() *GifGetLargeResponse { + return v.value +} + +func (v *NullableGifGetLargeResponse) Set(val *GifGetLargeResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGifGetLargeResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGifGetLargeResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGifGetLargeResponse(val *GifGetLargeResponse) *NullableGifGetLargeResponse { + return &NullableGifGetLargeResponse{value: val, isSet: true} +} + +func (v NullableGifGetLargeResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGifGetLargeResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_gif_search_internal_error.go b/client/model_gif_search_internal_error.go new file mode 100644 index 0000000..7f8c97a --- /dev/null +++ b/client/model_gif_search_internal_error.go @@ -0,0 +1,186 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the GifSearchInternalError type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GifSearchInternalError{} + +// GifSearchInternalError struct for GifSearchInternalError +type GifSearchInternalError struct { + Code string `json:"code"` + Status APIStatus `json:"status"` +} + +type _GifSearchInternalError GifSearchInternalError + +// NewGifSearchInternalError instantiates a new GifSearchInternalError object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGifSearchInternalError(code string, status APIStatus) *GifSearchInternalError { + this := GifSearchInternalError{} + this.Code = code + this.Status = status + return &this +} + +// NewGifSearchInternalErrorWithDefaults instantiates a new GifSearchInternalError object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGifSearchInternalErrorWithDefaults() *GifSearchInternalError { + this := GifSearchInternalError{} + return &this +} + +// GetCode returns the Code field value +func (o *GifSearchInternalError) GetCode() string { + if o == nil { + var ret string + return ret + } + + return o.Code +} + +// GetCodeOk returns a tuple with the Code field value +// and a boolean to check if the value has been set. +func (o *GifSearchInternalError) GetCodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Code, true +} + +// SetCode sets field value +func (o *GifSearchInternalError) SetCode(v string) { + o.Code = v +} + +// GetStatus returns the Status field value +func (o *GifSearchInternalError) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *GifSearchInternalError) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *GifSearchInternalError) SetStatus(v APIStatus) { + o.Status = v +} + +func (o GifSearchInternalError) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GifSearchInternalError) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["code"] = o.Code + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *GifSearchInternalError) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "code", + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGifSearchInternalError := _GifSearchInternalError{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGifSearchInternalError) + + if err != nil { + return err + } + + *o = GifSearchInternalError(varGifSearchInternalError) + + return err +} + +type NullableGifSearchInternalError struct { + value *GifSearchInternalError + isSet bool +} + +func (v NullableGifSearchInternalError) Get() *GifSearchInternalError { + return v.value +} + +func (v *NullableGifSearchInternalError) Set(val *GifSearchInternalError) { + v.value = val + v.isSet = true +} + +func (v NullableGifSearchInternalError) IsSet() bool { + return v.isSet +} + +func (v *NullableGifSearchInternalError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGifSearchInternalError(val *GifSearchInternalError) *NullableGifSearchInternalError { + return &NullableGifSearchInternalError{value: val, isSet: true} +} + +func (v NullableGifSearchInternalError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGifSearchInternalError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_gif_search_response.go b/client/model_gif_search_response.go new file mode 100644 index 0000000..6538cb5 --- /dev/null +++ b/client/model_gif_search_response.go @@ -0,0 +1,186 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the GifSearchResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GifSearchResponse{} + +// GifSearchResponse struct for GifSearchResponse +type GifSearchResponse struct { + Images [][]GifSearchResponseImagesInnerInner `json:"images"` + Status APIStatus `json:"status"` +} + +type _GifSearchResponse GifSearchResponse + +// NewGifSearchResponse instantiates a new GifSearchResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGifSearchResponse(images [][]GifSearchResponseImagesInnerInner, status APIStatus) *GifSearchResponse { + this := GifSearchResponse{} + this.Images = images + this.Status = status + return &this +} + +// NewGifSearchResponseWithDefaults instantiates a new GifSearchResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGifSearchResponseWithDefaults() *GifSearchResponse { + this := GifSearchResponse{} + return &this +} + +// GetImages returns the Images field value +func (o *GifSearchResponse) GetImages() [][]GifSearchResponseImagesInnerInner { + if o == nil { + var ret [][]GifSearchResponseImagesInnerInner + return ret + } + + return o.Images +} + +// GetImagesOk returns a tuple with the Images field value +// and a boolean to check if the value has been set. +func (o *GifSearchResponse) GetImagesOk() ([][]GifSearchResponseImagesInnerInner, bool) { + if o == nil { + return nil, false + } + return o.Images, true +} + +// SetImages sets field value +func (o *GifSearchResponse) SetImages(v [][]GifSearchResponseImagesInnerInner) { + o.Images = v +} + +// GetStatus returns the Status field value +func (o *GifSearchResponse) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *GifSearchResponse) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *GifSearchResponse) SetStatus(v APIStatus) { + o.Status = v +} + +func (o GifSearchResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GifSearchResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["images"] = o.Images + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *GifSearchResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "images", + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGifSearchResponse := _GifSearchResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGifSearchResponse) + + if err != nil { + return err + } + + *o = GifSearchResponse(varGifSearchResponse) + + return err +} + +type NullableGifSearchResponse struct { + value *GifSearchResponse + isSet bool +} + +func (v NullableGifSearchResponse) Get() *GifSearchResponse { + return v.value +} + +func (v *NullableGifSearchResponse) Set(val *GifSearchResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGifSearchResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGifSearchResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGifSearchResponse(val *GifSearchResponse) *NullableGifSearchResponse { + return &NullableGifSearchResponse{value: val, isSet: true} +} + +func (v NullableGifSearchResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGifSearchResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_record_string_string_or_number__value.go b/client/model_gif_search_response_images_inner_inner.go similarity index 56% rename from client/model_record_string_string_or_number__value.go rename to client/model_gif_search_response_images_inner_inner.go index 8b59bb3..a105e5b 100644 --- a/client/model_record_string_string_or_number__value.go +++ b/client/model_gif_search_response_images_inner_inner.go @@ -16,14 +16,14 @@ import ( ) -// RecordStringStringOrNumberValue struct for RecordStringStringOrNumberValue -type RecordStringStringOrNumberValue struct { +// GifSearchResponseImagesInnerInner struct for GifSearchResponseImagesInnerInner +type GifSearchResponseImagesInnerInner struct { Float64 *float64 String *string } // Unmarshal JSON data into any of the pointers in the struct -func (dst *RecordStringStringOrNumberValue) UnmarshalJSON(data []byte) error { +func (dst *GifSearchResponseImagesInnerInner) UnmarshalJSON(data []byte) error { var err error // try to unmarshal JSON data into Float64 err = json.Unmarshal(data, &dst.Float64); @@ -51,11 +51,11 @@ func (dst *RecordStringStringOrNumberValue) UnmarshalJSON(data []byte) error { dst.String = nil } - return fmt.Errorf("data failed to match schemas in anyOf(RecordStringStringOrNumberValue)") + return fmt.Errorf("data failed to match schemas in anyOf(GifSearchResponseImagesInnerInner)") } // Marshal data from the first non-nil pointers in the struct to JSON -func (src RecordStringStringOrNumberValue) MarshalJSON() ([]byte, error) { +func (src GifSearchResponseImagesInnerInner) MarshalJSON() ([]byte, error) { if src.Float64 != nil { return json.Marshal(&src.Float64) } @@ -68,38 +68,38 @@ func (src RecordStringStringOrNumberValue) MarshalJSON() ([]byte, error) { } -type NullableRecordStringStringOrNumberValue struct { - value *RecordStringStringOrNumberValue +type NullableGifSearchResponseImagesInnerInner struct { + value *GifSearchResponseImagesInnerInner isSet bool } -func (v NullableRecordStringStringOrNumberValue) Get() *RecordStringStringOrNumberValue { +func (v NullableGifSearchResponseImagesInnerInner) Get() *GifSearchResponseImagesInnerInner { return v.value } -func (v *NullableRecordStringStringOrNumberValue) Set(val *RecordStringStringOrNumberValue) { +func (v *NullableGifSearchResponseImagesInnerInner) Set(val *GifSearchResponseImagesInnerInner) { v.value = val v.isSet = true } -func (v NullableRecordStringStringOrNumberValue) IsSet() bool { +func (v NullableGifSearchResponseImagesInnerInner) IsSet() bool { return v.isSet } -func (v *NullableRecordStringStringOrNumberValue) Unset() { +func (v *NullableGifSearchResponseImagesInnerInner) Unset() { v.value = nil v.isSet = false } -func NewNullableRecordStringStringOrNumberValue(val *RecordStringStringOrNumberValue) *NullableRecordStringStringOrNumberValue { - return &NullableRecordStringStringOrNumberValue{value: val, isSet: true} +func NewNullableGifSearchResponseImagesInnerInner(val *GifSearchResponseImagesInnerInner) *NullableGifSearchResponseImagesInnerInner { + return &NullableGifSearchResponseImagesInnerInner{value: val, isSet: true} } -func (v NullableRecordStringStringOrNumberValue) MarshalJSON() ([]byte, error) { +func (v NullableGifSearchResponseImagesInnerInner) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableRecordStringStringOrNumberValue) UnmarshalJSON(src []byte) error { +func (v *NullableGifSearchResponseImagesInnerInner) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/client/model_header_account_notification.go b/client/model_header_account_notification.go index bf3916a..25f5287 100644 --- a/client/model_header_account_notification.go +++ b/client/model_header_account_notification.go @@ -33,6 +33,8 @@ type HeaderAccountNotification struct { LinkUrl NullableString `json:"linkUrl"` LinkText NullableString `json:"linkText"` CreatedAt time.Time `json:"createdAt"` + // Discriminator for notifications with a special layout/click handler (e.g. \"feedback-offer\"). + Type NullableString `json:"type,omitempty"` } type _HeaderAccountNotification HeaderAccountNotification @@ -287,6 +289,48 @@ func (o *HeaderAccountNotification) SetCreatedAt(v time.Time) { o.CreatedAt = v } +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *HeaderAccountNotification) GetType() string { + if o == nil || IsNil(o.Type.Get()) { + var ret string + return ret + } + return *o.Type.Get() +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *HeaderAccountNotification) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Type.Get(), o.Type.IsSet() +} + +// HasType returns a boolean if a field has been set. +func (o *HeaderAccountNotification) HasType() bool { + if o != nil && o.Type.IsSet() { + return true + } + + return false +} + +// SetType gets a reference to the given NullableString and assigns it to the Type field. +func (o *HeaderAccountNotification) SetType(v string) { + o.Type.Set(&v) +} +// SetTypeNil sets the value for Type to be an explicit nil +func (o *HeaderAccountNotification) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *HeaderAccountNotification) UnsetType() { + o.Type.Unset() +} + func (o HeaderAccountNotification) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -310,6 +354,9 @@ func (o HeaderAccountNotification) ToMap() (map[string]interface{}, error) { toSerialize["linkUrl"] = o.LinkUrl.Get() toSerialize["linkText"] = o.LinkText.Get() toSerialize["createdAt"] = o.CreatedAt + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() + } return toSerialize, nil } diff --git a/client/model_imported_agent_approval_notification_frequency.go b/client/model_imported_agent_approval_notification_frequency.go new file mode 100644 index 0000000..158a50b --- /dev/null +++ b/client/model_imported_agent_approval_notification_frequency.go @@ -0,0 +1,115 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "fmt" +) + +// ImportedAgentApprovalNotificationFrequency the model 'ImportedAgentApprovalNotificationFrequency' +type ImportedAgentApprovalNotificationFrequency int32 + +// List of ImportedAgentApprovalNotificationFrequency +const ( + IMPORTEDAGENTAPPROVALNOTIFICATIONFREQUENCY__MINUS_1 ImportedAgentApprovalNotificationFrequency = -1 + IMPORTEDAGENTAPPROVALNOTIFICATIONFREQUENCY__0 ImportedAgentApprovalNotificationFrequency = 0 + IMPORTEDAGENTAPPROVALNOTIFICATIONFREQUENCY__1 ImportedAgentApprovalNotificationFrequency = 1 + IMPORTEDAGENTAPPROVALNOTIFICATIONFREQUENCY__2 ImportedAgentApprovalNotificationFrequency = 2 +) + +// All allowed values of ImportedAgentApprovalNotificationFrequency enum +var AllowedImportedAgentApprovalNotificationFrequencyEnumValues = []ImportedAgentApprovalNotificationFrequency{ + -1, + 0, + 1, + 2, +} + +func (v *ImportedAgentApprovalNotificationFrequency) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ImportedAgentApprovalNotificationFrequency(value) + for _, existing := range AllowedImportedAgentApprovalNotificationFrequencyEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ImportedAgentApprovalNotificationFrequency", value) +} + +// NewImportedAgentApprovalNotificationFrequencyFromValue returns a pointer to a valid ImportedAgentApprovalNotificationFrequency +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewImportedAgentApprovalNotificationFrequencyFromValue(v int32) (*ImportedAgentApprovalNotificationFrequency, error) { + ev := ImportedAgentApprovalNotificationFrequency(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ImportedAgentApprovalNotificationFrequency: valid values are %v", v, AllowedImportedAgentApprovalNotificationFrequencyEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ImportedAgentApprovalNotificationFrequency) IsValid() bool { + for _, existing := range AllowedImportedAgentApprovalNotificationFrequencyEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ImportedAgentApprovalNotificationFrequency value +func (v ImportedAgentApprovalNotificationFrequency) Ptr() *ImportedAgentApprovalNotificationFrequency { + return &v +} + +type NullableImportedAgentApprovalNotificationFrequency struct { + value *ImportedAgentApprovalNotificationFrequency + isSet bool +} + +func (v NullableImportedAgentApprovalNotificationFrequency) Get() *ImportedAgentApprovalNotificationFrequency { + return v.value +} + +func (v *NullableImportedAgentApprovalNotificationFrequency) Set(val *ImportedAgentApprovalNotificationFrequency) { + v.value = val + v.isSet = true +} + +func (v NullableImportedAgentApprovalNotificationFrequency) IsSet() bool { + return v.isSet +} + +func (v *NullableImportedAgentApprovalNotificationFrequency) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableImportedAgentApprovalNotificationFrequency(val *ImportedAgentApprovalNotificationFrequency) *NullableImportedAgentApprovalNotificationFrequency { + return &NullableImportedAgentApprovalNotificationFrequency{value: val, isSet: true} +} + +func (v NullableImportedAgentApprovalNotificationFrequency) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableImportedAgentApprovalNotificationFrequency) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/client/model_live_event.go b/client/model_live_event.go index 1e046be..221a127 100644 --- a/client/model_live_event.go +++ b/client/model_live_event.go @@ -36,6 +36,7 @@ type LiveEvent struct { IsClosed *bool `json:"isClosed,omitempty"` Uj []string `json:"uj,omitempty"` Ul []string `json:"ul,omitempty"` + Sc *int32 `json:"sc,omitempty"` Changes *map[string]int32 `json:"changes,omitempty"` } @@ -531,6 +532,38 @@ func (o *LiveEvent) SetUl(v []string) { o.Ul = v } +// GetSc returns the Sc field value if set, zero value otherwise. +func (o *LiveEvent) GetSc() int32 { + if o == nil || IsNil(o.Sc) { + var ret int32 + return ret + } + return *o.Sc +} + +// GetScOk returns a tuple with the Sc field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LiveEvent) GetScOk() (*int32, bool) { + if o == nil || IsNil(o.Sc) { + return nil, false + } + return o.Sc, true +} + +// HasSc returns a boolean if a field has been set. +func (o *LiveEvent) HasSc() bool { + if o != nil && !IsNil(o.Sc) { + return true + } + + return false +} + +// SetSc gets a reference to the given int32 and assigns it to the Sc field. +func (o *LiveEvent) SetSc(v int32) { + o.Sc = &v +} + // GetChanges returns the Changes field value if set, zero value otherwise. func (o *LiveEvent) GetChanges() map[string]int32 { if o == nil || IsNil(o.Changes) { @@ -616,6 +649,9 @@ func (o LiveEvent) ToMap() (map[string]interface{}, error) { if !IsNil(o.Ul) { toSerialize["ul"] = o.Ul } + if !IsNil(o.Sc) { + toSerialize["sc"] = o.Sc + } if !IsNil(o.Changes) { toSerialize["changes"] = o.Changes } diff --git a/client/model_live_event_type.go b/client/model_live_event_type.go index ef05851..43fc0b3 100644 --- a/client/model_live_event_type.go +++ b/client/model_live_event_type.go @@ -37,6 +37,12 @@ const ( LIVEEVENTTYPE_NEW_FEED_POST LiveEventType = "new-feed-post" LIVEEVENTTYPE_UPDATED_FEED_POST LiveEventType = "updated-feed-post" LIVEEVENTTYPE_DELETED_FEED_POST LiveEventType = "deleted-feed-post" + LIVEEVENTTYPE_NEW_TICKET LiveEventType = "new-ticket" + LIVEEVENTTYPE_UPDATED_TICKET_STATE LiveEventType = "updated-ticket-state" + LIVEEVENTTYPE_UPDATED_TICKET_ASSIGNMENT LiveEventType = "updated-ticket-assignment" + LIVEEVENTTYPE_DELETED_TICKET LiveEventType = "deleted-ticket" + LIVEEVENTTYPE_PAGE_REACT LiveEventType = "page-react" + LIVEEVENTTYPE_QUESTION_RESULT LiveEventType = "question-result" ) // All allowed values of LiveEventType enum @@ -58,6 +64,12 @@ var AllowedLiveEventTypeEnumValues = []LiveEventType{ "new-feed-post", "updated-feed-post", "deleted-feed-post", + "new-ticket", + "updated-ticket-state", + "updated-ticket-assignment", + "deleted-ticket", + "page-react", + "question-result", } func (v *LiveEventType) UnmarshalJSON(src []byte) error { diff --git a/client/model_lock_comment_200_response.go b/client/model_lock_comment_200_response.go deleted file mode 100644 index 794c213..0000000 --- a/client/model_lock_comment_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// LockComment200Response struct for LockComment200Response -type LockComment200Response struct { - APIEmptyResponse *APIEmptyResponse - APIError *APIError -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *LockComment200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIEmptyResponse - err = json.Unmarshal(data, &dst.APIEmptyResponse); - if err == nil { - jsonAPIEmptyResponse, _ := json.Marshal(dst.APIEmptyResponse) - if string(jsonAPIEmptyResponse) == "{}" { // empty struct - dst.APIEmptyResponse = nil - } else { - return nil // data stored in dst.APIEmptyResponse, return on the first match - } - } else { - dst.APIEmptyResponse = nil - } - - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(LockComment200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src LockComment200Response) MarshalJSON() ([]byte, error) { - if src.APIEmptyResponse != nil { - return json.Marshal(&src.APIEmptyResponse) - } - - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableLockComment200Response struct { - value *LockComment200Response - isSet bool -} - -func (v NullableLockComment200Response) Get() *LockComment200Response { - return v.value -} - -func (v *NullableLockComment200Response) Set(val *LockComment200Response) { - v.value = val - v.isSet = true -} - -func (v NullableLockComment200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableLockComment200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLockComment200Response(val *LockComment200Response) *NullableLockComment200Response { - return &NullableLockComment200Response{value: val, isSet: true} -} - -func (v NullableLockComment200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableLockComment200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_moderation_api_child_comments_response.go b/client/model_moderation_api_child_comments_response.go new file mode 100644 index 0000000..07081ef --- /dev/null +++ b/client/model_moderation_api_child_comments_response.go @@ -0,0 +1,186 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the ModerationAPIChildCommentsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModerationAPIChildCommentsResponse{} + +// ModerationAPIChildCommentsResponse struct for ModerationAPIChildCommentsResponse +type ModerationAPIChildCommentsResponse struct { + Comments []ModerationAPIComment `json:"comments"` + Status APIStatus `json:"status"` +} + +type _ModerationAPIChildCommentsResponse ModerationAPIChildCommentsResponse + +// NewModerationAPIChildCommentsResponse instantiates a new ModerationAPIChildCommentsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModerationAPIChildCommentsResponse(comments []ModerationAPIComment, status APIStatus) *ModerationAPIChildCommentsResponse { + this := ModerationAPIChildCommentsResponse{} + this.Comments = comments + this.Status = status + return &this +} + +// NewModerationAPIChildCommentsResponseWithDefaults instantiates a new ModerationAPIChildCommentsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModerationAPIChildCommentsResponseWithDefaults() *ModerationAPIChildCommentsResponse { + this := ModerationAPIChildCommentsResponse{} + return &this +} + +// GetComments returns the Comments field value +func (o *ModerationAPIChildCommentsResponse) GetComments() []ModerationAPIComment { + if o == nil { + var ret []ModerationAPIComment + return ret + } + + return o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value +// and a boolean to check if the value has been set. +func (o *ModerationAPIChildCommentsResponse) GetCommentsOk() ([]ModerationAPIComment, bool) { + if o == nil { + return nil, false + } + return o.Comments, true +} + +// SetComments sets field value +func (o *ModerationAPIChildCommentsResponse) SetComments(v []ModerationAPIComment) { + o.Comments = v +} + +// GetStatus returns the Status field value +func (o *ModerationAPIChildCommentsResponse) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *ModerationAPIChildCommentsResponse) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *ModerationAPIChildCommentsResponse) SetStatus(v APIStatus) { + o.Status = v +} + +func (o ModerationAPIChildCommentsResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModerationAPIChildCommentsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["comments"] = o.Comments + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *ModerationAPIChildCommentsResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "comments", + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varModerationAPIChildCommentsResponse := _ModerationAPIChildCommentsResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varModerationAPIChildCommentsResponse) + + if err != nil { + return err + } + + *o = ModerationAPIChildCommentsResponse(varModerationAPIChildCommentsResponse) + + return err +} + +type NullableModerationAPIChildCommentsResponse struct { + value *ModerationAPIChildCommentsResponse + isSet bool +} + +func (v NullableModerationAPIChildCommentsResponse) Get() *ModerationAPIChildCommentsResponse { + return v.value +} + +func (v *NullableModerationAPIChildCommentsResponse) Set(val *ModerationAPIChildCommentsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModerationAPIChildCommentsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModerationAPIChildCommentsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModerationAPIChildCommentsResponse(val *ModerationAPIChildCommentsResponse) *NullableModerationAPIChildCommentsResponse { + return &NullableModerationAPIChildCommentsResponse{value: val, isSet: true} +} + +func (v NullableModerationAPIChildCommentsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModerationAPIChildCommentsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_moderation_api_comment.go b/client/model_moderation_api_comment.go new file mode 100644 index 0000000..0636c15 --- /dev/null +++ b/client/model_moderation_api_comment.go @@ -0,0 +1,1718 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "time" + "bytes" + "fmt" +) + +// checks if the ModerationAPIComment type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModerationAPIComment{} + +// ModerationAPIComment struct for ModerationAPIComment +type ModerationAPIComment struct { + IsLocalDeleted *bool `json:"isLocalDeleted,omitempty"` + ReplyCount *float64 `json:"replyCount,omitempty"` + FeedbackResults []string `json:"feedbackResults,omitempty"` + IsVotedUp *bool `json:"isVotedUp,omitempty"` + IsVotedDown *bool `json:"isVotedDown,omitempty"` + MyVoteId *string `json:"myVoteId,omitempty"` + Id string `json:"_id"` + TenantId string `json:"tenantId"` + UrlId string `json:"urlId"` + Url string `json:"url"` + PageTitle NullableString `json:"pageTitle,omitempty"` + UserId NullableString `json:"userId,omitempty"` + AnonUserId NullableString `json:"anonUserId,omitempty"` + CommenterName string `json:"commenterName"` + CommenterLink NullableString `json:"commenterLink,omitempty"` + CommentHTML string `json:"commentHTML"` + ParentId NullableString `json:"parentId,omitempty"` + Date NullableTime `json:"date"` + LocalDateString NullableString `json:"localDateString,omitempty"` + Votes NullableFloat64 `json:"votes,omitempty"` + VotesUp NullableFloat64 `json:"votesUp,omitempty"` + VotesDown NullableFloat64 `json:"votesDown,omitempty"` + ExpireAt NullableTime `json:"expireAt,omitempty"` + Reviewed *bool `json:"reviewed,omitempty"` + AvatarSrc NullableString `json:"avatarSrc,omitempty"` + IsSpam *bool `json:"isSpam,omitempty"` + PermNotSpam *bool `json:"permNotSpam,omitempty"` + HasLinks *bool `json:"hasLinks,omitempty"` + HasCode *bool `json:"hasCode,omitempty"` + Approved bool `json:"approved"` + Locale NullableString `json:"locale"` + IsBannedUser *bool `json:"isBannedUser,omitempty"` + IsByAdmin *bool `json:"isByAdmin,omitempty"` + IsByModerator *bool `json:"isByModerator,omitempty"` + IsPinned NullableBool `json:"isPinned,omitempty"` + IsLocked NullableBool `json:"isLocked,omitempty"` + FlagCount NullableFloat64 `json:"flagCount,omitempty"` + DisplayLabel NullableString `json:"displayLabel,omitempty"` + Badges []CommentUserBadgeInfo `json:"badges,omitempty"` + Verified bool `json:"verified"` + FeedbackIds []string `json:"feedbackIds,omitempty"` + IsDeleted *bool `json:"isDeleted,omitempty"` +} + +type _ModerationAPIComment ModerationAPIComment + +// NewModerationAPIComment instantiates a new ModerationAPIComment object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModerationAPIComment(id string, tenantId string, urlId string, url string, commenterName string, commentHTML string, date NullableTime, approved bool, locale NullableString, verified bool) *ModerationAPIComment { + this := ModerationAPIComment{} + this.Id = id + this.TenantId = tenantId + this.UrlId = urlId + this.Url = url + this.CommenterName = commenterName + this.CommentHTML = commentHTML + this.Date = date + this.Approved = approved + this.Locale = locale + this.Verified = verified + return &this +} + +// NewModerationAPICommentWithDefaults instantiates a new ModerationAPIComment object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModerationAPICommentWithDefaults() *ModerationAPIComment { + this := ModerationAPIComment{} + return &this +} + +// GetIsLocalDeleted returns the IsLocalDeleted field value if set, zero value otherwise. +func (o *ModerationAPIComment) GetIsLocalDeleted() bool { + if o == nil || IsNil(o.IsLocalDeleted) { + var ret bool + return ret + } + return *o.IsLocalDeleted +} + +// GetIsLocalDeletedOk returns a tuple with the IsLocalDeleted field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModerationAPIComment) GetIsLocalDeletedOk() (*bool, bool) { + if o == nil || IsNil(o.IsLocalDeleted) { + return nil, false + } + return o.IsLocalDeleted, true +} + +// HasIsLocalDeleted returns a boolean if a field has been set. +func (o *ModerationAPIComment) HasIsLocalDeleted() bool { + if o != nil && !IsNil(o.IsLocalDeleted) { + return true + } + + return false +} + +// SetIsLocalDeleted gets a reference to the given bool and assigns it to the IsLocalDeleted field. +func (o *ModerationAPIComment) SetIsLocalDeleted(v bool) { + o.IsLocalDeleted = &v +} + +// GetReplyCount returns the ReplyCount field value if set, zero value otherwise. +func (o *ModerationAPIComment) GetReplyCount() float64 { + if o == nil || IsNil(o.ReplyCount) { + var ret float64 + return ret + } + return *o.ReplyCount +} + +// GetReplyCountOk returns a tuple with the ReplyCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModerationAPIComment) GetReplyCountOk() (*float64, bool) { + if o == nil || IsNil(o.ReplyCount) { + return nil, false + } + return o.ReplyCount, true +} + +// HasReplyCount returns a boolean if a field has been set. +func (o *ModerationAPIComment) HasReplyCount() bool { + if o != nil && !IsNil(o.ReplyCount) { + return true + } + + return false +} + +// SetReplyCount gets a reference to the given float64 and assigns it to the ReplyCount field. +func (o *ModerationAPIComment) SetReplyCount(v float64) { + o.ReplyCount = &v +} + +// GetFeedbackResults returns the FeedbackResults field value if set, zero value otherwise. +func (o *ModerationAPIComment) GetFeedbackResults() []string { + if o == nil || IsNil(o.FeedbackResults) { + var ret []string + return ret + } + return o.FeedbackResults +} + +// GetFeedbackResultsOk returns a tuple with the FeedbackResults field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModerationAPIComment) GetFeedbackResultsOk() ([]string, bool) { + if o == nil || IsNil(o.FeedbackResults) { + return nil, false + } + return o.FeedbackResults, true +} + +// HasFeedbackResults returns a boolean if a field has been set. +func (o *ModerationAPIComment) HasFeedbackResults() bool { + if o != nil && !IsNil(o.FeedbackResults) { + return true + } + + return false +} + +// SetFeedbackResults gets a reference to the given []string and assigns it to the FeedbackResults field. +func (o *ModerationAPIComment) SetFeedbackResults(v []string) { + o.FeedbackResults = v +} + +// GetIsVotedUp returns the IsVotedUp field value if set, zero value otherwise. +func (o *ModerationAPIComment) GetIsVotedUp() bool { + if o == nil || IsNil(o.IsVotedUp) { + var ret bool + return ret + } + return *o.IsVotedUp +} + +// GetIsVotedUpOk returns a tuple with the IsVotedUp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModerationAPIComment) GetIsVotedUpOk() (*bool, bool) { + if o == nil || IsNil(o.IsVotedUp) { + return nil, false + } + return o.IsVotedUp, true +} + +// HasIsVotedUp returns a boolean if a field has been set. +func (o *ModerationAPIComment) HasIsVotedUp() bool { + if o != nil && !IsNil(o.IsVotedUp) { + return true + } + + return false +} + +// SetIsVotedUp gets a reference to the given bool and assigns it to the IsVotedUp field. +func (o *ModerationAPIComment) SetIsVotedUp(v bool) { + o.IsVotedUp = &v +} + +// GetIsVotedDown returns the IsVotedDown field value if set, zero value otherwise. +func (o *ModerationAPIComment) GetIsVotedDown() bool { + if o == nil || IsNil(o.IsVotedDown) { + var ret bool + return ret + } + return *o.IsVotedDown +} + +// GetIsVotedDownOk returns a tuple with the IsVotedDown field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModerationAPIComment) GetIsVotedDownOk() (*bool, bool) { + if o == nil || IsNil(o.IsVotedDown) { + return nil, false + } + return o.IsVotedDown, true +} + +// HasIsVotedDown returns a boolean if a field has been set. +func (o *ModerationAPIComment) HasIsVotedDown() bool { + if o != nil && !IsNil(o.IsVotedDown) { + return true + } + + return false +} + +// SetIsVotedDown gets a reference to the given bool and assigns it to the IsVotedDown field. +func (o *ModerationAPIComment) SetIsVotedDown(v bool) { + o.IsVotedDown = &v +} + +// GetMyVoteId returns the MyVoteId field value if set, zero value otherwise. +func (o *ModerationAPIComment) GetMyVoteId() string { + if o == nil || IsNil(o.MyVoteId) { + var ret string + return ret + } + return *o.MyVoteId +} + +// GetMyVoteIdOk returns a tuple with the MyVoteId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModerationAPIComment) GetMyVoteIdOk() (*string, bool) { + if o == nil || IsNil(o.MyVoteId) { + return nil, false + } + return o.MyVoteId, true +} + +// HasMyVoteId returns a boolean if a field has been set. +func (o *ModerationAPIComment) HasMyVoteId() bool { + if o != nil && !IsNil(o.MyVoteId) { + return true + } + + return false +} + +// SetMyVoteId gets a reference to the given string and assigns it to the MyVoteId field. +func (o *ModerationAPIComment) SetMyVoteId(v string) { + o.MyVoteId = &v +} + +// GetId returns the Id field value +func (o *ModerationAPIComment) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ModerationAPIComment) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ModerationAPIComment) SetId(v string) { + o.Id = v +} + +// GetTenantId returns the TenantId field value +func (o *ModerationAPIComment) GetTenantId() string { + if o == nil { + var ret string + return ret + } + + return o.TenantId +} + +// GetTenantIdOk returns a tuple with the TenantId field value +// and a boolean to check if the value has been set. +func (o *ModerationAPIComment) GetTenantIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TenantId, true +} + +// SetTenantId sets field value +func (o *ModerationAPIComment) SetTenantId(v string) { + o.TenantId = v +} + +// GetUrlId returns the UrlId field value +func (o *ModerationAPIComment) GetUrlId() string { + if o == nil { + var ret string + return ret + } + + return o.UrlId +} + +// GetUrlIdOk returns a tuple with the UrlId field value +// and a boolean to check if the value has been set. +func (o *ModerationAPIComment) GetUrlIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UrlId, true +} + +// SetUrlId sets field value +func (o *ModerationAPIComment) SetUrlId(v string) { + o.UrlId = v +} + +// GetUrl returns the Url field value +func (o *ModerationAPIComment) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *ModerationAPIComment) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *ModerationAPIComment) SetUrl(v string) { + o.Url = v +} + +// GetPageTitle returns the PageTitle field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModerationAPIComment) GetPageTitle() string { + if o == nil || IsNil(o.PageTitle.Get()) { + var ret string + return ret + } + return *o.PageTitle.Get() +} + +// GetPageTitleOk returns a tuple with the PageTitle field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModerationAPIComment) GetPageTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PageTitle.Get(), o.PageTitle.IsSet() +} + +// HasPageTitle returns a boolean if a field has been set. +func (o *ModerationAPIComment) HasPageTitle() bool { + if o != nil && o.PageTitle.IsSet() { + return true + } + + return false +} + +// SetPageTitle gets a reference to the given NullableString and assigns it to the PageTitle field. +func (o *ModerationAPIComment) SetPageTitle(v string) { + o.PageTitle.Set(&v) +} +// SetPageTitleNil sets the value for PageTitle to be an explicit nil +func (o *ModerationAPIComment) SetPageTitleNil() { + o.PageTitle.Set(nil) +} + +// UnsetPageTitle ensures that no value is present for PageTitle, not even an explicit nil +func (o *ModerationAPIComment) UnsetPageTitle() { + o.PageTitle.Unset() +} + +// GetUserId returns the UserId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModerationAPIComment) GetUserId() string { + if o == nil || IsNil(o.UserId.Get()) { + var ret string + return ret + } + return *o.UserId.Get() +} + +// GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModerationAPIComment) GetUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.UserId.Get(), o.UserId.IsSet() +} + +// HasUserId returns a boolean if a field has been set. +func (o *ModerationAPIComment) HasUserId() bool { + if o != nil && o.UserId.IsSet() { + return true + } + + return false +} + +// SetUserId gets a reference to the given NullableString and assigns it to the UserId field. +func (o *ModerationAPIComment) SetUserId(v string) { + o.UserId.Set(&v) +} +// SetUserIdNil sets the value for UserId to be an explicit nil +func (o *ModerationAPIComment) SetUserIdNil() { + o.UserId.Set(nil) +} + +// UnsetUserId ensures that no value is present for UserId, not even an explicit nil +func (o *ModerationAPIComment) UnsetUserId() { + o.UserId.Unset() +} + +// GetAnonUserId returns the AnonUserId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModerationAPIComment) GetAnonUserId() string { + if o == nil || IsNil(o.AnonUserId.Get()) { + var ret string + return ret + } + return *o.AnonUserId.Get() +} + +// GetAnonUserIdOk returns a tuple with the AnonUserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModerationAPIComment) GetAnonUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AnonUserId.Get(), o.AnonUserId.IsSet() +} + +// HasAnonUserId returns a boolean if a field has been set. +func (o *ModerationAPIComment) HasAnonUserId() bool { + if o != nil && o.AnonUserId.IsSet() { + return true + } + + return false +} + +// SetAnonUserId gets a reference to the given NullableString and assigns it to the AnonUserId field. +func (o *ModerationAPIComment) SetAnonUserId(v string) { + o.AnonUserId.Set(&v) +} +// SetAnonUserIdNil sets the value for AnonUserId to be an explicit nil +func (o *ModerationAPIComment) SetAnonUserIdNil() { + o.AnonUserId.Set(nil) +} + +// UnsetAnonUserId ensures that no value is present for AnonUserId, not even an explicit nil +func (o *ModerationAPIComment) UnsetAnonUserId() { + o.AnonUserId.Unset() +} + +// GetCommenterName returns the CommenterName field value +func (o *ModerationAPIComment) GetCommenterName() string { + if o == nil { + var ret string + return ret + } + + return o.CommenterName +} + +// GetCommenterNameOk returns a tuple with the CommenterName field value +// and a boolean to check if the value has been set. +func (o *ModerationAPIComment) GetCommenterNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CommenterName, true +} + +// SetCommenterName sets field value +func (o *ModerationAPIComment) SetCommenterName(v string) { + o.CommenterName = v +} + +// GetCommenterLink returns the CommenterLink field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModerationAPIComment) GetCommenterLink() string { + if o == nil || IsNil(o.CommenterLink.Get()) { + var ret string + return ret + } + return *o.CommenterLink.Get() +} + +// GetCommenterLinkOk returns a tuple with the CommenterLink field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModerationAPIComment) GetCommenterLinkOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CommenterLink.Get(), o.CommenterLink.IsSet() +} + +// HasCommenterLink returns a boolean if a field has been set. +func (o *ModerationAPIComment) HasCommenterLink() bool { + if o != nil && o.CommenterLink.IsSet() { + return true + } + + return false +} + +// SetCommenterLink gets a reference to the given NullableString and assigns it to the CommenterLink field. +func (o *ModerationAPIComment) SetCommenterLink(v string) { + o.CommenterLink.Set(&v) +} +// SetCommenterLinkNil sets the value for CommenterLink to be an explicit nil +func (o *ModerationAPIComment) SetCommenterLinkNil() { + o.CommenterLink.Set(nil) +} + +// UnsetCommenterLink ensures that no value is present for CommenterLink, not even an explicit nil +func (o *ModerationAPIComment) UnsetCommenterLink() { + o.CommenterLink.Unset() +} + +// GetCommentHTML returns the CommentHTML field value +func (o *ModerationAPIComment) GetCommentHTML() string { + if o == nil { + var ret string + return ret + } + + return o.CommentHTML +} + +// GetCommentHTMLOk returns a tuple with the CommentHTML field value +// and a boolean to check if the value has been set. +func (o *ModerationAPIComment) GetCommentHTMLOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CommentHTML, true +} + +// SetCommentHTML sets field value +func (o *ModerationAPIComment) SetCommentHTML(v string) { + o.CommentHTML = v +} + +// GetParentId returns the ParentId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModerationAPIComment) GetParentId() string { + if o == nil || IsNil(o.ParentId.Get()) { + var ret string + return ret + } + return *o.ParentId.Get() +} + +// GetParentIdOk returns a tuple with the ParentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModerationAPIComment) GetParentIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ParentId.Get(), o.ParentId.IsSet() +} + +// HasParentId returns a boolean if a field has been set. +func (o *ModerationAPIComment) HasParentId() bool { + if o != nil && o.ParentId.IsSet() { + return true + } + + return false +} + +// SetParentId gets a reference to the given NullableString and assigns it to the ParentId field. +func (o *ModerationAPIComment) SetParentId(v string) { + o.ParentId.Set(&v) +} +// SetParentIdNil sets the value for ParentId to be an explicit nil +func (o *ModerationAPIComment) SetParentIdNil() { + o.ParentId.Set(nil) +} + +// UnsetParentId ensures that no value is present for ParentId, not even an explicit nil +func (o *ModerationAPIComment) UnsetParentId() { + o.ParentId.Unset() +} + +// GetDate returns the Date field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *ModerationAPIComment) GetDate() time.Time { + if o == nil || o.Date.Get() == nil { + var ret time.Time + return ret + } + + return *o.Date.Get() +} + +// GetDateOk returns a tuple with the Date field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModerationAPIComment) GetDateOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Date.Get(), o.Date.IsSet() +} + +// SetDate sets field value +func (o *ModerationAPIComment) SetDate(v time.Time) { + o.Date.Set(&v) +} + +// GetLocalDateString returns the LocalDateString field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModerationAPIComment) GetLocalDateString() string { + if o == nil || IsNil(o.LocalDateString.Get()) { + var ret string + return ret + } + return *o.LocalDateString.Get() +} + +// GetLocalDateStringOk returns a tuple with the LocalDateString field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModerationAPIComment) GetLocalDateStringOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.LocalDateString.Get(), o.LocalDateString.IsSet() +} + +// HasLocalDateString returns a boolean if a field has been set. +func (o *ModerationAPIComment) HasLocalDateString() bool { + if o != nil && o.LocalDateString.IsSet() { + return true + } + + return false +} + +// SetLocalDateString gets a reference to the given NullableString and assigns it to the LocalDateString field. +func (o *ModerationAPIComment) SetLocalDateString(v string) { + o.LocalDateString.Set(&v) +} +// SetLocalDateStringNil sets the value for LocalDateString to be an explicit nil +func (o *ModerationAPIComment) SetLocalDateStringNil() { + o.LocalDateString.Set(nil) +} + +// UnsetLocalDateString ensures that no value is present for LocalDateString, not even an explicit nil +func (o *ModerationAPIComment) UnsetLocalDateString() { + o.LocalDateString.Unset() +} + +// GetVotes returns the Votes field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModerationAPIComment) GetVotes() float64 { + if o == nil || IsNil(o.Votes.Get()) { + var ret float64 + return ret + } + return *o.Votes.Get() +} + +// GetVotesOk returns a tuple with the Votes field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModerationAPIComment) GetVotesOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Votes.Get(), o.Votes.IsSet() +} + +// HasVotes returns a boolean if a field has been set. +func (o *ModerationAPIComment) HasVotes() bool { + if o != nil && o.Votes.IsSet() { + return true + } + + return false +} + +// SetVotes gets a reference to the given NullableFloat64 and assigns it to the Votes field. +func (o *ModerationAPIComment) SetVotes(v float64) { + o.Votes.Set(&v) +} +// SetVotesNil sets the value for Votes to be an explicit nil +func (o *ModerationAPIComment) SetVotesNil() { + o.Votes.Set(nil) +} + +// UnsetVotes ensures that no value is present for Votes, not even an explicit nil +func (o *ModerationAPIComment) UnsetVotes() { + o.Votes.Unset() +} + +// GetVotesUp returns the VotesUp field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModerationAPIComment) GetVotesUp() float64 { + if o == nil || IsNil(o.VotesUp.Get()) { + var ret float64 + return ret + } + return *o.VotesUp.Get() +} + +// GetVotesUpOk returns a tuple with the VotesUp field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModerationAPIComment) GetVotesUpOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.VotesUp.Get(), o.VotesUp.IsSet() +} + +// HasVotesUp returns a boolean if a field has been set. +func (o *ModerationAPIComment) HasVotesUp() bool { + if o != nil && o.VotesUp.IsSet() { + return true + } + + return false +} + +// SetVotesUp gets a reference to the given NullableFloat64 and assigns it to the VotesUp field. +func (o *ModerationAPIComment) SetVotesUp(v float64) { + o.VotesUp.Set(&v) +} +// SetVotesUpNil sets the value for VotesUp to be an explicit nil +func (o *ModerationAPIComment) SetVotesUpNil() { + o.VotesUp.Set(nil) +} + +// UnsetVotesUp ensures that no value is present for VotesUp, not even an explicit nil +func (o *ModerationAPIComment) UnsetVotesUp() { + o.VotesUp.Unset() +} + +// GetVotesDown returns the VotesDown field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModerationAPIComment) GetVotesDown() float64 { + if o == nil || IsNil(o.VotesDown.Get()) { + var ret float64 + return ret + } + return *o.VotesDown.Get() +} + +// GetVotesDownOk returns a tuple with the VotesDown field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModerationAPIComment) GetVotesDownOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.VotesDown.Get(), o.VotesDown.IsSet() +} + +// HasVotesDown returns a boolean if a field has been set. +func (o *ModerationAPIComment) HasVotesDown() bool { + if o != nil && o.VotesDown.IsSet() { + return true + } + + return false +} + +// SetVotesDown gets a reference to the given NullableFloat64 and assigns it to the VotesDown field. +func (o *ModerationAPIComment) SetVotesDown(v float64) { + o.VotesDown.Set(&v) +} +// SetVotesDownNil sets the value for VotesDown to be an explicit nil +func (o *ModerationAPIComment) SetVotesDownNil() { + o.VotesDown.Set(nil) +} + +// UnsetVotesDown ensures that no value is present for VotesDown, not even an explicit nil +func (o *ModerationAPIComment) UnsetVotesDown() { + o.VotesDown.Unset() +} + +// GetExpireAt returns the ExpireAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModerationAPIComment) GetExpireAt() time.Time { + if o == nil || IsNil(o.ExpireAt.Get()) { + var ret time.Time + return ret + } + return *o.ExpireAt.Get() +} + +// GetExpireAtOk returns a tuple with the ExpireAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModerationAPIComment) GetExpireAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.ExpireAt.Get(), o.ExpireAt.IsSet() +} + +// HasExpireAt returns a boolean if a field has been set. +func (o *ModerationAPIComment) HasExpireAt() bool { + if o != nil && o.ExpireAt.IsSet() { + return true + } + + return false +} + +// SetExpireAt gets a reference to the given NullableTime and assigns it to the ExpireAt field. +func (o *ModerationAPIComment) SetExpireAt(v time.Time) { + o.ExpireAt.Set(&v) +} +// SetExpireAtNil sets the value for ExpireAt to be an explicit nil +func (o *ModerationAPIComment) SetExpireAtNil() { + o.ExpireAt.Set(nil) +} + +// UnsetExpireAt ensures that no value is present for ExpireAt, not even an explicit nil +func (o *ModerationAPIComment) UnsetExpireAt() { + o.ExpireAt.Unset() +} + +// GetReviewed returns the Reviewed field value if set, zero value otherwise. +func (o *ModerationAPIComment) GetReviewed() bool { + if o == nil || IsNil(o.Reviewed) { + var ret bool + return ret + } + return *o.Reviewed +} + +// GetReviewedOk returns a tuple with the Reviewed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModerationAPIComment) GetReviewedOk() (*bool, bool) { + if o == nil || IsNil(o.Reviewed) { + return nil, false + } + return o.Reviewed, true +} + +// HasReviewed returns a boolean if a field has been set. +func (o *ModerationAPIComment) HasReviewed() bool { + if o != nil && !IsNil(o.Reviewed) { + return true + } + + return false +} + +// SetReviewed gets a reference to the given bool and assigns it to the Reviewed field. +func (o *ModerationAPIComment) SetReviewed(v bool) { + o.Reviewed = &v +} + +// GetAvatarSrc returns the AvatarSrc field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModerationAPIComment) GetAvatarSrc() string { + if o == nil || IsNil(o.AvatarSrc.Get()) { + var ret string + return ret + } + return *o.AvatarSrc.Get() +} + +// GetAvatarSrcOk returns a tuple with the AvatarSrc field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModerationAPIComment) GetAvatarSrcOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AvatarSrc.Get(), o.AvatarSrc.IsSet() +} + +// HasAvatarSrc returns a boolean if a field has been set. +func (o *ModerationAPIComment) HasAvatarSrc() bool { + if o != nil && o.AvatarSrc.IsSet() { + return true + } + + return false +} + +// SetAvatarSrc gets a reference to the given NullableString and assigns it to the AvatarSrc field. +func (o *ModerationAPIComment) SetAvatarSrc(v string) { + o.AvatarSrc.Set(&v) +} +// SetAvatarSrcNil sets the value for AvatarSrc to be an explicit nil +func (o *ModerationAPIComment) SetAvatarSrcNil() { + o.AvatarSrc.Set(nil) +} + +// UnsetAvatarSrc ensures that no value is present for AvatarSrc, not even an explicit nil +func (o *ModerationAPIComment) UnsetAvatarSrc() { + o.AvatarSrc.Unset() +} + +// GetIsSpam returns the IsSpam field value if set, zero value otherwise. +func (o *ModerationAPIComment) GetIsSpam() bool { + if o == nil || IsNil(o.IsSpam) { + var ret bool + return ret + } + return *o.IsSpam +} + +// GetIsSpamOk returns a tuple with the IsSpam field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModerationAPIComment) GetIsSpamOk() (*bool, bool) { + if o == nil || IsNil(o.IsSpam) { + return nil, false + } + return o.IsSpam, true +} + +// HasIsSpam returns a boolean if a field has been set. +func (o *ModerationAPIComment) HasIsSpam() bool { + if o != nil && !IsNil(o.IsSpam) { + return true + } + + return false +} + +// SetIsSpam gets a reference to the given bool and assigns it to the IsSpam field. +func (o *ModerationAPIComment) SetIsSpam(v bool) { + o.IsSpam = &v +} + +// GetPermNotSpam returns the PermNotSpam field value if set, zero value otherwise. +func (o *ModerationAPIComment) GetPermNotSpam() bool { + if o == nil || IsNil(o.PermNotSpam) { + var ret bool + return ret + } + return *o.PermNotSpam +} + +// GetPermNotSpamOk returns a tuple with the PermNotSpam field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModerationAPIComment) GetPermNotSpamOk() (*bool, bool) { + if o == nil || IsNil(o.PermNotSpam) { + return nil, false + } + return o.PermNotSpam, true +} + +// HasPermNotSpam returns a boolean if a field has been set. +func (o *ModerationAPIComment) HasPermNotSpam() bool { + if o != nil && !IsNil(o.PermNotSpam) { + return true + } + + return false +} + +// SetPermNotSpam gets a reference to the given bool and assigns it to the PermNotSpam field. +func (o *ModerationAPIComment) SetPermNotSpam(v bool) { + o.PermNotSpam = &v +} + +// GetHasLinks returns the HasLinks field value if set, zero value otherwise. +func (o *ModerationAPIComment) GetHasLinks() bool { + if o == nil || IsNil(o.HasLinks) { + var ret bool + return ret + } + return *o.HasLinks +} + +// GetHasLinksOk returns a tuple with the HasLinks field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModerationAPIComment) GetHasLinksOk() (*bool, bool) { + if o == nil || IsNil(o.HasLinks) { + return nil, false + } + return o.HasLinks, true +} + +// HasHasLinks returns a boolean if a field has been set. +func (o *ModerationAPIComment) HasHasLinks() bool { + if o != nil && !IsNil(o.HasLinks) { + return true + } + + return false +} + +// SetHasLinks gets a reference to the given bool and assigns it to the HasLinks field. +func (o *ModerationAPIComment) SetHasLinks(v bool) { + o.HasLinks = &v +} + +// GetHasCode returns the HasCode field value if set, zero value otherwise. +func (o *ModerationAPIComment) GetHasCode() bool { + if o == nil || IsNil(o.HasCode) { + var ret bool + return ret + } + return *o.HasCode +} + +// GetHasCodeOk returns a tuple with the HasCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModerationAPIComment) GetHasCodeOk() (*bool, bool) { + if o == nil || IsNil(o.HasCode) { + return nil, false + } + return o.HasCode, true +} + +// HasHasCode returns a boolean if a field has been set. +func (o *ModerationAPIComment) HasHasCode() bool { + if o != nil && !IsNil(o.HasCode) { + return true + } + + return false +} + +// SetHasCode gets a reference to the given bool and assigns it to the HasCode field. +func (o *ModerationAPIComment) SetHasCode(v bool) { + o.HasCode = &v +} + +// GetApproved returns the Approved field value +func (o *ModerationAPIComment) GetApproved() bool { + if o == nil { + var ret bool + return ret + } + + return o.Approved +} + +// GetApprovedOk returns a tuple with the Approved field value +// and a boolean to check if the value has been set. +func (o *ModerationAPIComment) GetApprovedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Approved, true +} + +// SetApproved sets field value +func (o *ModerationAPIComment) SetApproved(v bool) { + o.Approved = v +} + +// GetLocale returns the Locale field value +// If the value is explicit nil, the zero value for string will be returned +func (o *ModerationAPIComment) GetLocale() string { + if o == nil || o.Locale.Get() == nil { + var ret string + return ret + } + + return *o.Locale.Get() +} + +// GetLocaleOk returns a tuple with the Locale field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModerationAPIComment) GetLocaleOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Locale.Get(), o.Locale.IsSet() +} + +// SetLocale sets field value +func (o *ModerationAPIComment) SetLocale(v string) { + o.Locale.Set(&v) +} + +// GetIsBannedUser returns the IsBannedUser field value if set, zero value otherwise. +func (o *ModerationAPIComment) GetIsBannedUser() bool { + if o == nil || IsNil(o.IsBannedUser) { + var ret bool + return ret + } + return *o.IsBannedUser +} + +// GetIsBannedUserOk returns a tuple with the IsBannedUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModerationAPIComment) GetIsBannedUserOk() (*bool, bool) { + if o == nil || IsNil(o.IsBannedUser) { + return nil, false + } + return o.IsBannedUser, true +} + +// HasIsBannedUser returns a boolean if a field has been set. +func (o *ModerationAPIComment) HasIsBannedUser() bool { + if o != nil && !IsNil(o.IsBannedUser) { + return true + } + + return false +} + +// SetIsBannedUser gets a reference to the given bool and assigns it to the IsBannedUser field. +func (o *ModerationAPIComment) SetIsBannedUser(v bool) { + o.IsBannedUser = &v +} + +// GetIsByAdmin returns the IsByAdmin field value if set, zero value otherwise. +func (o *ModerationAPIComment) GetIsByAdmin() bool { + if o == nil || IsNil(o.IsByAdmin) { + var ret bool + return ret + } + return *o.IsByAdmin +} + +// GetIsByAdminOk returns a tuple with the IsByAdmin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModerationAPIComment) GetIsByAdminOk() (*bool, bool) { + if o == nil || IsNil(o.IsByAdmin) { + return nil, false + } + return o.IsByAdmin, true +} + +// HasIsByAdmin returns a boolean if a field has been set. +func (o *ModerationAPIComment) HasIsByAdmin() bool { + if o != nil && !IsNil(o.IsByAdmin) { + return true + } + + return false +} + +// SetIsByAdmin gets a reference to the given bool and assigns it to the IsByAdmin field. +func (o *ModerationAPIComment) SetIsByAdmin(v bool) { + o.IsByAdmin = &v +} + +// GetIsByModerator returns the IsByModerator field value if set, zero value otherwise. +func (o *ModerationAPIComment) GetIsByModerator() bool { + if o == nil || IsNil(o.IsByModerator) { + var ret bool + return ret + } + return *o.IsByModerator +} + +// GetIsByModeratorOk returns a tuple with the IsByModerator field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModerationAPIComment) GetIsByModeratorOk() (*bool, bool) { + if o == nil || IsNil(o.IsByModerator) { + return nil, false + } + return o.IsByModerator, true +} + +// HasIsByModerator returns a boolean if a field has been set. +func (o *ModerationAPIComment) HasIsByModerator() bool { + if o != nil && !IsNil(o.IsByModerator) { + return true + } + + return false +} + +// SetIsByModerator gets a reference to the given bool and assigns it to the IsByModerator field. +func (o *ModerationAPIComment) SetIsByModerator(v bool) { + o.IsByModerator = &v +} + +// GetIsPinned returns the IsPinned field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModerationAPIComment) GetIsPinned() bool { + if o == nil || IsNil(o.IsPinned.Get()) { + var ret bool + return ret + } + return *o.IsPinned.Get() +} + +// GetIsPinnedOk returns a tuple with the IsPinned field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModerationAPIComment) GetIsPinnedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.IsPinned.Get(), o.IsPinned.IsSet() +} + +// HasIsPinned returns a boolean if a field has been set. +func (o *ModerationAPIComment) HasIsPinned() bool { + if o != nil && o.IsPinned.IsSet() { + return true + } + + return false +} + +// SetIsPinned gets a reference to the given NullableBool and assigns it to the IsPinned field. +func (o *ModerationAPIComment) SetIsPinned(v bool) { + o.IsPinned.Set(&v) +} +// SetIsPinnedNil sets the value for IsPinned to be an explicit nil +func (o *ModerationAPIComment) SetIsPinnedNil() { + o.IsPinned.Set(nil) +} + +// UnsetIsPinned ensures that no value is present for IsPinned, not even an explicit nil +func (o *ModerationAPIComment) UnsetIsPinned() { + o.IsPinned.Unset() +} + +// GetIsLocked returns the IsLocked field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModerationAPIComment) GetIsLocked() bool { + if o == nil || IsNil(o.IsLocked.Get()) { + var ret bool + return ret + } + return *o.IsLocked.Get() +} + +// GetIsLockedOk returns a tuple with the IsLocked field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModerationAPIComment) GetIsLockedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.IsLocked.Get(), o.IsLocked.IsSet() +} + +// HasIsLocked returns a boolean if a field has been set. +func (o *ModerationAPIComment) HasIsLocked() bool { + if o != nil && o.IsLocked.IsSet() { + return true + } + + return false +} + +// SetIsLocked gets a reference to the given NullableBool and assigns it to the IsLocked field. +func (o *ModerationAPIComment) SetIsLocked(v bool) { + o.IsLocked.Set(&v) +} +// SetIsLockedNil sets the value for IsLocked to be an explicit nil +func (o *ModerationAPIComment) SetIsLockedNil() { + o.IsLocked.Set(nil) +} + +// UnsetIsLocked ensures that no value is present for IsLocked, not even an explicit nil +func (o *ModerationAPIComment) UnsetIsLocked() { + o.IsLocked.Unset() +} + +// GetFlagCount returns the FlagCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModerationAPIComment) GetFlagCount() float64 { + if o == nil || IsNil(o.FlagCount.Get()) { + var ret float64 + return ret + } + return *o.FlagCount.Get() +} + +// GetFlagCountOk returns a tuple with the FlagCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModerationAPIComment) GetFlagCountOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.FlagCount.Get(), o.FlagCount.IsSet() +} + +// HasFlagCount returns a boolean if a field has been set. +func (o *ModerationAPIComment) HasFlagCount() bool { + if o != nil && o.FlagCount.IsSet() { + return true + } + + return false +} + +// SetFlagCount gets a reference to the given NullableFloat64 and assigns it to the FlagCount field. +func (o *ModerationAPIComment) SetFlagCount(v float64) { + o.FlagCount.Set(&v) +} +// SetFlagCountNil sets the value for FlagCount to be an explicit nil +func (o *ModerationAPIComment) SetFlagCountNil() { + o.FlagCount.Set(nil) +} + +// UnsetFlagCount ensures that no value is present for FlagCount, not even an explicit nil +func (o *ModerationAPIComment) UnsetFlagCount() { + o.FlagCount.Unset() +} + +// GetDisplayLabel returns the DisplayLabel field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModerationAPIComment) GetDisplayLabel() string { + if o == nil || IsNil(o.DisplayLabel.Get()) { + var ret string + return ret + } + return *o.DisplayLabel.Get() +} + +// GetDisplayLabelOk returns a tuple with the DisplayLabel field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModerationAPIComment) GetDisplayLabelOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayLabel.Get(), o.DisplayLabel.IsSet() +} + +// HasDisplayLabel returns a boolean if a field has been set. +func (o *ModerationAPIComment) HasDisplayLabel() bool { + if o != nil && o.DisplayLabel.IsSet() { + return true + } + + return false +} + +// SetDisplayLabel gets a reference to the given NullableString and assigns it to the DisplayLabel field. +func (o *ModerationAPIComment) SetDisplayLabel(v string) { + o.DisplayLabel.Set(&v) +} +// SetDisplayLabelNil sets the value for DisplayLabel to be an explicit nil +func (o *ModerationAPIComment) SetDisplayLabelNil() { + o.DisplayLabel.Set(nil) +} + +// UnsetDisplayLabel ensures that no value is present for DisplayLabel, not even an explicit nil +func (o *ModerationAPIComment) UnsetDisplayLabel() { + o.DisplayLabel.Unset() +} + +// GetBadges returns the Badges field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModerationAPIComment) GetBadges() []CommentUserBadgeInfo { + if o == nil { + var ret []CommentUserBadgeInfo + return ret + } + return o.Badges +} + +// GetBadgesOk returns a tuple with the Badges field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModerationAPIComment) GetBadgesOk() ([]CommentUserBadgeInfo, bool) { + if o == nil || IsNil(o.Badges) { + return nil, false + } + return o.Badges, true +} + +// HasBadges returns a boolean if a field has been set. +func (o *ModerationAPIComment) HasBadges() bool { + if o != nil && !IsNil(o.Badges) { + return true + } + + return false +} + +// SetBadges gets a reference to the given []CommentUserBadgeInfo and assigns it to the Badges field. +func (o *ModerationAPIComment) SetBadges(v []CommentUserBadgeInfo) { + o.Badges = v +} + +// GetVerified returns the Verified field value +func (o *ModerationAPIComment) GetVerified() bool { + if o == nil { + var ret bool + return ret + } + + return o.Verified +} + +// GetVerifiedOk returns a tuple with the Verified field value +// and a boolean to check if the value has been set. +func (o *ModerationAPIComment) GetVerifiedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Verified, true +} + +// SetVerified sets field value +func (o *ModerationAPIComment) SetVerified(v bool) { + o.Verified = v +} + +// GetFeedbackIds returns the FeedbackIds field value if set, zero value otherwise. +func (o *ModerationAPIComment) GetFeedbackIds() []string { + if o == nil || IsNil(o.FeedbackIds) { + var ret []string + return ret + } + return o.FeedbackIds +} + +// GetFeedbackIdsOk returns a tuple with the FeedbackIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModerationAPIComment) GetFeedbackIdsOk() ([]string, bool) { + if o == nil || IsNil(o.FeedbackIds) { + return nil, false + } + return o.FeedbackIds, true +} + +// HasFeedbackIds returns a boolean if a field has been set. +func (o *ModerationAPIComment) HasFeedbackIds() bool { + if o != nil && !IsNil(o.FeedbackIds) { + return true + } + + return false +} + +// SetFeedbackIds gets a reference to the given []string and assigns it to the FeedbackIds field. +func (o *ModerationAPIComment) SetFeedbackIds(v []string) { + o.FeedbackIds = v +} + +// GetIsDeleted returns the IsDeleted field value if set, zero value otherwise. +func (o *ModerationAPIComment) GetIsDeleted() bool { + if o == nil || IsNil(o.IsDeleted) { + var ret bool + return ret + } + return *o.IsDeleted +} + +// GetIsDeletedOk returns a tuple with the IsDeleted field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModerationAPIComment) GetIsDeletedOk() (*bool, bool) { + if o == nil || IsNil(o.IsDeleted) { + return nil, false + } + return o.IsDeleted, true +} + +// HasIsDeleted returns a boolean if a field has been set. +func (o *ModerationAPIComment) HasIsDeleted() bool { + if o != nil && !IsNil(o.IsDeleted) { + return true + } + + return false +} + +// SetIsDeleted gets a reference to the given bool and assigns it to the IsDeleted field. +func (o *ModerationAPIComment) SetIsDeleted(v bool) { + o.IsDeleted = &v +} + +func (o ModerationAPIComment) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModerationAPIComment) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.IsLocalDeleted) { + toSerialize["isLocalDeleted"] = o.IsLocalDeleted + } + if !IsNil(o.ReplyCount) { + toSerialize["replyCount"] = o.ReplyCount + } + if !IsNil(o.FeedbackResults) { + toSerialize["feedbackResults"] = o.FeedbackResults + } + if !IsNil(o.IsVotedUp) { + toSerialize["isVotedUp"] = o.IsVotedUp + } + if !IsNil(o.IsVotedDown) { + toSerialize["isVotedDown"] = o.IsVotedDown + } + if !IsNil(o.MyVoteId) { + toSerialize["myVoteId"] = o.MyVoteId + } + toSerialize["_id"] = o.Id + toSerialize["tenantId"] = o.TenantId + toSerialize["urlId"] = o.UrlId + toSerialize["url"] = o.Url + if o.PageTitle.IsSet() { + toSerialize["pageTitle"] = o.PageTitle.Get() + } + if o.UserId.IsSet() { + toSerialize["userId"] = o.UserId.Get() + } + if o.AnonUserId.IsSet() { + toSerialize["anonUserId"] = o.AnonUserId.Get() + } + toSerialize["commenterName"] = o.CommenterName + if o.CommenterLink.IsSet() { + toSerialize["commenterLink"] = o.CommenterLink.Get() + } + toSerialize["commentHTML"] = o.CommentHTML + if o.ParentId.IsSet() { + toSerialize["parentId"] = o.ParentId.Get() + } + toSerialize["date"] = o.Date.Get() + if o.LocalDateString.IsSet() { + toSerialize["localDateString"] = o.LocalDateString.Get() + } + if o.Votes.IsSet() { + toSerialize["votes"] = o.Votes.Get() + } + if o.VotesUp.IsSet() { + toSerialize["votesUp"] = o.VotesUp.Get() + } + if o.VotesDown.IsSet() { + toSerialize["votesDown"] = o.VotesDown.Get() + } + if o.ExpireAt.IsSet() { + toSerialize["expireAt"] = o.ExpireAt.Get() + } + if !IsNil(o.Reviewed) { + toSerialize["reviewed"] = o.Reviewed + } + if o.AvatarSrc.IsSet() { + toSerialize["avatarSrc"] = o.AvatarSrc.Get() + } + if !IsNil(o.IsSpam) { + toSerialize["isSpam"] = o.IsSpam + } + if !IsNil(o.PermNotSpam) { + toSerialize["permNotSpam"] = o.PermNotSpam + } + if !IsNil(o.HasLinks) { + toSerialize["hasLinks"] = o.HasLinks + } + if !IsNil(o.HasCode) { + toSerialize["hasCode"] = o.HasCode + } + toSerialize["approved"] = o.Approved + toSerialize["locale"] = o.Locale.Get() + if !IsNil(o.IsBannedUser) { + toSerialize["isBannedUser"] = o.IsBannedUser + } + if !IsNil(o.IsByAdmin) { + toSerialize["isByAdmin"] = o.IsByAdmin + } + if !IsNil(o.IsByModerator) { + toSerialize["isByModerator"] = o.IsByModerator + } + if o.IsPinned.IsSet() { + toSerialize["isPinned"] = o.IsPinned.Get() + } + if o.IsLocked.IsSet() { + toSerialize["isLocked"] = o.IsLocked.Get() + } + if o.FlagCount.IsSet() { + toSerialize["flagCount"] = o.FlagCount.Get() + } + if o.DisplayLabel.IsSet() { + toSerialize["displayLabel"] = o.DisplayLabel.Get() + } + if o.Badges != nil { + toSerialize["badges"] = o.Badges + } + toSerialize["verified"] = o.Verified + if !IsNil(o.FeedbackIds) { + toSerialize["feedbackIds"] = o.FeedbackIds + } + if !IsNil(o.IsDeleted) { + toSerialize["isDeleted"] = o.IsDeleted + } + return toSerialize, nil +} + +func (o *ModerationAPIComment) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "_id", + "tenantId", + "urlId", + "url", + "commenterName", + "commentHTML", + "date", + "approved", + "locale", + "verified", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varModerationAPIComment := _ModerationAPIComment{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varModerationAPIComment) + + if err != nil { + return err + } + + *o = ModerationAPIComment(varModerationAPIComment) + + return err +} + +type NullableModerationAPIComment struct { + value *ModerationAPIComment + isSet bool +} + +func (v NullableModerationAPIComment) Get() *ModerationAPIComment { + return v.value +} + +func (v *NullableModerationAPIComment) Set(val *ModerationAPIComment) { + v.value = val + v.isSet = true +} + +func (v NullableModerationAPIComment) IsSet() bool { + return v.isSet +} + +func (v *NullableModerationAPIComment) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModerationAPIComment(val *ModerationAPIComment) *NullableModerationAPIComment { + return &NullableModerationAPIComment{value: val, isSet: true} +} + +func (v NullableModerationAPIComment) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModerationAPIComment) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_moderation_api_comment_log.go b/client/model_moderation_api_comment_log.go new file mode 100644 index 0000000..ae94e90 --- /dev/null +++ b/client/model_moderation_api_comment_log.go @@ -0,0 +1,251 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "time" + "bytes" + "fmt" +) + +// checks if the ModerationAPICommentLog type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModerationAPICommentLog{} + +// ModerationAPICommentLog struct for ModerationAPICommentLog +type ModerationAPICommentLog struct { + Date time.Time `json:"date"` + Username *string `json:"username,omitempty"` + ActionName string `json:"actionName"` + MessageHTML string `json:"messageHTML"` +} + +type _ModerationAPICommentLog ModerationAPICommentLog + +// NewModerationAPICommentLog instantiates a new ModerationAPICommentLog object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModerationAPICommentLog(date time.Time, actionName string, messageHTML string) *ModerationAPICommentLog { + this := ModerationAPICommentLog{} + this.Date = date + this.ActionName = actionName + this.MessageHTML = messageHTML + return &this +} + +// NewModerationAPICommentLogWithDefaults instantiates a new ModerationAPICommentLog object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModerationAPICommentLogWithDefaults() *ModerationAPICommentLog { + this := ModerationAPICommentLog{} + return &this +} + +// GetDate returns the Date field value +func (o *ModerationAPICommentLog) GetDate() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Date +} + +// GetDateOk returns a tuple with the Date field value +// and a boolean to check if the value has been set. +func (o *ModerationAPICommentLog) GetDateOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Date, true +} + +// SetDate sets field value +func (o *ModerationAPICommentLog) SetDate(v time.Time) { + o.Date = v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *ModerationAPICommentLog) GetUsername() string { + if o == nil || IsNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModerationAPICommentLog) GetUsernameOk() (*string, bool) { + if o == nil || IsNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *ModerationAPICommentLog) HasUsername() bool { + if o != nil && !IsNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *ModerationAPICommentLog) SetUsername(v string) { + o.Username = &v +} + +// GetActionName returns the ActionName field value +func (o *ModerationAPICommentLog) GetActionName() string { + if o == nil { + var ret string + return ret + } + + return o.ActionName +} + +// GetActionNameOk returns a tuple with the ActionName field value +// and a boolean to check if the value has been set. +func (o *ModerationAPICommentLog) GetActionNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ActionName, true +} + +// SetActionName sets field value +func (o *ModerationAPICommentLog) SetActionName(v string) { + o.ActionName = v +} + +// GetMessageHTML returns the MessageHTML field value +func (o *ModerationAPICommentLog) GetMessageHTML() string { + if o == nil { + var ret string + return ret + } + + return o.MessageHTML +} + +// GetMessageHTMLOk returns a tuple with the MessageHTML field value +// and a boolean to check if the value has been set. +func (o *ModerationAPICommentLog) GetMessageHTMLOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MessageHTML, true +} + +// SetMessageHTML sets field value +func (o *ModerationAPICommentLog) SetMessageHTML(v string) { + o.MessageHTML = v +} + +func (o ModerationAPICommentLog) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModerationAPICommentLog) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["date"] = o.Date + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + toSerialize["actionName"] = o.ActionName + toSerialize["messageHTML"] = o.MessageHTML + return toSerialize, nil +} + +func (o *ModerationAPICommentLog) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "date", + "actionName", + "messageHTML", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varModerationAPICommentLog := _ModerationAPICommentLog{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varModerationAPICommentLog) + + if err != nil { + return err + } + + *o = ModerationAPICommentLog(varModerationAPICommentLog) + + return err +} + +type NullableModerationAPICommentLog struct { + value *ModerationAPICommentLog + isSet bool +} + +func (v NullableModerationAPICommentLog) Get() *ModerationAPICommentLog { + return v.value +} + +func (v *NullableModerationAPICommentLog) Set(val *ModerationAPICommentLog) { + v.value = val + v.isSet = true +} + +func (v NullableModerationAPICommentLog) IsSet() bool { + return v.isSet +} + +func (v *NullableModerationAPICommentLog) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModerationAPICommentLog(val *ModerationAPICommentLog) *NullableModerationAPICommentLog { + return &NullableModerationAPICommentLog{value: val, isSet: true} +} + +func (v NullableModerationAPICommentLog) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModerationAPICommentLog) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_moderation_api_comment_response.go b/client/model_moderation_api_comment_response.go new file mode 100644 index 0000000..ed892b2 --- /dev/null +++ b/client/model_moderation_api_comment_response.go @@ -0,0 +1,186 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the ModerationAPICommentResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModerationAPICommentResponse{} + +// ModerationAPICommentResponse struct for ModerationAPICommentResponse +type ModerationAPICommentResponse struct { + Comment ModerationAPIComment `json:"comment"` + Status APIStatus `json:"status"` +} + +type _ModerationAPICommentResponse ModerationAPICommentResponse + +// NewModerationAPICommentResponse instantiates a new ModerationAPICommentResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModerationAPICommentResponse(comment ModerationAPIComment, status APIStatus) *ModerationAPICommentResponse { + this := ModerationAPICommentResponse{} + this.Comment = comment + this.Status = status + return &this +} + +// NewModerationAPICommentResponseWithDefaults instantiates a new ModerationAPICommentResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModerationAPICommentResponseWithDefaults() *ModerationAPICommentResponse { + this := ModerationAPICommentResponse{} + return &this +} + +// GetComment returns the Comment field value +func (o *ModerationAPICommentResponse) GetComment() ModerationAPIComment { + if o == nil { + var ret ModerationAPIComment + return ret + } + + return o.Comment +} + +// GetCommentOk returns a tuple with the Comment field value +// and a boolean to check if the value has been set. +func (o *ModerationAPICommentResponse) GetCommentOk() (*ModerationAPIComment, bool) { + if o == nil { + return nil, false + } + return &o.Comment, true +} + +// SetComment sets field value +func (o *ModerationAPICommentResponse) SetComment(v ModerationAPIComment) { + o.Comment = v +} + +// GetStatus returns the Status field value +func (o *ModerationAPICommentResponse) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *ModerationAPICommentResponse) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *ModerationAPICommentResponse) SetStatus(v APIStatus) { + o.Status = v +} + +func (o ModerationAPICommentResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModerationAPICommentResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["comment"] = o.Comment + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *ModerationAPICommentResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "comment", + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varModerationAPICommentResponse := _ModerationAPICommentResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varModerationAPICommentResponse) + + if err != nil { + return err + } + + *o = ModerationAPICommentResponse(varModerationAPICommentResponse) + + return err +} + +type NullableModerationAPICommentResponse struct { + value *ModerationAPICommentResponse + isSet bool +} + +func (v NullableModerationAPICommentResponse) Get() *ModerationAPICommentResponse { + return v.value +} + +func (v *NullableModerationAPICommentResponse) Set(val *ModerationAPICommentResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModerationAPICommentResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModerationAPICommentResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModerationAPICommentResponse(val *ModerationAPICommentResponse) *NullableModerationAPICommentResponse { + return &NullableModerationAPICommentResponse{value: val, isSet: true} +} + +func (v NullableModerationAPICommentResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModerationAPICommentResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_moderation_api_count_comments_response.go b/client/model_moderation_api_count_comments_response.go new file mode 100644 index 0000000..520da6a --- /dev/null +++ b/client/model_moderation_api_count_comments_response.go @@ -0,0 +1,186 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the ModerationAPICountCommentsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModerationAPICountCommentsResponse{} + +// ModerationAPICountCommentsResponse struct for ModerationAPICountCommentsResponse +type ModerationAPICountCommentsResponse struct { + Status APIStatus `json:"status"` + Count float64 `json:"count"` +} + +type _ModerationAPICountCommentsResponse ModerationAPICountCommentsResponse + +// NewModerationAPICountCommentsResponse instantiates a new ModerationAPICountCommentsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModerationAPICountCommentsResponse(status APIStatus, count float64) *ModerationAPICountCommentsResponse { + this := ModerationAPICountCommentsResponse{} + this.Status = status + this.Count = count + return &this +} + +// NewModerationAPICountCommentsResponseWithDefaults instantiates a new ModerationAPICountCommentsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModerationAPICountCommentsResponseWithDefaults() *ModerationAPICountCommentsResponse { + this := ModerationAPICountCommentsResponse{} + return &this +} + +// GetStatus returns the Status field value +func (o *ModerationAPICountCommentsResponse) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *ModerationAPICountCommentsResponse) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *ModerationAPICountCommentsResponse) SetStatus(v APIStatus) { + o.Status = v +} + +// GetCount returns the Count field value +func (o *ModerationAPICountCommentsResponse) GetCount() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *ModerationAPICountCommentsResponse) GetCountOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *ModerationAPICountCommentsResponse) SetCount(v float64) { + o.Count = v +} + +func (o ModerationAPICountCommentsResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModerationAPICountCommentsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["status"] = o.Status + toSerialize["count"] = o.Count + return toSerialize, nil +} + +func (o *ModerationAPICountCommentsResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "status", + "count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varModerationAPICountCommentsResponse := _ModerationAPICountCommentsResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varModerationAPICountCommentsResponse) + + if err != nil { + return err + } + + *o = ModerationAPICountCommentsResponse(varModerationAPICountCommentsResponse) + + return err +} + +type NullableModerationAPICountCommentsResponse struct { + value *ModerationAPICountCommentsResponse + isSet bool +} + +func (v NullableModerationAPICountCommentsResponse) Get() *ModerationAPICountCommentsResponse { + return v.value +} + +func (v *NullableModerationAPICountCommentsResponse) Set(val *ModerationAPICountCommentsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModerationAPICountCommentsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModerationAPICountCommentsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModerationAPICountCommentsResponse(val *ModerationAPICountCommentsResponse) *NullableModerationAPICountCommentsResponse { + return &NullableModerationAPICountCommentsResponse{value: val, isSet: true} +} + +func (v NullableModerationAPICountCommentsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModerationAPICountCommentsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_moderation_api_get_comment_ids_response.go b/client/model_moderation_api_get_comment_ids_response.go new file mode 100644 index 0000000..77a8d24 --- /dev/null +++ b/client/model_moderation_api_get_comment_ids_response.go @@ -0,0 +1,214 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the ModerationAPIGetCommentIdsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModerationAPIGetCommentIdsResponse{} + +// ModerationAPIGetCommentIdsResponse struct for ModerationAPIGetCommentIdsResponse +type ModerationAPIGetCommentIdsResponse struct { + Ids []string `json:"ids"` + HasMore bool `json:"hasMore"` + Status APIStatus `json:"status"` +} + +type _ModerationAPIGetCommentIdsResponse ModerationAPIGetCommentIdsResponse + +// NewModerationAPIGetCommentIdsResponse instantiates a new ModerationAPIGetCommentIdsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModerationAPIGetCommentIdsResponse(ids []string, hasMore bool, status APIStatus) *ModerationAPIGetCommentIdsResponse { + this := ModerationAPIGetCommentIdsResponse{} + this.Ids = ids + this.HasMore = hasMore + this.Status = status + return &this +} + +// NewModerationAPIGetCommentIdsResponseWithDefaults instantiates a new ModerationAPIGetCommentIdsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModerationAPIGetCommentIdsResponseWithDefaults() *ModerationAPIGetCommentIdsResponse { + this := ModerationAPIGetCommentIdsResponse{} + return &this +} + +// GetIds returns the Ids field value +func (o *ModerationAPIGetCommentIdsResponse) GetIds() []string { + if o == nil { + var ret []string + return ret + } + + return o.Ids +} + +// GetIdsOk returns a tuple with the Ids field value +// and a boolean to check if the value has been set. +func (o *ModerationAPIGetCommentIdsResponse) GetIdsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Ids, true +} + +// SetIds sets field value +func (o *ModerationAPIGetCommentIdsResponse) SetIds(v []string) { + o.Ids = v +} + +// GetHasMore returns the HasMore field value +func (o *ModerationAPIGetCommentIdsResponse) GetHasMore() bool { + if o == nil { + var ret bool + return ret + } + + return o.HasMore +} + +// GetHasMoreOk returns a tuple with the HasMore field value +// and a boolean to check if the value has been set. +func (o *ModerationAPIGetCommentIdsResponse) GetHasMoreOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.HasMore, true +} + +// SetHasMore sets field value +func (o *ModerationAPIGetCommentIdsResponse) SetHasMore(v bool) { + o.HasMore = v +} + +// GetStatus returns the Status field value +func (o *ModerationAPIGetCommentIdsResponse) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *ModerationAPIGetCommentIdsResponse) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *ModerationAPIGetCommentIdsResponse) SetStatus(v APIStatus) { + o.Status = v +} + +func (o ModerationAPIGetCommentIdsResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModerationAPIGetCommentIdsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["ids"] = o.Ids + toSerialize["hasMore"] = o.HasMore + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *ModerationAPIGetCommentIdsResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "ids", + "hasMore", + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varModerationAPIGetCommentIdsResponse := _ModerationAPIGetCommentIdsResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varModerationAPIGetCommentIdsResponse) + + if err != nil { + return err + } + + *o = ModerationAPIGetCommentIdsResponse(varModerationAPIGetCommentIdsResponse) + + return err +} + +type NullableModerationAPIGetCommentIdsResponse struct { + value *ModerationAPIGetCommentIdsResponse + isSet bool +} + +func (v NullableModerationAPIGetCommentIdsResponse) Get() *ModerationAPIGetCommentIdsResponse { + return v.value +} + +func (v *NullableModerationAPIGetCommentIdsResponse) Set(val *ModerationAPIGetCommentIdsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModerationAPIGetCommentIdsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModerationAPIGetCommentIdsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModerationAPIGetCommentIdsResponse(val *ModerationAPIGetCommentIdsResponse) *NullableModerationAPIGetCommentIdsResponse { + return &NullableModerationAPIGetCommentIdsResponse{value: val, isSet: true} +} + +func (v NullableModerationAPIGetCommentIdsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModerationAPIGetCommentIdsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_moderation_api_get_comments_response.go b/client/model_moderation_api_get_comments_response.go new file mode 100644 index 0000000..8b64eff --- /dev/null +++ b/client/model_moderation_api_get_comments_response.go @@ -0,0 +1,250 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the ModerationAPIGetCommentsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModerationAPIGetCommentsResponse{} + +// ModerationAPIGetCommentsResponse struct for ModerationAPIGetCommentsResponse +type ModerationAPIGetCommentsResponse struct { + Status APIStatus `json:"status"` + Translations map[string]interface{} `json:"translations"` + Comments []ModerationAPIComment `json:"comments"` + ModerationFilter *ModerationFilter `json:"moderationFilter,omitempty"` +} + +type _ModerationAPIGetCommentsResponse ModerationAPIGetCommentsResponse + +// NewModerationAPIGetCommentsResponse instantiates a new ModerationAPIGetCommentsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModerationAPIGetCommentsResponse(status APIStatus, translations map[string]interface{}, comments []ModerationAPIComment) *ModerationAPIGetCommentsResponse { + this := ModerationAPIGetCommentsResponse{} + this.Status = status + this.Translations = translations + this.Comments = comments + return &this +} + +// NewModerationAPIGetCommentsResponseWithDefaults instantiates a new ModerationAPIGetCommentsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModerationAPIGetCommentsResponseWithDefaults() *ModerationAPIGetCommentsResponse { + this := ModerationAPIGetCommentsResponse{} + return &this +} + +// GetStatus returns the Status field value +func (o *ModerationAPIGetCommentsResponse) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *ModerationAPIGetCommentsResponse) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *ModerationAPIGetCommentsResponse) SetStatus(v APIStatus) { + o.Status = v +} + +// GetTranslations returns the Translations field value +func (o *ModerationAPIGetCommentsResponse) GetTranslations() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Translations +} + +// GetTranslationsOk returns a tuple with the Translations field value +// and a boolean to check if the value has been set. +func (o *ModerationAPIGetCommentsResponse) GetTranslationsOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.Translations, true +} + +// SetTranslations sets field value +func (o *ModerationAPIGetCommentsResponse) SetTranslations(v map[string]interface{}) { + o.Translations = v +} + +// GetComments returns the Comments field value +func (o *ModerationAPIGetCommentsResponse) GetComments() []ModerationAPIComment { + if o == nil { + var ret []ModerationAPIComment + return ret + } + + return o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value +// and a boolean to check if the value has been set. +func (o *ModerationAPIGetCommentsResponse) GetCommentsOk() ([]ModerationAPIComment, bool) { + if o == nil { + return nil, false + } + return o.Comments, true +} + +// SetComments sets field value +func (o *ModerationAPIGetCommentsResponse) SetComments(v []ModerationAPIComment) { + o.Comments = v +} + +// GetModerationFilter returns the ModerationFilter field value if set, zero value otherwise. +func (o *ModerationAPIGetCommentsResponse) GetModerationFilter() ModerationFilter { + if o == nil || IsNil(o.ModerationFilter) { + var ret ModerationFilter + return ret + } + return *o.ModerationFilter +} + +// GetModerationFilterOk returns a tuple with the ModerationFilter field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModerationAPIGetCommentsResponse) GetModerationFilterOk() (*ModerationFilter, bool) { + if o == nil || IsNil(o.ModerationFilter) { + return nil, false + } + return o.ModerationFilter, true +} + +// HasModerationFilter returns a boolean if a field has been set. +func (o *ModerationAPIGetCommentsResponse) HasModerationFilter() bool { + if o != nil && !IsNil(o.ModerationFilter) { + return true + } + + return false +} + +// SetModerationFilter gets a reference to the given ModerationFilter and assigns it to the ModerationFilter field. +func (o *ModerationAPIGetCommentsResponse) SetModerationFilter(v ModerationFilter) { + o.ModerationFilter = &v +} + +func (o ModerationAPIGetCommentsResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModerationAPIGetCommentsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["status"] = o.Status + toSerialize["translations"] = o.Translations + toSerialize["comments"] = o.Comments + if !IsNil(o.ModerationFilter) { + toSerialize["moderationFilter"] = o.ModerationFilter + } + return toSerialize, nil +} + +func (o *ModerationAPIGetCommentsResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "status", + "translations", + "comments", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varModerationAPIGetCommentsResponse := _ModerationAPIGetCommentsResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varModerationAPIGetCommentsResponse) + + if err != nil { + return err + } + + *o = ModerationAPIGetCommentsResponse(varModerationAPIGetCommentsResponse) + + return err +} + +type NullableModerationAPIGetCommentsResponse struct { + value *ModerationAPIGetCommentsResponse + isSet bool +} + +func (v NullableModerationAPIGetCommentsResponse) Get() *ModerationAPIGetCommentsResponse { + return v.value +} + +func (v *NullableModerationAPIGetCommentsResponse) Set(val *ModerationAPIGetCommentsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModerationAPIGetCommentsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModerationAPIGetCommentsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModerationAPIGetCommentsResponse(val *ModerationAPIGetCommentsResponse) *NullableModerationAPIGetCommentsResponse { + return &NullableModerationAPIGetCommentsResponse{value: val, isSet: true} +} + +func (v NullableModerationAPIGetCommentsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModerationAPIGetCommentsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_moderation_api_get_logs_response.go b/client/model_moderation_api_get_logs_response.go new file mode 100644 index 0000000..a8e28c3 --- /dev/null +++ b/client/model_moderation_api_get_logs_response.go @@ -0,0 +1,186 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the ModerationAPIGetLogsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModerationAPIGetLogsResponse{} + +// ModerationAPIGetLogsResponse struct for ModerationAPIGetLogsResponse +type ModerationAPIGetLogsResponse struct { + Logs []ModerationAPICommentLog `json:"logs"` + Status APIStatus `json:"status"` +} + +type _ModerationAPIGetLogsResponse ModerationAPIGetLogsResponse + +// NewModerationAPIGetLogsResponse instantiates a new ModerationAPIGetLogsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModerationAPIGetLogsResponse(logs []ModerationAPICommentLog, status APIStatus) *ModerationAPIGetLogsResponse { + this := ModerationAPIGetLogsResponse{} + this.Logs = logs + this.Status = status + return &this +} + +// NewModerationAPIGetLogsResponseWithDefaults instantiates a new ModerationAPIGetLogsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModerationAPIGetLogsResponseWithDefaults() *ModerationAPIGetLogsResponse { + this := ModerationAPIGetLogsResponse{} + return &this +} + +// GetLogs returns the Logs field value +func (o *ModerationAPIGetLogsResponse) GetLogs() []ModerationAPICommentLog { + if o == nil { + var ret []ModerationAPICommentLog + return ret + } + + return o.Logs +} + +// GetLogsOk returns a tuple with the Logs field value +// and a boolean to check if the value has been set. +func (o *ModerationAPIGetLogsResponse) GetLogsOk() ([]ModerationAPICommentLog, bool) { + if o == nil { + return nil, false + } + return o.Logs, true +} + +// SetLogs sets field value +func (o *ModerationAPIGetLogsResponse) SetLogs(v []ModerationAPICommentLog) { + o.Logs = v +} + +// GetStatus returns the Status field value +func (o *ModerationAPIGetLogsResponse) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *ModerationAPIGetLogsResponse) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *ModerationAPIGetLogsResponse) SetStatus(v APIStatus) { + o.Status = v +} + +func (o ModerationAPIGetLogsResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModerationAPIGetLogsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["logs"] = o.Logs + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *ModerationAPIGetLogsResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "logs", + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varModerationAPIGetLogsResponse := _ModerationAPIGetLogsResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varModerationAPIGetLogsResponse) + + if err != nil { + return err + } + + *o = ModerationAPIGetLogsResponse(varModerationAPIGetLogsResponse) + + return err +} + +type NullableModerationAPIGetLogsResponse struct { + value *ModerationAPIGetLogsResponse + isSet bool +} + +func (v NullableModerationAPIGetLogsResponse) Get() *ModerationAPIGetLogsResponse { + return v.value +} + +func (v *NullableModerationAPIGetLogsResponse) Set(val *ModerationAPIGetLogsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModerationAPIGetLogsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModerationAPIGetLogsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModerationAPIGetLogsResponse(val *ModerationAPIGetLogsResponse) *NullableModerationAPIGetLogsResponse { + return &NullableModerationAPIGetLogsResponse{value: val, isSet: true} +} + +func (v NullableModerationAPIGetLogsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModerationAPIGetLogsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_moderation_comment_search_response.go b/client/model_moderation_comment_search_response.go new file mode 100644 index 0000000..92cdf76 --- /dev/null +++ b/client/model_moderation_comment_search_response.go @@ -0,0 +1,186 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the ModerationCommentSearchResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModerationCommentSearchResponse{} + +// ModerationCommentSearchResponse struct for ModerationCommentSearchResponse +type ModerationCommentSearchResponse struct { + CommentCount int32 `json:"commentCount"` + Status APIStatus `json:"status"` +} + +type _ModerationCommentSearchResponse ModerationCommentSearchResponse + +// NewModerationCommentSearchResponse instantiates a new ModerationCommentSearchResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModerationCommentSearchResponse(commentCount int32, status APIStatus) *ModerationCommentSearchResponse { + this := ModerationCommentSearchResponse{} + this.CommentCount = commentCount + this.Status = status + return &this +} + +// NewModerationCommentSearchResponseWithDefaults instantiates a new ModerationCommentSearchResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModerationCommentSearchResponseWithDefaults() *ModerationCommentSearchResponse { + this := ModerationCommentSearchResponse{} + return &this +} + +// GetCommentCount returns the CommentCount field value +func (o *ModerationCommentSearchResponse) GetCommentCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.CommentCount +} + +// GetCommentCountOk returns a tuple with the CommentCount field value +// and a boolean to check if the value has been set. +func (o *ModerationCommentSearchResponse) GetCommentCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.CommentCount, true +} + +// SetCommentCount sets field value +func (o *ModerationCommentSearchResponse) SetCommentCount(v int32) { + o.CommentCount = v +} + +// GetStatus returns the Status field value +func (o *ModerationCommentSearchResponse) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *ModerationCommentSearchResponse) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *ModerationCommentSearchResponse) SetStatus(v APIStatus) { + o.Status = v +} + +func (o ModerationCommentSearchResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModerationCommentSearchResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["commentCount"] = o.CommentCount + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *ModerationCommentSearchResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "commentCount", + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varModerationCommentSearchResponse := _ModerationCommentSearchResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varModerationCommentSearchResponse) + + if err != nil { + return err + } + + *o = ModerationCommentSearchResponse(varModerationCommentSearchResponse) + + return err +} + +type NullableModerationCommentSearchResponse struct { + value *ModerationCommentSearchResponse + isSet bool +} + +func (v NullableModerationCommentSearchResponse) Get() *ModerationCommentSearchResponse { + return v.value +} + +func (v *NullableModerationCommentSearchResponse) Set(val *ModerationCommentSearchResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModerationCommentSearchResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModerationCommentSearchResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModerationCommentSearchResponse(val *ModerationCommentSearchResponse) *NullableModerationCommentSearchResponse { + return &NullableModerationCommentSearchResponse{value: val, isSet: true} +} + +func (v NullableModerationCommentSearchResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModerationCommentSearchResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_moderation_export_response.go b/client/model_moderation_export_response.go new file mode 100644 index 0000000..c816865 --- /dev/null +++ b/client/model_moderation_export_response.go @@ -0,0 +1,186 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the ModerationExportResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModerationExportResponse{} + +// ModerationExportResponse struct for ModerationExportResponse +type ModerationExportResponse struct { + Status string `json:"status"` + BatchJobId string `json:"batchJobId"` +} + +type _ModerationExportResponse ModerationExportResponse + +// NewModerationExportResponse instantiates a new ModerationExportResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModerationExportResponse(status string, batchJobId string) *ModerationExportResponse { + this := ModerationExportResponse{} + this.Status = status + this.BatchJobId = batchJobId + return &this +} + +// NewModerationExportResponseWithDefaults instantiates a new ModerationExportResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModerationExportResponseWithDefaults() *ModerationExportResponse { + this := ModerationExportResponse{} + return &this +} + +// GetStatus returns the Status field value +func (o *ModerationExportResponse) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *ModerationExportResponse) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *ModerationExportResponse) SetStatus(v string) { + o.Status = v +} + +// GetBatchJobId returns the BatchJobId field value +func (o *ModerationExportResponse) GetBatchJobId() string { + if o == nil { + var ret string + return ret + } + + return o.BatchJobId +} + +// GetBatchJobIdOk returns a tuple with the BatchJobId field value +// and a boolean to check if the value has been set. +func (o *ModerationExportResponse) GetBatchJobIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.BatchJobId, true +} + +// SetBatchJobId sets field value +func (o *ModerationExportResponse) SetBatchJobId(v string) { + o.BatchJobId = v +} + +func (o ModerationExportResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModerationExportResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["status"] = o.Status + toSerialize["batchJobId"] = o.BatchJobId + return toSerialize, nil +} + +func (o *ModerationExportResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "status", + "batchJobId", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varModerationExportResponse := _ModerationExportResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varModerationExportResponse) + + if err != nil { + return err + } + + *o = ModerationExportResponse(varModerationExportResponse) + + return err +} + +type NullableModerationExportResponse struct { + value *ModerationExportResponse + isSet bool +} + +func (v NullableModerationExportResponse) Get() *ModerationExportResponse { + return v.value +} + +func (v *NullableModerationExportResponse) Set(val *ModerationExportResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModerationExportResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModerationExportResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModerationExportResponse(val *ModerationExportResponse) *NullableModerationExportResponse { + return &NullableModerationExportResponse{value: val, isSet: true} +} + +func (v NullableModerationExportResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModerationExportResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_moderation_export_status_response.go b/client/model_moderation_export_status_response.go new file mode 100644 index 0000000..238379b --- /dev/null +++ b/client/model_moderation_export_status_response.go @@ -0,0 +1,250 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the ModerationExportStatusResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModerationExportStatusResponse{} + +// ModerationExportStatusResponse struct for ModerationExportStatusResponse +type ModerationExportStatusResponse struct { + Status string `json:"status"` + JobStatus string `json:"jobStatus"` + RecordCount int32 `json:"recordCount"` + DownloadUrl *string `json:"downloadUrl,omitempty"` +} + +type _ModerationExportStatusResponse ModerationExportStatusResponse + +// NewModerationExportStatusResponse instantiates a new ModerationExportStatusResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModerationExportStatusResponse(status string, jobStatus string, recordCount int32) *ModerationExportStatusResponse { + this := ModerationExportStatusResponse{} + this.Status = status + this.JobStatus = jobStatus + this.RecordCount = recordCount + return &this +} + +// NewModerationExportStatusResponseWithDefaults instantiates a new ModerationExportStatusResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModerationExportStatusResponseWithDefaults() *ModerationExportStatusResponse { + this := ModerationExportStatusResponse{} + return &this +} + +// GetStatus returns the Status field value +func (o *ModerationExportStatusResponse) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *ModerationExportStatusResponse) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *ModerationExportStatusResponse) SetStatus(v string) { + o.Status = v +} + +// GetJobStatus returns the JobStatus field value +func (o *ModerationExportStatusResponse) GetJobStatus() string { + if o == nil { + var ret string + return ret + } + + return o.JobStatus +} + +// GetJobStatusOk returns a tuple with the JobStatus field value +// and a boolean to check if the value has been set. +func (o *ModerationExportStatusResponse) GetJobStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.JobStatus, true +} + +// SetJobStatus sets field value +func (o *ModerationExportStatusResponse) SetJobStatus(v string) { + o.JobStatus = v +} + +// GetRecordCount returns the RecordCount field value +func (o *ModerationExportStatusResponse) GetRecordCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.RecordCount +} + +// GetRecordCountOk returns a tuple with the RecordCount field value +// and a boolean to check if the value has been set. +func (o *ModerationExportStatusResponse) GetRecordCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.RecordCount, true +} + +// SetRecordCount sets field value +func (o *ModerationExportStatusResponse) SetRecordCount(v int32) { + o.RecordCount = v +} + +// GetDownloadUrl returns the DownloadUrl field value if set, zero value otherwise. +func (o *ModerationExportStatusResponse) GetDownloadUrl() string { + if o == nil || IsNil(o.DownloadUrl) { + var ret string + return ret + } + return *o.DownloadUrl +} + +// GetDownloadUrlOk returns a tuple with the DownloadUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModerationExportStatusResponse) GetDownloadUrlOk() (*string, bool) { + if o == nil || IsNil(o.DownloadUrl) { + return nil, false + } + return o.DownloadUrl, true +} + +// HasDownloadUrl returns a boolean if a field has been set. +func (o *ModerationExportStatusResponse) HasDownloadUrl() bool { + if o != nil && !IsNil(o.DownloadUrl) { + return true + } + + return false +} + +// SetDownloadUrl gets a reference to the given string and assigns it to the DownloadUrl field. +func (o *ModerationExportStatusResponse) SetDownloadUrl(v string) { + o.DownloadUrl = &v +} + +func (o ModerationExportStatusResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModerationExportStatusResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["status"] = o.Status + toSerialize["jobStatus"] = o.JobStatus + toSerialize["recordCount"] = o.RecordCount + if !IsNil(o.DownloadUrl) { + toSerialize["downloadUrl"] = o.DownloadUrl + } + return toSerialize, nil +} + +func (o *ModerationExportStatusResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "status", + "jobStatus", + "recordCount", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varModerationExportStatusResponse := _ModerationExportStatusResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varModerationExportStatusResponse) + + if err != nil { + return err + } + + *o = ModerationExportStatusResponse(varModerationExportStatusResponse) + + return err +} + +type NullableModerationExportStatusResponse struct { + value *ModerationExportStatusResponse + isSet bool +} + +func (v NullableModerationExportStatusResponse) Get() *ModerationExportStatusResponse { + return v.value +} + +func (v *NullableModerationExportStatusResponse) Set(val *ModerationExportStatusResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModerationExportStatusResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModerationExportStatusResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModerationExportStatusResponse(val *ModerationExportStatusResponse) *NullableModerationExportStatusResponse { + return &NullableModerationExportStatusResponse{value: val, isSet: true} +} + +func (v NullableModerationExportStatusResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModerationExportStatusResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_moderation_filter.go b/client/model_moderation_filter.go new file mode 100644 index 0000000..56809c6 --- /dev/null +++ b/client/model_moderation_filter.go @@ -0,0 +1,524 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" +) + +// checks if the ModerationFilter type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModerationFilter{} + +// ModerationFilter struct for ModerationFilter +type ModerationFilter struct { + Reviewed *bool `json:"reviewed,omitempty"` + Approved *bool `json:"approved,omitempty"` + IsSpam *bool `json:"isSpam,omitempty"` + IsBannedUser *bool `json:"isBannedUser,omitempty"` + IsLocked *bool `json:"isLocked,omitempty"` + FlagCountGt *float64 `json:"flagCountGt,omitempty"` + UserId *string `json:"userId,omitempty"` + UrlId *string `json:"urlId,omitempty"` + Domain *string `json:"domain,omitempty"` + ModerationGroupIds []string `json:"moderationGroupIds,omitempty"` + // Text search terms. Each term is matched case-insensitively against the comment text. A term wrapped in quotes means exact phrase match. + CommentTextSearch []string `json:"commentTextSearch,omitempty"` + // Set by the `exact=\"...\"` search syntax. The comment text must equal this value exactly (case-sensitive, full-string), as opposed to the substring matching of commentTextSearch. + ExactCommentText *string `json:"exactCommentText,omitempty"` +} + +// NewModerationFilter instantiates a new ModerationFilter object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModerationFilter() *ModerationFilter { + this := ModerationFilter{} + return &this +} + +// NewModerationFilterWithDefaults instantiates a new ModerationFilter object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModerationFilterWithDefaults() *ModerationFilter { + this := ModerationFilter{} + return &this +} + +// GetReviewed returns the Reviewed field value if set, zero value otherwise. +func (o *ModerationFilter) GetReviewed() bool { + if o == nil || IsNil(o.Reviewed) { + var ret bool + return ret + } + return *o.Reviewed +} + +// GetReviewedOk returns a tuple with the Reviewed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModerationFilter) GetReviewedOk() (*bool, bool) { + if o == nil || IsNil(o.Reviewed) { + return nil, false + } + return o.Reviewed, true +} + +// HasReviewed returns a boolean if a field has been set. +func (o *ModerationFilter) HasReviewed() bool { + if o != nil && !IsNil(o.Reviewed) { + return true + } + + return false +} + +// SetReviewed gets a reference to the given bool and assigns it to the Reviewed field. +func (o *ModerationFilter) SetReviewed(v bool) { + o.Reviewed = &v +} + +// GetApproved returns the Approved field value if set, zero value otherwise. +func (o *ModerationFilter) GetApproved() bool { + if o == nil || IsNil(o.Approved) { + var ret bool + return ret + } + return *o.Approved +} + +// GetApprovedOk returns a tuple with the Approved field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModerationFilter) GetApprovedOk() (*bool, bool) { + if o == nil || IsNil(o.Approved) { + return nil, false + } + return o.Approved, true +} + +// HasApproved returns a boolean if a field has been set. +func (o *ModerationFilter) HasApproved() bool { + if o != nil && !IsNil(o.Approved) { + return true + } + + return false +} + +// SetApproved gets a reference to the given bool and assigns it to the Approved field. +func (o *ModerationFilter) SetApproved(v bool) { + o.Approved = &v +} + +// GetIsSpam returns the IsSpam field value if set, zero value otherwise. +func (o *ModerationFilter) GetIsSpam() bool { + if o == nil || IsNil(o.IsSpam) { + var ret bool + return ret + } + return *o.IsSpam +} + +// GetIsSpamOk returns a tuple with the IsSpam field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModerationFilter) GetIsSpamOk() (*bool, bool) { + if o == nil || IsNil(o.IsSpam) { + return nil, false + } + return o.IsSpam, true +} + +// HasIsSpam returns a boolean if a field has been set. +func (o *ModerationFilter) HasIsSpam() bool { + if o != nil && !IsNil(o.IsSpam) { + return true + } + + return false +} + +// SetIsSpam gets a reference to the given bool and assigns it to the IsSpam field. +func (o *ModerationFilter) SetIsSpam(v bool) { + o.IsSpam = &v +} + +// GetIsBannedUser returns the IsBannedUser field value if set, zero value otherwise. +func (o *ModerationFilter) GetIsBannedUser() bool { + if o == nil || IsNil(o.IsBannedUser) { + var ret bool + return ret + } + return *o.IsBannedUser +} + +// GetIsBannedUserOk returns a tuple with the IsBannedUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModerationFilter) GetIsBannedUserOk() (*bool, bool) { + if o == nil || IsNil(o.IsBannedUser) { + return nil, false + } + return o.IsBannedUser, true +} + +// HasIsBannedUser returns a boolean if a field has been set. +func (o *ModerationFilter) HasIsBannedUser() bool { + if o != nil && !IsNil(o.IsBannedUser) { + return true + } + + return false +} + +// SetIsBannedUser gets a reference to the given bool and assigns it to the IsBannedUser field. +func (o *ModerationFilter) SetIsBannedUser(v bool) { + o.IsBannedUser = &v +} + +// GetIsLocked returns the IsLocked field value if set, zero value otherwise. +func (o *ModerationFilter) GetIsLocked() bool { + if o == nil || IsNil(o.IsLocked) { + var ret bool + return ret + } + return *o.IsLocked +} + +// GetIsLockedOk returns a tuple with the IsLocked field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModerationFilter) GetIsLockedOk() (*bool, bool) { + if o == nil || IsNil(o.IsLocked) { + return nil, false + } + return o.IsLocked, true +} + +// HasIsLocked returns a boolean if a field has been set. +func (o *ModerationFilter) HasIsLocked() bool { + if o != nil && !IsNil(o.IsLocked) { + return true + } + + return false +} + +// SetIsLocked gets a reference to the given bool and assigns it to the IsLocked field. +func (o *ModerationFilter) SetIsLocked(v bool) { + o.IsLocked = &v +} + +// GetFlagCountGt returns the FlagCountGt field value if set, zero value otherwise. +func (o *ModerationFilter) GetFlagCountGt() float64 { + if o == nil || IsNil(o.FlagCountGt) { + var ret float64 + return ret + } + return *o.FlagCountGt +} + +// GetFlagCountGtOk returns a tuple with the FlagCountGt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModerationFilter) GetFlagCountGtOk() (*float64, bool) { + if o == nil || IsNil(o.FlagCountGt) { + return nil, false + } + return o.FlagCountGt, true +} + +// HasFlagCountGt returns a boolean if a field has been set. +func (o *ModerationFilter) HasFlagCountGt() bool { + if o != nil && !IsNil(o.FlagCountGt) { + return true + } + + return false +} + +// SetFlagCountGt gets a reference to the given float64 and assigns it to the FlagCountGt field. +func (o *ModerationFilter) SetFlagCountGt(v float64) { + o.FlagCountGt = &v +} + +// GetUserId returns the UserId field value if set, zero value otherwise. +func (o *ModerationFilter) GetUserId() string { + if o == nil || IsNil(o.UserId) { + var ret string + return ret + } + return *o.UserId +} + +// GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModerationFilter) GetUserIdOk() (*string, bool) { + if o == nil || IsNil(o.UserId) { + return nil, false + } + return o.UserId, true +} + +// HasUserId returns a boolean if a field has been set. +func (o *ModerationFilter) HasUserId() bool { + if o != nil && !IsNil(o.UserId) { + return true + } + + return false +} + +// SetUserId gets a reference to the given string and assigns it to the UserId field. +func (o *ModerationFilter) SetUserId(v string) { + o.UserId = &v +} + +// GetUrlId returns the UrlId field value if set, zero value otherwise. +func (o *ModerationFilter) GetUrlId() string { + if o == nil || IsNil(o.UrlId) { + var ret string + return ret + } + return *o.UrlId +} + +// GetUrlIdOk returns a tuple with the UrlId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModerationFilter) GetUrlIdOk() (*string, bool) { + if o == nil || IsNil(o.UrlId) { + return nil, false + } + return o.UrlId, true +} + +// HasUrlId returns a boolean if a field has been set. +func (o *ModerationFilter) HasUrlId() bool { + if o != nil && !IsNil(o.UrlId) { + return true + } + + return false +} + +// SetUrlId gets a reference to the given string and assigns it to the UrlId field. +func (o *ModerationFilter) SetUrlId(v string) { + o.UrlId = &v +} + +// GetDomain returns the Domain field value if set, zero value otherwise. +func (o *ModerationFilter) GetDomain() string { + if o == nil || IsNil(o.Domain) { + var ret string + return ret + } + return *o.Domain +} + +// GetDomainOk returns a tuple with the Domain field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModerationFilter) GetDomainOk() (*string, bool) { + if o == nil || IsNil(o.Domain) { + return nil, false + } + return o.Domain, true +} + +// HasDomain returns a boolean if a field has been set. +func (o *ModerationFilter) HasDomain() bool { + if o != nil && !IsNil(o.Domain) { + return true + } + + return false +} + +// SetDomain gets a reference to the given string and assigns it to the Domain field. +func (o *ModerationFilter) SetDomain(v string) { + o.Domain = &v +} + +// GetModerationGroupIds returns the ModerationGroupIds field value if set, zero value otherwise. +func (o *ModerationFilter) GetModerationGroupIds() []string { + if o == nil || IsNil(o.ModerationGroupIds) { + var ret []string + return ret + } + return o.ModerationGroupIds +} + +// GetModerationGroupIdsOk returns a tuple with the ModerationGroupIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModerationFilter) GetModerationGroupIdsOk() ([]string, bool) { + if o == nil || IsNil(o.ModerationGroupIds) { + return nil, false + } + return o.ModerationGroupIds, true +} + +// HasModerationGroupIds returns a boolean if a field has been set. +func (o *ModerationFilter) HasModerationGroupIds() bool { + if o != nil && !IsNil(o.ModerationGroupIds) { + return true + } + + return false +} + +// SetModerationGroupIds gets a reference to the given []string and assigns it to the ModerationGroupIds field. +func (o *ModerationFilter) SetModerationGroupIds(v []string) { + o.ModerationGroupIds = v +} + +// GetCommentTextSearch returns the CommentTextSearch field value if set, zero value otherwise. +func (o *ModerationFilter) GetCommentTextSearch() []string { + if o == nil || IsNil(o.CommentTextSearch) { + var ret []string + return ret + } + return o.CommentTextSearch +} + +// GetCommentTextSearchOk returns a tuple with the CommentTextSearch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModerationFilter) GetCommentTextSearchOk() ([]string, bool) { + if o == nil || IsNil(o.CommentTextSearch) { + return nil, false + } + return o.CommentTextSearch, true +} + +// HasCommentTextSearch returns a boolean if a field has been set. +func (o *ModerationFilter) HasCommentTextSearch() bool { + if o != nil && !IsNil(o.CommentTextSearch) { + return true + } + + return false +} + +// SetCommentTextSearch gets a reference to the given []string and assigns it to the CommentTextSearch field. +func (o *ModerationFilter) SetCommentTextSearch(v []string) { + o.CommentTextSearch = v +} + +// GetExactCommentText returns the ExactCommentText field value if set, zero value otherwise. +func (o *ModerationFilter) GetExactCommentText() string { + if o == nil || IsNil(o.ExactCommentText) { + var ret string + return ret + } + return *o.ExactCommentText +} + +// GetExactCommentTextOk returns a tuple with the ExactCommentText field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModerationFilter) GetExactCommentTextOk() (*string, bool) { + if o == nil || IsNil(o.ExactCommentText) { + return nil, false + } + return o.ExactCommentText, true +} + +// HasExactCommentText returns a boolean if a field has been set. +func (o *ModerationFilter) HasExactCommentText() bool { + if o != nil && !IsNil(o.ExactCommentText) { + return true + } + + return false +} + +// SetExactCommentText gets a reference to the given string and assigns it to the ExactCommentText field. +func (o *ModerationFilter) SetExactCommentText(v string) { + o.ExactCommentText = &v +} + +func (o ModerationFilter) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModerationFilter) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Reviewed) { + toSerialize["reviewed"] = o.Reviewed + } + if !IsNil(o.Approved) { + toSerialize["approved"] = o.Approved + } + if !IsNil(o.IsSpam) { + toSerialize["isSpam"] = o.IsSpam + } + if !IsNil(o.IsBannedUser) { + toSerialize["isBannedUser"] = o.IsBannedUser + } + if !IsNil(o.IsLocked) { + toSerialize["isLocked"] = o.IsLocked + } + if !IsNil(o.FlagCountGt) { + toSerialize["flagCountGt"] = o.FlagCountGt + } + if !IsNil(o.UserId) { + toSerialize["userId"] = o.UserId + } + if !IsNil(o.UrlId) { + toSerialize["urlId"] = o.UrlId + } + if !IsNil(o.Domain) { + toSerialize["domain"] = o.Domain + } + if !IsNil(o.ModerationGroupIds) { + toSerialize["moderationGroupIds"] = o.ModerationGroupIds + } + if !IsNil(o.CommentTextSearch) { + toSerialize["commentTextSearch"] = o.CommentTextSearch + } + if !IsNil(o.ExactCommentText) { + toSerialize["exactCommentText"] = o.ExactCommentText + } + return toSerialize, nil +} + +type NullableModerationFilter struct { + value *ModerationFilter + isSet bool +} + +func (v NullableModerationFilter) Get() *ModerationFilter { + return v.value +} + +func (v *NullableModerationFilter) Set(val *ModerationFilter) { + v.value = val + v.isSet = true +} + +func (v NullableModerationFilter) IsSet() bool { + return v.isSet +} + +func (v *NullableModerationFilter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModerationFilter(val *ModerationFilter) *NullableModerationFilter { + return &NullableModerationFilter{value: val, isSet: true} +} + +func (v NullableModerationFilter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModerationFilter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_moderation_page_search_projected.go b/client/model_moderation_page_search_projected.go new file mode 100644 index 0000000..d39edf3 --- /dev/null +++ b/client/model_moderation_page_search_projected.go @@ -0,0 +1,242 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the ModerationPageSearchProjected type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModerationPageSearchProjected{} + +// ModerationPageSearchProjected struct for ModerationPageSearchProjected +type ModerationPageSearchProjected struct { + UrlId string `json:"urlId"` + Url string `json:"url"` + Title string `json:"title"` + CommentCount float64 `json:"commentCount"` +} + +type _ModerationPageSearchProjected ModerationPageSearchProjected + +// NewModerationPageSearchProjected instantiates a new ModerationPageSearchProjected object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModerationPageSearchProjected(urlId string, url string, title string, commentCount float64) *ModerationPageSearchProjected { + this := ModerationPageSearchProjected{} + this.UrlId = urlId + this.Url = url + this.Title = title + this.CommentCount = commentCount + return &this +} + +// NewModerationPageSearchProjectedWithDefaults instantiates a new ModerationPageSearchProjected object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModerationPageSearchProjectedWithDefaults() *ModerationPageSearchProjected { + this := ModerationPageSearchProjected{} + return &this +} + +// GetUrlId returns the UrlId field value +func (o *ModerationPageSearchProjected) GetUrlId() string { + if o == nil { + var ret string + return ret + } + + return o.UrlId +} + +// GetUrlIdOk returns a tuple with the UrlId field value +// and a boolean to check if the value has been set. +func (o *ModerationPageSearchProjected) GetUrlIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UrlId, true +} + +// SetUrlId sets field value +func (o *ModerationPageSearchProjected) SetUrlId(v string) { + o.UrlId = v +} + +// GetUrl returns the Url field value +func (o *ModerationPageSearchProjected) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *ModerationPageSearchProjected) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *ModerationPageSearchProjected) SetUrl(v string) { + o.Url = v +} + +// GetTitle returns the Title field value +func (o *ModerationPageSearchProjected) GetTitle() string { + if o == nil { + var ret string + return ret + } + + return o.Title +} + +// GetTitleOk returns a tuple with the Title field value +// and a boolean to check if the value has been set. +func (o *ModerationPageSearchProjected) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Title, true +} + +// SetTitle sets field value +func (o *ModerationPageSearchProjected) SetTitle(v string) { + o.Title = v +} + +// GetCommentCount returns the CommentCount field value +func (o *ModerationPageSearchProjected) GetCommentCount() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.CommentCount +} + +// GetCommentCountOk returns a tuple with the CommentCount field value +// and a boolean to check if the value has been set. +func (o *ModerationPageSearchProjected) GetCommentCountOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.CommentCount, true +} + +// SetCommentCount sets field value +func (o *ModerationPageSearchProjected) SetCommentCount(v float64) { + o.CommentCount = v +} + +func (o ModerationPageSearchProjected) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModerationPageSearchProjected) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["urlId"] = o.UrlId + toSerialize["url"] = o.Url + toSerialize["title"] = o.Title + toSerialize["commentCount"] = o.CommentCount + return toSerialize, nil +} + +func (o *ModerationPageSearchProjected) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "urlId", + "url", + "title", + "commentCount", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varModerationPageSearchProjected := _ModerationPageSearchProjected{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varModerationPageSearchProjected) + + if err != nil { + return err + } + + *o = ModerationPageSearchProjected(varModerationPageSearchProjected) + + return err +} + +type NullableModerationPageSearchProjected struct { + value *ModerationPageSearchProjected + isSet bool +} + +func (v NullableModerationPageSearchProjected) Get() *ModerationPageSearchProjected { + return v.value +} + +func (v *NullableModerationPageSearchProjected) Set(val *ModerationPageSearchProjected) { + v.value = val + v.isSet = true +} + +func (v NullableModerationPageSearchProjected) IsSet() bool { + return v.isSet +} + +func (v *NullableModerationPageSearchProjected) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModerationPageSearchProjected(val *ModerationPageSearchProjected) *NullableModerationPageSearchProjected { + return &NullableModerationPageSearchProjected{value: val, isSet: true} +} + +func (v NullableModerationPageSearchProjected) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModerationPageSearchProjected) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_moderation_page_search_response.go b/client/model_moderation_page_search_response.go new file mode 100644 index 0000000..e907925 --- /dev/null +++ b/client/model_moderation_page_search_response.go @@ -0,0 +1,186 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the ModerationPageSearchResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModerationPageSearchResponse{} + +// ModerationPageSearchResponse struct for ModerationPageSearchResponse +type ModerationPageSearchResponse struct { + Pages []ModerationPageSearchProjected `json:"pages"` + Status APIStatus `json:"status"` +} + +type _ModerationPageSearchResponse ModerationPageSearchResponse + +// NewModerationPageSearchResponse instantiates a new ModerationPageSearchResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModerationPageSearchResponse(pages []ModerationPageSearchProjected, status APIStatus) *ModerationPageSearchResponse { + this := ModerationPageSearchResponse{} + this.Pages = pages + this.Status = status + return &this +} + +// NewModerationPageSearchResponseWithDefaults instantiates a new ModerationPageSearchResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModerationPageSearchResponseWithDefaults() *ModerationPageSearchResponse { + this := ModerationPageSearchResponse{} + return &this +} + +// GetPages returns the Pages field value +func (o *ModerationPageSearchResponse) GetPages() []ModerationPageSearchProjected { + if o == nil { + var ret []ModerationPageSearchProjected + return ret + } + + return o.Pages +} + +// GetPagesOk returns a tuple with the Pages field value +// and a boolean to check if the value has been set. +func (o *ModerationPageSearchResponse) GetPagesOk() ([]ModerationPageSearchProjected, bool) { + if o == nil { + return nil, false + } + return o.Pages, true +} + +// SetPages sets field value +func (o *ModerationPageSearchResponse) SetPages(v []ModerationPageSearchProjected) { + o.Pages = v +} + +// GetStatus returns the Status field value +func (o *ModerationPageSearchResponse) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *ModerationPageSearchResponse) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *ModerationPageSearchResponse) SetStatus(v APIStatus) { + o.Status = v +} + +func (o ModerationPageSearchResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModerationPageSearchResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["pages"] = o.Pages + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *ModerationPageSearchResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "pages", + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varModerationPageSearchResponse := _ModerationPageSearchResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varModerationPageSearchResponse) + + if err != nil { + return err + } + + *o = ModerationPageSearchResponse(varModerationPageSearchResponse) + + return err +} + +type NullableModerationPageSearchResponse struct { + value *ModerationPageSearchResponse + isSet bool +} + +func (v NullableModerationPageSearchResponse) Get() *ModerationPageSearchResponse { + return v.value +} + +func (v *NullableModerationPageSearchResponse) Set(val *ModerationPageSearchResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModerationPageSearchResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModerationPageSearchResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModerationPageSearchResponse(val *ModerationPageSearchResponse) *NullableModerationPageSearchResponse { + return &NullableModerationPageSearchResponse{value: val, isSet: true} +} + +func (v NullableModerationPageSearchResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModerationPageSearchResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_moderation_site_search_projected.go b/client/model_moderation_site_search_projected.go new file mode 100644 index 0000000..1c05b8c --- /dev/null +++ b/client/model_moderation_site_search_projected.go @@ -0,0 +1,204 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the ModerationSiteSearchProjected type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModerationSiteSearchProjected{} + +// ModerationSiteSearchProjected struct for ModerationSiteSearchProjected +type ModerationSiteSearchProjected struct { + Domain string `json:"domain"` + LogoSrc100px NullableString `json:"logoSrc100px,omitempty"` +} + +type _ModerationSiteSearchProjected ModerationSiteSearchProjected + +// NewModerationSiteSearchProjected instantiates a new ModerationSiteSearchProjected object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModerationSiteSearchProjected(domain string) *ModerationSiteSearchProjected { + this := ModerationSiteSearchProjected{} + this.Domain = domain + return &this +} + +// NewModerationSiteSearchProjectedWithDefaults instantiates a new ModerationSiteSearchProjected object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModerationSiteSearchProjectedWithDefaults() *ModerationSiteSearchProjected { + this := ModerationSiteSearchProjected{} + return &this +} + +// GetDomain returns the Domain field value +func (o *ModerationSiteSearchProjected) GetDomain() string { + if o == nil { + var ret string + return ret + } + + return o.Domain +} + +// GetDomainOk returns a tuple with the Domain field value +// and a boolean to check if the value has been set. +func (o *ModerationSiteSearchProjected) GetDomainOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Domain, true +} + +// SetDomain sets field value +func (o *ModerationSiteSearchProjected) SetDomain(v string) { + o.Domain = v +} + +// GetLogoSrc100px returns the LogoSrc100px field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModerationSiteSearchProjected) GetLogoSrc100px() string { + if o == nil || IsNil(o.LogoSrc100px.Get()) { + var ret string + return ret + } + return *o.LogoSrc100px.Get() +} + +// GetLogoSrc100pxOk returns a tuple with the LogoSrc100px field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModerationSiteSearchProjected) GetLogoSrc100pxOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.LogoSrc100px.Get(), o.LogoSrc100px.IsSet() +} + +// HasLogoSrc100px returns a boolean if a field has been set. +func (o *ModerationSiteSearchProjected) HasLogoSrc100px() bool { + if o != nil && o.LogoSrc100px.IsSet() { + return true + } + + return false +} + +// SetLogoSrc100px gets a reference to the given NullableString and assigns it to the LogoSrc100px field. +func (o *ModerationSiteSearchProjected) SetLogoSrc100px(v string) { + o.LogoSrc100px.Set(&v) +} +// SetLogoSrc100pxNil sets the value for LogoSrc100px to be an explicit nil +func (o *ModerationSiteSearchProjected) SetLogoSrc100pxNil() { + o.LogoSrc100px.Set(nil) +} + +// UnsetLogoSrc100px ensures that no value is present for LogoSrc100px, not even an explicit nil +func (o *ModerationSiteSearchProjected) UnsetLogoSrc100px() { + o.LogoSrc100px.Unset() +} + +func (o ModerationSiteSearchProjected) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModerationSiteSearchProjected) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["domain"] = o.Domain + if o.LogoSrc100px.IsSet() { + toSerialize["logoSrc100px"] = o.LogoSrc100px.Get() + } + return toSerialize, nil +} + +func (o *ModerationSiteSearchProjected) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "domain", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varModerationSiteSearchProjected := _ModerationSiteSearchProjected{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varModerationSiteSearchProjected) + + if err != nil { + return err + } + + *o = ModerationSiteSearchProjected(varModerationSiteSearchProjected) + + return err +} + +type NullableModerationSiteSearchProjected struct { + value *ModerationSiteSearchProjected + isSet bool +} + +func (v NullableModerationSiteSearchProjected) Get() *ModerationSiteSearchProjected { + return v.value +} + +func (v *NullableModerationSiteSearchProjected) Set(val *ModerationSiteSearchProjected) { + v.value = val + v.isSet = true +} + +func (v NullableModerationSiteSearchProjected) IsSet() bool { + return v.isSet +} + +func (v *NullableModerationSiteSearchProjected) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModerationSiteSearchProjected(val *ModerationSiteSearchProjected) *NullableModerationSiteSearchProjected { + return &NullableModerationSiteSearchProjected{value: val, isSet: true} +} + +func (v NullableModerationSiteSearchProjected) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModerationSiteSearchProjected) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_moderation_site_search_response.go b/client/model_moderation_site_search_response.go new file mode 100644 index 0000000..60b2f1a --- /dev/null +++ b/client/model_moderation_site_search_response.go @@ -0,0 +1,186 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the ModerationSiteSearchResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModerationSiteSearchResponse{} + +// ModerationSiteSearchResponse struct for ModerationSiteSearchResponse +type ModerationSiteSearchResponse struct { + Sites []ModerationSiteSearchProjected `json:"sites"` + Status APIStatus `json:"status"` +} + +type _ModerationSiteSearchResponse ModerationSiteSearchResponse + +// NewModerationSiteSearchResponse instantiates a new ModerationSiteSearchResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModerationSiteSearchResponse(sites []ModerationSiteSearchProjected, status APIStatus) *ModerationSiteSearchResponse { + this := ModerationSiteSearchResponse{} + this.Sites = sites + this.Status = status + return &this +} + +// NewModerationSiteSearchResponseWithDefaults instantiates a new ModerationSiteSearchResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModerationSiteSearchResponseWithDefaults() *ModerationSiteSearchResponse { + this := ModerationSiteSearchResponse{} + return &this +} + +// GetSites returns the Sites field value +func (o *ModerationSiteSearchResponse) GetSites() []ModerationSiteSearchProjected { + if o == nil { + var ret []ModerationSiteSearchProjected + return ret + } + + return o.Sites +} + +// GetSitesOk returns a tuple with the Sites field value +// and a boolean to check if the value has been set. +func (o *ModerationSiteSearchResponse) GetSitesOk() ([]ModerationSiteSearchProjected, bool) { + if o == nil { + return nil, false + } + return o.Sites, true +} + +// SetSites sets field value +func (o *ModerationSiteSearchResponse) SetSites(v []ModerationSiteSearchProjected) { + o.Sites = v +} + +// GetStatus returns the Status field value +func (o *ModerationSiteSearchResponse) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *ModerationSiteSearchResponse) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *ModerationSiteSearchResponse) SetStatus(v APIStatus) { + o.Status = v +} + +func (o ModerationSiteSearchResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModerationSiteSearchResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["sites"] = o.Sites + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *ModerationSiteSearchResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "sites", + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varModerationSiteSearchResponse := _ModerationSiteSearchResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varModerationSiteSearchResponse) + + if err != nil { + return err + } + + *o = ModerationSiteSearchResponse(varModerationSiteSearchResponse) + + return err +} + +type NullableModerationSiteSearchResponse struct { + value *ModerationSiteSearchResponse + isSet bool +} + +func (v NullableModerationSiteSearchResponse) Get() *ModerationSiteSearchResponse { + return v.value +} + +func (v *NullableModerationSiteSearchResponse) Set(val *ModerationSiteSearchResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModerationSiteSearchResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModerationSiteSearchResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModerationSiteSearchResponse(val *ModerationSiteSearchResponse) *NullableModerationSiteSearchResponse { + return &NullableModerationSiteSearchResponse{value: val, isSet: true} +} + +func (v NullableModerationSiteSearchResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModerationSiteSearchResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_moderation_suggest_response.go b/client/model_moderation_suggest_response.go new file mode 100644 index 0000000..bef3f6b --- /dev/null +++ b/client/model_moderation_suggest_response.go @@ -0,0 +1,266 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the ModerationSuggestResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModerationSuggestResponse{} + +// ModerationSuggestResponse struct for ModerationSuggestResponse +type ModerationSuggestResponse struct { + Status string `json:"status"` + Pages []ModerationPageSearchProjected `json:"pages,omitempty"` + Users []ModerationUserSearchProjected `json:"users,omitempty"` + Code *string `json:"code,omitempty"` +} + +type _ModerationSuggestResponse ModerationSuggestResponse + +// NewModerationSuggestResponse instantiates a new ModerationSuggestResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModerationSuggestResponse(status string) *ModerationSuggestResponse { + this := ModerationSuggestResponse{} + this.Status = status + return &this +} + +// NewModerationSuggestResponseWithDefaults instantiates a new ModerationSuggestResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModerationSuggestResponseWithDefaults() *ModerationSuggestResponse { + this := ModerationSuggestResponse{} + return &this +} + +// GetStatus returns the Status field value +func (o *ModerationSuggestResponse) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *ModerationSuggestResponse) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *ModerationSuggestResponse) SetStatus(v string) { + o.Status = v +} + +// GetPages returns the Pages field value if set, zero value otherwise. +func (o *ModerationSuggestResponse) GetPages() []ModerationPageSearchProjected { + if o == nil || IsNil(o.Pages) { + var ret []ModerationPageSearchProjected + return ret + } + return o.Pages +} + +// GetPagesOk returns a tuple with the Pages field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModerationSuggestResponse) GetPagesOk() ([]ModerationPageSearchProjected, bool) { + if o == nil || IsNil(o.Pages) { + return nil, false + } + return o.Pages, true +} + +// HasPages returns a boolean if a field has been set. +func (o *ModerationSuggestResponse) HasPages() bool { + if o != nil && !IsNil(o.Pages) { + return true + } + + return false +} + +// SetPages gets a reference to the given []ModerationPageSearchProjected and assigns it to the Pages field. +func (o *ModerationSuggestResponse) SetPages(v []ModerationPageSearchProjected) { + o.Pages = v +} + +// GetUsers returns the Users field value if set, zero value otherwise. +func (o *ModerationSuggestResponse) GetUsers() []ModerationUserSearchProjected { + if o == nil || IsNil(o.Users) { + var ret []ModerationUserSearchProjected + return ret + } + return o.Users +} + +// GetUsersOk returns a tuple with the Users field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModerationSuggestResponse) GetUsersOk() ([]ModerationUserSearchProjected, bool) { + if o == nil || IsNil(o.Users) { + return nil, false + } + return o.Users, true +} + +// HasUsers returns a boolean if a field has been set. +func (o *ModerationSuggestResponse) HasUsers() bool { + if o != nil && !IsNil(o.Users) { + return true + } + + return false +} + +// SetUsers gets a reference to the given []ModerationUserSearchProjected and assigns it to the Users field. +func (o *ModerationSuggestResponse) SetUsers(v []ModerationUserSearchProjected) { + o.Users = v +} + +// GetCode returns the Code field value if set, zero value otherwise. +func (o *ModerationSuggestResponse) GetCode() string { + if o == nil || IsNil(o.Code) { + var ret string + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModerationSuggestResponse) GetCodeOk() (*string, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *ModerationSuggestResponse) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given string and assigns it to the Code field. +func (o *ModerationSuggestResponse) SetCode(v string) { + o.Code = &v +} + +func (o ModerationSuggestResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModerationSuggestResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["status"] = o.Status + if !IsNil(o.Pages) { + toSerialize["pages"] = o.Pages + } + if !IsNil(o.Users) { + toSerialize["users"] = o.Users + } + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } + return toSerialize, nil +} + +func (o *ModerationSuggestResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varModerationSuggestResponse := _ModerationSuggestResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varModerationSuggestResponse) + + if err != nil { + return err + } + + *o = ModerationSuggestResponse(varModerationSuggestResponse) + + return err +} + +type NullableModerationSuggestResponse struct { + value *ModerationSuggestResponse + isSet bool +} + +func (v NullableModerationSuggestResponse) Get() *ModerationSuggestResponse { + return v.value +} + +func (v *NullableModerationSuggestResponse) Set(val *ModerationSuggestResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModerationSuggestResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModerationSuggestResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModerationSuggestResponse(val *ModerationSuggestResponse) *NullableModerationSuggestResponse { + return &NullableModerationSuggestResponse{value: val, isSet: true} +} + +func (v NullableModerationSuggestResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModerationSuggestResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_moderation_user_search_projected.go b/client/model_moderation_user_search_projected.go new file mode 100644 index 0000000..af796f6 --- /dev/null +++ b/client/model_moderation_user_search_projected.go @@ -0,0 +1,278 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the ModerationUserSearchProjected type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModerationUserSearchProjected{} + +// ModerationUserSearchProjected struct for ModerationUserSearchProjected +type ModerationUserSearchProjected struct { + Id string `json:"_id"` + Username string `json:"username"` + DisplayName NullableString `json:"displayName,omitempty"` + AvatarSrc NullableString `json:"avatarSrc,omitempty"` +} + +type _ModerationUserSearchProjected ModerationUserSearchProjected + +// NewModerationUserSearchProjected instantiates a new ModerationUserSearchProjected object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModerationUserSearchProjected(id string, username string) *ModerationUserSearchProjected { + this := ModerationUserSearchProjected{} + this.Id = id + this.Username = username + return &this +} + +// NewModerationUserSearchProjectedWithDefaults instantiates a new ModerationUserSearchProjected object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModerationUserSearchProjectedWithDefaults() *ModerationUserSearchProjected { + this := ModerationUserSearchProjected{} + return &this +} + +// GetId returns the Id field value +func (o *ModerationUserSearchProjected) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ModerationUserSearchProjected) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ModerationUserSearchProjected) SetId(v string) { + o.Id = v +} + +// GetUsername returns the Username field value +func (o *ModerationUserSearchProjected) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *ModerationUserSearchProjected) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *ModerationUserSearchProjected) SetUsername(v string) { + o.Username = v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModerationUserSearchProjected) GetDisplayName() string { + if o == nil || IsNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModerationUserSearchProjected) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *ModerationUserSearchProjected) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *ModerationUserSearchProjected) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *ModerationUserSearchProjected) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *ModerationUserSearchProjected) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetAvatarSrc returns the AvatarSrc field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModerationUserSearchProjected) GetAvatarSrc() string { + if o == nil || IsNil(o.AvatarSrc.Get()) { + var ret string + return ret + } + return *o.AvatarSrc.Get() +} + +// GetAvatarSrcOk returns a tuple with the AvatarSrc field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModerationUserSearchProjected) GetAvatarSrcOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AvatarSrc.Get(), o.AvatarSrc.IsSet() +} + +// HasAvatarSrc returns a boolean if a field has been set. +func (o *ModerationUserSearchProjected) HasAvatarSrc() bool { + if o != nil && o.AvatarSrc.IsSet() { + return true + } + + return false +} + +// SetAvatarSrc gets a reference to the given NullableString and assigns it to the AvatarSrc field. +func (o *ModerationUserSearchProjected) SetAvatarSrc(v string) { + o.AvatarSrc.Set(&v) +} +// SetAvatarSrcNil sets the value for AvatarSrc to be an explicit nil +func (o *ModerationUserSearchProjected) SetAvatarSrcNil() { + o.AvatarSrc.Set(nil) +} + +// UnsetAvatarSrc ensures that no value is present for AvatarSrc, not even an explicit nil +func (o *ModerationUserSearchProjected) UnsetAvatarSrc() { + o.AvatarSrc.Unset() +} + +func (o ModerationUserSearchProjected) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModerationUserSearchProjected) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["_id"] = o.Id + toSerialize["username"] = o.Username + if o.DisplayName.IsSet() { + toSerialize["displayName"] = o.DisplayName.Get() + } + if o.AvatarSrc.IsSet() { + toSerialize["avatarSrc"] = o.AvatarSrc.Get() + } + return toSerialize, nil +} + +func (o *ModerationUserSearchProjected) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "_id", + "username", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varModerationUserSearchProjected := _ModerationUserSearchProjected{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varModerationUserSearchProjected) + + if err != nil { + return err + } + + *o = ModerationUserSearchProjected(varModerationUserSearchProjected) + + return err +} + +type NullableModerationUserSearchProjected struct { + value *ModerationUserSearchProjected + isSet bool +} + +func (v NullableModerationUserSearchProjected) Get() *ModerationUserSearchProjected { + return v.value +} + +func (v *NullableModerationUserSearchProjected) Set(val *ModerationUserSearchProjected) { + v.value = val + v.isSet = true +} + +func (v NullableModerationUserSearchProjected) IsSet() bool { + return v.isSet +} + +func (v *NullableModerationUserSearchProjected) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModerationUserSearchProjected(val *ModerationUserSearchProjected) *NullableModerationUserSearchProjected { + return &NullableModerationUserSearchProjected{value: val, isSet: true} +} + +func (v NullableModerationUserSearchProjected) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModerationUserSearchProjected) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_moderation_user_search_response.go b/client/model_moderation_user_search_response.go new file mode 100644 index 0000000..74375ea --- /dev/null +++ b/client/model_moderation_user_search_response.go @@ -0,0 +1,186 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the ModerationUserSearchResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModerationUserSearchResponse{} + +// ModerationUserSearchResponse struct for ModerationUserSearchResponse +type ModerationUserSearchResponse struct { + Users []ModerationUserSearchProjected `json:"users"` + Status APIStatus `json:"status"` +} + +type _ModerationUserSearchResponse ModerationUserSearchResponse + +// NewModerationUserSearchResponse instantiates a new ModerationUserSearchResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModerationUserSearchResponse(users []ModerationUserSearchProjected, status APIStatus) *ModerationUserSearchResponse { + this := ModerationUserSearchResponse{} + this.Users = users + this.Status = status + return &this +} + +// NewModerationUserSearchResponseWithDefaults instantiates a new ModerationUserSearchResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModerationUserSearchResponseWithDefaults() *ModerationUserSearchResponse { + this := ModerationUserSearchResponse{} + return &this +} + +// GetUsers returns the Users field value +func (o *ModerationUserSearchResponse) GetUsers() []ModerationUserSearchProjected { + if o == nil { + var ret []ModerationUserSearchProjected + return ret + } + + return o.Users +} + +// GetUsersOk returns a tuple with the Users field value +// and a boolean to check if the value has been set. +func (o *ModerationUserSearchResponse) GetUsersOk() ([]ModerationUserSearchProjected, bool) { + if o == nil { + return nil, false + } + return o.Users, true +} + +// SetUsers sets field value +func (o *ModerationUserSearchResponse) SetUsers(v []ModerationUserSearchProjected) { + o.Users = v +} + +// GetStatus returns the Status field value +func (o *ModerationUserSearchResponse) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *ModerationUserSearchResponse) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *ModerationUserSearchResponse) SetStatus(v APIStatus) { + o.Status = v +} + +func (o ModerationUserSearchResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModerationUserSearchResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["users"] = o.Users + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *ModerationUserSearchResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "users", + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varModerationUserSearchResponse := _ModerationUserSearchResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varModerationUserSearchResponse) + + if err != nil { + return err + } + + *o = ModerationUserSearchResponse(varModerationUserSearchResponse) + + return err +} + +type NullableModerationUserSearchResponse struct { + value *ModerationUserSearchResponse + isSet bool +} + +func (v NullableModerationUserSearchResponse) Get() *ModerationUserSearchResponse { + return v.value +} + +func (v *NullableModerationUserSearchResponse) Set(val *ModerationUserSearchResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModerationUserSearchResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModerationUserSearchResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModerationUserSearchResponse(val *ModerationUserSearchResponse) *NullableModerationUserSearchResponse { + return &NullableModerationUserSearchResponse{value: val, isSet: true} +} + +func (v NullableModerationUserSearchResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModerationUserSearchResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_page_user_entry.go b/client/model_page_user_entry.go new file mode 100644 index 0000000..912420c --- /dev/null +++ b/client/model_page_user_entry.go @@ -0,0 +1,258 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the PageUserEntry type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PageUserEntry{} + +// PageUserEntry struct for PageUserEntry +type PageUserEntry struct { + IsPrivate *bool `json:"isPrivate,omitempty"` + AvatarSrc *string `json:"avatarSrc,omitempty"` + DisplayName string `json:"displayName"` + Id string `json:"id"` +} + +type _PageUserEntry PageUserEntry + +// NewPageUserEntry instantiates a new PageUserEntry object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPageUserEntry(displayName string, id string) *PageUserEntry { + this := PageUserEntry{} + this.DisplayName = displayName + this.Id = id + return &this +} + +// NewPageUserEntryWithDefaults instantiates a new PageUserEntry object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPageUserEntryWithDefaults() *PageUserEntry { + this := PageUserEntry{} + return &this +} + +// GetIsPrivate returns the IsPrivate field value if set, zero value otherwise. +func (o *PageUserEntry) GetIsPrivate() bool { + if o == nil || IsNil(o.IsPrivate) { + var ret bool + return ret + } + return *o.IsPrivate +} + +// GetIsPrivateOk returns a tuple with the IsPrivate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PageUserEntry) GetIsPrivateOk() (*bool, bool) { + if o == nil || IsNil(o.IsPrivate) { + return nil, false + } + return o.IsPrivate, true +} + +// HasIsPrivate returns a boolean if a field has been set. +func (o *PageUserEntry) HasIsPrivate() bool { + if o != nil && !IsNil(o.IsPrivate) { + return true + } + + return false +} + +// SetIsPrivate gets a reference to the given bool and assigns it to the IsPrivate field. +func (o *PageUserEntry) SetIsPrivate(v bool) { + o.IsPrivate = &v +} + +// GetAvatarSrc returns the AvatarSrc field value if set, zero value otherwise. +func (o *PageUserEntry) GetAvatarSrc() string { + if o == nil || IsNil(o.AvatarSrc) { + var ret string + return ret + } + return *o.AvatarSrc +} + +// GetAvatarSrcOk returns a tuple with the AvatarSrc field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PageUserEntry) GetAvatarSrcOk() (*string, bool) { + if o == nil || IsNil(o.AvatarSrc) { + return nil, false + } + return o.AvatarSrc, true +} + +// HasAvatarSrc returns a boolean if a field has been set. +func (o *PageUserEntry) HasAvatarSrc() bool { + if o != nil && !IsNil(o.AvatarSrc) { + return true + } + + return false +} + +// SetAvatarSrc gets a reference to the given string and assigns it to the AvatarSrc field. +func (o *PageUserEntry) SetAvatarSrc(v string) { + o.AvatarSrc = &v +} + +// GetDisplayName returns the DisplayName field value +func (o *PageUserEntry) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *PageUserEntry) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *PageUserEntry) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetId returns the Id field value +func (o *PageUserEntry) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *PageUserEntry) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *PageUserEntry) SetId(v string) { + o.Id = v +} + +func (o PageUserEntry) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PageUserEntry) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.IsPrivate) { + toSerialize["isPrivate"] = o.IsPrivate + } + if !IsNil(o.AvatarSrc) { + toSerialize["avatarSrc"] = o.AvatarSrc + } + toSerialize["displayName"] = o.DisplayName + toSerialize["id"] = o.Id + return toSerialize, nil +} + +func (o *PageUserEntry) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "displayName", + "id", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPageUserEntry := _PageUserEntry{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPageUserEntry) + + if err != nil { + return err + } + + *o = PageUserEntry(varPageUserEntry) + + return err +} + +type NullablePageUserEntry struct { + value *PageUserEntry + isSet bool +} + +func (v NullablePageUserEntry) Get() *PageUserEntry { + return v.value +} + +func (v *NullablePageUserEntry) Set(val *PageUserEntry) { + v.value = val + v.isSet = true +} + +func (v NullablePageUserEntry) IsSet() bool { + return v.isSet +} + +func (v *NullablePageUserEntry) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePageUserEntry(val *PageUserEntry) *NullablePageUserEntry { + return &NullablePageUserEntry{value: val, isSet: true} +} + +func (v NullablePageUserEntry) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePageUserEntry) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_page_users_info_response.go b/client/model_page_users_info_response.go new file mode 100644 index 0000000..3fa98e7 --- /dev/null +++ b/client/model_page_users_info_response.go @@ -0,0 +1,186 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the PageUsersInfoResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PageUsersInfoResponse{} + +// PageUsersInfoResponse struct for PageUsersInfoResponse +type PageUsersInfoResponse struct { + Users []PageUserEntry `json:"users"` + Status APIStatus `json:"status"` +} + +type _PageUsersInfoResponse PageUsersInfoResponse + +// NewPageUsersInfoResponse instantiates a new PageUsersInfoResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPageUsersInfoResponse(users []PageUserEntry, status APIStatus) *PageUsersInfoResponse { + this := PageUsersInfoResponse{} + this.Users = users + this.Status = status + return &this +} + +// NewPageUsersInfoResponseWithDefaults instantiates a new PageUsersInfoResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPageUsersInfoResponseWithDefaults() *PageUsersInfoResponse { + this := PageUsersInfoResponse{} + return &this +} + +// GetUsers returns the Users field value +func (o *PageUsersInfoResponse) GetUsers() []PageUserEntry { + if o == nil { + var ret []PageUserEntry + return ret + } + + return o.Users +} + +// GetUsersOk returns a tuple with the Users field value +// and a boolean to check if the value has been set. +func (o *PageUsersInfoResponse) GetUsersOk() ([]PageUserEntry, bool) { + if o == nil { + return nil, false + } + return o.Users, true +} + +// SetUsers sets field value +func (o *PageUsersInfoResponse) SetUsers(v []PageUserEntry) { + o.Users = v +} + +// GetStatus returns the Status field value +func (o *PageUsersInfoResponse) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *PageUsersInfoResponse) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *PageUsersInfoResponse) SetStatus(v APIStatus) { + o.Status = v +} + +func (o PageUsersInfoResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PageUsersInfoResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["users"] = o.Users + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *PageUsersInfoResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "users", + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPageUsersInfoResponse := _PageUsersInfoResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPageUsersInfoResponse) + + if err != nil { + return err + } + + *o = PageUsersInfoResponse(varPageUsersInfoResponse) + + return err +} + +type NullablePageUsersInfoResponse struct { + value *PageUsersInfoResponse + isSet bool +} + +func (v NullablePageUsersInfoResponse) Get() *PageUsersInfoResponse { + return v.value +} + +func (v *NullablePageUsersInfoResponse) Set(val *PageUsersInfoResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePageUsersInfoResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePageUsersInfoResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePageUsersInfoResponse(val *PageUsersInfoResponse) *NullablePageUsersInfoResponse { + return &NullablePageUsersInfoResponse{value: val, isSet: true} +} + +func (v NullablePageUsersInfoResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePageUsersInfoResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_page_users_offline_response.go b/client/model_page_users_offline_response.go new file mode 100644 index 0000000..d591e4c --- /dev/null +++ b/client/model_page_users_offline_response.go @@ -0,0 +1,246 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the PageUsersOfflineResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PageUsersOfflineResponse{} + +// PageUsersOfflineResponse struct for PageUsersOfflineResponse +type PageUsersOfflineResponse struct { + NextAfterUserId NullableString `json:"nextAfterUserId"` + NextAfterName NullableString `json:"nextAfterName"` + Users []PageUserEntry `json:"users"` + Status APIStatus `json:"status"` +} + +type _PageUsersOfflineResponse PageUsersOfflineResponse + +// NewPageUsersOfflineResponse instantiates a new PageUsersOfflineResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPageUsersOfflineResponse(nextAfterUserId NullableString, nextAfterName NullableString, users []PageUserEntry, status APIStatus) *PageUsersOfflineResponse { + this := PageUsersOfflineResponse{} + this.NextAfterUserId = nextAfterUserId + this.NextAfterName = nextAfterName + this.Users = users + this.Status = status + return &this +} + +// NewPageUsersOfflineResponseWithDefaults instantiates a new PageUsersOfflineResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPageUsersOfflineResponseWithDefaults() *PageUsersOfflineResponse { + this := PageUsersOfflineResponse{} + return &this +} + +// GetNextAfterUserId returns the NextAfterUserId field value +// If the value is explicit nil, the zero value for string will be returned +func (o *PageUsersOfflineResponse) GetNextAfterUserId() string { + if o == nil || o.NextAfterUserId.Get() == nil { + var ret string + return ret + } + + return *o.NextAfterUserId.Get() +} + +// GetNextAfterUserIdOk returns a tuple with the NextAfterUserId field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PageUsersOfflineResponse) GetNextAfterUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.NextAfterUserId.Get(), o.NextAfterUserId.IsSet() +} + +// SetNextAfterUserId sets field value +func (o *PageUsersOfflineResponse) SetNextAfterUserId(v string) { + o.NextAfterUserId.Set(&v) +} + +// GetNextAfterName returns the NextAfterName field value +// If the value is explicit nil, the zero value for string will be returned +func (o *PageUsersOfflineResponse) GetNextAfterName() string { + if o == nil || o.NextAfterName.Get() == nil { + var ret string + return ret + } + + return *o.NextAfterName.Get() +} + +// GetNextAfterNameOk returns a tuple with the NextAfterName field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PageUsersOfflineResponse) GetNextAfterNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.NextAfterName.Get(), o.NextAfterName.IsSet() +} + +// SetNextAfterName sets field value +func (o *PageUsersOfflineResponse) SetNextAfterName(v string) { + o.NextAfterName.Set(&v) +} + +// GetUsers returns the Users field value +func (o *PageUsersOfflineResponse) GetUsers() []PageUserEntry { + if o == nil { + var ret []PageUserEntry + return ret + } + + return o.Users +} + +// GetUsersOk returns a tuple with the Users field value +// and a boolean to check if the value has been set. +func (o *PageUsersOfflineResponse) GetUsersOk() ([]PageUserEntry, bool) { + if o == nil { + return nil, false + } + return o.Users, true +} + +// SetUsers sets field value +func (o *PageUsersOfflineResponse) SetUsers(v []PageUserEntry) { + o.Users = v +} + +// GetStatus returns the Status field value +func (o *PageUsersOfflineResponse) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *PageUsersOfflineResponse) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *PageUsersOfflineResponse) SetStatus(v APIStatus) { + o.Status = v +} + +func (o PageUsersOfflineResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PageUsersOfflineResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["nextAfterUserId"] = o.NextAfterUserId.Get() + toSerialize["nextAfterName"] = o.NextAfterName.Get() + toSerialize["users"] = o.Users + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *PageUsersOfflineResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "nextAfterUserId", + "nextAfterName", + "users", + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPageUsersOfflineResponse := _PageUsersOfflineResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPageUsersOfflineResponse) + + if err != nil { + return err + } + + *o = PageUsersOfflineResponse(varPageUsersOfflineResponse) + + return err +} + +type NullablePageUsersOfflineResponse struct { + value *PageUsersOfflineResponse + isSet bool +} + +func (v NullablePageUsersOfflineResponse) Get() *PageUsersOfflineResponse { + return v.value +} + +func (v *NullablePageUsersOfflineResponse) Set(val *PageUsersOfflineResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePageUsersOfflineResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePageUsersOfflineResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePageUsersOfflineResponse(val *PageUsersOfflineResponse) *NullablePageUsersOfflineResponse { + return &NullablePageUsersOfflineResponse{value: val, isSet: true} +} + +func (v NullablePageUsersOfflineResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePageUsersOfflineResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_page_users_online_response.go b/client/model_page_users_online_response.go new file mode 100644 index 0000000..20d78dd --- /dev/null +++ b/client/model_page_users_online_response.go @@ -0,0 +1,302 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the PageUsersOnlineResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PageUsersOnlineResponse{} + +// PageUsersOnlineResponse struct for PageUsersOnlineResponse +type PageUsersOnlineResponse struct { + NextAfterUserId NullableString `json:"nextAfterUserId"` + NextAfterName NullableString `json:"nextAfterName"` + TotalCount float64 `json:"totalCount"` + AnonCount float64 `json:"anonCount"` + Users []PageUserEntry `json:"users"` + Status APIStatus `json:"status"` +} + +type _PageUsersOnlineResponse PageUsersOnlineResponse + +// NewPageUsersOnlineResponse instantiates a new PageUsersOnlineResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPageUsersOnlineResponse(nextAfterUserId NullableString, nextAfterName NullableString, totalCount float64, anonCount float64, users []PageUserEntry, status APIStatus) *PageUsersOnlineResponse { + this := PageUsersOnlineResponse{} + this.NextAfterUserId = nextAfterUserId + this.NextAfterName = nextAfterName + this.TotalCount = totalCount + this.AnonCount = anonCount + this.Users = users + this.Status = status + return &this +} + +// NewPageUsersOnlineResponseWithDefaults instantiates a new PageUsersOnlineResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPageUsersOnlineResponseWithDefaults() *PageUsersOnlineResponse { + this := PageUsersOnlineResponse{} + return &this +} + +// GetNextAfterUserId returns the NextAfterUserId field value +// If the value is explicit nil, the zero value for string will be returned +func (o *PageUsersOnlineResponse) GetNextAfterUserId() string { + if o == nil || o.NextAfterUserId.Get() == nil { + var ret string + return ret + } + + return *o.NextAfterUserId.Get() +} + +// GetNextAfterUserIdOk returns a tuple with the NextAfterUserId field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PageUsersOnlineResponse) GetNextAfterUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.NextAfterUserId.Get(), o.NextAfterUserId.IsSet() +} + +// SetNextAfterUserId sets field value +func (o *PageUsersOnlineResponse) SetNextAfterUserId(v string) { + o.NextAfterUserId.Set(&v) +} + +// GetNextAfterName returns the NextAfterName field value +// If the value is explicit nil, the zero value for string will be returned +func (o *PageUsersOnlineResponse) GetNextAfterName() string { + if o == nil || o.NextAfterName.Get() == nil { + var ret string + return ret + } + + return *o.NextAfterName.Get() +} + +// GetNextAfterNameOk returns a tuple with the NextAfterName field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PageUsersOnlineResponse) GetNextAfterNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.NextAfterName.Get(), o.NextAfterName.IsSet() +} + +// SetNextAfterName sets field value +func (o *PageUsersOnlineResponse) SetNextAfterName(v string) { + o.NextAfterName.Set(&v) +} + +// GetTotalCount returns the TotalCount field value +func (o *PageUsersOnlineResponse) GetTotalCount() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.TotalCount +} + +// GetTotalCountOk returns a tuple with the TotalCount field value +// and a boolean to check if the value has been set. +func (o *PageUsersOnlineResponse) GetTotalCountOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.TotalCount, true +} + +// SetTotalCount sets field value +func (o *PageUsersOnlineResponse) SetTotalCount(v float64) { + o.TotalCount = v +} + +// GetAnonCount returns the AnonCount field value +func (o *PageUsersOnlineResponse) GetAnonCount() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.AnonCount +} + +// GetAnonCountOk returns a tuple with the AnonCount field value +// and a boolean to check if the value has been set. +func (o *PageUsersOnlineResponse) GetAnonCountOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.AnonCount, true +} + +// SetAnonCount sets field value +func (o *PageUsersOnlineResponse) SetAnonCount(v float64) { + o.AnonCount = v +} + +// GetUsers returns the Users field value +func (o *PageUsersOnlineResponse) GetUsers() []PageUserEntry { + if o == nil { + var ret []PageUserEntry + return ret + } + + return o.Users +} + +// GetUsersOk returns a tuple with the Users field value +// and a boolean to check if the value has been set. +func (o *PageUsersOnlineResponse) GetUsersOk() ([]PageUserEntry, bool) { + if o == nil { + return nil, false + } + return o.Users, true +} + +// SetUsers sets field value +func (o *PageUsersOnlineResponse) SetUsers(v []PageUserEntry) { + o.Users = v +} + +// GetStatus returns the Status field value +func (o *PageUsersOnlineResponse) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *PageUsersOnlineResponse) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *PageUsersOnlineResponse) SetStatus(v APIStatus) { + o.Status = v +} + +func (o PageUsersOnlineResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PageUsersOnlineResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["nextAfterUserId"] = o.NextAfterUserId.Get() + toSerialize["nextAfterName"] = o.NextAfterName.Get() + toSerialize["totalCount"] = o.TotalCount + toSerialize["anonCount"] = o.AnonCount + toSerialize["users"] = o.Users + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *PageUsersOnlineResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "nextAfterUserId", + "nextAfterName", + "totalCount", + "anonCount", + "users", + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPageUsersOnlineResponse := _PageUsersOnlineResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPageUsersOnlineResponse) + + if err != nil { + return err + } + + *o = PageUsersOnlineResponse(varPageUsersOnlineResponse) + + return err +} + +type NullablePageUsersOnlineResponse struct { + value *PageUsersOnlineResponse + isSet bool +} + +func (v NullablePageUsersOnlineResponse) Get() *PageUsersOnlineResponse { + return v.value +} + +func (v *NullablePageUsersOnlineResponse) Set(val *PageUsersOnlineResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePageUsersOnlineResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePageUsersOnlineResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePageUsersOnlineResponse(val *PageUsersOnlineResponse) *NullablePageUsersOnlineResponse { + return &NullablePageUsersOnlineResponse{value: val, isSet: true} +} + +func (v NullablePageUsersOnlineResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePageUsersOnlineResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_pages_sort_by.go b/client/model_pages_sort_by.go new file mode 100644 index 0000000..92071ed --- /dev/null +++ b/client/model_pages_sort_by.go @@ -0,0 +1,113 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "fmt" +) + +// PagesSortBy the model 'PagesSortBy' +type PagesSortBy string + +// List of PagesSortBy +const ( + PAGESSORTBY_UPDATED_AT PagesSortBy = "updatedAt" + PAGESSORTBY_COMMENT_COUNT PagesSortBy = "commentCount" + PAGESSORTBY_TITLE PagesSortBy = "title" +) + +// All allowed values of PagesSortBy enum +var AllowedPagesSortByEnumValues = []PagesSortBy{ + "updatedAt", + "commentCount", + "title", +} + +func (v *PagesSortBy) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PagesSortBy(value) + for _, existing := range AllowedPagesSortByEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PagesSortBy", value) +} + +// NewPagesSortByFromValue returns a pointer to a valid PagesSortBy +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPagesSortByFromValue(v string) (*PagesSortBy, error) { + ev := PagesSortBy(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PagesSortBy: valid values are %v", v, AllowedPagesSortByEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PagesSortBy) IsValid() bool { + for _, existing := range AllowedPagesSortByEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to PagesSortBy value +func (v PagesSortBy) Ptr() *PagesSortBy { + return &v +} + +type NullablePagesSortBy struct { + value *PagesSortBy + isSet bool +} + +func (v NullablePagesSortBy) Get() *PagesSortBy { + return v.value +} + +func (v *NullablePagesSortBy) Set(val *PagesSortBy) { + v.value = val + v.isSet = true +} + +func (v NullablePagesSortBy) IsSet() bool { + return v.isSet +} + +func (v *NullablePagesSortBy) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePagesSortBy(val *PagesSortBy) *NullablePagesSortBy { + return &NullablePagesSortBy{value: val, isSet: true} +} + +func (v NullablePagesSortBy) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePagesSortBy) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/client/model_patch_domain_config_response.go b/client/model_patch_domain_config_response.go new file mode 100644 index 0000000..99c04b8 --- /dev/null +++ b/client/model_patch_domain_config_response.go @@ -0,0 +1,107 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "fmt" +) + + +// PatchDomainConfigResponse struct for PatchDomainConfigResponse +type PatchDomainConfigResponse struct { + AddDomainConfigResponseAnyOf *AddDomainConfigResponseAnyOf + GetDomainConfigsResponseAnyOf1 *GetDomainConfigsResponseAnyOf1 +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *PatchDomainConfigResponse) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into AddDomainConfigResponseAnyOf + err = json.Unmarshal(data, &dst.AddDomainConfigResponseAnyOf); + if err == nil { + jsonAddDomainConfigResponseAnyOf, _ := json.Marshal(dst.AddDomainConfigResponseAnyOf) + if string(jsonAddDomainConfigResponseAnyOf) == "{}" { // empty struct + dst.AddDomainConfigResponseAnyOf = nil + } else { + return nil // data stored in dst.AddDomainConfigResponseAnyOf, return on the first match + } + } else { + dst.AddDomainConfigResponseAnyOf = nil + } + + // try to unmarshal JSON data into GetDomainConfigsResponseAnyOf1 + err = json.Unmarshal(data, &dst.GetDomainConfigsResponseAnyOf1); + if err == nil { + jsonGetDomainConfigsResponseAnyOf1, _ := json.Marshal(dst.GetDomainConfigsResponseAnyOf1) + if string(jsonGetDomainConfigsResponseAnyOf1) == "{}" { // empty struct + dst.GetDomainConfigsResponseAnyOf1 = nil + } else { + return nil // data stored in dst.GetDomainConfigsResponseAnyOf1, return on the first match + } + } else { + dst.GetDomainConfigsResponseAnyOf1 = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(PatchDomainConfigResponse)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src PatchDomainConfigResponse) MarshalJSON() ([]byte, error) { + if src.AddDomainConfigResponseAnyOf != nil { + return json.Marshal(&src.AddDomainConfigResponseAnyOf) + } + + if src.GetDomainConfigsResponseAnyOf1 != nil { + return json.Marshal(&src.GetDomainConfigsResponseAnyOf1) + } + + return nil, nil // no data in anyOf schemas +} + + +type NullablePatchDomainConfigResponse struct { + value *PatchDomainConfigResponse + isSet bool +} + +func (v NullablePatchDomainConfigResponse) Get() *PatchDomainConfigResponse { + return v.value +} + +func (v *NullablePatchDomainConfigResponse) Set(val *PatchDomainConfigResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePatchDomainConfigResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchDomainConfigResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchDomainConfigResponse(val *PatchDomainConfigResponse) *NullablePatchDomainConfigResponse { + return &NullablePatchDomainConfigResponse{value: val, isSet: true} +} + +func (v NullablePatchDomainConfigResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchDomainConfigResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_patch_hash_tag_200_response.go b/client/model_patch_hash_tag_200_response.go deleted file mode 100644 index 44eabda..0000000 --- a/client/model_patch_hash_tag_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// PatchHashTag200Response struct for PatchHashTag200Response -type PatchHashTag200Response struct { - APIError *APIError - UpdateHashTagResponse *UpdateHashTagResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *PatchHashTag200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into UpdateHashTagResponse - err = json.Unmarshal(data, &dst.UpdateHashTagResponse); - if err == nil { - jsonUpdateHashTagResponse, _ := json.Marshal(dst.UpdateHashTagResponse) - if string(jsonUpdateHashTagResponse) == "{}" { // empty struct - dst.UpdateHashTagResponse = nil - } else { - return nil // data stored in dst.UpdateHashTagResponse, return on the first match - } - } else { - dst.UpdateHashTagResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(PatchHashTag200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src PatchHashTag200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.UpdateHashTagResponse != nil { - return json.Marshal(&src.UpdateHashTagResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullablePatchHashTag200Response struct { - value *PatchHashTag200Response - isSet bool -} - -func (v NullablePatchHashTag200Response) Get() *PatchHashTag200Response { - return v.value -} - -func (v *NullablePatchHashTag200Response) Set(val *PatchHashTag200Response) { - v.value = val - v.isSet = true -} - -func (v NullablePatchHashTag200Response) IsSet() bool { - return v.isSet -} - -func (v *NullablePatchHashTag200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePatchHashTag200Response(val *PatchHashTag200Response) *NullablePatchHashTag200Response { - return &NullablePatchHashTag200Response{value: val, isSet: true} -} - -func (v NullablePatchHashTag200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePatchHashTag200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_pin_comment_200_response.go b/client/model_pin_comment_200_response.go deleted file mode 100644 index 0f36e8d..0000000 --- a/client/model_pin_comment_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// PinComment200Response struct for PinComment200Response -type PinComment200Response struct { - APIError *APIError - ChangeCommentPinStatusResponse *ChangeCommentPinStatusResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *PinComment200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into ChangeCommentPinStatusResponse - err = json.Unmarshal(data, &dst.ChangeCommentPinStatusResponse); - if err == nil { - jsonChangeCommentPinStatusResponse, _ := json.Marshal(dst.ChangeCommentPinStatusResponse) - if string(jsonChangeCommentPinStatusResponse) == "{}" { // empty struct - dst.ChangeCommentPinStatusResponse = nil - } else { - return nil // data stored in dst.ChangeCommentPinStatusResponse, return on the first match - } - } else { - dst.ChangeCommentPinStatusResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(PinComment200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src PinComment200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.ChangeCommentPinStatusResponse != nil { - return json.Marshal(&src.ChangeCommentPinStatusResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullablePinComment200Response struct { - value *PinComment200Response - isSet bool -} - -func (v NullablePinComment200Response) Get() *PinComment200Response { - return v.value -} - -func (v *NullablePinComment200Response) Set(val *PinComment200Response) { - v.value = val - v.isSet = true -} - -func (v NullablePinComment200Response) IsSet() bool { - return v.isSet -} - -func (v *NullablePinComment200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePinComment200Response(val *PinComment200Response) *NullablePinComment200Response { - return &NullablePinComment200Response{value: val, isSet: true} -} - -func (v NullablePinComment200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePinComment200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_post_remove_comment_response.go b/client/model_post_remove_comment_response.go new file mode 100644 index 0000000..fd58ac1 --- /dev/null +++ b/client/model_post_remove_comment_response.go @@ -0,0 +1,107 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "fmt" +) + + +// PostRemoveCommentResponse struct for PostRemoveCommentResponse +type PostRemoveCommentResponse struct { + DeleteCommentResult *DeleteCommentResult + RemoveCommentActionResponse *RemoveCommentActionResponse +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *PostRemoveCommentResponse) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into DeleteCommentResult + err = json.Unmarshal(data, &dst.DeleteCommentResult); + if err == nil { + jsonDeleteCommentResult, _ := json.Marshal(dst.DeleteCommentResult) + if string(jsonDeleteCommentResult) == "{}" { // empty struct + dst.DeleteCommentResult = nil + } else { + return nil // data stored in dst.DeleteCommentResult, return on the first match + } + } else { + dst.DeleteCommentResult = nil + } + + // try to unmarshal JSON data into RemoveCommentActionResponse + err = json.Unmarshal(data, &dst.RemoveCommentActionResponse); + if err == nil { + jsonRemoveCommentActionResponse, _ := json.Marshal(dst.RemoveCommentActionResponse) + if string(jsonRemoveCommentActionResponse) == "{}" { // empty struct + dst.RemoveCommentActionResponse = nil + } else { + return nil // data stored in dst.RemoveCommentActionResponse, return on the first match + } + } else { + dst.RemoveCommentActionResponse = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(PostRemoveCommentResponse)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src PostRemoveCommentResponse) MarshalJSON() ([]byte, error) { + if src.DeleteCommentResult != nil { + return json.Marshal(&src.DeleteCommentResult) + } + + if src.RemoveCommentActionResponse != nil { + return json.Marshal(&src.RemoveCommentActionResponse) + } + + return nil, nil // no data in anyOf schemas +} + + +type NullablePostRemoveCommentResponse struct { + value *PostRemoveCommentResponse + isSet bool +} + +func (v NullablePostRemoveCommentResponse) Get() *PostRemoveCommentResponse { + return v.value +} + +func (v *NullablePostRemoveCommentResponse) Set(val *PostRemoveCommentResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePostRemoveCommentResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePostRemoveCommentResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostRemoveCommentResponse(val *PostRemoveCommentResponse) *NullablePostRemoveCommentResponse { + return &NullablePostRemoveCommentResponse{value: val, isSet: true} +} + +func (v NullablePostRemoveCommentResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostRemoveCommentResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_pre_ban_summary.go b/client/model_pre_ban_summary.go new file mode 100644 index 0000000..8c2b251 --- /dev/null +++ b/client/model_pre_ban_summary.go @@ -0,0 +1,214 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the PreBanSummary type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PreBanSummary{} + +// PreBanSummary struct for PreBanSummary +type PreBanSummary struct { + Status APIStatus `json:"status"` + Usernames []string `json:"usernames"` + Count float64 `json:"count"` +} + +type _PreBanSummary PreBanSummary + +// NewPreBanSummary instantiates a new PreBanSummary object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPreBanSummary(status APIStatus, usernames []string, count float64) *PreBanSummary { + this := PreBanSummary{} + this.Status = status + this.Usernames = usernames + this.Count = count + return &this +} + +// NewPreBanSummaryWithDefaults instantiates a new PreBanSummary object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPreBanSummaryWithDefaults() *PreBanSummary { + this := PreBanSummary{} + return &this +} + +// GetStatus returns the Status field value +func (o *PreBanSummary) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *PreBanSummary) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *PreBanSummary) SetStatus(v APIStatus) { + o.Status = v +} + +// GetUsernames returns the Usernames field value +func (o *PreBanSummary) GetUsernames() []string { + if o == nil { + var ret []string + return ret + } + + return o.Usernames +} + +// GetUsernamesOk returns a tuple with the Usernames field value +// and a boolean to check if the value has been set. +func (o *PreBanSummary) GetUsernamesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Usernames, true +} + +// SetUsernames sets field value +func (o *PreBanSummary) SetUsernames(v []string) { + o.Usernames = v +} + +// GetCount returns the Count field value +func (o *PreBanSummary) GetCount() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PreBanSummary) GetCountOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PreBanSummary) SetCount(v float64) { + o.Count = v +} + +func (o PreBanSummary) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PreBanSummary) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["status"] = o.Status + toSerialize["usernames"] = o.Usernames + toSerialize["count"] = o.Count + return toSerialize, nil +} + +func (o *PreBanSummary) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "status", + "usernames", + "count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPreBanSummary := _PreBanSummary{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPreBanSummary) + + if err != nil { + return err + } + + *o = PreBanSummary(varPreBanSummary) + + return err +} + +type NullablePreBanSummary struct { + value *PreBanSummary + isSet bool +} + +func (v NullablePreBanSummary) Get() *PreBanSummary { + return v.value +} + +func (v *NullablePreBanSummary) Set(val *PreBanSummary) { + v.value = val + v.isSet = true +} + +func (v NullablePreBanSummary) IsSet() bool { + return v.isSet +} + +func (v *NullablePreBanSummary) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePreBanSummary(val *PreBanSummary) *NullablePreBanSummary { + return &NullablePreBanSummary{value: val, isSet: true} +} + +func (v NullablePreBanSummary) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePreBanSummary) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_public_page.go b/client/model_public_page.go new file mode 100644 index 0000000..69df444 --- /dev/null +++ b/client/model_public_page.go @@ -0,0 +1,270 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the PublicPage type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PublicPage{} + +// PublicPage struct for PublicPage +type PublicPage struct { + UpdatedAt int64 `json:"updatedAt"` + CommentCount int32 `json:"commentCount"` + Title string `json:"title"` + Url string `json:"url"` + UrlId string `json:"urlId"` +} + +type _PublicPage PublicPage + +// NewPublicPage instantiates a new PublicPage object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPublicPage(updatedAt int64, commentCount int32, title string, url string, urlId string) *PublicPage { + this := PublicPage{} + this.UpdatedAt = updatedAt + this.CommentCount = commentCount + this.Title = title + this.Url = url + this.UrlId = urlId + return &this +} + +// NewPublicPageWithDefaults instantiates a new PublicPage object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPublicPageWithDefaults() *PublicPage { + this := PublicPage{} + return &this +} + +// GetUpdatedAt returns the UpdatedAt field value +func (o *PublicPage) GetUpdatedAt() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// and a boolean to check if the value has been set. +func (o *PublicPage) GetUpdatedAtOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.UpdatedAt, true +} + +// SetUpdatedAt sets field value +func (o *PublicPage) SetUpdatedAt(v int64) { + o.UpdatedAt = v +} + +// GetCommentCount returns the CommentCount field value +func (o *PublicPage) GetCommentCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.CommentCount +} + +// GetCommentCountOk returns a tuple with the CommentCount field value +// and a boolean to check if the value has been set. +func (o *PublicPage) GetCommentCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.CommentCount, true +} + +// SetCommentCount sets field value +func (o *PublicPage) SetCommentCount(v int32) { + o.CommentCount = v +} + +// GetTitle returns the Title field value +func (o *PublicPage) GetTitle() string { + if o == nil { + var ret string + return ret + } + + return o.Title +} + +// GetTitleOk returns a tuple with the Title field value +// and a boolean to check if the value has been set. +func (o *PublicPage) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Title, true +} + +// SetTitle sets field value +func (o *PublicPage) SetTitle(v string) { + o.Title = v +} + +// GetUrl returns the Url field value +func (o *PublicPage) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *PublicPage) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *PublicPage) SetUrl(v string) { + o.Url = v +} + +// GetUrlId returns the UrlId field value +func (o *PublicPage) GetUrlId() string { + if o == nil { + var ret string + return ret + } + + return o.UrlId +} + +// GetUrlIdOk returns a tuple with the UrlId field value +// and a boolean to check if the value has been set. +func (o *PublicPage) GetUrlIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UrlId, true +} + +// SetUrlId sets field value +func (o *PublicPage) SetUrlId(v string) { + o.UrlId = v +} + +func (o PublicPage) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PublicPage) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["updatedAt"] = o.UpdatedAt + toSerialize["commentCount"] = o.CommentCount + toSerialize["title"] = o.Title + toSerialize["url"] = o.Url + toSerialize["urlId"] = o.UrlId + return toSerialize, nil +} + +func (o *PublicPage) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "updatedAt", + "commentCount", + "title", + "url", + "urlId", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPublicPage := _PublicPage{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPublicPage) + + if err != nil { + return err + } + + *o = PublicPage(varPublicPage) + + return err +} + +type NullablePublicPage struct { + value *PublicPage + isSet bool +} + +func (v NullablePublicPage) Get() *PublicPage { + return v.value +} + +func (v *NullablePublicPage) Set(val *PublicPage) { + v.value = val + v.isSet = true +} + +func (v NullablePublicPage) IsSet() bool { + return v.isSet +} + +func (v *NullablePublicPage) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePublicPage(val *PublicPage) *NullablePublicPage { + return &NullablePublicPage{value: val, isSet: true} +} + +func (v NullablePublicPage) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePublicPage) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_put_domain_config_response.go b/client/model_put_domain_config_response.go new file mode 100644 index 0000000..0f23fd4 --- /dev/null +++ b/client/model_put_domain_config_response.go @@ -0,0 +1,107 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "fmt" +) + + +// PutDomainConfigResponse struct for PutDomainConfigResponse +type PutDomainConfigResponse struct { + AddDomainConfigResponseAnyOf *AddDomainConfigResponseAnyOf + GetDomainConfigsResponseAnyOf1 *GetDomainConfigsResponseAnyOf1 +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *PutDomainConfigResponse) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into AddDomainConfigResponseAnyOf + err = json.Unmarshal(data, &dst.AddDomainConfigResponseAnyOf); + if err == nil { + jsonAddDomainConfigResponseAnyOf, _ := json.Marshal(dst.AddDomainConfigResponseAnyOf) + if string(jsonAddDomainConfigResponseAnyOf) == "{}" { // empty struct + dst.AddDomainConfigResponseAnyOf = nil + } else { + return nil // data stored in dst.AddDomainConfigResponseAnyOf, return on the first match + } + } else { + dst.AddDomainConfigResponseAnyOf = nil + } + + // try to unmarshal JSON data into GetDomainConfigsResponseAnyOf1 + err = json.Unmarshal(data, &dst.GetDomainConfigsResponseAnyOf1); + if err == nil { + jsonGetDomainConfigsResponseAnyOf1, _ := json.Marshal(dst.GetDomainConfigsResponseAnyOf1) + if string(jsonGetDomainConfigsResponseAnyOf1) == "{}" { // empty struct + dst.GetDomainConfigsResponseAnyOf1 = nil + } else { + return nil // data stored in dst.GetDomainConfigsResponseAnyOf1, return on the first match + } + } else { + dst.GetDomainConfigsResponseAnyOf1 = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(PutDomainConfigResponse)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src PutDomainConfigResponse) MarshalJSON() ([]byte, error) { + if src.AddDomainConfigResponseAnyOf != nil { + return json.Marshal(&src.AddDomainConfigResponseAnyOf) + } + + if src.GetDomainConfigsResponseAnyOf1 != nil { + return json.Marshal(&src.GetDomainConfigsResponseAnyOf1) + } + + return nil, nil // no data in anyOf schemas +} + + +type NullablePutDomainConfigResponse struct { + value *PutDomainConfigResponse + isSet bool +} + +func (v NullablePutDomainConfigResponse) Get() *PutDomainConfigResponse { + return v.value +} + +func (v *NullablePutDomainConfigResponse) Set(val *PutDomainConfigResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePutDomainConfigResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePutDomainConfigResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePutDomainConfigResponse(val *PutDomainConfigResponse) *NullablePutDomainConfigResponse { + return &NullablePutDomainConfigResponse{value: val, isSet: true} +} + +func (v NullablePutDomainConfigResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePutDomainConfigResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_react_feed_post_public_200_response.go b/client/model_react_feed_post_public_200_response.go deleted file mode 100644 index 178e4ee..0000000 --- a/client/model_react_feed_post_public_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// ReactFeedPostPublic200Response struct for ReactFeedPostPublic200Response -type ReactFeedPostPublic200Response struct { - APIError *APIError - ReactFeedPostResponse *ReactFeedPostResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *ReactFeedPostPublic200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into ReactFeedPostResponse - err = json.Unmarshal(data, &dst.ReactFeedPostResponse); - if err == nil { - jsonReactFeedPostResponse, _ := json.Marshal(dst.ReactFeedPostResponse) - if string(jsonReactFeedPostResponse) == "{}" { // empty struct - dst.ReactFeedPostResponse = nil - } else { - return nil // data stored in dst.ReactFeedPostResponse, return on the first match - } - } else { - dst.ReactFeedPostResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(ReactFeedPostPublic200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src ReactFeedPostPublic200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.ReactFeedPostResponse != nil { - return json.Marshal(&src.ReactFeedPostResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableReactFeedPostPublic200Response struct { - value *ReactFeedPostPublic200Response - isSet bool -} - -func (v NullableReactFeedPostPublic200Response) Get() *ReactFeedPostPublic200Response { - return v.value -} - -func (v *NullableReactFeedPostPublic200Response) Set(val *ReactFeedPostPublic200Response) { - v.value = val - v.isSet = true -} - -func (v NullableReactFeedPostPublic200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableReactFeedPostPublic200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableReactFeedPostPublic200Response(val *ReactFeedPostPublic200Response) *NullableReactFeedPostPublic200Response { - return &NullableReactFeedPostPublic200Response{value: val, isSet: true} -} - -func (v NullableReactFeedPostPublic200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableReactFeedPostPublic200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_record_string__before_string_or_null__after_string_or_null___value.go b/client/model_record_string__before_string_or_null__after_string_or_null___value.go index 9fd9bc7..911efc6 100644 --- a/client/model_record_string__before_string_or_null__after_string_or_null___value.go +++ b/client/model_record_string__before_string_or_null__after_string_or_null___value.go @@ -21,8 +21,8 @@ var _ MappedNullable = &RecordStringBeforeStringOrNullAfterStringOrNullValue{} // RecordStringBeforeStringOrNullAfterStringOrNullValue struct for RecordStringBeforeStringOrNullAfterStringOrNullValue type RecordStringBeforeStringOrNullAfterStringOrNullValue struct { - After string `json:"after"` - Before string `json:"before"` + After NullableString `json:"after"` + Before NullableString `json:"before"` } type _RecordStringBeforeStringOrNullAfterStringOrNullValue RecordStringBeforeStringOrNullAfterStringOrNullValue @@ -31,7 +31,7 @@ type _RecordStringBeforeStringOrNullAfterStringOrNullValue RecordStringBeforeStr // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewRecordStringBeforeStringOrNullAfterStringOrNullValue(after string, before string) *RecordStringBeforeStringOrNullAfterStringOrNullValue { +func NewRecordStringBeforeStringOrNullAfterStringOrNullValue(after NullableString, before NullableString) *RecordStringBeforeStringOrNullAfterStringOrNullValue { this := RecordStringBeforeStringOrNullAfterStringOrNullValue{} this.After = after this.Before = before @@ -47,51 +47,55 @@ func NewRecordStringBeforeStringOrNullAfterStringOrNullValueWithDefaults() *Reco } // GetAfter returns the After field value +// If the value is explicit nil, the zero value for string will be returned func (o *RecordStringBeforeStringOrNullAfterStringOrNullValue) GetAfter() string { - if o == nil { + if o == nil || o.After.Get() == nil { var ret string return ret } - return o.After + return *o.After.Get() } // GetAfterOk returns a tuple with the After field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RecordStringBeforeStringOrNullAfterStringOrNullValue) GetAfterOk() (*string, bool) { if o == nil { return nil, false } - return &o.After, true + return o.After.Get(), o.After.IsSet() } // SetAfter sets field value func (o *RecordStringBeforeStringOrNullAfterStringOrNullValue) SetAfter(v string) { - o.After = v + o.After.Set(&v) } // GetBefore returns the Before field value +// If the value is explicit nil, the zero value for string will be returned func (o *RecordStringBeforeStringOrNullAfterStringOrNullValue) GetBefore() string { - if o == nil { + if o == nil || o.Before.Get() == nil { var ret string return ret } - return o.Before + return *o.Before.Get() } // GetBeforeOk returns a tuple with the Before field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RecordStringBeforeStringOrNullAfterStringOrNullValue) GetBeforeOk() (*string, bool) { if o == nil { return nil, false } - return &o.Before, true + return o.Before.Get(), o.Before.IsSet() } // SetBefore sets field value func (o *RecordStringBeforeStringOrNullAfterStringOrNullValue) SetBefore(v string) { - o.Before = v + o.Before.Set(&v) } func (o RecordStringBeforeStringOrNullAfterStringOrNullValue) MarshalJSON() ([]byte, error) { @@ -104,8 +108,8 @@ func (o RecordStringBeforeStringOrNullAfterStringOrNullValue) MarshalJSON() ([]b func (o RecordStringBeforeStringOrNullAfterStringOrNullValue) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["after"] = o.After - toSerialize["before"] = o.Before + toSerialize["after"] = o.After.Get() + toSerialize["before"] = o.Before.Get() return toSerialize, nil } diff --git a/client/model_remove_comment_action_response.go b/client/model_remove_comment_action_response.go new file mode 100644 index 0000000..719adc6 --- /dev/null +++ b/client/model_remove_comment_action_response.go @@ -0,0 +1,186 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the RemoveCommentActionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RemoveCommentActionResponse{} + +// RemoveCommentActionResponse struct for RemoveCommentActionResponse +type RemoveCommentActionResponse struct { + Status string `json:"status"` + Action string `json:"action"` +} + +type _RemoveCommentActionResponse RemoveCommentActionResponse + +// NewRemoveCommentActionResponse instantiates a new RemoveCommentActionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRemoveCommentActionResponse(status string, action string) *RemoveCommentActionResponse { + this := RemoveCommentActionResponse{} + this.Status = status + this.Action = action + return &this +} + +// NewRemoveCommentActionResponseWithDefaults instantiates a new RemoveCommentActionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRemoveCommentActionResponseWithDefaults() *RemoveCommentActionResponse { + this := RemoveCommentActionResponse{} + return &this +} + +// GetStatus returns the Status field value +func (o *RemoveCommentActionResponse) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *RemoveCommentActionResponse) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *RemoveCommentActionResponse) SetStatus(v string) { + o.Status = v +} + +// GetAction returns the Action field value +func (o *RemoveCommentActionResponse) GetAction() string { + if o == nil { + var ret string + return ret + } + + return o.Action +} + +// GetActionOk returns a tuple with the Action field value +// and a boolean to check if the value has been set. +func (o *RemoveCommentActionResponse) GetActionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Action, true +} + +// SetAction sets field value +func (o *RemoveCommentActionResponse) SetAction(v string) { + o.Action = v +} + +func (o RemoveCommentActionResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RemoveCommentActionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["status"] = o.Status + toSerialize["action"] = o.Action + return toSerialize, nil +} + +func (o *RemoveCommentActionResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "status", + "action", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varRemoveCommentActionResponse := _RemoveCommentActionResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varRemoveCommentActionResponse) + + if err != nil { + return err + } + + *o = RemoveCommentActionResponse(varRemoveCommentActionResponse) + + return err +} + +type NullableRemoveCommentActionResponse struct { + value *RemoveCommentActionResponse + isSet bool +} + +func (v NullableRemoveCommentActionResponse) Get() *RemoveCommentActionResponse { + return v.value +} + +func (v *NullableRemoveCommentActionResponse) Set(val *RemoveCommentActionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableRemoveCommentActionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableRemoveCommentActionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRemoveCommentActionResponse(val *RemoveCommentActionResponse) *NullableRemoveCommentActionResponse { + return &NullableRemoveCommentActionResponse{value: val, isSet: true} +} + +func (v NullableRemoveCommentActionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRemoveCommentActionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_remove_user_badge_response.go b/client/model_remove_user_badge_response.go new file mode 100644 index 0000000..654fc76 --- /dev/null +++ b/client/model_remove_user_badge_response.go @@ -0,0 +1,194 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the RemoveUserBadgeResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RemoveUserBadgeResponse{} + +// RemoveUserBadgeResponse struct for RemoveUserBadgeResponse +type RemoveUserBadgeResponse struct { + Badges []CommentUserBadgeInfo `json:"badges,omitempty"` + Status APIStatus `json:"status"` +} + +type _RemoveUserBadgeResponse RemoveUserBadgeResponse + +// NewRemoveUserBadgeResponse instantiates a new RemoveUserBadgeResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRemoveUserBadgeResponse(status APIStatus) *RemoveUserBadgeResponse { + this := RemoveUserBadgeResponse{} + this.Status = status + return &this +} + +// NewRemoveUserBadgeResponseWithDefaults instantiates a new RemoveUserBadgeResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRemoveUserBadgeResponseWithDefaults() *RemoveUserBadgeResponse { + this := RemoveUserBadgeResponse{} + return &this +} + +// GetBadges returns the Badges field value if set, zero value otherwise. +func (o *RemoveUserBadgeResponse) GetBadges() []CommentUserBadgeInfo { + if o == nil || IsNil(o.Badges) { + var ret []CommentUserBadgeInfo + return ret + } + return o.Badges +} + +// GetBadgesOk returns a tuple with the Badges field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RemoveUserBadgeResponse) GetBadgesOk() ([]CommentUserBadgeInfo, bool) { + if o == nil || IsNil(o.Badges) { + return nil, false + } + return o.Badges, true +} + +// HasBadges returns a boolean if a field has been set. +func (o *RemoveUserBadgeResponse) HasBadges() bool { + if o != nil && !IsNil(o.Badges) { + return true + } + + return false +} + +// SetBadges gets a reference to the given []CommentUserBadgeInfo and assigns it to the Badges field. +func (o *RemoveUserBadgeResponse) SetBadges(v []CommentUserBadgeInfo) { + o.Badges = v +} + +// GetStatus returns the Status field value +func (o *RemoveUserBadgeResponse) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *RemoveUserBadgeResponse) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *RemoveUserBadgeResponse) SetStatus(v APIStatus) { + o.Status = v +} + +func (o RemoveUserBadgeResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RemoveUserBadgeResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Badges) { + toSerialize["badges"] = o.Badges + } + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *RemoveUserBadgeResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varRemoveUserBadgeResponse := _RemoveUserBadgeResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varRemoveUserBadgeResponse) + + if err != nil { + return err + } + + *o = RemoveUserBadgeResponse(varRemoveUserBadgeResponse) + + return err +} + +type NullableRemoveUserBadgeResponse struct { + value *RemoveUserBadgeResponse + isSet bool +} + +func (v NullableRemoveUserBadgeResponse) Get() *RemoveUserBadgeResponse { + return v.value +} + +func (v *NullableRemoveUserBadgeResponse) Set(val *RemoveUserBadgeResponse) { + v.value = val + v.isSet = true +} + +func (v NullableRemoveUserBadgeResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableRemoveUserBadgeResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRemoveUserBadgeResponse(val *RemoveUserBadgeResponse) *NullableRemoveUserBadgeResponse { + return &NullableRemoveUserBadgeResponse{value: val, isSet: true} +} + +func (v NullableRemoveUserBadgeResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRemoveUserBadgeResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_render_email_template_200_response.go b/client/model_render_email_template_200_response.go deleted file mode 100644 index 0119904..0000000 --- a/client/model_render_email_template_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// RenderEmailTemplate200Response struct for RenderEmailTemplate200Response -type RenderEmailTemplate200Response struct { - APIError *APIError - RenderEmailTemplateResponse *RenderEmailTemplateResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *RenderEmailTemplate200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into RenderEmailTemplateResponse - err = json.Unmarshal(data, &dst.RenderEmailTemplateResponse); - if err == nil { - jsonRenderEmailTemplateResponse, _ := json.Marshal(dst.RenderEmailTemplateResponse) - if string(jsonRenderEmailTemplateResponse) == "{}" { // empty struct - dst.RenderEmailTemplateResponse = nil - } else { - return nil // data stored in dst.RenderEmailTemplateResponse, return on the first match - } - } else { - dst.RenderEmailTemplateResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(RenderEmailTemplate200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src RenderEmailTemplate200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.RenderEmailTemplateResponse != nil { - return json.Marshal(&src.RenderEmailTemplateResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableRenderEmailTemplate200Response struct { - value *RenderEmailTemplate200Response - isSet bool -} - -func (v NullableRenderEmailTemplate200Response) Get() *RenderEmailTemplate200Response { - return v.value -} - -func (v *NullableRenderEmailTemplate200Response) Set(val *RenderEmailTemplate200Response) { - v.value = val - v.isSet = true -} - -func (v NullableRenderEmailTemplate200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableRenderEmailTemplate200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRenderEmailTemplate200Response(val *RenderEmailTemplate200Response) *NullableRenderEmailTemplate200Response { - return &NullableRenderEmailTemplate200Response{value: val, isSet: true} -} - -func (v NullableRenderEmailTemplate200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableRenderEmailTemplate200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_reset_user_notifications_200_response.go b/client/model_reset_user_notifications_200_response.go deleted file mode 100644 index 0b10f3d..0000000 --- a/client/model_reset_user_notifications_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// ResetUserNotifications200Response struct for ResetUserNotifications200Response -type ResetUserNotifications200Response struct { - APIError *APIError - ResetUserNotificationsResponse *ResetUserNotificationsResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *ResetUserNotifications200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into ResetUserNotificationsResponse - err = json.Unmarshal(data, &dst.ResetUserNotificationsResponse); - if err == nil { - jsonResetUserNotificationsResponse, _ := json.Marshal(dst.ResetUserNotificationsResponse) - if string(jsonResetUserNotificationsResponse) == "{}" { // empty struct - dst.ResetUserNotificationsResponse = nil - } else { - return nil // data stored in dst.ResetUserNotificationsResponse, return on the first match - } - } else { - dst.ResetUserNotificationsResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(ResetUserNotifications200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src ResetUserNotifications200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.ResetUserNotificationsResponse != nil { - return json.Marshal(&src.ResetUserNotificationsResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableResetUserNotifications200Response struct { - value *ResetUserNotifications200Response - isSet bool -} - -func (v NullableResetUserNotifications200Response) Get() *ResetUserNotifications200Response { - return v.value -} - -func (v *NullableResetUserNotifications200Response) Set(val *ResetUserNotifications200Response) { - v.value = val - v.isSet = true -} - -func (v NullableResetUserNotifications200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableResetUserNotifications200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableResetUserNotifications200Response(val *ResetUserNotifications200Response) *NullableResetUserNotifications200Response { - return &NullableResetUserNotifications200Response{value: val, isSet: true} -} - -func (v NullableResetUserNotifications200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableResetUserNotifications200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_save_comment_200_response.go b/client/model_save_comment_200_response.go deleted file mode 100644 index f8f005c..0000000 --- a/client/model_save_comment_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// SaveComment200Response struct for SaveComment200Response -type SaveComment200Response struct { - APIError *APIError - SaveCommentResponse *SaveCommentResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *SaveComment200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into SaveCommentResponse - err = json.Unmarshal(data, &dst.SaveCommentResponse); - if err == nil { - jsonSaveCommentResponse, _ := json.Marshal(dst.SaveCommentResponse) - if string(jsonSaveCommentResponse) == "{}" { // empty struct - dst.SaveCommentResponse = nil - } else { - return nil // data stored in dst.SaveCommentResponse, return on the first match - } - } else { - dst.SaveCommentResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(SaveComment200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src SaveComment200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.SaveCommentResponse != nil { - return json.Marshal(&src.SaveCommentResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableSaveComment200Response struct { - value *SaveComment200Response - isSet bool -} - -func (v NullableSaveComment200Response) Get() *SaveComment200Response { - return v.value -} - -func (v *NullableSaveComment200Response) Set(val *SaveComment200Response) { - v.value = val - v.isSet = true -} - -func (v NullableSaveComment200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableSaveComment200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSaveComment200Response(val *SaveComment200Response) *NullableSaveComment200Response { - return &NullableSaveComment200Response{value: val, isSet: true} -} - -func (v NullableSaveComment200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSaveComment200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_save_comments_bulk_response.go b/client/model_save_comments_bulk_response.go new file mode 100644 index 0000000..be64c86 --- /dev/null +++ b/client/model_save_comments_bulk_response.go @@ -0,0 +1,107 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "fmt" +) + + +// SaveCommentsBulkResponse struct for SaveCommentsBulkResponse +type SaveCommentsBulkResponse struct { + APIError *APIError + APISaveCommentResponse *APISaveCommentResponse +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *SaveCommentsBulkResponse) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into APIError + err = json.Unmarshal(data, &dst.APIError); + if err == nil { + jsonAPIError, _ := json.Marshal(dst.APIError) + if string(jsonAPIError) == "{}" { // empty struct + dst.APIError = nil + } else { + return nil // data stored in dst.APIError, return on the first match + } + } else { + dst.APIError = nil + } + + // try to unmarshal JSON data into APISaveCommentResponse + err = json.Unmarshal(data, &dst.APISaveCommentResponse); + if err == nil { + jsonAPISaveCommentResponse, _ := json.Marshal(dst.APISaveCommentResponse) + if string(jsonAPISaveCommentResponse) == "{}" { // empty struct + dst.APISaveCommentResponse = nil + } else { + return nil // data stored in dst.APISaveCommentResponse, return on the first match + } + } else { + dst.APISaveCommentResponse = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(SaveCommentsBulkResponse)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src SaveCommentsBulkResponse) MarshalJSON() ([]byte, error) { + if src.APIError != nil { + return json.Marshal(&src.APIError) + } + + if src.APISaveCommentResponse != nil { + return json.Marshal(&src.APISaveCommentResponse) + } + + return nil, nil // no data in anyOf schemas +} + + +type NullableSaveCommentsBulkResponse struct { + value *SaveCommentsBulkResponse + isSet bool +} + +func (v NullableSaveCommentsBulkResponse) Get() *SaveCommentsBulkResponse { + return v.value +} + +func (v *NullableSaveCommentsBulkResponse) Set(val *SaveCommentsBulkResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSaveCommentsBulkResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSaveCommentsBulkResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSaveCommentsBulkResponse(val *SaveCommentsBulkResponse) *NullableSaveCommentsBulkResponse { + return &NullableSaveCommentsBulkResponse{value: val, isSet: true} +} + +func (v NullableSaveCommentsBulkResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSaveCommentsBulkResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_search_users_200_response.go b/client/model_search_users_result.go similarity index 60% rename from client/model_search_users_200_response.go rename to client/model_search_users_result.go index f150b71..f6b1382 100644 --- a/client/model_search_users_200_response.go +++ b/client/model_search_users_result.go @@ -16,29 +16,15 @@ import ( ) -// SearchUsers200Response struct for SearchUsers200Response -type SearchUsers200Response struct { - APIError *APIError +// SearchUsersResult struct for SearchUsersResult +type SearchUsersResult struct { SearchUsersResponse *SearchUsersResponse SearchUsersSectionedResponse *SearchUsersSectionedResponse } // Unmarshal JSON data into any of the pointers in the struct -func (dst *SearchUsers200Response) UnmarshalJSON(data []byte) error { +func (dst *SearchUsersResult) UnmarshalJSON(data []byte) error { var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - // try to unmarshal JSON data into SearchUsersResponse err = json.Unmarshal(data, &dst.SearchUsersResponse); if err == nil { @@ -65,15 +51,11 @@ func (dst *SearchUsers200Response) UnmarshalJSON(data []byte) error { dst.SearchUsersSectionedResponse = nil } - return fmt.Errorf("data failed to match schemas in anyOf(SearchUsers200Response)") + return fmt.Errorf("data failed to match schemas in anyOf(SearchUsersResult)") } // Marshal data from the first non-nil pointers in the struct to JSON -func (src SearchUsers200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - +func (src SearchUsersResult) MarshalJSON() ([]byte, error) { if src.SearchUsersResponse != nil { return json.Marshal(&src.SearchUsersResponse) } @@ -86,38 +68,38 @@ func (src SearchUsers200Response) MarshalJSON() ([]byte, error) { } -type NullableSearchUsers200Response struct { - value *SearchUsers200Response +type NullableSearchUsersResult struct { + value *SearchUsersResult isSet bool } -func (v NullableSearchUsers200Response) Get() *SearchUsers200Response { +func (v NullableSearchUsersResult) Get() *SearchUsersResult { return v.value } -func (v *NullableSearchUsers200Response) Set(val *SearchUsers200Response) { +func (v *NullableSearchUsersResult) Set(val *SearchUsersResult) { v.value = val v.isSet = true } -func (v NullableSearchUsers200Response) IsSet() bool { +func (v NullableSearchUsersResult) IsSet() bool { return v.isSet } -func (v *NullableSearchUsers200Response) Unset() { +func (v *NullableSearchUsersResult) Unset() { v.value = nil v.isSet = false } -func NewNullableSearchUsers200Response(val *SearchUsers200Response) *NullableSearchUsers200Response { - return &NullableSearchUsers200Response{value: val, isSet: true} +func NewNullableSearchUsersResult(val *SearchUsersResult) *NullableSearchUsersResult { + return &NullableSearchUsersResult{value: val, isSet: true} } -func (v NullableSearchUsers200Response) MarshalJSON() ([]byte, error) { +func (v NullableSearchUsersResult) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableSearchUsers200Response) UnmarshalJSON(src []byte) error { +func (v *NullableSearchUsersResult) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/client/model_set_comment_approved_response.go b/client/model_set_comment_approved_response.go new file mode 100644 index 0000000..84c5e30 --- /dev/null +++ b/client/model_set_comment_approved_response.go @@ -0,0 +1,194 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the SetCommentApprovedResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SetCommentApprovedResponse{} + +// SetCommentApprovedResponse struct for SetCommentApprovedResponse +type SetCommentApprovedResponse struct { + DidResetFlaggedCount *bool `json:"didResetFlaggedCount,omitempty"` + Status APIStatus `json:"status"` +} + +type _SetCommentApprovedResponse SetCommentApprovedResponse + +// NewSetCommentApprovedResponse instantiates a new SetCommentApprovedResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSetCommentApprovedResponse(status APIStatus) *SetCommentApprovedResponse { + this := SetCommentApprovedResponse{} + this.Status = status + return &this +} + +// NewSetCommentApprovedResponseWithDefaults instantiates a new SetCommentApprovedResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSetCommentApprovedResponseWithDefaults() *SetCommentApprovedResponse { + this := SetCommentApprovedResponse{} + return &this +} + +// GetDidResetFlaggedCount returns the DidResetFlaggedCount field value if set, zero value otherwise. +func (o *SetCommentApprovedResponse) GetDidResetFlaggedCount() bool { + if o == nil || IsNil(o.DidResetFlaggedCount) { + var ret bool + return ret + } + return *o.DidResetFlaggedCount +} + +// GetDidResetFlaggedCountOk returns a tuple with the DidResetFlaggedCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SetCommentApprovedResponse) GetDidResetFlaggedCountOk() (*bool, bool) { + if o == nil || IsNil(o.DidResetFlaggedCount) { + return nil, false + } + return o.DidResetFlaggedCount, true +} + +// HasDidResetFlaggedCount returns a boolean if a field has been set. +func (o *SetCommentApprovedResponse) HasDidResetFlaggedCount() bool { + if o != nil && !IsNil(o.DidResetFlaggedCount) { + return true + } + + return false +} + +// SetDidResetFlaggedCount gets a reference to the given bool and assigns it to the DidResetFlaggedCount field. +func (o *SetCommentApprovedResponse) SetDidResetFlaggedCount(v bool) { + o.DidResetFlaggedCount = &v +} + +// GetStatus returns the Status field value +func (o *SetCommentApprovedResponse) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *SetCommentApprovedResponse) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *SetCommentApprovedResponse) SetStatus(v APIStatus) { + o.Status = v +} + +func (o SetCommentApprovedResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SetCommentApprovedResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DidResetFlaggedCount) { + toSerialize["didResetFlaggedCount"] = o.DidResetFlaggedCount + } + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *SetCommentApprovedResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSetCommentApprovedResponse := _SetCommentApprovedResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varSetCommentApprovedResponse) + + if err != nil { + return err + } + + *o = SetCommentApprovedResponse(varSetCommentApprovedResponse) + + return err +} + +type NullableSetCommentApprovedResponse struct { + value *SetCommentApprovedResponse + isSet bool +} + +func (v NullableSetCommentApprovedResponse) Get() *SetCommentApprovedResponse { + return v.value +} + +func (v *NullableSetCommentApprovedResponse) Set(val *SetCommentApprovedResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSetCommentApprovedResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSetCommentApprovedResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSetCommentApprovedResponse(val *SetCommentApprovedResponse) *NullableSetCommentApprovedResponse { + return &NullableSetCommentApprovedResponse{value: val, isSet: true} +} + +func (v NullableSetCommentApprovedResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSetCommentApprovedResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_set_comment_text_200_response.go b/client/model_set_comment_text_200_response.go deleted file mode 100644 index b3beb7f..0000000 --- a/client/model_set_comment_text_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// SetCommentText200Response struct for SetCommentText200Response -type SetCommentText200Response struct { - APIError *APIError - PublicAPISetCommentTextResponse *PublicAPISetCommentTextResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *SetCommentText200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into PublicAPISetCommentTextResponse - err = json.Unmarshal(data, &dst.PublicAPISetCommentTextResponse); - if err == nil { - jsonPublicAPISetCommentTextResponse, _ := json.Marshal(dst.PublicAPISetCommentTextResponse) - if string(jsonPublicAPISetCommentTextResponse) == "{}" { // empty struct - dst.PublicAPISetCommentTextResponse = nil - } else { - return nil // data stored in dst.PublicAPISetCommentTextResponse, return on the first match - } - } else { - dst.PublicAPISetCommentTextResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(SetCommentText200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src SetCommentText200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.PublicAPISetCommentTextResponse != nil { - return json.Marshal(&src.PublicAPISetCommentTextResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableSetCommentText200Response struct { - value *SetCommentText200Response - isSet bool -} - -func (v NullableSetCommentText200Response) Get() *SetCommentText200Response { - return v.value -} - -func (v *NullableSetCommentText200Response) Set(val *SetCommentText200Response) { - v.value = val - v.isSet = true -} - -func (v NullableSetCommentText200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableSetCommentText200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSetCommentText200Response(val *SetCommentText200Response) *NullableSetCommentText200Response { - return &NullableSetCommentText200Response{value: val, isSet: true} -} - -func (v NullableSetCommentText200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSetCommentText200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_set_comment_text_params.go b/client/model_set_comment_text_params.go new file mode 100644 index 0000000..0255817 --- /dev/null +++ b/client/model_set_comment_text_params.go @@ -0,0 +1,158 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the SetCommentTextParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SetCommentTextParams{} + +// SetCommentTextParams struct for SetCommentTextParams +type SetCommentTextParams struct { + Comment string `json:"comment"` +} + +type _SetCommentTextParams SetCommentTextParams + +// NewSetCommentTextParams instantiates a new SetCommentTextParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSetCommentTextParams(comment string) *SetCommentTextParams { + this := SetCommentTextParams{} + this.Comment = comment + return &this +} + +// NewSetCommentTextParamsWithDefaults instantiates a new SetCommentTextParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSetCommentTextParamsWithDefaults() *SetCommentTextParams { + this := SetCommentTextParams{} + return &this +} + +// GetComment returns the Comment field value +func (o *SetCommentTextParams) GetComment() string { + if o == nil { + var ret string + return ret + } + + return o.Comment +} + +// GetCommentOk returns a tuple with the Comment field value +// and a boolean to check if the value has been set. +func (o *SetCommentTextParams) GetCommentOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Comment, true +} + +// SetComment sets field value +func (o *SetCommentTextParams) SetComment(v string) { + o.Comment = v +} + +func (o SetCommentTextParams) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SetCommentTextParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["comment"] = o.Comment + return toSerialize, nil +} + +func (o *SetCommentTextParams) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "comment", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSetCommentTextParams := _SetCommentTextParams{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varSetCommentTextParams) + + if err != nil { + return err + } + + *o = SetCommentTextParams(varSetCommentTextParams) + + return err +} + +type NullableSetCommentTextParams struct { + value *SetCommentTextParams + isSet bool +} + +func (v NullableSetCommentTextParams) Get() *SetCommentTextParams { + return v.value +} + +func (v *NullableSetCommentTextParams) Set(val *SetCommentTextParams) { + v.value = val + v.isSet = true +} + +func (v NullableSetCommentTextParams) IsSet() bool { + return v.isSet +} + +func (v *NullableSetCommentTextParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSetCommentTextParams(val *SetCommentTextParams) *NullableSetCommentTextParams { + return &NullableSetCommentTextParams{value: val, isSet: true} +} + +func (v NullableSetCommentTextParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSetCommentTextParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_set_comment_text_response.go b/client/model_set_comment_text_response.go new file mode 100644 index 0000000..2bae951 --- /dev/null +++ b/client/model_set_comment_text_response.go @@ -0,0 +1,186 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the SetCommentTextResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SetCommentTextResponse{} + +// SetCommentTextResponse struct for SetCommentTextResponse +type SetCommentTextResponse struct { + NewCommentTextHTML string `json:"newCommentTextHTML"` + Status APIStatus `json:"status"` +} + +type _SetCommentTextResponse SetCommentTextResponse + +// NewSetCommentTextResponse instantiates a new SetCommentTextResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSetCommentTextResponse(newCommentTextHTML string, status APIStatus) *SetCommentTextResponse { + this := SetCommentTextResponse{} + this.NewCommentTextHTML = newCommentTextHTML + this.Status = status + return &this +} + +// NewSetCommentTextResponseWithDefaults instantiates a new SetCommentTextResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSetCommentTextResponseWithDefaults() *SetCommentTextResponse { + this := SetCommentTextResponse{} + return &this +} + +// GetNewCommentTextHTML returns the NewCommentTextHTML field value +func (o *SetCommentTextResponse) GetNewCommentTextHTML() string { + if o == nil { + var ret string + return ret + } + + return o.NewCommentTextHTML +} + +// GetNewCommentTextHTMLOk returns a tuple with the NewCommentTextHTML field value +// and a boolean to check if the value has been set. +func (o *SetCommentTextResponse) GetNewCommentTextHTMLOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.NewCommentTextHTML, true +} + +// SetNewCommentTextHTML sets field value +func (o *SetCommentTextResponse) SetNewCommentTextHTML(v string) { + o.NewCommentTextHTML = v +} + +// GetStatus returns the Status field value +func (o *SetCommentTextResponse) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *SetCommentTextResponse) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *SetCommentTextResponse) SetStatus(v APIStatus) { + o.Status = v +} + +func (o SetCommentTextResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SetCommentTextResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["newCommentTextHTML"] = o.NewCommentTextHTML + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *SetCommentTextResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "newCommentTextHTML", + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSetCommentTextResponse := _SetCommentTextResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varSetCommentTextResponse) + + if err != nil { + return err + } + + *o = SetCommentTextResponse(varSetCommentTextResponse) + + return err +} + +type NullableSetCommentTextResponse struct { + value *SetCommentTextResponse + isSet bool +} + +func (v NullableSetCommentTextResponse) Get() *SetCommentTextResponse { + return v.value +} + +func (v *NullableSetCommentTextResponse) Set(val *SetCommentTextResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSetCommentTextResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSetCommentTextResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSetCommentTextResponse(val *SetCommentTextResponse) *NullableSetCommentTextResponse { + return &NullableSetCommentTextResponse{value: val, isSet: true} +} + +func (v NullableSetCommentTextResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSetCommentTextResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_set_user_trust_factor_response.go b/client/model_set_user_trust_factor_response.go new file mode 100644 index 0000000..7a9cfc5 --- /dev/null +++ b/client/model_set_user_trust_factor_response.go @@ -0,0 +1,194 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the SetUserTrustFactorResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SetUserTrustFactorResponse{} + +// SetUserTrustFactorResponse struct for SetUserTrustFactorResponse +type SetUserTrustFactorResponse struct { + PreviousManualTrustFactor *float64 `json:"previousManualTrustFactor,omitempty"` + Status APIStatus `json:"status"` +} + +type _SetUserTrustFactorResponse SetUserTrustFactorResponse + +// NewSetUserTrustFactorResponse instantiates a new SetUserTrustFactorResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSetUserTrustFactorResponse(status APIStatus) *SetUserTrustFactorResponse { + this := SetUserTrustFactorResponse{} + this.Status = status + return &this +} + +// NewSetUserTrustFactorResponseWithDefaults instantiates a new SetUserTrustFactorResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSetUserTrustFactorResponseWithDefaults() *SetUserTrustFactorResponse { + this := SetUserTrustFactorResponse{} + return &this +} + +// GetPreviousManualTrustFactor returns the PreviousManualTrustFactor field value if set, zero value otherwise. +func (o *SetUserTrustFactorResponse) GetPreviousManualTrustFactor() float64 { + if o == nil || IsNil(o.PreviousManualTrustFactor) { + var ret float64 + return ret + } + return *o.PreviousManualTrustFactor +} + +// GetPreviousManualTrustFactorOk returns a tuple with the PreviousManualTrustFactor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SetUserTrustFactorResponse) GetPreviousManualTrustFactorOk() (*float64, bool) { + if o == nil || IsNil(o.PreviousManualTrustFactor) { + return nil, false + } + return o.PreviousManualTrustFactor, true +} + +// HasPreviousManualTrustFactor returns a boolean if a field has been set. +func (o *SetUserTrustFactorResponse) HasPreviousManualTrustFactor() bool { + if o != nil && !IsNil(o.PreviousManualTrustFactor) { + return true + } + + return false +} + +// SetPreviousManualTrustFactor gets a reference to the given float64 and assigns it to the PreviousManualTrustFactor field. +func (o *SetUserTrustFactorResponse) SetPreviousManualTrustFactor(v float64) { + o.PreviousManualTrustFactor = &v +} + +// GetStatus returns the Status field value +func (o *SetUserTrustFactorResponse) GetStatus() APIStatus { + if o == nil { + var ret APIStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *SetUserTrustFactorResponse) GetStatusOk() (*APIStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *SetUserTrustFactorResponse) SetStatus(v APIStatus) { + o.Status = v +} + +func (o SetUserTrustFactorResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SetUserTrustFactorResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PreviousManualTrustFactor) { + toSerialize["previousManualTrustFactor"] = o.PreviousManualTrustFactor + } + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *SetUserTrustFactorResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSetUserTrustFactorResponse := _SetUserTrustFactorResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varSetUserTrustFactorResponse) + + if err != nil { + return err + } + + *o = SetUserTrustFactorResponse(varSetUserTrustFactorResponse) + + return err +} + +type NullableSetUserTrustFactorResponse struct { + value *SetUserTrustFactorResponse + isSet bool +} + +func (v NullableSetUserTrustFactorResponse) Get() *SetUserTrustFactorResponse { + return v.value +} + +func (v *NullableSetUserTrustFactorResponse) Set(val *SetUserTrustFactorResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSetUserTrustFactorResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSetUserTrustFactorResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSetUserTrustFactorResponse(val *SetUserTrustFactorResponse) *NullableSetUserTrustFactorResponse { + return &NullableSetUserTrustFactorResponse{value: val, isSet: true} +} + +func (v NullableSetUserTrustFactorResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSetUserTrustFactorResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_tenant_badge.go b/client/model_tenant_badge.go new file mode 100644 index 0000000..6738174 --- /dev/null +++ b/client/model_tenant_badge.go @@ -0,0 +1,799 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "time" + "bytes" + "fmt" +) + +// checks if the TenantBadge type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TenantBadge{} + +// TenantBadge struct for TenantBadge +type TenantBadge struct { + Id string `json:"_id"` + TenantId string `json:"tenantId"` + CreatedByUserId string `json:"createdByUserId"` + CreatedAt time.Time `json:"createdAt"` + Enabled bool `json:"enabled"` + UrlId NullableString `json:"urlId,omitempty"` + Type float64 `json:"type"` + Threshold float64 `json:"threshold"` + Uses float64 `json:"uses"` + Name string `json:"name"` + Description string `json:"description"` + DisplayLabel string `json:"displayLabel"` + DisplaySrc NullableString `json:"displaySrc"` + BackgroundColor NullableString `json:"backgroundColor"` + BorderColor NullableString `json:"borderColor"` + TextColor NullableString `json:"textColor"` + CssClass NullableString `json:"cssClass,omitempty"` + VeteranUserThresholdMillis NullableFloat64 `json:"veteranUserThresholdMillis,omitempty"` + IsAwaitingReprocess bool `json:"isAwaitingReprocess"` + IsAwaitingDeletion bool `json:"isAwaitingDeletion"` + ReplacesBadgeId NullableString `json:"replacesBadgeId,omitempty"` +} + +type _TenantBadge TenantBadge + +// NewTenantBadge instantiates a new TenantBadge object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTenantBadge(id string, tenantId string, createdByUserId string, createdAt time.Time, enabled bool, type_ float64, threshold float64, uses float64, name string, description string, displayLabel string, displaySrc NullableString, backgroundColor NullableString, borderColor NullableString, textColor NullableString, isAwaitingReprocess bool, isAwaitingDeletion bool) *TenantBadge { + this := TenantBadge{} + this.Id = id + this.TenantId = tenantId + this.CreatedByUserId = createdByUserId + this.CreatedAt = createdAt + this.Enabled = enabled + this.Type = type_ + this.Threshold = threshold + this.Uses = uses + this.Name = name + this.Description = description + this.DisplayLabel = displayLabel + this.DisplaySrc = displaySrc + this.BackgroundColor = backgroundColor + this.BorderColor = borderColor + this.TextColor = textColor + this.IsAwaitingReprocess = isAwaitingReprocess + this.IsAwaitingDeletion = isAwaitingDeletion + return &this +} + +// NewTenantBadgeWithDefaults instantiates a new TenantBadge object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTenantBadgeWithDefaults() *TenantBadge { + this := TenantBadge{} + return &this +} + +// GetId returns the Id field value +func (o *TenantBadge) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *TenantBadge) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *TenantBadge) SetId(v string) { + o.Id = v +} + +// GetTenantId returns the TenantId field value +func (o *TenantBadge) GetTenantId() string { + if o == nil { + var ret string + return ret + } + + return o.TenantId +} + +// GetTenantIdOk returns a tuple with the TenantId field value +// and a boolean to check if the value has been set. +func (o *TenantBadge) GetTenantIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TenantId, true +} + +// SetTenantId sets field value +func (o *TenantBadge) SetTenantId(v string) { + o.TenantId = v +} + +// GetCreatedByUserId returns the CreatedByUserId field value +func (o *TenantBadge) GetCreatedByUserId() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedByUserId +} + +// GetCreatedByUserIdOk returns a tuple with the CreatedByUserId field value +// and a boolean to check if the value has been set. +func (o *TenantBadge) GetCreatedByUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedByUserId, true +} + +// SetCreatedByUserId sets field value +func (o *TenantBadge) SetCreatedByUserId(v string) { + o.CreatedByUserId = v +} + +// GetCreatedAt returns the CreatedAt field value +func (o *TenantBadge) GetCreatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *TenantBadge) GetCreatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *TenantBadge) SetCreatedAt(v time.Time) { + o.CreatedAt = v +} + +// GetEnabled returns the Enabled field value +func (o *TenantBadge) GetEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value +// and a boolean to check if the value has been set. +func (o *TenantBadge) GetEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Enabled, true +} + +// SetEnabled sets field value +func (o *TenantBadge) SetEnabled(v bool) { + o.Enabled = v +} + +// GetUrlId returns the UrlId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TenantBadge) GetUrlId() string { + if o == nil || IsNil(o.UrlId.Get()) { + var ret string + return ret + } + return *o.UrlId.Get() +} + +// GetUrlIdOk returns a tuple with the UrlId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TenantBadge) GetUrlIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.UrlId.Get(), o.UrlId.IsSet() +} + +// HasUrlId returns a boolean if a field has been set. +func (o *TenantBadge) HasUrlId() bool { + if o != nil && o.UrlId.IsSet() { + return true + } + + return false +} + +// SetUrlId gets a reference to the given NullableString and assigns it to the UrlId field. +func (o *TenantBadge) SetUrlId(v string) { + o.UrlId.Set(&v) +} +// SetUrlIdNil sets the value for UrlId to be an explicit nil +func (o *TenantBadge) SetUrlIdNil() { + o.UrlId.Set(nil) +} + +// UnsetUrlId ensures that no value is present for UrlId, not even an explicit nil +func (o *TenantBadge) UnsetUrlId() { + o.UrlId.Unset() +} + +// GetType returns the Type field value +func (o *TenantBadge) GetType() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *TenantBadge) GetTypeOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *TenantBadge) SetType(v float64) { + o.Type = v +} + +// GetThreshold returns the Threshold field value +func (o *TenantBadge) GetThreshold() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.Threshold +} + +// GetThresholdOk returns a tuple with the Threshold field value +// and a boolean to check if the value has been set. +func (o *TenantBadge) GetThresholdOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.Threshold, true +} + +// SetThreshold sets field value +func (o *TenantBadge) SetThreshold(v float64) { + o.Threshold = v +} + +// GetUses returns the Uses field value +func (o *TenantBadge) GetUses() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.Uses +} + +// GetUsesOk returns a tuple with the Uses field value +// and a boolean to check if the value has been set. +func (o *TenantBadge) GetUsesOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.Uses, true +} + +// SetUses sets field value +func (o *TenantBadge) SetUses(v float64) { + o.Uses = v +} + +// GetName returns the Name field value +func (o *TenantBadge) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *TenantBadge) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *TenantBadge) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value +func (o *TenantBadge) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *TenantBadge) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *TenantBadge) SetDescription(v string) { + o.Description = v +} + +// GetDisplayLabel returns the DisplayLabel field value +func (o *TenantBadge) GetDisplayLabel() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayLabel +} + +// GetDisplayLabelOk returns a tuple with the DisplayLabel field value +// and a boolean to check if the value has been set. +func (o *TenantBadge) GetDisplayLabelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayLabel, true +} + +// SetDisplayLabel sets field value +func (o *TenantBadge) SetDisplayLabel(v string) { + o.DisplayLabel = v +} + +// GetDisplaySrc returns the DisplaySrc field value +// If the value is explicit nil, the zero value for string will be returned +func (o *TenantBadge) GetDisplaySrc() string { + if o == nil || o.DisplaySrc.Get() == nil { + var ret string + return ret + } + + return *o.DisplaySrc.Get() +} + +// GetDisplaySrcOk returns a tuple with the DisplaySrc field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TenantBadge) GetDisplaySrcOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplaySrc.Get(), o.DisplaySrc.IsSet() +} + +// SetDisplaySrc sets field value +func (o *TenantBadge) SetDisplaySrc(v string) { + o.DisplaySrc.Set(&v) +} + +// GetBackgroundColor returns the BackgroundColor field value +// If the value is explicit nil, the zero value for string will be returned +func (o *TenantBadge) GetBackgroundColor() string { + if o == nil || o.BackgroundColor.Get() == nil { + var ret string + return ret + } + + return *o.BackgroundColor.Get() +} + +// GetBackgroundColorOk returns a tuple with the BackgroundColor field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TenantBadge) GetBackgroundColorOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.BackgroundColor.Get(), o.BackgroundColor.IsSet() +} + +// SetBackgroundColor sets field value +func (o *TenantBadge) SetBackgroundColor(v string) { + o.BackgroundColor.Set(&v) +} + +// GetBorderColor returns the BorderColor field value +// If the value is explicit nil, the zero value for string will be returned +func (o *TenantBadge) GetBorderColor() string { + if o == nil || o.BorderColor.Get() == nil { + var ret string + return ret + } + + return *o.BorderColor.Get() +} + +// GetBorderColorOk returns a tuple with the BorderColor field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TenantBadge) GetBorderColorOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.BorderColor.Get(), o.BorderColor.IsSet() +} + +// SetBorderColor sets field value +func (o *TenantBadge) SetBorderColor(v string) { + o.BorderColor.Set(&v) +} + +// GetTextColor returns the TextColor field value +// If the value is explicit nil, the zero value for string will be returned +func (o *TenantBadge) GetTextColor() string { + if o == nil || o.TextColor.Get() == nil { + var ret string + return ret + } + + return *o.TextColor.Get() +} + +// GetTextColorOk returns a tuple with the TextColor field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TenantBadge) GetTextColorOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TextColor.Get(), o.TextColor.IsSet() +} + +// SetTextColor sets field value +func (o *TenantBadge) SetTextColor(v string) { + o.TextColor.Set(&v) +} + +// GetCssClass returns the CssClass field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TenantBadge) GetCssClass() string { + if o == nil || IsNil(o.CssClass.Get()) { + var ret string + return ret + } + return *o.CssClass.Get() +} + +// GetCssClassOk returns a tuple with the CssClass field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TenantBadge) GetCssClassOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CssClass.Get(), o.CssClass.IsSet() +} + +// HasCssClass returns a boolean if a field has been set. +func (o *TenantBadge) HasCssClass() bool { + if o != nil && o.CssClass.IsSet() { + return true + } + + return false +} + +// SetCssClass gets a reference to the given NullableString and assigns it to the CssClass field. +func (o *TenantBadge) SetCssClass(v string) { + o.CssClass.Set(&v) +} +// SetCssClassNil sets the value for CssClass to be an explicit nil +func (o *TenantBadge) SetCssClassNil() { + o.CssClass.Set(nil) +} + +// UnsetCssClass ensures that no value is present for CssClass, not even an explicit nil +func (o *TenantBadge) UnsetCssClass() { + o.CssClass.Unset() +} + +// GetVeteranUserThresholdMillis returns the VeteranUserThresholdMillis field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TenantBadge) GetVeteranUserThresholdMillis() float64 { + if o == nil || IsNil(o.VeteranUserThresholdMillis.Get()) { + var ret float64 + return ret + } + return *o.VeteranUserThresholdMillis.Get() +} + +// GetVeteranUserThresholdMillisOk returns a tuple with the VeteranUserThresholdMillis field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TenantBadge) GetVeteranUserThresholdMillisOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.VeteranUserThresholdMillis.Get(), o.VeteranUserThresholdMillis.IsSet() +} + +// HasVeteranUserThresholdMillis returns a boolean if a field has been set. +func (o *TenantBadge) HasVeteranUserThresholdMillis() bool { + if o != nil && o.VeteranUserThresholdMillis.IsSet() { + return true + } + + return false +} + +// SetVeteranUserThresholdMillis gets a reference to the given NullableFloat64 and assigns it to the VeteranUserThresholdMillis field. +func (o *TenantBadge) SetVeteranUserThresholdMillis(v float64) { + o.VeteranUserThresholdMillis.Set(&v) +} +// SetVeteranUserThresholdMillisNil sets the value for VeteranUserThresholdMillis to be an explicit nil +func (o *TenantBadge) SetVeteranUserThresholdMillisNil() { + o.VeteranUserThresholdMillis.Set(nil) +} + +// UnsetVeteranUserThresholdMillis ensures that no value is present for VeteranUserThresholdMillis, not even an explicit nil +func (o *TenantBadge) UnsetVeteranUserThresholdMillis() { + o.VeteranUserThresholdMillis.Unset() +} + +// GetIsAwaitingReprocess returns the IsAwaitingReprocess field value +func (o *TenantBadge) GetIsAwaitingReprocess() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsAwaitingReprocess +} + +// GetIsAwaitingReprocessOk returns a tuple with the IsAwaitingReprocess field value +// and a boolean to check if the value has been set. +func (o *TenantBadge) GetIsAwaitingReprocessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsAwaitingReprocess, true +} + +// SetIsAwaitingReprocess sets field value +func (o *TenantBadge) SetIsAwaitingReprocess(v bool) { + o.IsAwaitingReprocess = v +} + +// GetIsAwaitingDeletion returns the IsAwaitingDeletion field value +func (o *TenantBadge) GetIsAwaitingDeletion() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsAwaitingDeletion +} + +// GetIsAwaitingDeletionOk returns a tuple with the IsAwaitingDeletion field value +// and a boolean to check if the value has been set. +func (o *TenantBadge) GetIsAwaitingDeletionOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsAwaitingDeletion, true +} + +// SetIsAwaitingDeletion sets field value +func (o *TenantBadge) SetIsAwaitingDeletion(v bool) { + o.IsAwaitingDeletion = v +} + +// GetReplacesBadgeId returns the ReplacesBadgeId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TenantBadge) GetReplacesBadgeId() string { + if o == nil || IsNil(o.ReplacesBadgeId.Get()) { + var ret string + return ret + } + return *o.ReplacesBadgeId.Get() +} + +// GetReplacesBadgeIdOk returns a tuple with the ReplacesBadgeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TenantBadge) GetReplacesBadgeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ReplacesBadgeId.Get(), o.ReplacesBadgeId.IsSet() +} + +// HasReplacesBadgeId returns a boolean if a field has been set. +func (o *TenantBadge) HasReplacesBadgeId() bool { + if o != nil && o.ReplacesBadgeId.IsSet() { + return true + } + + return false +} + +// SetReplacesBadgeId gets a reference to the given NullableString and assigns it to the ReplacesBadgeId field. +func (o *TenantBadge) SetReplacesBadgeId(v string) { + o.ReplacesBadgeId.Set(&v) +} +// SetReplacesBadgeIdNil sets the value for ReplacesBadgeId to be an explicit nil +func (o *TenantBadge) SetReplacesBadgeIdNil() { + o.ReplacesBadgeId.Set(nil) +} + +// UnsetReplacesBadgeId ensures that no value is present for ReplacesBadgeId, not even an explicit nil +func (o *TenantBadge) UnsetReplacesBadgeId() { + o.ReplacesBadgeId.Unset() +} + +func (o TenantBadge) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TenantBadge) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["_id"] = o.Id + toSerialize["tenantId"] = o.TenantId + toSerialize["createdByUserId"] = o.CreatedByUserId + toSerialize["createdAt"] = o.CreatedAt + toSerialize["enabled"] = o.Enabled + if o.UrlId.IsSet() { + toSerialize["urlId"] = o.UrlId.Get() + } + toSerialize["type"] = o.Type + toSerialize["threshold"] = o.Threshold + toSerialize["uses"] = o.Uses + toSerialize["name"] = o.Name + toSerialize["description"] = o.Description + toSerialize["displayLabel"] = o.DisplayLabel + toSerialize["displaySrc"] = o.DisplaySrc.Get() + toSerialize["backgroundColor"] = o.BackgroundColor.Get() + toSerialize["borderColor"] = o.BorderColor.Get() + toSerialize["textColor"] = o.TextColor.Get() + if o.CssClass.IsSet() { + toSerialize["cssClass"] = o.CssClass.Get() + } + if o.VeteranUserThresholdMillis.IsSet() { + toSerialize["veteranUserThresholdMillis"] = o.VeteranUserThresholdMillis.Get() + } + toSerialize["isAwaitingReprocess"] = o.IsAwaitingReprocess + toSerialize["isAwaitingDeletion"] = o.IsAwaitingDeletion + if o.ReplacesBadgeId.IsSet() { + toSerialize["replacesBadgeId"] = o.ReplacesBadgeId.Get() + } + return toSerialize, nil +} + +func (o *TenantBadge) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "_id", + "tenantId", + "createdByUserId", + "createdAt", + "enabled", + "type", + "threshold", + "uses", + "name", + "description", + "displayLabel", + "displaySrc", + "backgroundColor", + "borderColor", + "textColor", + "isAwaitingReprocess", + "isAwaitingDeletion", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varTenantBadge := _TenantBadge{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varTenantBadge) + + if err != nil { + return err + } + + *o = TenantBadge(varTenantBadge) + + return err +} + +type NullableTenantBadge struct { + value *TenantBadge + isSet bool +} + +func (v NullableTenantBadge) Get() *TenantBadge { + return v.value +} + +func (v *NullableTenantBadge) Set(val *TenantBadge) { + v.value = val + v.isSet = true +} + +func (v NullableTenantBadge) IsSet() bool { + return v.isSet +} + +func (v *NullableTenantBadge) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTenantBadge(val *TenantBadge) *NullableTenantBadge { + return &NullableTenantBadge{value: val, isSet: true} +} + +func (v NullableTenantBadge) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTenantBadge) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_tenant_package.go b/client/model_tenant_package.go index 3de79ce..27e8dbd 100644 --- a/client/model_tenant_package.go +++ b/client/model_tenant_package.go @@ -26,6 +26,7 @@ type TenantPackage struct { Name string `json:"name"` TenantId string `json:"tenantId"` CreatedAt time.Time `json:"createdAt"` + TemplateId *string `json:"templateId,omitempty"` MonthlyCostUSD NullableFloat64 `json:"monthlyCostUSD"` YearlyCostUSD NullableFloat64 `json:"yearlyCostUSD"` MonthlyStripePlanId NullableString `json:"monthlyStripePlanId"` @@ -69,6 +70,8 @@ type TenantPackage struct { FlexDomainUnit *float64 `json:"flexDomainUnit,omitempty"` FlexChatGPTCostCents *float64 `json:"flexChatGPTCostCents,omitempty"` FlexChatGPTUnit *float64 `json:"flexChatGPTUnit,omitempty"` + FlexLLMCostCents *float64 `json:"flexLLMCostCents,omitempty"` + FlexLLMUnit *float64 `json:"flexLLMUnit,omitempty"` FlexMinimumCostCents *float64 `json:"flexMinimumCostCents,omitempty"` FlexManagedTenantCostCents *float64 `json:"flexManagedTenantCostCents,omitempty"` FlexSSOAdminCostCents *float64 `json:"flexSSOAdminCostCents,omitempty"` @@ -76,6 +79,10 @@ type TenantPackage struct { FlexSSOModeratorCostCents *float64 `json:"flexSSOModeratorCostCents,omitempty"` FlexSSOModeratorUnit *float64 `json:"flexSSOModeratorUnit,omitempty"` IsSSOBillingMonthlyActiveUsers *bool `json:"isSSOBillingMonthlyActiveUsers,omitempty"` + HasAIAgents *bool `json:"hasAIAgents,omitempty"` + MaxAIAgents *float64 `json:"maxAIAgents,omitempty"` + AiAgentDailyBudgetCents *float64 `json:"aiAgentDailyBudgetCents,omitempty"` + AiAgentMonthlyBudgetCents *float64 `json:"aiAgentMonthlyBudgetCents,omitempty"` } type _TenantPackage TenantPackage @@ -220,6 +227,38 @@ func (o *TenantPackage) SetCreatedAt(v time.Time) { o.CreatedAt = v } +// GetTemplateId returns the TemplateId field value if set, zero value otherwise. +func (o *TenantPackage) GetTemplateId() string { + if o == nil || IsNil(o.TemplateId) { + var ret string + return ret + } + return *o.TemplateId +} + +// GetTemplateIdOk returns a tuple with the TemplateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TenantPackage) GetTemplateIdOk() (*string, bool) { + if o == nil || IsNil(o.TemplateId) { + return nil, false + } + return o.TemplateId, true +} + +// HasTemplateId returns a boolean if a field has been set. +func (o *TenantPackage) HasTemplateId() bool { + if o != nil && !IsNil(o.TemplateId) { + return true + } + + return false +} + +// SetTemplateId gets a reference to the given string and assigns it to the TemplateId field. +func (o *TenantPackage) SetTemplateId(v string) { + o.TemplateId = &v +} + // GetMonthlyCostUSD returns the MonthlyCostUSD field value // If the value is explicit nil, the zero value for float64 will be returned func (o *TenantPackage) GetMonthlyCostUSD() float64 { @@ -1420,6 +1459,70 @@ func (o *TenantPackage) SetFlexChatGPTUnit(v float64) { o.FlexChatGPTUnit = &v } +// GetFlexLLMCostCents returns the FlexLLMCostCents field value if set, zero value otherwise. +func (o *TenantPackage) GetFlexLLMCostCents() float64 { + if o == nil || IsNil(o.FlexLLMCostCents) { + var ret float64 + return ret + } + return *o.FlexLLMCostCents +} + +// GetFlexLLMCostCentsOk returns a tuple with the FlexLLMCostCents field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TenantPackage) GetFlexLLMCostCentsOk() (*float64, bool) { + if o == nil || IsNil(o.FlexLLMCostCents) { + return nil, false + } + return o.FlexLLMCostCents, true +} + +// HasFlexLLMCostCents returns a boolean if a field has been set. +func (o *TenantPackage) HasFlexLLMCostCents() bool { + if o != nil && !IsNil(o.FlexLLMCostCents) { + return true + } + + return false +} + +// SetFlexLLMCostCents gets a reference to the given float64 and assigns it to the FlexLLMCostCents field. +func (o *TenantPackage) SetFlexLLMCostCents(v float64) { + o.FlexLLMCostCents = &v +} + +// GetFlexLLMUnit returns the FlexLLMUnit field value if set, zero value otherwise. +func (o *TenantPackage) GetFlexLLMUnit() float64 { + if o == nil || IsNil(o.FlexLLMUnit) { + var ret float64 + return ret + } + return *o.FlexLLMUnit +} + +// GetFlexLLMUnitOk returns a tuple with the FlexLLMUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TenantPackage) GetFlexLLMUnitOk() (*float64, bool) { + if o == nil || IsNil(o.FlexLLMUnit) { + return nil, false + } + return o.FlexLLMUnit, true +} + +// HasFlexLLMUnit returns a boolean if a field has been set. +func (o *TenantPackage) HasFlexLLMUnit() bool { + if o != nil && !IsNil(o.FlexLLMUnit) { + return true + } + + return false +} + +// SetFlexLLMUnit gets a reference to the given float64 and assigns it to the FlexLLMUnit field. +func (o *TenantPackage) SetFlexLLMUnit(v float64) { + o.FlexLLMUnit = &v +} + // GetFlexMinimumCostCents returns the FlexMinimumCostCents field value if set, zero value otherwise. func (o *TenantPackage) GetFlexMinimumCostCents() float64 { if o == nil || IsNil(o.FlexMinimumCostCents) { @@ -1644,6 +1747,134 @@ func (o *TenantPackage) SetIsSSOBillingMonthlyActiveUsers(v bool) { o.IsSSOBillingMonthlyActiveUsers = &v } +// GetHasAIAgents returns the HasAIAgents field value if set, zero value otherwise. +func (o *TenantPackage) GetHasAIAgents() bool { + if o == nil || IsNil(o.HasAIAgents) { + var ret bool + return ret + } + return *o.HasAIAgents +} + +// GetHasAIAgentsOk returns a tuple with the HasAIAgents field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TenantPackage) GetHasAIAgentsOk() (*bool, bool) { + if o == nil || IsNil(o.HasAIAgents) { + return nil, false + } + return o.HasAIAgents, true +} + +// HasHasAIAgents returns a boolean if a field has been set. +func (o *TenantPackage) HasHasAIAgents() bool { + if o != nil && !IsNil(o.HasAIAgents) { + return true + } + + return false +} + +// SetHasAIAgents gets a reference to the given bool and assigns it to the HasAIAgents field. +func (o *TenantPackage) SetHasAIAgents(v bool) { + o.HasAIAgents = &v +} + +// GetMaxAIAgents returns the MaxAIAgents field value if set, zero value otherwise. +func (o *TenantPackage) GetMaxAIAgents() float64 { + if o == nil || IsNil(o.MaxAIAgents) { + var ret float64 + return ret + } + return *o.MaxAIAgents +} + +// GetMaxAIAgentsOk returns a tuple with the MaxAIAgents field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TenantPackage) GetMaxAIAgentsOk() (*float64, bool) { + if o == nil || IsNil(o.MaxAIAgents) { + return nil, false + } + return o.MaxAIAgents, true +} + +// HasMaxAIAgents returns a boolean if a field has been set. +func (o *TenantPackage) HasMaxAIAgents() bool { + if o != nil && !IsNil(o.MaxAIAgents) { + return true + } + + return false +} + +// SetMaxAIAgents gets a reference to the given float64 and assigns it to the MaxAIAgents field. +func (o *TenantPackage) SetMaxAIAgents(v float64) { + o.MaxAIAgents = &v +} + +// GetAiAgentDailyBudgetCents returns the AiAgentDailyBudgetCents field value if set, zero value otherwise. +func (o *TenantPackage) GetAiAgentDailyBudgetCents() float64 { + if o == nil || IsNil(o.AiAgentDailyBudgetCents) { + var ret float64 + return ret + } + return *o.AiAgentDailyBudgetCents +} + +// GetAiAgentDailyBudgetCentsOk returns a tuple with the AiAgentDailyBudgetCents field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TenantPackage) GetAiAgentDailyBudgetCentsOk() (*float64, bool) { + if o == nil || IsNil(o.AiAgentDailyBudgetCents) { + return nil, false + } + return o.AiAgentDailyBudgetCents, true +} + +// HasAiAgentDailyBudgetCents returns a boolean if a field has been set. +func (o *TenantPackage) HasAiAgentDailyBudgetCents() bool { + if o != nil && !IsNil(o.AiAgentDailyBudgetCents) { + return true + } + + return false +} + +// SetAiAgentDailyBudgetCents gets a reference to the given float64 and assigns it to the AiAgentDailyBudgetCents field. +func (o *TenantPackage) SetAiAgentDailyBudgetCents(v float64) { + o.AiAgentDailyBudgetCents = &v +} + +// GetAiAgentMonthlyBudgetCents returns the AiAgentMonthlyBudgetCents field value if set, zero value otherwise. +func (o *TenantPackage) GetAiAgentMonthlyBudgetCents() float64 { + if o == nil || IsNil(o.AiAgentMonthlyBudgetCents) { + var ret float64 + return ret + } + return *o.AiAgentMonthlyBudgetCents +} + +// GetAiAgentMonthlyBudgetCentsOk returns a tuple with the AiAgentMonthlyBudgetCents field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TenantPackage) GetAiAgentMonthlyBudgetCentsOk() (*float64, bool) { + if o == nil || IsNil(o.AiAgentMonthlyBudgetCents) { + return nil, false + } + return o.AiAgentMonthlyBudgetCents, true +} + +// HasAiAgentMonthlyBudgetCents returns a boolean if a field has been set. +func (o *TenantPackage) HasAiAgentMonthlyBudgetCents() bool { + if o != nil && !IsNil(o.AiAgentMonthlyBudgetCents) { + return true + } + + return false +} + +// SetAiAgentMonthlyBudgetCents gets a reference to the given float64 and assigns it to the AiAgentMonthlyBudgetCents field. +func (o *TenantPackage) SetAiAgentMonthlyBudgetCents(v float64) { + o.AiAgentMonthlyBudgetCents = &v +} + func (o TenantPackage) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -1658,6 +1889,9 @@ func (o TenantPackage) ToMap() (map[string]interface{}, error) { toSerialize["name"] = o.Name toSerialize["tenantId"] = o.TenantId toSerialize["createdAt"] = o.CreatedAt + if !IsNil(o.TemplateId) { + toSerialize["templateId"] = o.TemplateId + } toSerialize["monthlyCostUSD"] = o.MonthlyCostUSD.Get() toSerialize["yearlyCostUSD"] = o.YearlyCostUSD.Get() toSerialize["monthlyStripePlanId"] = o.MonthlyStripePlanId.Get() @@ -1741,6 +1975,12 @@ func (o TenantPackage) ToMap() (map[string]interface{}, error) { if !IsNil(o.FlexChatGPTUnit) { toSerialize["flexChatGPTUnit"] = o.FlexChatGPTUnit } + if !IsNil(o.FlexLLMCostCents) { + toSerialize["flexLLMCostCents"] = o.FlexLLMCostCents + } + if !IsNil(o.FlexLLMUnit) { + toSerialize["flexLLMUnit"] = o.FlexLLMUnit + } if !IsNil(o.FlexMinimumCostCents) { toSerialize["flexMinimumCostCents"] = o.FlexMinimumCostCents } @@ -1762,6 +2002,18 @@ func (o TenantPackage) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsSSOBillingMonthlyActiveUsers) { toSerialize["isSSOBillingMonthlyActiveUsers"] = o.IsSSOBillingMonthlyActiveUsers } + if !IsNil(o.HasAIAgents) { + toSerialize["hasAIAgents"] = o.HasAIAgents + } + if !IsNil(o.MaxAIAgents) { + toSerialize["maxAIAgents"] = o.MaxAIAgents + } + if !IsNil(o.AiAgentDailyBudgetCents) { + toSerialize["aiAgentDailyBudgetCents"] = o.AiAgentDailyBudgetCents + } + if !IsNil(o.AiAgentMonthlyBudgetCents) { + toSerialize["aiAgentMonthlyBudgetCents"] = o.AiAgentMonthlyBudgetCents + } return toSerialize, nil } diff --git a/client/model_un_block_comment_public_200_response.go b/client/model_un_block_comment_public_200_response.go deleted file mode 100644 index c416a92..0000000 --- a/client/model_un_block_comment_public_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// UnBlockCommentPublic200Response struct for UnBlockCommentPublic200Response -type UnBlockCommentPublic200Response struct { - APIError *APIError - UnblockSuccess *UnblockSuccess -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *UnBlockCommentPublic200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into UnblockSuccess - err = json.Unmarshal(data, &dst.UnblockSuccess); - if err == nil { - jsonUnblockSuccess, _ := json.Marshal(dst.UnblockSuccess) - if string(jsonUnblockSuccess) == "{}" { // empty struct - dst.UnblockSuccess = nil - } else { - return nil // data stored in dst.UnblockSuccess, return on the first match - } - } else { - dst.UnblockSuccess = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(UnBlockCommentPublic200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src UnBlockCommentPublic200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.UnblockSuccess != nil { - return json.Marshal(&src.UnblockSuccess) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableUnBlockCommentPublic200Response struct { - value *UnBlockCommentPublic200Response - isSet bool -} - -func (v NullableUnBlockCommentPublic200Response) Get() *UnBlockCommentPublic200Response { - return v.value -} - -func (v *NullableUnBlockCommentPublic200Response) Set(val *UnBlockCommentPublic200Response) { - v.value = val - v.isSet = true -} - -func (v NullableUnBlockCommentPublic200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableUnBlockCommentPublic200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableUnBlockCommentPublic200Response(val *UnBlockCommentPublic200Response) *NullableUnBlockCommentPublic200Response { - return &NullableUnBlockCommentPublic200Response{value: val, isSet: true} -} - -func (v NullableUnBlockCommentPublic200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableUnBlockCommentPublic200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_update_user_badge_200_response.go b/client/model_update_user_badge_200_response.go deleted file mode 100644 index d357ec3..0000000 --- a/client/model_update_user_badge_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// UpdateUserBadge200Response struct for UpdateUserBadge200Response -type UpdateUserBadge200Response struct { - APIEmptySuccessResponse *APIEmptySuccessResponse - APIError *APIError -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *UpdateUserBadge200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIEmptySuccessResponse - err = json.Unmarshal(data, &dst.APIEmptySuccessResponse); - if err == nil { - jsonAPIEmptySuccessResponse, _ := json.Marshal(dst.APIEmptySuccessResponse) - if string(jsonAPIEmptySuccessResponse) == "{}" { // empty struct - dst.APIEmptySuccessResponse = nil - } else { - return nil // data stored in dst.APIEmptySuccessResponse, return on the first match - } - } else { - dst.APIEmptySuccessResponse = nil - } - - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(UpdateUserBadge200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src UpdateUserBadge200Response) MarshalJSON() ([]byte, error) { - if src.APIEmptySuccessResponse != nil { - return json.Marshal(&src.APIEmptySuccessResponse) - } - - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableUpdateUserBadge200Response struct { - value *UpdateUserBadge200Response - isSet bool -} - -func (v NullableUpdateUserBadge200Response) Get() *UpdateUserBadge200Response { - return v.value -} - -func (v *NullableUpdateUserBadge200Response) Set(val *UpdateUserBadge200Response) { - v.value = val - v.isSet = true -} - -func (v NullableUpdateUserBadge200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableUpdateUserBadge200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableUpdateUserBadge200Response(val *UpdateUserBadge200Response) *NullableUpdateUserBadge200Response { - return &NullableUpdateUserBadge200Response{value: val, isSet: true} -} - -func (v NullableUpdateUserBadge200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableUpdateUserBadge200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_update_user_notification_comment_subscription_status_response.go b/client/model_update_user_notification_comment_subscription_status_response.go new file mode 100644 index 0000000..2afd728 --- /dev/null +++ b/client/model_update_user_notification_comment_subscription_status_response.go @@ -0,0 +1,107 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "fmt" +) + + +// UpdateUserNotificationCommentSubscriptionStatusResponse struct for UpdateUserNotificationCommentSubscriptionStatusResponse +type UpdateUserNotificationCommentSubscriptionStatusResponse struct { + IgnoredResponse *IgnoredResponse + UserNotificationWriteResponse *UserNotificationWriteResponse +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *UpdateUserNotificationCommentSubscriptionStatusResponse) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into IgnoredResponse + err = json.Unmarshal(data, &dst.IgnoredResponse); + if err == nil { + jsonIgnoredResponse, _ := json.Marshal(dst.IgnoredResponse) + if string(jsonIgnoredResponse) == "{}" { // empty struct + dst.IgnoredResponse = nil + } else { + return nil // data stored in dst.IgnoredResponse, return on the first match + } + } else { + dst.IgnoredResponse = nil + } + + // try to unmarshal JSON data into UserNotificationWriteResponse + err = json.Unmarshal(data, &dst.UserNotificationWriteResponse); + if err == nil { + jsonUserNotificationWriteResponse, _ := json.Marshal(dst.UserNotificationWriteResponse) + if string(jsonUserNotificationWriteResponse) == "{}" { // empty struct + dst.UserNotificationWriteResponse = nil + } else { + return nil // data stored in dst.UserNotificationWriteResponse, return on the first match + } + } else { + dst.UserNotificationWriteResponse = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(UpdateUserNotificationCommentSubscriptionStatusResponse)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src UpdateUserNotificationCommentSubscriptionStatusResponse) MarshalJSON() ([]byte, error) { + if src.IgnoredResponse != nil { + return json.Marshal(&src.IgnoredResponse) + } + + if src.UserNotificationWriteResponse != nil { + return json.Marshal(&src.UserNotificationWriteResponse) + } + + return nil, nil // no data in anyOf schemas +} + + +type NullableUpdateUserNotificationCommentSubscriptionStatusResponse struct { + value *UpdateUserNotificationCommentSubscriptionStatusResponse + isSet bool +} + +func (v NullableUpdateUserNotificationCommentSubscriptionStatusResponse) Get() *UpdateUserNotificationCommentSubscriptionStatusResponse { + return v.value +} + +func (v *NullableUpdateUserNotificationCommentSubscriptionStatusResponse) Set(val *UpdateUserNotificationCommentSubscriptionStatusResponse) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateUserNotificationCommentSubscriptionStatusResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateUserNotificationCommentSubscriptionStatusResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateUserNotificationCommentSubscriptionStatusResponse(val *UpdateUserNotificationCommentSubscriptionStatusResponse) *NullableUpdateUserNotificationCommentSubscriptionStatusResponse { + return &NullableUpdateUserNotificationCommentSubscriptionStatusResponse{value: val, isSet: true} +} + +func (v NullableUpdateUserNotificationCommentSubscriptionStatusResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateUserNotificationCommentSubscriptionStatusResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_update_user_notification_page_subscription_status_response.go b/client/model_update_user_notification_page_subscription_status_response.go new file mode 100644 index 0000000..eb72aee --- /dev/null +++ b/client/model_update_user_notification_page_subscription_status_response.go @@ -0,0 +1,107 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "fmt" +) + + +// UpdateUserNotificationPageSubscriptionStatusResponse struct for UpdateUserNotificationPageSubscriptionStatusResponse +type UpdateUserNotificationPageSubscriptionStatusResponse struct { + IgnoredResponse *IgnoredResponse + UserNotificationWriteResponse *UserNotificationWriteResponse +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *UpdateUserNotificationPageSubscriptionStatusResponse) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into IgnoredResponse + err = json.Unmarshal(data, &dst.IgnoredResponse); + if err == nil { + jsonIgnoredResponse, _ := json.Marshal(dst.IgnoredResponse) + if string(jsonIgnoredResponse) == "{}" { // empty struct + dst.IgnoredResponse = nil + } else { + return nil // data stored in dst.IgnoredResponse, return on the first match + } + } else { + dst.IgnoredResponse = nil + } + + // try to unmarshal JSON data into UserNotificationWriteResponse + err = json.Unmarshal(data, &dst.UserNotificationWriteResponse); + if err == nil { + jsonUserNotificationWriteResponse, _ := json.Marshal(dst.UserNotificationWriteResponse) + if string(jsonUserNotificationWriteResponse) == "{}" { // empty struct + dst.UserNotificationWriteResponse = nil + } else { + return nil // data stored in dst.UserNotificationWriteResponse, return on the first match + } + } else { + dst.UserNotificationWriteResponse = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(UpdateUserNotificationPageSubscriptionStatusResponse)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src UpdateUserNotificationPageSubscriptionStatusResponse) MarshalJSON() ([]byte, error) { + if src.IgnoredResponse != nil { + return json.Marshal(&src.IgnoredResponse) + } + + if src.UserNotificationWriteResponse != nil { + return json.Marshal(&src.UserNotificationWriteResponse) + } + + return nil, nil // no data in anyOf schemas +} + + +type NullableUpdateUserNotificationPageSubscriptionStatusResponse struct { + value *UpdateUserNotificationPageSubscriptionStatusResponse + isSet bool +} + +func (v NullableUpdateUserNotificationPageSubscriptionStatusResponse) Get() *UpdateUserNotificationPageSubscriptionStatusResponse { + return v.value +} + +func (v *NullableUpdateUserNotificationPageSubscriptionStatusResponse) Set(val *UpdateUserNotificationPageSubscriptionStatusResponse) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateUserNotificationPageSubscriptionStatusResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateUserNotificationPageSubscriptionStatusResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateUserNotificationPageSubscriptionStatusResponse(val *UpdateUserNotificationPageSubscriptionStatusResponse) *NullableUpdateUserNotificationPageSubscriptionStatusResponse { + return &NullableUpdateUserNotificationPageSubscriptionStatusResponse{value: val, isSet: true} +} + +func (v NullableUpdateUserNotificationPageSubscriptionStatusResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateUserNotificationPageSubscriptionStatusResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_update_user_notification_status_200_response.go b/client/model_update_user_notification_status_response.go similarity index 54% rename from client/model_update_user_notification_status_200_response.go rename to client/model_update_user_notification_status_response.go index 9ce35d2..4d08eef 100644 --- a/client/model_update_user_notification_status_200_response.go +++ b/client/model_update_user_notification_status_response.go @@ -16,29 +16,15 @@ import ( ) -// UpdateUserNotificationStatus200Response struct for UpdateUserNotificationStatus200Response -type UpdateUserNotificationStatus200Response struct { - APIError *APIError +// UpdateUserNotificationStatusResponse struct for UpdateUserNotificationStatusResponse +type UpdateUserNotificationStatusResponse struct { IgnoredResponse *IgnoredResponse UserNotificationWriteResponse *UserNotificationWriteResponse } // Unmarshal JSON data into any of the pointers in the struct -func (dst *UpdateUserNotificationStatus200Response) UnmarshalJSON(data []byte) error { +func (dst *UpdateUserNotificationStatusResponse) UnmarshalJSON(data []byte) error { var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - // try to unmarshal JSON data into IgnoredResponse err = json.Unmarshal(data, &dst.IgnoredResponse); if err == nil { @@ -65,15 +51,11 @@ func (dst *UpdateUserNotificationStatus200Response) UnmarshalJSON(data []byte) e dst.UserNotificationWriteResponse = nil } - return fmt.Errorf("data failed to match schemas in anyOf(UpdateUserNotificationStatus200Response)") + return fmt.Errorf("data failed to match schemas in anyOf(UpdateUserNotificationStatusResponse)") } // Marshal data from the first non-nil pointers in the struct to JSON -func (src UpdateUserNotificationStatus200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - +func (src UpdateUserNotificationStatusResponse) MarshalJSON() ([]byte, error) { if src.IgnoredResponse != nil { return json.Marshal(&src.IgnoredResponse) } @@ -86,38 +68,38 @@ func (src UpdateUserNotificationStatus200Response) MarshalJSON() ([]byte, error) } -type NullableUpdateUserNotificationStatus200Response struct { - value *UpdateUserNotificationStatus200Response +type NullableUpdateUserNotificationStatusResponse struct { + value *UpdateUserNotificationStatusResponse isSet bool } -func (v NullableUpdateUserNotificationStatus200Response) Get() *UpdateUserNotificationStatus200Response { +func (v NullableUpdateUserNotificationStatusResponse) Get() *UpdateUserNotificationStatusResponse { return v.value } -func (v *NullableUpdateUserNotificationStatus200Response) Set(val *UpdateUserNotificationStatus200Response) { +func (v *NullableUpdateUserNotificationStatusResponse) Set(val *UpdateUserNotificationStatusResponse) { v.value = val v.isSet = true } -func (v NullableUpdateUserNotificationStatus200Response) IsSet() bool { +func (v NullableUpdateUserNotificationStatusResponse) IsSet() bool { return v.isSet } -func (v *NullableUpdateUserNotificationStatus200Response) Unset() { +func (v *NullableUpdateUserNotificationStatusResponse) Unset() { v.value = nil v.isSet = false } -func NewNullableUpdateUserNotificationStatus200Response(val *UpdateUserNotificationStatus200Response) *NullableUpdateUserNotificationStatus200Response { - return &NullableUpdateUserNotificationStatus200Response{value: val, isSet: true} +func NewNullableUpdateUserNotificationStatusResponse(val *UpdateUserNotificationStatusResponse) *NullableUpdateUserNotificationStatusResponse { + return &NullableUpdateUserNotificationStatusResponse{value: val, isSet: true} } -func (v NullableUpdateUserNotificationStatus200Response) MarshalJSON() ([]byte, error) { +func (v NullableUpdateUserNotificationStatusResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableUpdateUserNotificationStatus200Response) UnmarshalJSON(src []byte) error { +func (v *NullableUpdateUserNotificationStatusResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/client/model_user.go b/client/model_user.go index 38623ae..f864a21 100644 --- a/client/model_user.go +++ b/client/model_user.go @@ -61,6 +61,7 @@ type User struct { DigestEmailFrequency *DigestEmailFrequency `json:"digestEmailFrequency,omitempty"` NotificationFrequency *float64 `json:"notificationFrequency,omitempty"` AdminNotificationFrequency *float64 `json:"adminNotificationFrequency,omitempty"` + AgentApprovalNotificationFrequency *ImportedAgentApprovalNotificationFrequency `json:"agentApprovalNotificationFrequency,omitempty"` LastTenantNotificationSentDate *time.Time `json:"lastTenantNotificationSentDate,omitempty"` LastReplyNotificationSentDate *time.Time `json:"lastReplyNotificationSentDate,omitempty"` IgnoredAddToMySiteMessages *bool `json:"ignoredAddToMySiteMessages,omitempty"` @@ -1331,6 +1332,38 @@ func (o *User) SetAdminNotificationFrequency(v float64) { o.AdminNotificationFrequency = &v } +// GetAgentApprovalNotificationFrequency returns the AgentApprovalNotificationFrequency field value if set, zero value otherwise. +func (o *User) GetAgentApprovalNotificationFrequency() ImportedAgentApprovalNotificationFrequency { + if o == nil || IsNil(o.AgentApprovalNotificationFrequency) { + var ret ImportedAgentApprovalNotificationFrequency + return ret + } + return *o.AgentApprovalNotificationFrequency +} + +// GetAgentApprovalNotificationFrequencyOk returns a tuple with the AgentApprovalNotificationFrequency field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetAgentApprovalNotificationFrequencyOk() (*ImportedAgentApprovalNotificationFrequency, bool) { + if o == nil || IsNil(o.AgentApprovalNotificationFrequency) { + return nil, false + } + return o.AgentApprovalNotificationFrequency, true +} + +// HasAgentApprovalNotificationFrequency returns a boolean if a field has been set. +func (o *User) HasAgentApprovalNotificationFrequency() bool { + if o != nil && !IsNil(o.AgentApprovalNotificationFrequency) { + return true + } + + return false +} + +// SetAgentApprovalNotificationFrequency gets a reference to the given ImportedAgentApprovalNotificationFrequency and assigns it to the AgentApprovalNotificationFrequency field. +func (o *User) SetAgentApprovalNotificationFrequency(v ImportedAgentApprovalNotificationFrequency) { + o.AgentApprovalNotificationFrequency = &v +} + // GetLastTenantNotificationSentDate returns the LastTenantNotificationSentDate field value if set, zero value otherwise. func (o *User) GetLastTenantNotificationSentDate() time.Time { if o == nil || IsNil(o.LastTenantNotificationSentDate) { @@ -2090,6 +2123,9 @@ func (o User) ToMap() (map[string]interface{}, error) { if !IsNil(o.AdminNotificationFrequency) { toSerialize["adminNotificationFrequency"] = o.AdminNotificationFrequency } + if !IsNil(o.AgentApprovalNotificationFrequency) { + toSerialize["agentApprovalNotificationFrequency"] = o.AgentApprovalNotificationFrequency + } if !IsNil(o.LastTenantNotificationSentDate) { toSerialize["lastTenantNotificationSentDate"] = o.LastTenantNotificationSentDate } diff --git a/client/model_users_list_location.go b/client/model_users_list_location.go new file mode 100644 index 0000000..67fbf1e --- /dev/null +++ b/client/model_users_list_location.go @@ -0,0 +1,115 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "fmt" +) + +// UsersListLocation the model 'UsersListLocation' +type UsersListLocation int32 + +// List of UsersListLocation +const ( + USERSLISTLOCATION__0 UsersListLocation = 0 + USERSLISTLOCATION__1 UsersListLocation = 1 + USERSLISTLOCATION__2 UsersListLocation = 2 + USERSLISTLOCATION__3 UsersListLocation = 3 +) + +// All allowed values of UsersListLocation enum +var AllowedUsersListLocationEnumValues = []UsersListLocation{ + 0, + 1, + 2, + 3, +} + +func (v *UsersListLocation) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := UsersListLocation(value) + for _, existing := range AllowedUsersListLocationEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid UsersListLocation", value) +} + +// NewUsersListLocationFromValue returns a pointer to a valid UsersListLocation +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewUsersListLocationFromValue(v int32) (*UsersListLocation, error) { + ev := UsersListLocation(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for UsersListLocation: valid values are %v", v, AllowedUsersListLocationEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v UsersListLocation) IsValid() bool { + for _, existing := range AllowedUsersListLocationEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to UsersListLocation value +func (v UsersListLocation) Ptr() *UsersListLocation { + return &v +} + +type NullableUsersListLocation struct { + value *UsersListLocation + isSet bool +} + +func (v NullableUsersListLocation) Get() *UsersListLocation { + return v.value +} + +func (v *NullableUsersListLocation) Set(val *UsersListLocation) { + v.value = val + v.isSet = true +} + +func (v NullableUsersListLocation) IsSet() bool { + return v.isSet +} + +func (v *NullableUsersListLocation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUsersListLocation(val *UsersListLocation) *NullableUsersListLocation { + return &NullableUsersListLocation{value: val, isSet: true} +} + +func (v NullableUsersListLocation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUsersListLocation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/client/model_vote_comment_200_response.go b/client/model_vote_comment_200_response.go deleted file mode 100644 index 225dc60..0000000 --- a/client/model_vote_comment_200_response.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// VoteComment200Response struct for VoteComment200Response -type VoteComment200Response struct { - APIError *APIError - VoteResponse *VoteResponse -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *VoteComment200Response) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into APIError - err = json.Unmarshal(data, &dst.APIError); - if err == nil { - jsonAPIError, _ := json.Marshal(dst.APIError) - if string(jsonAPIError) == "{}" { // empty struct - dst.APIError = nil - } else { - return nil // data stored in dst.APIError, return on the first match - } - } else { - dst.APIError = nil - } - - // try to unmarshal JSON data into VoteResponse - err = json.Unmarshal(data, &dst.VoteResponse); - if err == nil { - jsonVoteResponse, _ := json.Marshal(dst.VoteResponse) - if string(jsonVoteResponse) == "{}" { // empty struct - dst.VoteResponse = nil - } else { - return nil // data stored in dst.VoteResponse, return on the first match - } - } else { - dst.VoteResponse = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(VoteComment200Response)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src VoteComment200Response) MarshalJSON() ([]byte, error) { - if src.APIError != nil { - return json.Marshal(&src.APIError) - } - - if src.VoteResponse != nil { - return json.Marshal(&src.VoteResponse) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableVoteComment200Response struct { - value *VoteComment200Response - isSet bool -} - -func (v NullableVoteComment200Response) Get() *VoteComment200Response { - return v.value -} - -func (v *NullableVoteComment200Response) Set(val *VoteComment200Response) { - v.value = val - v.isSet = true -} - -func (v NullableVoteComment200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableVoteComment200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableVoteComment200Response(val *VoteComment200Response) *NullableVoteComment200Response { - return &NullableVoteComment200Response{value: val, isSet: true} -} - -func (v NullableVoteComment200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableVoteComment200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/test/api_moderation_test.go b/client/test/api_moderation_test.go new file mode 100644 index 0000000..483d947 --- /dev/null +++ b/client/test/api_moderation_test.go @@ -0,0 +1,580 @@ +/* +fastcomments + +Testing ModerationAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package client + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/fastcomments/fastcomments-go/client" +) + +func Test_client_ModerationAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test ModerationAPIService DeleteModerationVote", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var commentId string + var voteId string + + resp, httpRes, err := apiClient.ModerationAPI.DeleteModerationVote(context.Background(), commentId, voteId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService GetApiComments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ModerationAPI.GetApiComments(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService GetApiExportStatus", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ModerationAPI.GetApiExportStatus(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService GetApiIds", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ModerationAPI.GetApiIds(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService GetBanUsersFromComment", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var commentId string + + resp, httpRes, err := apiClient.ModerationAPI.GetBanUsersFromComment(context.Background(), commentId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService GetCommentBanStatus", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var commentId string + + resp, httpRes, err := apiClient.ModerationAPI.GetCommentBanStatus(context.Background(), commentId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService GetCommentChildren", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var commentId string + + resp, httpRes, err := apiClient.ModerationAPI.GetCommentChildren(context.Background(), commentId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService GetCount", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ModerationAPI.GetCount(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService GetCounts", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ModerationAPI.GetCounts(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService GetLogs", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var commentId string + + resp, httpRes, err := apiClient.ModerationAPI.GetLogs(context.Background(), commentId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService GetManualBadges", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ModerationAPI.GetManualBadges(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService GetManualBadgesForUser", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ModerationAPI.GetManualBadgesForUser(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService GetModerationComment", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var commentId string + + resp, httpRes, err := apiClient.ModerationAPI.GetModerationComment(context.Background(), commentId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService GetModerationCommentText", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var commentId string + + resp, httpRes, err := apiClient.ModerationAPI.GetModerationCommentText(context.Background(), commentId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService GetPreBanSummary", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var commentId string + + resp, httpRes, err := apiClient.ModerationAPI.GetPreBanSummary(context.Background(), commentId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService GetSearchCommentsSummary", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ModerationAPI.GetSearchCommentsSummary(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService GetSearchPages", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ModerationAPI.GetSearchPages(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService GetSearchSites", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ModerationAPI.GetSearchSites(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService GetSearchSuggest", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ModerationAPI.GetSearchSuggest(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService GetSearchUsers", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ModerationAPI.GetSearchUsers(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService GetTrustFactor", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ModerationAPI.GetTrustFactor(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService GetUserBanPreference", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ModerationAPI.GetUserBanPreference(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService GetUserInternalProfile", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ModerationAPI.GetUserInternalProfile(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService PostAdjustCommentVotes", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var commentId string + + resp, httpRes, err := apiClient.ModerationAPI.PostAdjustCommentVotes(context.Background(), commentId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService PostApiExport", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ModerationAPI.PostApiExport(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService PostBanUserFromComment", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var commentId string + + resp, httpRes, err := apiClient.ModerationAPI.PostBanUserFromComment(context.Background(), commentId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService PostBanUserUndo", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ModerationAPI.PostBanUserUndo(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService PostBulkPreBanSummary", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ModerationAPI.PostBulkPreBanSummary(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService PostCommentsByIds", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ModerationAPI.PostCommentsByIds(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService PostFlagComment", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var commentId string + + resp, httpRes, err := apiClient.ModerationAPI.PostFlagComment(context.Background(), commentId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService PostRemoveComment", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var commentId string + + resp, httpRes, err := apiClient.ModerationAPI.PostRemoveComment(context.Background(), commentId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService PostRestoreDeletedComment", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var commentId string + + resp, httpRes, err := apiClient.ModerationAPI.PostRestoreDeletedComment(context.Background(), commentId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService PostSetCommentApprovalStatus", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var commentId string + + resp, httpRes, err := apiClient.ModerationAPI.PostSetCommentApprovalStatus(context.Background(), commentId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService PostSetCommentReviewStatus", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var commentId string + + resp, httpRes, err := apiClient.ModerationAPI.PostSetCommentReviewStatus(context.Background(), commentId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService PostSetCommentSpamStatus", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var commentId string + + resp, httpRes, err := apiClient.ModerationAPI.PostSetCommentSpamStatus(context.Background(), commentId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService PostSetCommentText", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var commentId string + + resp, httpRes, err := apiClient.ModerationAPI.PostSetCommentText(context.Background(), commentId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService PostUnFlagComment", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var commentId string + + resp, httpRes, err := apiClient.ModerationAPI.PostUnFlagComment(context.Background(), commentId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService PostVote", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var commentId string + + resp, httpRes, err := apiClient.ModerationAPI.PostVote(context.Background(), commentId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService PutAwardBadge", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ModerationAPI.PutAwardBadge(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService PutCloseThread", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ModerationAPI.PutCloseThread(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService PutRemoveBadge", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ModerationAPI.PutRemoveBadge(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService PutReopenThread", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ModerationAPI.PutReopenThread(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ModerationAPIService SetTrustFactor", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ModerationAPI.SetTrustFactor(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/client/test/api_public_test.go b/client/test/api_public_test.go index 307d3ab..504f3c7 100644 --- a/client/test/api_public_test.go +++ b/client/test/api_public_test.go @@ -76,6 +76,34 @@ func Test_client_PublicAPIService(t *testing.T) { }) + t.Run("Test PublicAPIService CreateV1PageReact", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var tenantId string + + resp, httpRes, err := apiClient.PublicAPI.CreateV1PageReact(context.Background(), tenantId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PublicAPIService CreateV2PageReact", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var tenantId string + + resp, httpRes, err := apiClient.PublicAPI.CreateV2PageReact(context.Background(), tenantId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test PublicAPIService DeleteCommentPublic", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -122,6 +150,34 @@ func Test_client_PublicAPIService(t *testing.T) { }) + t.Run("Test PublicAPIService DeleteV1PageReact", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var tenantId string + + resp, httpRes, err := apiClient.PublicAPI.DeleteV1PageReact(context.Background(), tenantId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PublicAPIService DeleteV2PageReact", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var tenantId string + + resp, httpRes, err := apiClient.PublicAPI.DeleteV2PageReact(context.Background(), tenantId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test PublicAPIService FlagCommentPublic", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -166,6 +222,18 @@ func Test_client_PublicAPIService(t *testing.T) { }) + t.Run("Test PublicAPIService GetCommentsForUser", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.PublicAPI.GetCommentsForUser(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test PublicAPIService GetCommentsPublic", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -222,6 +290,48 @@ func Test_client_PublicAPIService(t *testing.T) { }) + t.Run("Test PublicAPIService GetGifLarge", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var tenantId string + + resp, httpRes, err := apiClient.PublicAPI.GetGifLarge(context.Background(), tenantId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PublicAPIService GetGifsSearch", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var tenantId string + + resp, httpRes, err := apiClient.PublicAPI.GetGifsSearch(context.Background(), tenantId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PublicAPIService GetGifsTrending", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var tenantId string + + resp, httpRes, err := apiClient.PublicAPI.GetGifsTrending(context.Background(), tenantId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test PublicAPIService GetGlobalEventLog", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -236,6 +346,63 @@ func Test_client_PublicAPIService(t *testing.T) { }) + t.Run("Test PublicAPIService GetOfflineUsers", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var tenantId string + + resp, httpRes, err := apiClient.PublicAPI.GetOfflineUsers(context.Background(), tenantId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PublicAPIService GetOnlineUsers", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var tenantId string + + resp, httpRes, err := apiClient.PublicAPI.GetOnlineUsers(context.Background(), tenantId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PublicAPIService GetPagesPublic", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var tenantId string + + resp, httpRes, err := apiClient.PublicAPI.GetPagesPublic(context.Background(), tenantId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PublicAPIService GetTranslations", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var namespace string + var component string + + resp, httpRes, err := apiClient.PublicAPI.GetTranslations(context.Background(), namespace, component).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test PublicAPIService GetUserNotificationCount", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -286,6 +453,62 @@ func Test_client_PublicAPIService(t *testing.T) { }) + t.Run("Test PublicAPIService GetUsersInfo", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var tenantId string + + resp, httpRes, err := apiClient.PublicAPI.GetUsersInfo(context.Background(), tenantId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PublicAPIService GetV1PageLikes", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var tenantId string + + resp, httpRes, err := apiClient.PublicAPI.GetV1PageLikes(context.Background(), tenantId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PublicAPIService GetV2PageReactUsers", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var tenantId string + + resp, httpRes, err := apiClient.PublicAPI.GetV2PageReactUsers(context.Background(), tenantId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PublicAPIService GetV2PageReacts", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var tenantId string + + resp, httpRes, err := apiClient.PublicAPI.GetV2PageReacts(context.Background(), tenantId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test PublicAPIService LockComment", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -301,6 +524,18 @@ func Test_client_PublicAPIService(t *testing.T) { }) + t.Run("Test PublicAPIService LogoutPublic", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.PublicAPI.LogoutPublic(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test PublicAPIService PinComment", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/openapi.json b/openapi.json index 7157da6..ca0225c 100644 --- a/openapi.json +++ b/openapi.json @@ -108,6 +108,16 @@ ], "type": "object" }, + "SearchUsersResult": { + "anyOf": [ + { + "$ref": "#/components/schemas/SearchUsersSectionedResponse" + }, + { + "$ref": "#/components/schemas/SearchUsersResponse" + } + ] + }, "CommentHTMLRenderingMode": { "enum": [ 0, @@ -249,6 +259,15 @@ ], "type": "integer" }, + "UsersListLocation": { + "enum": [ + 0, + 1, + 2, + 3 + ], + "type": "integer" + }, "TOSConfig": { "properties": { "enabled": { @@ -459,6 +478,16 @@ "noImageUploads": { "type": "boolean" }, + "allowEmbeds": { + "type": "boolean" + }, + "allowedEmbedDomains": { + "items": { + "type": "string" + }, + "type": "array", + "nullable": true + }, "noStyles": { "type": "boolean" }, @@ -476,6 +505,9 @@ "requireSSO": { "type": "boolean" }, + "enableFChat": { + "type": "boolean" + }, "enableResizeHandle": { "type": "boolean" }, @@ -548,6 +580,12 @@ "wrap": { "type": "boolean" }, + "usersListLocation": { + "$ref": "#/components/schemas/UsersListLocation" + }, + "usersListIncludeOffline": { + "type": "boolean" + }, "ticketBaseUrl": { "type": "string" }, @@ -882,6 +920,11 @@ "createdAt": { "type": "string", "format": "date-time" + }, + "type": { + "type": "string", + "nullable": true, + "description": "Discriminator for notifications with a special layout/click handler (e.g. \"feedback-offer\")." } }, "required": [ @@ -1034,550 +1077,742 @@ "CrossPlatform" ] }, - "APIEmptyResponse": { + "GetTranslationsResponse": { "properties": { + "translations": { + "$ref": "#/components/schemas/Record_string.string_" + }, "status": { "$ref": "#/components/schemas/APIStatus" } }, "required": [ + "translations", "status" ], "type": "object" }, - "FeedPostMediaItemAsset": { + "PublicPage": { "properties": { - "w": { + "updatedAt": { "type": "integer", - "format": "int32" + "format": "int64" }, - "h": { + "commentCount": { "type": "integer", "format": "int32" }, - "src": { + "title": { + "type": "string" + }, + "url": { + "type": "string" + }, + "urlId": { "type": "string" } }, "required": [ - "w", - "h", - "src" + "updatedAt", + "commentCount", + "title", + "url", + "urlId" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "FeedPostMediaItem": { + "GetPublicPagesResponse": { "properties": { - "title": { - "type": "string" - }, - "linkUrl": { - "type": "string" + "nextCursor": { + "type": "string", + "nullable": true }, - "sizes": { + "pages": { "items": { - "$ref": "#/components/schemas/FeedPostMediaItemAsset" + "$ref": "#/components/schemas/PublicPage" }, "type": "array" + }, + "status": { + "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "sizes" + "nextCursor", + "pages", + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "FeedPostLink": { + "PagesSortBy": { + "type": "string", + "enum": [ + "updatedAt", + "commentCount", + "title" + ] + }, + "PageUserEntry": { "properties": { - "text": { - "type": "string" + "isPrivate": { + "type": "boolean" }, - "title": { + "avatarSrc": { "type": "string" }, - "description": { + "displayName": { "type": "string" }, - "url": { + "id": { "type": "string" } }, - "type": "object", - "additionalProperties": false - }, - "Int32Map": { - "properties": {}, - "additionalProperties": { - "type": "integer", - "format": "int32" - }, + "required": [ + "displayName", + "id" + ], "type": "object" }, - "FeedPost": { + "PageUsersOnlineResponse": { "properties": { - "_id": { - "type": "string" - }, - "tenantId": { - "type": "string" - }, - "title": { - "type": "string" - }, - "fromUserId": { - "type": "string" - }, - "fromUserDisplayName": { + "nextAfterUserId": { "type": "string", "nullable": true }, - "fromUserAvatar": { + "nextAfterName": { "type": "string", "nullable": true }, - "fromIpHash": { - "type": "string" - }, - "tags": { - "items": { - "type": "string" - }, - "type": "array" - }, - "weight": { + "totalCount": { "type": "number", "format": "double" }, - "meta": { - "$ref": "#/components/schemas/Record_string.string_" - }, - "contentHTML": { - "type": "string" - }, - "media": { - "items": { - "$ref": "#/components/schemas/FeedPostMediaItem" - }, - "type": "array" + "anonCount": { + "type": "number", + "format": "double" }, - "links": { + "users": { "items": { - "$ref": "#/components/schemas/FeedPostLink" + "$ref": "#/components/schemas/PageUserEntry" }, "type": "array" }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "reacts": { - "$ref": "#/components/schemas/Int32Map" - }, - "commentCount": { - "type": "integer", - "format": "int32", - "nullable": true + "status": { + "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "_id", - "tenantId", - "createdAt" + "nextAfterUserId", + "nextAfterName", + "totalCount", + "anonCount", + "users", + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "CommentUserBadgeInfo": { + "PageUsersOfflineResponse": { "properties": { - "id": { - "type": "string" - }, - "type": { - "type": "integer", - "format": "int32" - }, - "description": { - "type": "string" - }, - "displayLabel": { - "type": "string", - "nullable": true - }, - "displaySrc": { + "nextAfterUserId": { "type": "string", "nullable": true }, - "backgroundColor": { + "nextAfterName": { "type": "string", "nullable": true }, - "borderColor": { - "type": "string", - "nullable": true + "users": { + "items": { + "$ref": "#/components/schemas/PageUserEntry" + }, + "type": "array" }, - "textColor": { - "type": "string", - "nullable": true + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "nextAfterUserId", + "nextAfterName", + "users", + "status" + ], + "type": "object" + }, + "PageUsersInfoResponse": { + "properties": { + "users": { + "items": { + "$ref": "#/components/schemas/PageUserEntry" + }, + "type": "array" }, - "cssClass": { - "type": "string", - "nullable": true + "status": { + "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "id", - "type", - "description" + "users", + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "UserSessionInfo": { + "GetV1PageLikes": { "properties": { - "id": { + "urlIdWS": { "type": "string" }, - "authorized": { + "didLike": { "type": "boolean" }, - "avatarSrc": { - "type": "string", - "nullable": true + "commentCount": { + "type": "integer", + "format": "int32" }, - "badges": { + "likeCount": { + "type": "integer", + "format": "int32" + }, + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "urlIdWS", + "didLike", + "commentCount", + "likeCount", + "status" + ], + "type": "object" + }, + "GetV2PageReactUsersResponse": { + "properties": { + "userNames": { "items": { - "$ref": "#/components/schemas/CommentUserBadgeInfo" + "type": "string" }, "type": "array" }, - "displayLabel": { - "type": "string" - }, - "displayName": { - "type": "string" - }, - "email": { - "type": "string", - "nullable": true - }, - "groupIds": { + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "userNames", + "status" + ], + "type": "object" + }, + "Record_string.number_": { + "properties": {}, + "additionalProperties": { + "type": "number", + "format": "double" + }, + "type": "object", + "description": "Construct a type with a set of properties K of type T" + }, + "GetV2PageReacts": { + "properties": { + "reactedIds": { "items": { "type": "string" }, "type": "array" }, - "hasBlockedUsers": { - "type": "boolean" - }, - "isAnonSession": { - "type": "boolean" - }, - "needsTOS": { - "type": "boolean" - }, - "sessionId": { - "type": "string", - "nullable": true - }, - "username": { - "type": "string" + "counts": { + "$ref": "#/components/schemas/Record_string.number_" }, - "websiteUrl": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" } }, - "type": "object", - "additionalProperties": false + "required": [ + "status" + ], + "type": "object" }, - "GetPublicFeedPostsResponse": { + "CreateV1PageReact": { "properties": { + "code": { + "type": "string" + }, "status": { "$ref": "#/components/schemas/APIStatus" - }, - "feedPosts": { - "items": { - "$ref": "#/components/schemas/FeedPost" - }, - "type": "array" - }, - "user": { - "allOf": [ - { - "$ref": "#/components/schemas/UserSessionInfo" - } - ], - "nullable": true } }, "required": [ - "status", - "feedPosts" + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "TenantIdWS": { - "type": "string" + "CreateV2PageReact": { + "$ref": "#/components/schemas/CreateV1PageReact" }, - "UserIdWS": { - "type": "string" + "DeleteV1PageReact": { + "$ref": "#/components/schemas/CreateV1PageReact" }, - "UrlIdWS": { - "type": "string" + "DeleteV2PageReact": { + "$ref": "#/components/schemas/CreateV1PageReact" }, - "UserPresenceData": { + "ModerationFilter": { "properties": { - "urlIdWS": { - "$ref": "#/components/schemas/UrlIdWS" + "reviewed": { + "type": "boolean" }, - "userIdWS": { - "$ref": "#/components/schemas/UserIdWS" + "approved": { + "type": "boolean" }, - "tenantIdWS": { - "$ref": "#/components/schemas/TenantIdWS" - } - }, - "type": "object" - }, - "PublicFeedPostsResponse": { - "allOf": [ - { - "properties": { - "myReacts": { - "properties": {}, - "additionalProperties": { - "properties": {}, - "additionalProperties": { - "type": "boolean" - }, - "type": "object" - }, - "type": "object" - } + "isSpam": { + "type": "boolean" + }, + "isBannedUser": { + "type": "boolean" + }, + "isLocked": { + "type": "boolean" + }, + "flagCountGt": { + "type": "number", + "format": "double" + }, + "userId": { + "type": "string" + }, + "urlId": { + "type": "string" + }, + "domain": { + "type": "string" + }, + "moderationGroupIds": { + "items": { + "type": "string" }, - "type": "object" + "type": "array" }, - { - "$ref": "#/components/schemas/GetPublicFeedPostsResponse" + "commentTextSearch": { + "items": { + "type": "string" + }, + "type": "array", + "description": "Text search terms. Each term is matched case-insensitively against the comment text.\nA term wrapped in quotes means exact phrase match." }, - { - "$ref": "#/components/schemas/UserPresenceData" + "exactCommentText": { + "type": "string", + "description": "Set by the `exact=\"...\"` search syntax. The comment text must equal this value exactly\n(case-sensitive, full-string), as opposed to the substring matching of commentTextSearch." } - ] + }, + "type": "object", + "additionalProperties": false }, - "ReactFeedPostResponse": { + "BuildModerationFilterResponse": { "properties": { "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "reactType": { "type": "string" }, - "isUndo": { - "type": "boolean" + "moderationFilter": { + "$ref": "#/components/schemas/ModerationFilter" } }, "required": [ "status", - "reactType", - "isUndo" + "moderationFilter" ], "type": "object", "additionalProperties": false }, - "ReactBodyParams": { + "BuildModerationFilterParams": { "properties": { - "reactType": { + "userId": { + "type": "string" + }, + "tenantId": { + "type": "string" + }, + "filters": { + "type": "string" + }, + "searchFilters": { + "type": "string" + }, + "textSearch": { "type": "string" } }, + "required": [ + "userId", + "tenantId" + ], "type": "object", - "additionalProperties": false + "additionalProperties": {} }, - "UserReactsResponse": { + "ModerationAPICountCommentsResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "reacts": { - "properties": {}, - "additionalProperties": { - "properties": {}, - "additionalProperties": { - "type": "boolean" - }, - "type": "object" - }, - "type": "object" + "count": { + "type": "number", + "format": "double" } }, "required": [ "status", - "reacts" + "count" ], "type": "object", "additionalProperties": false }, - "CreateFeedPostResponse": { + "ModerationAPIGetCommentIdsResponse": { "properties": { + "ids": { + "items": { + "type": "string" + }, + "type": "array" + }, + "hasMore": { + "type": "boolean" + }, "status": { "$ref": "#/components/schemas/APIStatus" - }, - "feedPost": { - "$ref": "#/components/schemas/FeedPost" } }, "required": [ - "status", - "feedPost" + "ids", + "hasMore", + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "CreateFeedPostParams": { + "UserId": { + "type": "string" + }, + "CommentUserBadgeInfo": { "properties": { - "title": { + "id": { "type": "string" }, - "contentHTML": { + "type": { + "type": "integer", + "format": "int32" + }, + "description": { "type": "string" }, - "media": { - "items": { - "$ref": "#/components/schemas/FeedPostMediaItem" - }, - "type": "array" + "displayLabel": { + "type": "string", + "nullable": true }, - "links": { - "items": { - "$ref": "#/components/schemas/FeedPostLink" - }, - "type": "array" + "displaySrc": { + "type": "string", + "nullable": true }, - "fromUserId": { - "type": "string" + "backgroundColor": { + "type": "string", + "nullable": true }, - "fromUserDisplayName": { - "type": "string" + "borderColor": { + "type": "string", + "nullable": true }, - "tags": { - "items": { - "type": "string" - }, - "type": "array" + "textColor": { + "type": "string", + "nullable": true }, - "meta": { - "$ref": "#/components/schemas/Record_string.string_" + "cssClass": { + "type": "string", + "nullable": true } }, + "required": [ + "id", + "type", + "description" + ], "type": "object", "additionalProperties": false }, - "UpdateFeedPostParams": { + "ModerationAPIComment": { "properties": { - "title": { - "type": "string" + "isLocalDeleted": { + "type": "boolean" }, - "contentHTML": { - "type": "string" + "replyCount": { + "type": "number", + "format": "double" }, - "media": { + "feedbackResults": { "items": { - "$ref": "#/components/schemas/FeedPostMediaItem" + "type": "string" }, "type": "array" }, - "links": { + "isVotedUp": { + "type": "boolean" + }, + "isVotedDown": { + "type": "boolean" + }, + "myVoteId": { + "type": "string" + }, + "_id": { + "type": "string" + }, + "tenantId": { + "type": "string" + }, + "urlId": { + "type": "string" + }, + "url": { + "type": "string" + }, + "pageTitle": { + "type": "string", + "nullable": true + }, + "userId": { + "allOf": [ + { + "$ref": "#/components/schemas/UserId" + } + ], + "nullable": true + }, + "anonUserId": { + "type": "string", + "nullable": true + }, + "commenterName": { + "type": "string" + }, + "commenterLink": { + "type": "string", + "nullable": true + }, + "commentHTML": { + "type": "string" + }, + "parentId": { + "type": "string", + "nullable": true + }, + "date": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "localDateString": { + "type": "string", + "nullable": true + }, + "votes": { + "type": "number", + "format": "double", + "nullable": true + }, + "votesUp": { + "type": "number", + "format": "double", + "nullable": true + }, + "votesDown": { + "type": "number", + "format": "double", + "nullable": true + }, + "expireAt": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "reviewed": { + "type": "boolean" + }, + "avatarSrc": { + "type": "string", + "nullable": true + }, + "isSpam": { + "type": "boolean" + }, + "permNotSpam": { + "type": "boolean" + }, + "hasLinks": { + "type": "boolean" + }, + "hasCode": { + "type": "boolean" + }, + "approved": { + "type": "boolean" + }, + "locale": { + "type": "string", + "nullable": true + }, + "isBannedUser": { + "type": "boolean" + }, + "isByAdmin": { + "type": "boolean" + }, + "isByModerator": { + "type": "boolean" + }, + "isPinned": { + "type": "boolean", + "nullable": true + }, + "isLocked": { + "type": "boolean", + "nullable": true + }, + "flagCount": { + "type": "number", + "format": "double", + "nullable": true + }, + "displayLabel": { + "type": "string", + "nullable": true + }, + "badges": { "items": { - "$ref": "#/components/schemas/FeedPostLink" + "$ref": "#/components/schemas/CommentUserBadgeInfo" }, - "type": "array" + "type": "array", + "nullable": true }, - "tags": { + "verified": { + "type": "boolean" + }, + "feedbackIds": { "items": { "type": "string" }, "type": "array" }, - "meta": { - "$ref": "#/components/schemas/Record_string.string_" + "isDeleted": { + "type": "boolean" } }, + "required": [ + "_id", + "tenantId", + "urlId", + "url", + "commenterName", + "commentHTML", + "date", + "approved", + "locale", + "verified" + ], "type": "object", "additionalProperties": false }, - "FeedPostStats": { + "ModerationAPIGetCommentsResponse": { "properties": { - "reacts": { - "$ref": "#/components/schemas/Int32Map" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "commentCount": { - "type": "integer", - "format": "int32" + "translations": { + "additionalProperties": false, + "type": "object" + }, + "comments": { + "items": { + "$ref": "#/components/schemas/ModerationAPIComment" + }, + "type": "array" + }, + "moderationFilter": { + "$ref": "#/components/schemas/ModerationFilter" } }, + "required": [ + "status", + "translations", + "comments" + ], "type": "object", "additionalProperties": false }, - "FeedPostsStatsResponse": { + "ModerationExportResponse": { "properties": { "status": { - "$ref": "#/components/schemas/APIStatus" + "type": "string" }, - "stats": { - "properties": {}, - "additionalProperties": { - "$ref": "#/components/schemas/FeedPostStats" - }, - "type": "object" + "batchJobId": { + "type": "string" } }, "required": [ "status", - "stats" + "batchJobId" ], "type": "object", "additionalProperties": false }, - "EventLogEntry": { + "ModerationExportStatusResponse": { "properties": { - "_id": { + "status": { "type": "string" }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "tenantId": { + "jobStatus": { "type": "string" }, - "urlId": { - "type": "string" + "recordCount": { + "type": "integer", + "format": "int32" }, - "broadcastId": { + "downloadUrl": { + "type": "string" + } + }, + "required": [ + "status", + "jobStatus", + "recordCount" + ], + "type": "object", + "additionalProperties": false + }, + "ModerationUserSearchProjected": { + "properties": { + "_id": { "type": "string" }, - "data": { + "username": { "type": "string" + }, + "displayName": { + "type": "string", + "nullable": true + }, + "avatarSrc": { + "type": "string", + "nullable": true } }, "required": [ "_id", - "createdAt", - "tenantId", - "urlId", - "broadcastId", - "data" + "username" ], "type": "object", "additionalProperties": false }, - "GetEventLogResponse": { + "ModerationUserSearchResponse": { "properties": { - "events": { + "users": { "items": { - "$ref": "#/components/schemas/EventLogEntry" + "$ref": "#/components/schemas/ModerationUserSearchProjected" }, "type": "array" }, @@ -1586,124 +1821,183 @@ } }, "required": [ - "events", + "users", "status" ], "type": "object" }, - "LiveEventType": { - "enum": [ - "update-badges", - "notification", - "notification-update", - "p-u", - "new-vote", - "deleted-vote", - "new-comment", - "updated-comment", - "deleted-comment", - "cvc", - "new-config", - "thread-state-change", - "fr", - "dfr", - "new-feed-post", - "updated-feed-post", - "deleted-feed-post" - ], - "type": "string" - }, - "TenantId": { - "type": "string" - }, - "UserNotification": { + "ModerationPageSearchProjected": { "properties": { - "_id": { - "type": "string" - }, - "tenantId": { - "$ref": "#/components/schemas/TenantId" - }, - "userId": { - "type": "string", - "nullable": true - }, - "anonUserId": { - "type": "string", - "nullable": true - }, "urlId": { "type": "string" }, "url": { "type": "string" }, - "pageTitle": { - "type": "string", - "nullable": true - }, - "relatedObjectType": { - "$ref": "#/components/schemas/NotificationObjectType" - }, - "relatedObjectId": { + "title": { "type": "string" }, - "viewed": { - "type": "boolean" - }, - "isUnreadMessage": { - "type": "boolean" - }, - "sent": { - "type": "boolean" - }, - "createdAt": { - "type": "string", - "format": "date-time" + "commentCount": { + "type": "number", + "format": "double" + } + }, + "required": [ + "urlId", + "url", + "title", + "commentCount" + ], + "type": "object", + "additionalProperties": false + }, + "ModerationPageSearchResponse": { + "properties": { + "pages": { + "items": { + "$ref": "#/components/schemas/ModerationPageSearchProjected" + }, + "type": "array" }, - "type": { - "$ref": "#/components/schemas/NotificationType" + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "pages", + "status" + ], + "type": "object" + }, + "ModerationSiteSearchProjected": { + "properties": { + "domain": { + "type": "string" }, - "fromCommentId": { + "logoSrc100px": { "type": "string", "nullable": true + } + }, + "required": [ + "domain" + ], + "type": "object", + "additionalProperties": false + }, + "ModerationSiteSearchResponse": { + "properties": { + "sites": { + "items": { + "$ref": "#/components/schemas/ModerationSiteSearchProjected" + }, + "type": "array" }, - "fromVoteId": { - "type": "string", - "nullable": true + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "sites", + "status" + ], + "type": "object" + }, + "ModerationCommentSearchResponse": { + "properties": { + "commentCount": { + "type": "integer", + "format": "int32" }, - "fromUserName": { - "type": "string", - "nullable": true + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "commentCount", + "status" + ], + "type": "object" + }, + "ModerationSuggestResponse": { + "properties": { + "status": { + "type": "string" }, - "fromUserId": { - "type": "string", - "nullable": true + "pages": { + "items": { + "$ref": "#/components/schemas/ModerationPageSearchProjected" + }, + "type": "array" }, - "fromUserAvatarSrc": { - "type": "string", - "nullable": true + "users": { + "items": { + "$ref": "#/components/schemas/ModerationUserSearchProjected" + }, + "type": "array" }, - "optedOut": { - "type": "boolean" + "code": { + "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object", + "additionalProperties": false + }, + "PreBanSummary": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "usernames": { + "items": { + "type": "string" + }, + "type": "array" }, "count": { + "type": "number", + "format": "double" + } + }, + "required": [ + "status", + "usernames", + "count" + ], + "type": "object", + "additionalProperties": false + }, + "BulkPreBanSummary": { + "properties": { + "status": { + "type": "string" + }, + "totalRelatedCommentCount": { "type": "integer", - "format": "int64" + "format": "int32" }, - "relatedIds": { + "emailDomains": { "items": { "type": "string" }, "type": "array" }, - "fromUserIds": { + "emails": { "items": { "type": "string" }, "type": "array" }, - "fromUserNames": { + "userIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "ipHashes": { "items": { "type": "string" }, @@ -1711,23 +2005,32 @@ } }, "required": [ - "_id", - "tenantId", - "urlId", - "url", - "relatedObjectType", - "relatedObjectId", - "viewed", - "isUnreadMessage", - "sent", - "createdAt", - "type", - "optedOut" + "status", + "totalRelatedCommentCount", + "emailDomains", + "emails", + "userIds", + "ipHashes" ], "type": "object", "additionalProperties": false }, - "PubSubVote": { + "BulkPreBanParams": { + "properties": { + "commentIds": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "commentIds" + ], + "type": "object", + "additionalProperties": false + }, + "APIBannedUser": { "properties": { "_id": { "type": "string" @@ -1735,52 +2038,61 @@ "tenantId": { "type": "string" }, - "urlId": { + "userId": { + "type": "string", + "nullable": true + }, + "email": { + "type": "string", + "nullable": true + }, + "username": { + "type": "string", + "nullable": true + }, + "ipHash": { + "type": "string", + "nullable": true + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "bannedByUserId": { "type": "string" }, - "urlIdRaw": { + "bannedCommentText": { "type": "string" }, - "commentId": { + "banType": { "type": "string" }, - "userId": { + "bannedUntil": { "type": "string", + "format": "date-time", "nullable": true }, - "direction": { - "type": "integer", - "format": "int32" + "hasEmailWildcard": { + "type": "boolean" }, - "createdAt": { - "type": "integer", - "format": "int64" - }, - "verificationId": { - "type": "string", - "nullable": true + "banReason": { + "type": "string" } }, "required": [ "_id", "tenantId", - "urlId", - "urlIdRaw", - "commentId", - "direction", "createdAt", - "verificationId" + "bannedByUserId", + "bannedCommentText", + "banType", + "bannedUntil", + "hasEmailWildcard" ], "type": "object", "additionalProperties": false }, - "UserId": { - "type": "string" - }, - "FDomain": { - "type": "string" - }, - "PubSubCommentBase": { + "APIBanUserChangedValues": { "properties": { "_id": { "type": "string" @@ -1789,1355 +2101,1647 @@ "type": "string" }, "userId": { - "allOf": [ - { - "$ref": "#/components/schemas/UserId" - } - ], - "nullable": true - }, - "urlId": { - "type": "string" - }, - "commenterName": { - "type": "string" - }, - "commenterLink": { "type": "string", "nullable": true }, - "commentHTML": { - "type": "string" - }, - "comment": { - "type": "string" - }, - "parentId": { + "email": { "type": "string", "nullable": true }, - "votes": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "votesUp": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "votesDown": { - "type": "integer", - "format": "int32", + "username": { + "type": "string", "nullable": true }, - "verified": { - "type": "boolean" - }, - "avatarSrc": { + "ipHash": { "type": "string", "nullable": true }, - "hasImages": { - "type": "boolean" - }, - "hasLinks": { - "type": "boolean" - }, - "isByAdmin": { - "type": "boolean" + "createdAt": { + "type": "string", + "format": "date-time" }, - "isByModerator": { - "type": "boolean" + "bannedByUserId": { + "type": "string" }, - "isPinned": { - "type": "boolean", - "nullable": true + "bannedCommentText": { + "type": "string" }, - "isLocked": { - "type": "boolean", - "nullable": true + "banType": { + "type": "string" }, - "displayLabel": { + "bannedUntil": { "type": "string", + "format": "date-time", "nullable": true }, - "rating": { - "type": "number", - "format": "double", - "nullable": true - }, - "badges": { - "items": { - "$ref": "#/components/schemas/CommentUserBadgeInfo" - }, - "type": "array", - "nullable": true - }, - "viewCount": { - "type": "integer", - "format": "int64", - "nullable": true - }, - "isDeleted": { - "type": "boolean" - }, - "isDeletedUser": { + "hasEmailWildcard": { "type": "boolean" }, - "isSpam": { - "type": "boolean" + "banReason": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "APIBanUserChangeLog": { + "properties": { + "createdBannedUserId": { + "type": "string" }, - "anonUserId": { - "type": "string", - "nullable": true + "updatedBannedUserId": { + "type": "string" }, - "feedbackIds": { + "deletedBannedUsers": { "items": { - "type": "string" + "$ref": "#/components/schemas/APIBannedUser" }, "type": "array" }, - "flagCount": { - "type": "integer", - "format": "int32", - "nullable": true + "changedValuesBefore": { + "$ref": "#/components/schemas/APIBanUserChangedValues" + } + }, + "type": "object", + "additionalProperties": false + }, + "BanUserFromCommentResult": { + "properties": { + "status": { + "type": "string" }, - "domain": { - "allOf": [ + "changelog": { + "$ref": "#/components/schemas/APIBanUserChangeLog" + }, + "code": { + "type": "string" + }, + "reason": { + "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object", + "additionalProperties": false + }, + "BannedUserMatchType": { + "type": "string", + "enum": [ + "userId", + "email", + "email-wildcard", + "IP" + ] + }, + "BannedUserMatch": { + "properties": { + "matchedOn": { + "$ref": "#/components/schemas/BannedUserMatchType" + }, + "matchedOnValue": { + "anyOf": [ { - "$ref": "#/components/schemas/FDomain" + "type": "string" + }, + { + "type": "number", + "format": "double" } ], "nullable": true - }, - "url": { + } + }, + "required": [ + "matchedOn", + "matchedOnValue" + ], + "type": "object", + "additionalProperties": false + }, + "APICommentCommonBannedUser": { + "properties": { + "_id": { "type": "string" }, - "pageTitle": { + "userId": { "type": "string", "nullable": true }, - "expireAt": { + "banType": { + "type": "string" + }, + "email": { "type": "string", - "format": "date-time", "nullable": true }, - "reviewed": { - "type": "boolean" - }, - "hasCode": { - "type": "boolean" - }, - "approved": { - "type": "boolean" + "ipHash": { + "type": "string", + "nullable": true }, - "locale": { + "bannedUntil": { "type": "string", + "format": "date-time", "nullable": true }, - "isBannedUser": { + "hasEmailWildcard": { "type": "boolean" }, - "groupIds": { - "items": { - "type": "string" - }, - "type": "array", - "nullable": true + "banReason": { + "type": "string" } }, "required": [ "_id", - "tenantId", - "urlId", - "commenterName", - "commentHTML", - "comment", - "verified", - "url", - "approved", - "locale" + "banType", + "bannedUntil", + "hasEmailWildcard" ], "type": "object", "additionalProperties": false }, - "PubSubComment": { + "APIBannedUserWithMultiMatchInfo": { "allOf": [ - { - "$ref": "#/components/schemas/PubSubCommentBase" - }, { "properties": { - "isLive": { - "type": "boolean" - }, - "hidden": { - "type": "boolean" - }, - "date": { - "type": "string" + "matches": { + "items": { + "$ref": "#/components/schemas/BannedUserMatch" + }, + "type": "array" } }, "required": [ - "date" + "matches" ], "type": "object" + }, + { + "$ref": "#/components/schemas/APICommentCommonBannedUser" } ] }, - "Record_string._before-string-or-null--after-string-or-null__": { - "properties": {}, - "additionalProperties": { - "properties": { - "after": { - "type": "string" + "GetBannedUsersFromCommentResponse": { + "properties": { + "bannedUsers": { + "items": { + "$ref": "#/components/schemas/APIBannedUserWithMultiMatchInfo" }, - "before": { - "type": "string" - } + "type": "array" }, - "required": [ - "after", - "before" - ], - "type": "object" + "code": { + "type": "string", + "enum": [ + "not-found", + "not-logged-in" + ] + }, + "status": { + "$ref": "#/components/schemas/APIStatus" + } }, + "required": [ + "bannedUsers", + "status" + ], + "type": "object" + }, + "APIEmptyResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "BanUserUndoParams": { + "properties": { + "changelog": { + "$ref": "#/components/schemas/APIBanUserChangeLog" + } + }, + "required": [ + "changelog" + ], "type": "object", - "description": "Construct a type with a set of properties K of type T" + "additionalProperties": false }, - "CommentPositions": { - "$ref": "#/components/schemas/Record_string._before-string-or-null--after-string-or-null__" + "DeleteCommentAction": { + "type": "string", + "enum": [ + "already-deleted", + "hard-removed", + "anonymized" + ] }, - "LiveEvent": { + "DeleteCommentResult": { "properties": { - "type": { - "$ref": "#/components/schemas/LiveEventType" - }, - "timestamp": { - "type": "integer", - "format": "int64" - }, - "ts": { - "type": "integer", - "format": "int64" + "action": { + "$ref": "#/components/schemas/DeleteCommentAction" }, - "broadcastId": { + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "action", + "status" + ], + "type": "object" + }, + "RemoveCommentActionResponse": { + "properties": { + "status": { "type": "string" }, - "userId": { + "action": { "type": "string" + } + }, + "required": [ + "status", + "action" + ], + "type": "object", + "additionalProperties": false + }, + "SetCommentApprovedResponse": { + "properties": { + "didResetFlaggedCount": { + "type": "boolean" }, - "badges": { - "items": { - "$ref": "#/components/schemas/CommentUserBadgeInfo" - }, - "type": "array" - }, - "notification": { - "$ref": "#/components/schemas/UserNotification" - }, - "vote": { - "$ref": "#/components/schemas/PubSubVote" - }, - "comment": { - "$ref": "#/components/schemas/PubSubComment" - }, - "feedPost": { - "$ref": "#/components/schemas/FeedPost" - }, - "extraInfo": { - "properties": { - "commentPositions": { - "$ref": "#/components/schemas/CommentPositions" - } - }, - "type": "object" - }, - "config": { - "additionalProperties": false, - "type": "object" + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "ModerationAPICommentLog": { + "properties": { + "date": { + "type": "string", + "format": "date-time" }, - "isClosed": { - "type": "boolean" + "username": { + "type": "string" }, - "uj": { - "items": { - "type": "string" - }, - "type": "array" + "actionName": { + "type": "string" }, - "ul": { + "messageHTML": { + "type": "string" + } + }, + "required": [ + "date", + "actionName", + "messageHTML" + ], + "type": "object", + "additionalProperties": false + }, + "ModerationAPIGetLogsResponse": { + "properties": { + "logs": { "items": { - "type": "string" + "$ref": "#/components/schemas/ModerationAPICommentLog" }, "type": "array" }, - "changes": { - "$ref": "#/components/schemas/Int32Map" + "status": { + "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "type" + "logs", + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "PublicAPIGetCommentTextResponse": { + "ModerationAPICommentResponse": { "properties": { + "comment": { + "$ref": "#/components/schemas/ModerationAPIComment" + }, "status": { "$ref": "#/components/schemas/APIStatus" - }, - "commentText": { - "type": "string" - }, - "sanitizedCommentText": { - "type": "string" } }, "required": [ - "status", - "commentText", - "sanitizedCommentText" + "comment", + "status" ], "type": "object" }, - "SetCommentTextResult": { + "ModerationAPIChildCommentsResponse": { "properties": { - "approved": { - "type": "boolean" + "comments": { + "items": { + "$ref": "#/components/schemas/ModerationAPIComment" + }, + "type": "array" }, - "commentHTML": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "approved", - "commentHTML" + "comments", + "status" + ], + "type": "object" + }, + "CommentsByIdsParams": { + "properties": { + "ids": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "ids" ], "type": "object", "additionalProperties": false }, - "PublicAPISetCommentTextResponse": { + "GetCommentTextResponse": { "properties": { "comment": { - "$ref": "#/components/schemas/SetCommentTextResult" + "type": "string", + "nullable": true }, "status": { "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "comment", "status" ], "type": "object" }, - "CommentUserMentionInfo": { + "SetCommentTextResponse": { "properties": { - "id": { + "newCommentTextHTML": { "type": "string" }, - "tag": { - "type": "string" - }, - "rawTag": { + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "newCommentTextHTML", + "status" + ], + "type": "object" + }, + "SetCommentTextParams": { + "properties": { + "comment": { "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "user", - "sso" - ] - }, - "sent": { - "type": "boolean" } }, "required": [ - "id", - "tag" + "comment" ], "type": "object", "additionalProperties": false }, - "CommentUserHashTagInfo": { + "AdjustVotesResponse": { "properties": { - "id": { - "type": "string" - }, - "tag": { + "status": { "type": "string" }, - "url": { - "type": "string", - "nullable": true - }, - "retain": { - "type": "boolean" + "newCommentVotes": { + "type": "integer", + "format": "int32" } }, "required": [ - "id", - "tag", - "url" + "status", + "newCommentVotes" ], "type": "object", "additionalProperties": false }, - "CommentTextUpdateRequest": { + "AdjustCommentVotesParams": { "properties": { - "comment": { - "type": "string" - }, - "mentions": { - "items": { - "$ref": "#/components/schemas/CommentUserMentionInfo" - }, - "type": "array" - }, - "hashTags": { - "items": { - "$ref": "#/components/schemas/CommentUserHashTagInfo" - }, - "type": "array" + "adjustVoteAmount": { + "type": "number", + "format": "double" } }, "required": [ - "comment" + "adjustVoteAmount" ], "type": "object", "additionalProperties": false }, - "PublicComment": { - "allOf": [ - { - "properties": { - "isUnread": { - "type": "boolean" - }, - "myVoteId": { - "type": "string" - }, - "isVotedDown": { - "type": "boolean" - }, - "isVotedUp": { - "type": "boolean" - }, - "hasChildren": { - "type": "boolean", - "description": "This is always set when asTree=true" - }, - "nestedChildrenCount": { - "type": "integer", - "format": "int32", - "description": "The total nested child count included in this response (may be more available w/ pagination) Only set with asTree=true, otherwise this will be null." - }, - "childCount": { - "type": "integer", - "format": "int32", - "description": "You must ask the API to count children (with asTree=true&countChildren=true), otherwise this will be null. This will be the complete direct child count, whereas children may only contain a subset based on pagination." - }, - "children": { - "items": { - "$ref": "#/components/schemas/PublicComment" - }, - "type": "array" - }, - "isFlagged": { - "type": "boolean" + "VoteResponseUser": { + "properties": { + "sessionId": { + "type": "string", + "nullable": true + } + }, + "type": "object", + "additionalProperties": false + }, + "VoteResponse": { + "properties": { + "status": { + "anyOf": [ + { + "$ref": "#/components/schemas/APIStatus" }, - "isBlocked": { - "type": "boolean" + { + "type": "string", + "enum": [ + "pending-verification" + ] } - }, - "type": "object" + ] }, - { - "$ref": "#/components/schemas/PublicCommentBase" + "voteId": { + "type": "string" + }, + "isVerified": { + "type": "boolean" + }, + "user": { + "$ref": "#/components/schemas/VoteResponseUser" + }, + "editKey": { + "type": "string" } - ] + }, + "required": [ + "status" + ], + "type": "object", + "additionalProperties": false }, - "PublicCommentBase": { + "VoteDeleteResponse": { "properties": { - "_id": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "wasPendingVote": { + "type": "boolean" + } + }, + "required": [ + "status" + ], + "type": "object", + "additionalProperties": false + }, + "GetCommentBanStatusResponse": { + "properties": { + "status": { "type": "string" }, - "userId": { + "emailDomain": { + "type": "string", + "nullable": true + }, + "canIPBan": { + "type": "boolean", + "nullable": true + } + }, + "required": [ + "status", + "emailDomain", + "canIPBan" + ], + "type": "object", + "additionalProperties": false + }, + "APIModerateUserBanPreferences": { + "properties": { + "shouldBanEmail": { + "type": "boolean" + }, + "shouldBanByIP": { + "type": "boolean" + }, + "lastBanType": { + "type": "string" + }, + "lastBanDuration": { + "type": "string" + } + }, + "required": [ + "shouldBanEmail", + "shouldBanByIP", + "lastBanType", + "lastBanDuration" + ], + "type": "object", + "additionalProperties": false + }, + "APIModerateGetUserBanPreferencesResponse": { + "properties": { + "preferences": { "allOf": [ { - "$ref": "#/components/schemas/UserId" + "$ref": "#/components/schemas/APIModerateUserBanPreferences" } ], "nullable": true }, - "commenterName": { + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "preferences", + "status" + ], + "type": "object" + }, + "TenantBadge": { + "properties": { + "_id": { "type": "string" }, - "commenterLink": { - "type": "string", - "nullable": true - }, - "commentHTML": { + "tenantId": { "type": "string" }, - "parentId": { - "type": "string", - "nullable": true + "createdByUserId": { + "type": "string" }, - "date": { + "createdAt": { "type": "string", - "format": "date-time", - "nullable": true + "format": "date-time" }, - "votes": { - "type": "integer", - "format": "int32", - "nullable": true + "enabled": { + "type": "boolean" }, - "votesUp": { - "type": "integer", - "format": "int32", + "urlId": { + "type": "string", "nullable": true }, - "votesDown": { - "type": "integer", - "format": "int32", - "nullable": true + "type": { + "type": "number", + "format": "double" }, - "verified": { - "type": "boolean" + "threshold": { + "type": "number", + "format": "double" }, - "avatarSrc": { - "type": "string", - "nullable": true + "uses": { + "type": "number", + "format": "double" }, - "hasImages": { - "type": "boolean" + "name": { + "type": "string" }, - "isByAdmin": { - "type": "boolean" + "description": { + "type": "string" }, - "isByModerator": { - "type": "boolean" + "displayLabel": { + "type": "string" }, - "isPinned": { - "type": "boolean", + "displaySrc": { + "type": "string", "nullable": true }, - "isLocked": { - "type": "boolean", + "backgroundColor": { + "type": "string", "nullable": true }, - "displayLabel": { + "borderColor": { "type": "string", "nullable": true }, - "rating": { - "type": "number", - "format": "double", + "textColor": { + "type": "string", "nullable": true }, - "badges": { - "items": { - "$ref": "#/components/schemas/CommentUserBadgeInfo" - }, - "type": "array", + "cssClass": { + "type": "string", "nullable": true }, - "viewCount": { - "type": "integer", - "format": "int64", + "veteranUserThresholdMillis": { + "type": "number", + "format": "double", "nullable": true }, - "isDeleted": { - "type": "boolean" - }, - "isDeletedUser": { + "isAwaitingReprocess": { "type": "boolean" }, - "isSpam": { + "isAwaitingDeletion": { "type": "boolean" }, - "anonUserId": { + "replacesBadgeId": { "type": "string", "nullable": true - }, - "feedbackIds": { - "items": { - "type": "string" - }, - "type": "array" - }, - "requiresVerification": { - "type": "boolean" - }, - "editKey": { - "type": "string" - }, - "approved": { - "type": "boolean" } }, "required": [ "_id", - "commenterName", - "commentHTML", - "date", - "verified" - ], - "type": "object", - "additionalProperties": false - }, - "Record_string.any_": { - "properties": {}, - "additionalProperties": {}, + "tenantId", + "createdByUserId", + "createdAt", + "enabled", + "type", + "threshold", + "uses", + "name", + "description", + "displayLabel", + "displaySrc", + "backgroundColor", + "borderColor", + "textColor", + "isAwaitingReprocess", + "isAwaitingDeletion" + ], "type": "object", - "description": "Construct a type with a set of properties K of type T" + "additionalProperties": false }, - "GetCommentsResponse_PublicComment_": { + "GetTenantManualBadgesResponse": { "properties": { - "statusCode": { - "type": "integer", - "format": "int32" + "badges": { + "items": { + "$ref": "#/components/schemas/TenantBadge" + }, + "type": "array" }, "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "badges", + "status" + ], + "type": "object" + }, + "UserBadge": { + "properties": { + "_id": { "type": "string" }, - "code": { + "userId": { "type": "string" }, - "reason": { + "badgeId": { "type": "string" }, - "translatedWarning": { + "fromTenantId": { "type": "string" }, - "comments": { - "items": { - "$ref": "#/components/schemas/PublicComment" - }, - "type": "array" - }, - "user": { - "allOf": [ - { - "$ref": "#/components/schemas/UserSessionInfo" - } - ], - "nullable": true - }, - "urlIdClean": { - "type": "string" + "createdAt": { + "type": "string", + "format": "date-time" }, - "lastGenDate": { + "type": { "type": "integer", - "format": "int64", - "nullable": true - }, - "includesPastPages": { - "type": "boolean" - }, - "isDemo": { - "type": "boolean", - "enum": [ - true - ], - "nullable": false + "format": "int32" }, - "commentCount": { + "threshold": { "type": "integer", - "format": "int32" + "format": "int64" }, - "isSiteAdmin": { - "type": "boolean" + "description": { + "type": "string" }, - "hasBillingIssue": { - "type": "boolean", - "enum": [ - true - ], - "nullable": false + "displayLabel": { + "type": "string" }, - "moduleData": { - "$ref": "#/components/schemas/Record_string.any_" + "displaySrc": { + "type": "string", + "nullable": true }, - "pageNumber": { - "type": "integer", - "format": "int32" + "backgroundColor": { + "type": "string", + "nullable": true }, - "isWhiteLabeled": { - "type": "boolean" + "borderColor": { + "type": "string", + "nullable": true }, - "isProd": { - "type": "boolean", - "enum": [ - false - ], - "nullable": false + "textColor": { + "type": "string", + "nullable": true }, - "isCrawler": { - "type": "boolean", - "enum": [ - true - ], - "nullable": false + "cssClass": { + "type": "string", + "nullable": true }, - "notificationCount": { + "veteranUserThresholdMillis": { "type": "integer", - "format": "int32" + "format": "int64" }, - "hasMore": { + "displayedOnComments": { "type": "boolean" }, - "isClosed": { - "type": "boolean" + "receivedAt": { + "type": "string", + "format": "date-time" }, - "presencePollState": { + "order": { "type": "integer", "format": "int32" }, - "customConfig": { - "$ref": "#/components/schemas/CustomConfigParameters" + "urlId": { + "type": "string", + "nullable": true } }, "required": [ - "status", - "comments", - "user", - "pageNumber" + "_id", + "userId", + "badgeId", + "fromTenantId", + "createdAt", + "type", + "threshold", + "description", + "displayLabel", + "veteranUserThresholdMillis", + "displayedOnComments", + "receivedAt" ], "type": "object", "additionalProperties": false }, - "GetCommentsResponseWithPresence_PublicComment_": { - "allOf": [ - { - "$ref": "#/components/schemas/GetCommentsResponse_PublicComment_" - }, - { - "$ref": "#/components/schemas/UserPresenceData" - } - ] - }, - "SaveCommentResponseOptimized": { + "GetUserManualBadgesResponse": { "properties": { + "badges": { + "items": { + "$ref": "#/components/schemas/UserBadge" + }, + "type": "array" + }, "status": { "$ref": "#/components/schemas/APIStatus" - }, - "comment": { - "$ref": "#/components/schemas/PublicComment" - }, - "user": { - "allOf": [ - { - "$ref": "#/components/schemas/UserSessionInfo" - } - ], - "nullable": true - }, - "moduleData": { - "$ref": "#/components/schemas/Record_string.any_" } }, "required": [ - "status", - "comment", - "user" + "badges", + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "SaveCommentsResponseWithPresence": { - "allOf": [ - { - "$ref": "#/components/schemas/SaveCommentResponseOptimized" + "AwardUserBadgeResponse": { + "properties": { + "notes": { + "items": { + "type": "string" + }, + "type": "array" }, - { - "properties": { - "userIdWS": { - "$ref": "#/components/schemas/UserIdWS" - } + "badges": { + "items": { + "$ref": "#/components/schemas/CommentUserBadgeInfo" }, - "type": "object" + "type": "array" + }, + "status": { + "$ref": "#/components/schemas/APIStatus" } - ] + }, + "required": [ + "status" + ], + "type": "object" }, - "Record_string.string-or-number_": { - "properties": {}, - "additionalProperties": { - "anyOf": [ - { - "type": "string" + "RemoveUserBadgeResponse": { + "properties": { + "badges": { + "items": { + "$ref": "#/components/schemas/CommentUserBadgeInfo" }, - { - "type": "number", - "format": "double" - } - ] + "type": "array" + }, + "status": { + "$ref": "#/components/schemas/APIStatus" + } }, - "type": "object", - "description": "Construct a type with a set of properties K of type T" + "required": [ + "status" + ], + "type": "object" }, - "CommentData": { + "GetUserTrustFactorResponse": { "properties": { - "date": { - "type": "integer", - "format": "int64" - }, - "localDateString": { - "type": "string" - }, - "localDateHours": { - "type": "integer", - "format": "int32" - }, - "commenterName": { - "type": "string" - }, - "commenterEmail": { - "type": "string", - "nullable": true - }, - "commenterLink": { - "type": "string", - "nullable": true - }, - "comment": { - "type": "string" - }, - "productId": { - "type": "integer", - "format": "int32" - }, - "userId": { - "type": "string", - "nullable": true - }, - "avatarSrc": { - "type": "string", - "nullable": true - }, - "parentId": { - "type": "string", - "nullable": true - }, - "mentions": { - "items": { - "$ref": "#/components/schemas/CommentUserMentionInfo" - }, - "type": "array" - }, - "hashTags": { - "items": { - "$ref": "#/components/schemas/CommentUserHashTagInfo" - }, - "type": "array" - }, - "pageTitle": { - "type": "string" - }, - "isFromMyAccountPage": { - "type": "boolean" - }, - "url": { - "type": "string" - }, - "urlId": { - "type": "string" - }, - "meta": { - "additionalProperties": false, - "type": "object" - }, - "moderationGroupIds": { - "items": { - "type": "string" - }, - "type": "array" - }, - "rating": { + "manualTrustFactor": { "type": "number", "format": "double" }, - "fromOfflineRestore": { - "type": "boolean" + "autoTrustFactor": { + "type": "number", + "format": "double" }, - "autoplayDelayMS": { - "type": "integer", - "format": "int64" + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "SetUserTrustFactorResponse": { + "properties": { + "previousManualTrustFactor": { + "type": "number", + "format": "double" }, - "feedbackIds": { - "items": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "GetUserInternalProfileResponse": { + "properties": { + "profile": { + "properties": { + "commenterName": { + "type": "string" + }, + "firstCommentDate": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "ipHash": { + "type": "string" + }, + "countryFlag": { + "type": "string" + }, + "countryCode": { + "type": "string" + }, + "websiteUrl": { + "type": "string", + "nullable": true + }, + "bio": { + "type": "string" + }, + "karma": { + "type": "number", + "format": "double" + }, + "locale": { + "type": "string" + }, + "verified": { + "type": "boolean" + }, + "avatarSrc": { + "type": "string", + "nullable": true + }, + "displayName": { + "type": "string" + }, + "username": { + "type": "string" + }, + "commenterEmail": { + "type": "string", + "nullable": true + }, + "email": { + "type": "string", + "nullable": true + }, + "anonUserId": { + "type": "string", + "nullable": true + }, + "userId": { + "type": "string", + "nullable": true + } }, - "type": "array" - }, - "questionValues": { - "$ref": "#/components/schemas/Record_string.string-or-number_" + "type": "object" }, - "tos": { - "type": "boolean" + "status": { + "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "commenterName", - "comment", - "url", - "urlId" + "profile", + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "DeletedCommentResultComment": { + "GetBannedUsersCountResponse": { "properties": { - "isDeleted": { - "type": "boolean" - }, - "commentHTML": { - "type": "string" + "totalCount": { + "type": "number", + "format": "double" }, - "commenterName": { + "status": { "type": "string" - }, - "userId": { - "type": "string", - "nullable": true } }, "required": [ - "commentHTML", - "commenterName" + "totalCount", + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "PublicAPIDeleteCommentResponse": { + "GifSearchResponse": { "properties": { - "comment": { - "$ref": "#/components/schemas/DeletedCommentResultComment" - }, - "hardRemoved": { - "type": "boolean" + "images": { + "items": { + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number", + "format": "double" + } + ] + }, + "type": "array" + }, + "type": "array" }, "status": { "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "hardRemoved", + "images", "status" ], "type": "object" }, - "CheckBlockedCommentsResponse": { + "GifSearchInternalError": { "properties": { - "commentStatuses": { - "$ref": "#/components/schemas/Record_string.boolean_" + "code": { + "type": "string" }, "status": { "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "commentStatuses", + "code", "status" ], "type": "object" }, - "VoteResponseUser": { + "GifGetLargeResponse": { "properties": { - "sessionId": { - "type": "string", - "nullable": true + "src": { + "type": "string" + }, + "status": { + "$ref": "#/components/schemas/APIStatus" } }, - "type": "object", - "additionalProperties": false + "required": [ + "src", + "status" + ], + "type": "object" }, - "VoteResponse": { + "FeedPostMediaItemAsset": { "properties": { - "status": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIStatus" - }, - { - "type": "string", - "enum": [ - "pending-verification" - ] - } - ] - }, - "voteId": { - "type": "string" - }, - "isVerified": { - "type": "boolean" + "w": { + "type": "integer", + "format": "int32" }, - "user": { - "$ref": "#/components/schemas/VoteResponseUser" + "h": { + "type": "integer", + "format": "int32" }, - "editKey": { + "src": { "type": "string" } }, "required": [ - "status" + "w", + "h", + "src" ], "type": "object", "additionalProperties": false }, - "VoteBodyParams": { + "FeedPostMediaItem": { "properties": { - "commenterEmail": { + "title": { + "type": "string" + }, + "linkUrl": { + "type": "string" + }, + "sizes": { + "items": { + "$ref": "#/components/schemas/FeedPostMediaItemAsset" + }, + "type": "array" + } + }, + "required": [ + "sizes" + ], + "type": "object", + "additionalProperties": false + }, + "FeedPostLink": { + "properties": { + "text": { + "type": "string" + }, + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "Int32Map": { + "properties": {}, + "additionalProperties": { + "type": "integer", + "format": "int32" + }, + "type": "object" + }, + "FeedPost": { + "properties": { + "_id": { + "type": "string" + }, + "tenantId": { + "type": "string" + }, + "title": { + "type": "string" + }, + "fromUserId": { + "type": "string" + }, + "fromUserDisplayName": { "type": "string", "nullable": true }, - "commenterName": { + "fromUserAvatar": { "type": "string", "nullable": true }, - "voteDir": { - "type": "string", - "enum": [ - "up", - "down" - ] + "fromIpHash": { + "type": "string" }, - "url": { + "tags": { + "items": { + "type": "string" + }, + "type": "array" + }, + "weight": { + "type": "number", + "format": "double" + }, + "meta": { + "$ref": "#/components/schemas/Record_string.string_" + }, + "contentHTML": { + "type": "string" + }, + "media": { + "items": { + "$ref": "#/components/schemas/FeedPostMediaItem" + }, + "type": "array" + }, + "links": { + "items": { + "$ref": "#/components/schemas/FeedPostLink" + }, + "type": "array" + }, + "createdAt": { "type": "string", + "format": "date-time" + }, + "reacts": { + "$ref": "#/components/schemas/Int32Map" + }, + "commentCount": { + "type": "integer", + "format": "int32", "nullable": true } }, "required": [ - "commenterEmail", - "commenterName", - "voteDir", - "url" + "_id", + "tenantId", + "createdAt" ], "type": "object", "additionalProperties": false }, - "VoteDeleteResponse": { + "UserSessionInfo": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "id": { + "type": "string" }, - "wasPendingVote": { + "authorized": { + "type": "boolean" + }, + "avatarSrc": { + "type": "string", + "nullable": true + }, + "badges": { + "items": { + "$ref": "#/components/schemas/CommentUserBadgeInfo" + }, + "type": "array" + }, + "displayLabel": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "email": { + "type": "string", + "nullable": true + }, + "groupIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "hasBlockedUsers": { + "type": "boolean" + }, + "isAnonSession": { + "type": "boolean" + }, + "needsTOS": { "type": "boolean" + }, + "sessionId": { + "type": "string", + "nullable": true + }, + "username": { + "type": "string" + }, + "websiteUrl": { + "type": "string" } }, - "required": [ - "status" - ], "type": "object", "additionalProperties": false }, - "GetCommentVoteUserNamesSuccessResponse": { + "GetPublicFeedPostsResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "voteUserNames": { + "feedPosts": { "items": { - "type": "string" + "$ref": "#/components/schemas/FeedPost" }, "type": "array" }, - "hasMore": { - "type": "boolean" + "user": { + "allOf": [ + { + "$ref": "#/components/schemas/UserSessionInfo" + } + ], + "nullable": true } }, "required": [ "status", - "voteUserNames", - "hasMore" + "feedPosts" ], "type": "object", "additionalProperties": false }, - "ChangeCommentPinStatusResponse": { + "TenantIdWS": { + "type": "string" + }, + "UserIdWS": { + "type": "string" + }, + "UrlIdWS": { + "type": "string" + }, + "UserPresenceData": { "properties": { - "commentPositions": { - "$ref": "#/components/schemas/CommentPositions" + "urlIdWS": { + "$ref": "#/components/schemas/UrlIdWS" }, - "status": { - "$ref": "#/components/schemas/APIStatus" + "userIdWS": { + "$ref": "#/components/schemas/UserIdWS" + }, + "tenantIdWS": { + "$ref": "#/components/schemas/TenantIdWS" } }, - "required": [ - "commentPositions", - "status" - ], "type": "object" }, - "BlockSuccess": { + "PublicFeedPostsResponse": { + "allOf": [ + { + "properties": { + "myReacts": { + "properties": {}, + "additionalProperties": { + "properties": {}, + "additionalProperties": { + "type": "boolean" + }, + "type": "object" + }, + "type": "object" + } + }, + "type": "object" + }, + { + "$ref": "#/components/schemas/GetPublicFeedPostsResponse" + }, + { + "$ref": "#/components/schemas/UserPresenceData" + } + ] + }, + "ReactFeedPostResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "commentStatuses": { - "$ref": "#/components/schemas/Record_string.boolean_" + "reactType": { + "type": "string" + }, + "isUndo": { + "type": "boolean" } }, "required": [ "status", - "commentStatuses" + "reactType", + "isUndo" ], "type": "object", "additionalProperties": false }, - "PublicBlockFromCommentParams": { + "ReactBodyParams": { "properties": { - "commentIds": { - "items": { - "type": "string" + "reactType": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "UserReactsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "reacts": { + "properties": {}, + "additionalProperties": { + "properties": {}, + "additionalProperties": { + "type": "boolean" + }, + "type": "object" }, - "type": "array", - "nullable": true, - "description": "A list of comment ids to check if are blocked after performing the update." + "type": "object" } }, "required": [ - "commentIds" + "status", + "reacts" ], "type": "object", "additionalProperties": false }, - "UnblockSuccess": { + "CreateFeedPostResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "commentStatuses": { - "$ref": "#/components/schemas/Record_string.boolean_" + "feedPost": { + "$ref": "#/components/schemas/FeedPost" } }, "required": [ "status", - "commentStatuses" + "feedPost" ], "type": "object", "additionalProperties": false }, - "APIUserSubscription": { + "CreateFeedPostParams": { "properties": { - "notificationFrequency": { - "type": "number", - "format": "double" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "pageTitle": { + "title": { "type": "string" }, - "url": { + "contentHTML": { "type": "string" }, - "urlId": { - "type": "string" + "media": { + "items": { + "$ref": "#/components/schemas/FeedPostMediaItem" + }, + "type": "array" }, - "anonUserId": { - "type": "string" + "links": { + "items": { + "$ref": "#/components/schemas/FeedPostLink" + }, + "type": "array" }, - "userId": { + "fromUserId": { "type": "string" }, - "id": { + "fromUserDisplayName": { "type": "string" + }, + "tags": { + "items": { + "type": "string" + }, + "type": "array" + }, + "meta": { + "$ref": "#/components/schemas/Record_string.string_" } }, - "required": [ - "createdAt", - "urlId", - "id" - ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "GetSubscriptionsAPIResponse": { + "UpdateFeedPostParams": { "properties": { - "reason": { + "title": { "type": "string" }, - "code": { + "contentHTML": { "type": "string" }, - "subscriptions": { + "media": { "items": { - "$ref": "#/components/schemas/APIUserSubscription" + "$ref": "#/components/schemas/FeedPostMediaItem" }, "type": "array" }, - "status": { - "type": "string" + "links": { + "items": { + "$ref": "#/components/schemas/FeedPostLink" + }, + "type": "array" + }, + "tags": { + "items": { + "type": "string" + }, + "type": "array" + }, + "meta": { + "$ref": "#/components/schemas/Record_string.string_" } }, - "required": [ - "status" - ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "CreateSubscriptionAPIResponse": { + "FeedPostStats": { "properties": { - "reason": { - "type": "string" - }, - "code": { - "type": "string" - }, - "subscription": { - "$ref": "#/components/schemas/APIUserSubscription" + "reacts": { + "$ref": "#/components/schemas/Int32Map" }, + "commentCount": { + "type": "integer", + "format": "int32" + } + }, + "type": "object", + "additionalProperties": false + }, + "FeedPostsStatsResponse": { + "properties": { "status": { - "type": "string" + "$ref": "#/components/schemas/APIStatus" + }, + "stats": { + "properties": {}, + "additionalProperties": { + "$ref": "#/components/schemas/FeedPostStats" + }, + "type": "object" } }, "required": [ - "status" + "status", + "stats" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "CreateAPIUserSubscriptionData": { + "EventLogEntry": { "properties": { - "notificationFrequency": { - "type": "number", - "format": "double" - }, - "pageTitle": { + "_id": { "type": "string" }, - "url": { + "createdAt": { + "type": "string", + "format": "date-time" + }, + "tenantId": { "type": "string" }, "urlId": { "type": "string" }, - "anonUserId": { + "broadcastId": { "type": "string" }, - "userId": { + "data": { "type": "string" } }, "required": [ - "urlId" + "_id", + "createdAt", + "tenantId", + "urlId", + "broadcastId", + "data" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "UpdateSubscriptionAPIResponse": { + "GetEventLogResponse": { "properties": { - "reason": { - "type": "string" - }, - "code": { - "type": "string" - }, - "subscription": { - "$ref": "#/components/schemas/APIUserSubscription" + "events": { + "items": { + "$ref": "#/components/schemas/EventLogEntry" + }, + "type": "array" }, "status": { - "type": "string" + "$ref": "#/components/schemas/APIStatus" } }, "required": [ + "events", "status" ], "type": "object" }, - "UpdateAPIUserSubscriptionData": { - "properties": { - "notificationFrequency": { - "type": "number", - "format": "double" - } - }, - "type": "object" + "LiveEventType": { + "enum": [ + "update-badges", + "notification", + "notification-update", + "p-u", + "new-vote", + "deleted-vote", + "new-comment", + "updated-comment", + "deleted-comment", + "cvc", + "new-config", + "thread-state-change", + "fr", + "dfr", + "new-feed-post", + "updated-feed-post", + "deleted-feed-post", + "new-ticket", + "updated-ticket-state", + "updated-ticket-assignment", + "deleted-ticket", + "page-react", + "question-result" + ], + "type": "string" }, - "DeleteSubscriptionAPIResponse": { + "TenantId": { + "type": "string" + }, + "UserNotification": { "properties": { - "reason": { + "_id": { "type": "string" }, - "code": { + "tenantId": { + "$ref": "#/components/schemas/TenantId" + }, + "userId": { + "type": "string", + "nullable": true + }, + "anonUserId": { + "type": "string", + "nullable": true + }, + "urlId": { "type": "string" }, - "status": { - "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "APISSOUser": { - "properties": { - "id": { - "type": "string" - }, - "username": { + "url": { "type": "string" }, - "websiteUrl": { - "type": "string" - }, - "email": { - "type": "string" + "pageTitle": { + "type": "string", + "nullable": true }, - "signUpDate": { - "type": "integer", - "format": "int64" + "relatedObjectType": { + "$ref": "#/components/schemas/NotificationObjectType" }, - "createdFromUrlId": { + "relatedObjectId": { "type": "string" }, - "loginCount": { - "type": "integer", - "format": "int32" - }, - "avatarSrc": { - "type": "string" + "viewed": { + "type": "boolean" }, - "optedInNotifications": { + "isUnreadMessage": { "type": "boolean" }, - "optedInSubscriptionNotifications": { + "sent": { "type": "boolean" }, - "displayLabel": { - "type": "string" + "createdAt": { + "type": "string", + "format": "date-time" }, - "displayName": { - "type": "string" + "type": { + "$ref": "#/components/schemas/NotificationType" }, - "isAccountOwner": { - "type": "boolean" + "fromCommentId": { + "type": "string", + "nullable": true }, - "isAdminAdmin": { - "type": "boolean" + "fromVoteId": { + "type": "string", + "nullable": true }, - "isCommentModeratorAdmin": { - "type": "boolean" + "fromUserName": { + "type": "string", + "nullable": true }, - "isProfileActivityPrivate": { - "type": "boolean" + "fromUserId": { + "type": "string", + "nullable": true }, - "isProfileCommentsPrivate": { - "type": "boolean" + "fromUserAvatarSrc": { + "type": "string", + "nullable": true }, - "isProfileDMDisabled": { + "optedOut": { "type": "boolean" }, - "hasBlockedUsers": { - "type": "boolean" + "count": { + "type": "integer", + "format": "int64" }, - "groupIds": { + "relatedIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "fromUserIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "fromUserNames": { "items": { "type": "string" }, @@ -3145,1908 +3749,2087 @@ } }, "required": [ - "id", - "username", - "websiteUrl", - "email", - "signUpDate", - "createdFromUrlId", - "loginCount", - "avatarSrc", - "optedInNotifications", - "optedInSubscriptionNotifications", - "displayLabel", - "displayName" + "_id", + "tenantId", + "urlId", + "url", + "relatedObjectType", + "relatedObjectId", + "viewed", + "isUnreadMessage", + "sent", + "createdAt", + "type", + "optedOut" ], "type": "object", "additionalProperties": false }, - "GetSSOUserByIdAPIResponse": { + "PubSubVote": { "properties": { - "reason": { + "_id": { "type": "string" }, - "code": { + "tenantId": { "type": "string" }, - "user": { - "$ref": "#/components/schemas/APISSOUser" - }, - "status": { + "urlId": { "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "GetSSOUserByEmailAPIResponse": { - "properties": { - "reason": { + }, + "urlIdRaw": { "type": "string" }, - "code": { + "commentId": { "type": "string" }, - "user": { - "$ref": "#/components/schemas/APISSOUser" + "userId": { + "type": "string", + "nullable": true }, - "status": { - "type": "string" + "direction": { + "type": "integer", + "format": "int32" + }, + "createdAt": { + "type": "integer", + "format": "int64" + }, + "verificationId": { + "type": "string", + "nullable": true } }, "required": [ - "status" + "_id", + "tenantId", + "urlId", + "urlIdRaw", + "commentId", + "direction", + "createdAt", + "verificationId" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "DeleteSSOUserAPIResponse": { + "FDomain": { + "type": "string" + }, + "PubSubCommentBase": { "properties": { - "reason": { + "_id": { "type": "string" }, - "code": { + "tenantId": { "type": "string" }, - "user": { - "$ref": "#/components/schemas/APISSOUser" + "userId": { + "allOf": [ + { + "$ref": "#/components/schemas/UserId" + } + ], + "nullable": true }, - "status": { - "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "PatchSSOUserAPIResponse": { - "properties": { - "reason": { + "urlId": { "type": "string" }, - "code": { + "commenterName": { "type": "string" }, - "user": { - "$ref": "#/components/schemas/APISSOUser" + "commenterLink": { + "type": "string", + "nullable": true }, - "status": { + "commentHTML": { "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "UpdateAPISSOUserData": { - "properties": { - "groupIds": { - "items": { - "type": "string" - }, - "type": "array" }, - "hasBlockedUsers": { - "type": "boolean" + "comment": { + "type": "string" }, - "isProfileDMDisabled": { - "type": "boolean" + "parentId": { + "type": "string", + "nullable": true }, - "isProfileCommentsPrivate": { - "type": "boolean" + "votes": { + "type": "integer", + "format": "int32", + "nullable": true }, - "isProfileActivityPrivate": { - "type": "boolean" + "votesUp": { + "type": "integer", + "format": "int32", + "nullable": true }, - "isCommentModeratorAdmin": { - "type": "boolean" + "votesDown": { + "type": "integer", + "format": "int32", + "nullable": true }, - "isAdminAdmin": { + "verified": { "type": "boolean" }, - "isAccountOwner": { - "type": "boolean" + "avatarSrc": { + "type": "string", + "nullable": true }, - "displayName": { - "type": "string" + "hasImages": { + "type": "boolean" }, - "displayLabel": { - "type": "string" + "hasLinks": { + "type": "boolean" }, - "optedInSubscriptionNotifications": { + "isByAdmin": { "type": "boolean" }, - "optedInNotifications": { + "isByModerator": { "type": "boolean" }, - "avatarSrc": { - "type": "string" + "isPinned": { + "type": "boolean", + "nullable": true }, - "loginCount": { - "type": "integer", - "format": "int32" + "isLocked": { + "type": "boolean", + "nullable": true }, - "createdFromUrlId": { - "type": "string" + "displayLabel": { + "type": "string", + "nullable": true }, - "signUpDate": { + "rating": { + "type": "number", + "format": "double", + "nullable": true + }, + "badges": { + "items": { + "$ref": "#/components/schemas/CommentUserBadgeInfo" + }, + "type": "array", + "nullable": true + }, + "viewCount": { "type": "integer", - "format": "int64" + "format": "int64", + "nullable": true }, - "email": { - "type": "string" + "isDeleted": { + "type": "boolean" }, - "websiteUrl": { - "type": "string" + "isDeletedUser": { + "type": "boolean" }, - "username": { - "type": "string" + "isSpam": { + "type": "boolean" }, - "id": { - "type": "string" - } - }, - "type": "object" - }, - "PutSSOUserAPIResponse": { - "properties": { - "reason": { - "type": "string" + "anonUserId": { + "type": "string", + "nullable": true }, - "code": { - "type": "string" + "feedbackIds": { + "items": { + "type": "string" + }, + "type": "array" }, - "user": { + "flagCount": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "domain": { "allOf": [ { - "$ref": "#/components/schemas/APISSOUser" + "$ref": "#/components/schemas/FDomain" } ], "nullable": true }, - "status": { - "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "AddSSOUserAPIResponse": { - "properties": { - "reason": { - "type": "string" - }, - "code": { - "type": "string" - }, - "user": { - "$ref": "#/components/schemas/APISSOUser" - }, - "status": { + "url": { "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "CreateAPISSOUserData": { - "properties": { - "groupIds": { - "items": { - "type": "string" - }, - "type": "array" }, - "hasBlockedUsers": { - "type": "boolean" + "pageTitle": { + "type": "string", + "nullable": true }, - "isProfileDMDisabled": { - "type": "boolean" + "expireAt": { + "type": "string", + "format": "date-time", + "nullable": true }, - "isProfileCommentsPrivate": { + "reviewed": { "type": "boolean" }, - "isProfileActivityPrivate": { + "hasCode": { "type": "boolean" }, - "isCommentModeratorAdmin": { + "approved": { "type": "boolean" }, - "isAdminAdmin": { - "type": "boolean" + "locale": { + "type": "string", + "nullable": true }, - "isAccountOwner": { + "isBannedUser": { "type": "boolean" }, - "displayName": { - "type": "string" - }, - "displayLabel": { - "type": "string" - }, - "optedInSubscriptionNotifications": { - "type": "boolean" + "groupIds": { + "items": { + "type": "string" + }, + "type": "array", + "nullable": true + } + }, + "required": [ + "_id", + "tenantId", + "urlId", + "commenterName", + "commentHTML", + "comment", + "verified", + "url", + "approved", + "locale" + ], + "type": "object", + "additionalProperties": false + }, + "PubSubComment": { + "allOf": [ + { + "$ref": "#/components/schemas/PubSubCommentBase" }, - "optedInNotifications": { - "type": "boolean" + { + "properties": { + "isLive": { + "type": "boolean" + }, + "hidden": { + "type": "boolean" + }, + "date": { + "type": "string" + } + }, + "required": [ + "date" + ], + "type": "object" + } + ] + }, + "Record_string._before-string-or-null--after-string-or-null__": { + "properties": {}, + "additionalProperties": { + "properties": { + "after": { + "type": "string", + "nullable": true + }, + "before": { + "type": "string", + "nullable": true + } }, - "avatarSrc": { - "type": "string" + "required": [ + "after", + "before" + ], + "type": "object" + }, + "type": "object", + "description": "Construct a type with a set of properties K of type T" + }, + "CommentPositions": { + "$ref": "#/components/schemas/Record_string._before-string-or-null--after-string-or-null__" + }, + "LiveEvent": { + "properties": { + "type": { + "$ref": "#/components/schemas/LiveEventType" }, - "loginCount": { + "timestamp": { "type": "integer", - "format": "int32" - }, - "createdFromUrlId": { - "type": "string" + "format": "int64" }, - "signUpDate": { + "ts": { "type": "integer", "format": "int64" }, - "email": { + "broadcastId": { "type": "string" }, - "websiteUrl": { + "userId": { "type": "string" }, - "username": { - "type": "string" + "badges": { + "items": { + "$ref": "#/components/schemas/CommentUserBadgeInfo" + }, + "type": "array" + }, + "notification": { + "$ref": "#/components/schemas/UserNotification" + }, + "vote": { + "$ref": "#/components/schemas/PubSubVote" + }, + "comment": { + "$ref": "#/components/schemas/PubSubComment" + }, + "feedPost": { + "$ref": "#/components/schemas/FeedPost" + }, + "extraInfo": { + "properties": { + "commentPositions": { + "$ref": "#/components/schemas/CommentPositions" + } + }, + "type": "object" + }, + "config": { + "additionalProperties": false, + "type": "object" }, - "id": { - "type": "string" - } - }, - "required": [ - "email", - "username", - "id" - ], - "type": "object" - }, - "APIPage": { - "properties": { "isClosed": { "type": "boolean" }, - "accessibleByGroupIds": { + "uj": { "items": { "type": "string" }, "type": "array" }, - "rootCommentCount": { - "type": "integer", - "format": "int64" + "ul": { + "items": { + "type": "string" + }, + "type": "array" }, - "commentCount": { + "sc": { "type": "integer", - "format": "int64" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "title": { - "type": "string" - }, - "url": { - "type": "string" - }, - "urlId": { - "type": "string" + "format": "int32" }, - "id": { - "type": "string" + "changes": { + "$ref": "#/components/schemas/Int32Map" } }, "required": [ - "rootCommentCount", - "commentCount", - "createdAt", - "title", - "urlId", - "id" + "type" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "GetPagesAPIResponse": { + "PublicAPIGetCommentTextResponse": { "properties": { - "reason": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "code": { + "commentText": { "type": "string" }, - "pages": { - "items": { - "$ref": "#/components/schemas/APIPage" - }, - "type": "array" - }, - "status": { + "sanitizedCommentText": { "type": "string" } }, "required": [ - "status" + "status", + "commentText", + "sanitizedCommentText" ], "type": "object" }, - "GetPageByURLIdAPIResponse": { + "SetCommentTextResult": { "properties": { - "reason": { - "type": "string" - }, - "code": { - "type": "string" - }, - "page": { - "$ref": "#/components/schemas/APIPage" + "approved": { + "type": "boolean" }, - "status": { + "commentHTML": { "type": "string" } }, "required": [ - "status" + "approved", + "commentHTML" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "AddPageAPIResponse": { + "PublicAPISetCommentTextResponse": { "properties": { - "reason": { - "type": "string" - }, - "code": { - "type": "string" - }, - "page": { - "$ref": "#/components/schemas/APIPage" + "comment": { + "$ref": "#/components/schemas/SetCommentTextResult" }, "status": { - "type": "string" + "$ref": "#/components/schemas/APIStatus" } }, "required": [ + "comment", "status" ], "type": "object" }, - "CreateAPIPageData": { + "CommentUserMentionInfo": { "properties": { - "accessibleByGroupIds": { - "items": { - "type": "string" - }, - "type": "array" - }, - "rootCommentCount": { - "type": "integer", - "format": "int64" - }, - "commentCount": { - "type": "integer", - "format": "int64" - }, - "title": { + "id": { "type": "string" }, - "url": { + "tag": { "type": "string" }, - "urlId": { + "rawTag": { "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "user", + "sso" + ] + }, + "sent": { + "type": "boolean" } }, "required": [ - "title", - "url", - "urlId" + "id", + "tag" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "PatchPageAPIResponse": { + "CommentUserHashTagInfo": { "properties": { - "reason": { + "id": { "type": "string" }, - "code": { + "tag": { "type": "string" }, - "commentsUpdated": { - "type": "integer", - "format": "int64" - }, - "page": { - "$ref": "#/components/schemas/APIPage" + "url": { + "type": "string", + "nullable": true }, - "status": { - "type": "string" + "retain": { + "type": "boolean" } }, "required": [ - "status" + "id", + "tag", + "url" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "UpdateAPIPageData": { + "CommentTextUpdateRequest": { "properties": { - "isClosed": { - "type": "boolean" + "comment": { + "type": "string" }, - "accessibleByGroupIds": { + "mentions": { "items": { - "type": "string" + "$ref": "#/components/schemas/CommentUserMentionInfo" }, "type": "array" }, - "title": { - "type": "string" - }, - "url": { - "type": "string" - }, - "urlId": { - "type": "string" - } - }, - "type": "object" - }, - "DeletePageAPIResponse": { - "properties": { - "reason": { - "type": "string" - }, - "code": { - "type": "string" - }, - "status": { - "type": "string" + "hashTags": { + "items": { + "$ref": "#/components/schemas/CommentUserHashTagInfo" + }, + "type": "array" } }, "required": [ - "status" + "comment" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "PublicVote": { - "properties": { - "id": { - "type": "string" - }, - "urlId": { - "type": "string" - }, - "commentId": { - "type": "string" + "Pick_GetCommentsResponse.Exclude_keyofGetCommentsResponse.lastGenDate-or-pageNumber__": { + "properties": {}, + "additionalProperties": {}, + "type": "object", + "description": "From T, pick a set of properties whose keys are in the union K" + }, + "Omit_GetCommentsResponse.lastGenDate-or-pageNumber_": { + "$ref": "#/components/schemas/Pick_GetCommentsResponse.Exclude_keyofGetCommentsResponse.lastGenDate-or-pageNumber__", + "description": "Construct a type with the properties of T except for those in type K." + }, + "GetCommentsForUserResponse": { + "allOf": [ + { + "$ref": "#/components/schemas/Omit_GetCommentsResponse.lastGenDate-or-pageNumber_" }, - "userId": { - "type": "string" - }, - "direction": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - } - }, - "required": [ - "id", - "urlId", - "commentId", - "userId", - "direction", - "createdAt" - ], - "type": "object", - "additionalProperties": false - }, - "GetVotesResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "appliedAuthorizedVotes": { - "items": { - "$ref": "#/components/schemas/PublicVote" - }, - "type": "array" - }, - "appliedAnonymousVotes": { - "items": { - "$ref": "#/components/schemas/PublicVote" - }, - "type": "array" - }, - "pendingVotes": { - "items": { - "$ref": "#/components/schemas/PublicVote" + { + "properties": { + "moderatingTenantIds": { + "items": { + "type": "string" + }, + "type": "array" + } }, - "type": "array" + "type": "object" } - }, - "required": [ - "status", - "appliedAuthorizedVotes", - "appliedAnonymousVotes", - "pendingVotes" - ], - "type": "object", - "additionalProperties": false + ] }, - "GetVotesForUserResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "appliedAuthorizedVotes": { - "items": { - "$ref": "#/components/schemas/PublicVote" - }, - "type": "array" - }, - "appliedAnonymousVotes": { - "items": { - "$ref": "#/components/schemas/PublicVote" + "PublicComment": { + "allOf": [ + { + "properties": { + "isUnread": { + "type": "boolean" + }, + "myVoteId": { + "type": "string" + }, + "isVotedDown": { + "type": "boolean" + }, + "isVotedUp": { + "type": "boolean" + }, + "hasChildren": { + "type": "boolean", + "description": "This is always set when asTree=true" + }, + "nestedChildrenCount": { + "type": "integer", + "format": "int32", + "description": "The total nested child count included in this response (may be more available w/ pagination) Only set with asTree=true, otherwise this will be null." + }, + "childCount": { + "type": "integer", + "format": "int32", + "description": "You must ask the API to count children (with asTree=true&countChildren=true), otherwise this will be null. This will be the complete direct child count, whereas children may only contain a subset based on pagination." + }, + "children": { + "items": { + "$ref": "#/components/schemas/PublicComment" + }, + "type": "array" + }, + "isFlagged": { + "type": "boolean" + }, + "isBlocked": { + "type": "boolean" + } }, - "type": "array" + "type": "object" }, - "pendingVotes": { - "items": { - "$ref": "#/components/schemas/PublicVote" - }, - "type": "array" + { + "$ref": "#/components/schemas/PublicCommentBase" } - }, - "required": [ - "status", - "appliedAuthorizedVotes", - "appliedAnonymousVotes", - "pendingVotes" - ], - "type": "object", - "additionalProperties": false - }, - "DigestEmailFrequency": { - "enum": [ - -1, - 0, - 1, - 2 - ], - "type": "integer" + ] }, - "User": { + "PublicCommentBase": { "properties": { "_id": { "type": "string" }, - "tenantId": { - "type": "string", + "userId": { + "allOf": [ + { + "$ref": "#/components/schemas/UserId" + } + ], "nullable": true }, - "username": { + "commenterName": { "type": "string" }, - "displayName": { + "commenterLink": { + "type": "string", + "nullable": true + }, + "commentHTML": { "type": "string" }, - "websiteUrl": { + "parentId": { "type": "string", "nullable": true }, - "email": { + "date": { "type": "string", + "format": "date-time", "nullable": true }, - "pendingEmail": { - "type": "string" - }, - "backupEmail": { - "type": "string" - }, - "pendingBackupEmail": { - "type": "string" - }, - "signUpDate": { + "votes": { "type": "integer", - "format": "int64" - }, - "createdFromUrlId": { - "type": "string", + "format": "int32", "nullable": true }, - "createdFromTenantId": { - "type": "string", + "votesUp": { + "type": "integer", + "format": "int32", "nullable": true }, - "createdFromIpHashed": { - "type": "string" + "votesDown": { + "type": "integer", + "format": "int32", + "nullable": true }, "verified": { "type": "boolean" }, - "loginId": { - "type": "string" - }, - "loginIdDate": { - "type": "integer", - "format": "int64" - }, - "loginCount": { - "type": "integer", - "format": "int32" + "avatarSrc": { + "type": "string", + "nullable": true }, - "optedInNotifications": { + "hasImages": { "type": "boolean" }, - "optedInTenantNotifications": { + "isByAdmin": { "type": "boolean" }, - "hideAccountCode": { + "isByModerator": { "type": "boolean" }, - "avatarSrc": { - "type": "string", + "isPinned": { + "type": "boolean", "nullable": true }, - "isFastCommentsHelpRequestAdmin": { - "type": "boolean" + "isLocked": { + "type": "boolean", + "nullable": true }, - "isHelpRequestAdmin": { - "type": "boolean" + "displayLabel": { + "type": "string", + "nullable": true }, - "isAccountOwner": { - "type": "boolean" + "rating": { + "type": "number", + "format": "double", + "nullable": true }, - "isAdminAdmin": { - "type": "boolean" + "badges": { + "items": { + "$ref": "#/components/schemas/CommentUserBadgeInfo" + }, + "type": "array", + "nullable": true }, - "isBillingAdmin": { - "type": "boolean" + "viewCount": { + "type": "integer", + "format": "int64", + "nullable": true }, - "isAnalyticsAdmin": { + "isDeleted": { "type": "boolean" }, - "isCustomizationAdmin": { + "isDeletedUser": { "type": "boolean" }, - "isManageDataAdmin": { + "isSpam": { "type": "boolean" }, - "isCommentModeratorAdmin": { - "type": "boolean" - }, - "isAPIAdmin": { - "type": "boolean" - }, - "isSiteAdmin": { - "type": "boolean" + "anonUserId": { + "type": "string", + "nullable": true }, - "moderatorIds": { + "feedbackIds": { "items": { "type": "string" }, "type": "array" }, - "isImpersonator": { - "type": "boolean" - }, - "isCouponManager": { + "requiresVerification": { "type": "boolean" }, - "locale": { + "editKey": { "type": "string" }, - "digestEmailFrequency": { - "$ref": "#/components/schemas/DigestEmailFrequency" + "approved": { + "type": "boolean" + } + }, + "required": [ + "_id", + "commenterName", + "commentHTML", + "date", + "verified" + ], + "type": "object", + "additionalProperties": false + }, + "Record_string.any_": { + "properties": {}, + "additionalProperties": {}, + "type": "object", + "description": "Construct a type with a set of properties K of type T" + }, + "GetCommentsResponse_PublicComment_": { + "properties": { + "statusCode": { + "type": "integer", + "format": "int32" }, - "notificationFrequency": { - "type": "number", - "format": "double" + "status": { + "type": "string" }, - "adminNotificationFrequency": { - "type": "number", - "format": "double" + "code": { + "type": "string" }, - "lastTenantNotificationSentDate": { - "type": "string", - "format": "date-time" + "reason": { + "type": "string" }, - "lastReplyNotificationSentDate": { - "type": "string", - "format": "date-time" + "translatedWarning": { + "type": "string" }, - "ignoredAddToMySiteMessages": { - "type": "boolean" + "comments": { + "items": { + "$ref": "#/components/schemas/PublicComment" + }, + "type": "array" }, - "lastLoginDate": { - "type": "string", - "format": "date-time" + "user": { + "allOf": [ + { + "$ref": "#/components/schemas/UserSessionInfo" + } + ], + "nullable": true }, - "displayLabel": { + "urlIdClean": { "type": "string" }, - "isProfileActivityPrivate": { - "type": "boolean" - }, - "isProfileCommentsPrivate": { - "type": "boolean" + "lastGenDate": { + "type": "integer", + "format": "int64", + "nullable": true }, - "isProfileDMDisabled": { + "includesPastPages": { "type": "boolean" }, - "profileCommentApprovalMode": { - "type": "number", - "format": "double" + "isDemo": { + "type": "boolean", + "enum": [ + true + ], + "nullable": false }, - "karma": { - "type": "number", - "format": "double" + "commentCount": { + "type": "integer", + "format": "int32" }, - "passwordHash": { - "type": "string" + "isSiteAdmin": { + "type": "boolean" }, - "averageTicketAckTimeMS": { - "type": "number", - "format": "double", - "nullable": true + "hasBillingIssue": { + "type": "boolean", + "enum": [ + true + ], + "nullable": false }, - "hasBlockedUsers": { - "type": "boolean" + "moduleData": { + "$ref": "#/components/schemas/Record_string.any_" }, - "bio": { - "type": "string" + "pageNumber": { + "type": "integer", + "format": "int32" }, - "headerBackgroundSrc": { - "type": "string" + "isWhiteLabeled": { + "type": "boolean" }, - "countryCode": { - "type": "string" + "isProd": { + "type": "boolean", + "enum": [ + false + ], + "nullable": false }, - "countryFlag": { - "type": "string" + "isCrawler": { + "type": "boolean", + "enum": [ + true + ], + "nullable": false }, - "socialLinks": { - "items": { - "type": "string" - }, - "type": "array" + "notificationCount": { + "type": "integer", + "format": "int32" }, - "hasTwoFactor": { + "hasMore": { "type": "boolean" }, - "isEmailSuppressed": { + "isClosed": { "type": "boolean" + }, + "presencePollState": { + "type": "integer", + "format": "int32" + }, + "customConfig": { + "$ref": "#/components/schemas/CustomConfigParameters" } }, "required": [ - "_id", - "username", - "email", - "signUpDate", - "createdFromTenantId", - "createdFromIpHashed", - "verified", - "loginId", - "loginIdDate" + "status", + "comments", + "user", + "pageNumber" ], "type": "object", "additionalProperties": false }, - "GetUserResponse": { + "GetCommentsResponseWithPresence_PublicComment_": { + "allOf": [ + { + "$ref": "#/components/schemas/GetCommentsResponse_PublicComment_" + }, + { + "$ref": "#/components/schemas/UserPresenceData" + } + ] + }, + "SaveCommentResponseOptimized": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, + "comment": { + "$ref": "#/components/schemas/PublicComment" + }, "user": { - "$ref": "#/components/schemas/User" + "allOf": [ + { + "$ref": "#/components/schemas/UserSessionInfo" + } + ], + "nullable": true + }, + "moduleData": { + "$ref": "#/components/schemas/Record_string.any_" } }, "required": [ "status", + "comment", "user" ], "type": "object", "additionalProperties": false }, - "UserBadge": { + "SaveCommentsResponseWithPresence": { + "allOf": [ + { + "$ref": "#/components/schemas/SaveCommentResponseOptimized" + }, + { + "properties": { + "userIdWS": { + "$ref": "#/components/schemas/UserIdWS" + } + }, + "type": "object" + } + ] + }, + "Record_string.string-or-number_": { + "properties": {}, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number", + "format": "double" + } + ] + }, + "type": "object", + "description": "Construct a type with a set of properties K of type T" + }, + "CommentData": { "properties": { - "_id": { - "type": "string" + "date": { + "type": "integer", + "format": "int64" }, - "userId": { + "localDateString": { "type": "string" }, - "badgeId": { - "type": "string" + "localDateHours": { + "type": "integer", + "format": "int32" }, - "fromTenantId": { + "commenterName": { "type": "string" }, - "createdAt": { + "commenterEmail": { "type": "string", - "format": "date-time" - }, - "type": { - "type": "integer", - "format": "int32" + "nullable": true }, - "threshold": { - "type": "integer", - "format": "int64" + "commenterLink": { + "type": "string", + "nullable": true }, - "description": { + "comment": { "type": "string" }, - "displayLabel": { - "type": "string" + "productId": { + "type": "integer", + "format": "int32" }, - "displaySrc": { + "userId": { "type": "string", "nullable": true }, - "backgroundColor": { + "avatarSrc": { "type": "string", "nullable": true }, - "borderColor": { + "parentId": { "type": "string", "nullable": true }, - "textColor": { - "type": "string", - "nullable": true + "mentions": { + "items": { + "$ref": "#/components/schemas/CommentUserMentionInfo" + }, + "type": "array" }, - "cssClass": { - "type": "string", - "nullable": true + "hashTags": { + "items": { + "$ref": "#/components/schemas/CommentUserHashTagInfo" + }, + "type": "array" }, - "veteranUserThresholdMillis": { + "pageTitle": { + "type": "string" + }, + "isFromMyAccountPage": { + "type": "boolean" + }, + "url": { + "type": "string" + }, + "urlId": { + "type": "string" + }, + "meta": { + "additionalProperties": false, + "type": "object" + }, + "moderationGroupIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "rating": { + "type": "number", + "format": "double" + }, + "fromOfflineRestore": { + "type": "boolean" + }, + "autoplayDelayMS": { "type": "integer", "format": "int64" }, - "displayedOnComments": { + "feedbackIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "questionValues": { + "$ref": "#/components/schemas/Record_string.string-or-number_" + }, + "tos": { "type": "boolean" }, - "receivedAt": { - "type": "string", - "format": "date-time" + "botId": { + "type": "string" + } + }, + "required": [ + "commenterName", + "comment", + "url", + "urlId" + ], + "type": "object", + "additionalProperties": false + }, + "DeletedCommentResultComment": { + "properties": { + "isDeleted": { + "type": "boolean" }, - "order": { - "type": "integer", - "format": "int32" + "commentHTML": { + "type": "string" }, - "urlId": { + "commenterName": { + "type": "string" + }, + "userId": { "type": "string", "nullable": true } }, "required": [ - "_id", - "userId", - "badgeId", - "fromTenantId", - "createdAt", - "type", - "threshold", - "description", - "displayLabel", - "veteranUserThresholdMillis", - "displayedOnComments", - "receivedAt" + "commentHTML", + "commenterName" ], "type": "object", "additionalProperties": false }, - "APIGetUserBadgeResponse": { + "PublicAPIDeleteCommentResponse": { "properties": { + "comment": { + "$ref": "#/components/schemas/DeletedCommentResultComment" + }, + "hardRemoved": { + "type": "boolean" + }, "status": { "$ref": "#/components/schemas/APIStatus" - }, - "userBadge": { - "$ref": "#/components/schemas/UserBadge" } }, "required": [ - "status", - "userBadge" + "hardRemoved", + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "APIGetUserBadgesResponse": { + "CheckBlockedCommentsResponse": { "properties": { + "commentStatuses": { + "$ref": "#/components/schemas/Record_string.boolean_" + }, "status": { "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "commentStatuses", + "status" + ], + "type": "object" + }, + "VoteBodyParams": { + "properties": { + "commenterEmail": { + "type": "string", + "nullable": true }, - "userBadges": { - "items": { - "$ref": "#/components/schemas/UserBadge" - }, - "type": "array" + "commenterName": { + "type": "string", + "nullable": true + }, + "voteDir": { + "type": "string", + "enum": [ + "up", + "down" + ] + }, + "url": { + "type": "string", + "nullable": true } }, "required": [ - "status", - "userBadges" + "commenterEmail", + "commenterName", + "voteDir", + "url" ], "type": "object", "additionalProperties": false }, - "APICreateUserBadgeResponse": { + "GetCommentVoteUserNamesSuccessResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "userBadge": { - "$ref": "#/components/schemas/UserBadge" - }, - "notes": { + "voteUserNames": { "items": { "type": "string" }, "type": "array" + }, + "hasMore": { + "type": "boolean" } }, "required": [ "status", - "userBadge" + "voteUserNames", + "hasMore" ], "type": "object", "additionalProperties": false }, - "CreateUserBadgeParams": { + "ChangeCommentPinStatusResponse": { "properties": { - "userId": { - "type": "string" - }, - "badgeId": { - "type": "string" + "commentPositions": { + "$ref": "#/components/schemas/CommentPositions" }, - "displayedOnComments": { - "type": "boolean" + "status": { + "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "userId", - "badgeId" + "commentPositions", + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "APIEmptySuccessResponse": { + "BlockSuccess": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" + }, + "commentStatuses": { + "$ref": "#/components/schemas/Record_string.boolean_" } }, "required": [ - "status" + "status", + "commentStatuses" ], "type": "object", "additionalProperties": false }, - "UpdateUserBadgeParams": { + "PublicBlockFromCommentParams": { "properties": { - "displayedOnComments": { - "type": "boolean" + "commentIds": { + "items": { + "type": "string" + }, + "type": "array", + "nullable": true, + "description": "A list of comment ids to check if are blocked after performing the update." } }, + "required": [ + "commentIds" + ], "type": "object", "additionalProperties": false }, - "Record_string.number_": { - "properties": {}, - "additionalProperties": { - "type": "number", - "format": "double" - }, - "type": "object", - "description": "Construct a type with a set of properties K of type T" - }, - "UserBadgeProgress": { + "UnblockSuccess": { "properties": { - "_id": { - "type": "string" - }, - "tenantId": { - "type": "string" - }, - "userId": { - "type": "string" - }, - "firstCommentId": { - "type": "string" - }, - "firstCommentDate": { - "type": "string", - "format": "date-time" - }, - "autoTrustFactor": { - "type": "number", - "format": "double" - }, - "manualTrustFactor": { - "type": "number", - "format": "double" - }, - "progress": { - "$ref": "#/components/schemas/Record_string.number_" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "tosAcceptedAt": { - "type": "string", - "format": "date-time" + "commentStatuses": { + "$ref": "#/components/schemas/Record_string.boolean_" } }, "required": [ - "_id", - "tenantId", - "userId", - "firstCommentId", - "firstCommentDate", - "progress" + "status", + "commentStatuses" ], "type": "object", "additionalProperties": false }, - "APIGetUserBadgeProgressResponse": { + "APIUserSubscription": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "notificationFrequency": { + "type": "number", + "format": "double" }, - "userBadgeProgress": { - "$ref": "#/components/schemas/UserBadgeProgress" + "createdAt": { + "type": "string", + "format": "date-time" + }, + "pageTitle": { + "type": "string" + }, + "url": { + "type": "string" + }, + "urlId": { + "type": "string" + }, + "anonUserId": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "id": { + "type": "string" } }, "required": [ - "status", - "userBadgeProgress" + "createdAt", + "urlId", + "id" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "APIGetUserBadgeProgressListResponse": { + "GetSubscriptionsAPIResponse": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "reason": { + "type": "string" }, - "userBadgeProgresses": { + "code": { + "type": "string" + }, + "subscriptions": { "items": { - "$ref": "#/components/schemas/UserBadgeProgress" + "$ref": "#/components/schemas/APIUserSubscription" }, "type": "array" + }, + "status": { + "type": "string" } }, "required": [ - "status", - "userBadgeProgresses" + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "APITicket": { + "CreateSubscriptionAPIResponse": { "properties": { - "_id": { + "reason": { "type": "string" }, - "urlId": { + "code": { "type": "string" }, - "userId": { - "type": "string" + "subscription": { + "$ref": "#/components/schemas/APIUserSubscription" }, - "managedByTenantId": { + "status": { "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "CreateAPIUserSubscriptionData": { + "properties": { + "notificationFrequency": { + "type": "number", + "format": "double" }, - "assignedUserIds": { - "items": { - "type": "string" - }, - "type": "array" + "pageTitle": { + "type": "string" }, - "subject": { + "url": { "type": "string" }, - "createdAt": { + "urlId": { "type": "string" }, - "state": { - "type": "integer", - "format": "int32" + "anonUserId": { + "type": "string" }, - "fileCount": { - "type": "integer", - "format": "int32" + "userId": { + "type": "string" } }, "required": [ - "_id", - "urlId", - "userId", - "managedByTenantId", - "assignedUserIds", - "subject", - "createdAt", - "state", - "fileCount" + "urlId" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "GetTicketsResponse": { + "UpdateSubscriptionAPIResponse": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "reason": { + "type": "string" }, - "tickets": { - "items": { - "$ref": "#/components/schemas/APITicket" - }, - "type": "array" + "code": { + "type": "string" + }, + "subscription": { + "$ref": "#/components/schemas/APIUserSubscription" + }, + "status": { + "type": "string" } }, "required": [ - "status", - "tickets" + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "CreateTicketResponse": { + "UpdateAPIUserSubscriptionData": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "ticket": { - "$ref": "#/components/schemas/APITicket" + "notificationFrequency": { + "type": "number", + "format": "double" } }, - "required": [ - "status", - "ticket" - ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "CreateTicketBody": { + "DeleteSubscriptionAPIResponse": { "properties": { - "subject": { + "reason": { + "type": "string" + }, + "code": { + "type": "string" + }, + "status": { "type": "string" } }, "required": [ - "subject" + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "APITicketFile": { + "APISSOUser": { "properties": { "id": { "type": "string" }, - "s3Key": { + "username": { "type": "string" }, - "originalFileName": { + "websiteUrl": { "type": "string" }, - "sizeBytes": { + "email": { + "type": "string" + }, + "signUpDate": { "type": "integer", - "format": "int32" + "format": "int64" }, - "contentType": { + "createdFromUrlId": { "type": "string" }, - "uploadedByUserId": { - "type": "string" + "loginCount": { + "type": "integer", + "format": "int32" }, - "uploadedAt": { + "avatarSrc": { "type": "string" }, - "url": { + "optedInNotifications": { + "type": "boolean" + }, + "optedInSubscriptionNotifications": { + "type": "boolean" + }, + "displayLabel": { "type": "string" }, - "expiresAt": { + "displayName": { "type": "string" }, - "expired": { + "isAccountOwner": { "type": "boolean" - } - }, - "required": [ - "id", - "s3Key", - "originalFileName", - "sizeBytes", - "contentType", - "uploadedByUserId", - "uploadedAt", - "url", - "expiresAt" - ], - "type": "object", - "additionalProperties": false - }, - "APITicketDetail": { - "properties": { - "_id": { - "type": "string" - }, - "urlId": { - "type": "string" - }, - "userId": { - "type": "string" }, - "managedByTenantId": { - "type": "string" + "isAdminAdmin": { + "type": "boolean" }, - "assignedUserIds": { - "items": { - "type": "string" - }, - "type": "array" + "isCommentModeratorAdmin": { + "type": "boolean" }, - "subject": { - "type": "string" + "isProfileActivityPrivate": { + "type": "boolean" }, - "createdAt": { - "type": "string" + "isProfileCommentsPrivate": { + "type": "boolean" }, - "state": { - "type": "integer", - "format": "int32" + "isProfileDMDisabled": { + "type": "boolean" }, - "fileCount": { - "type": "integer", - "format": "int32" + "hasBlockedUsers": { + "type": "boolean" }, - "files": { + "groupIds": { "items": { - "$ref": "#/components/schemas/APITicketFile" + "type": "string" }, "type": "array" - }, - "reopenedAt": { - "type": "string", - "nullable": true - }, - "resolvedAt": { - "type": "string", - "nullable": true - }, - "ackAt": { - "type": "string", - "nullable": true } }, "required": [ - "_id", - "urlId", - "userId", - "managedByTenantId", - "assignedUserIds", - "subject", - "createdAt", - "state", - "fileCount", - "files" + "id", + "username", + "websiteUrl", + "email", + "signUpDate", + "createdFromUrlId", + "loginCount", + "avatarSrc", + "optedInNotifications", + "optedInSubscriptionNotifications", + "displayLabel", + "displayName" ], "type": "object", "additionalProperties": false }, - "GetTicketResponse": { + "GetSSOUserByIdAPIResponse": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "reason": { + "type": "string" }, - "ticket": { - "$ref": "#/components/schemas/APITicketDetail" + "code": { + "type": "string" }, - "availableStates": { - "items": { - "type": "number", - "format": "double" - }, - "type": "array" + "user": { + "$ref": "#/components/schemas/APISSOUser" + }, + "status": { + "type": "string" } }, "required": [ - "status", - "ticket", - "availableStates" + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "ChangeTicketStateResponse": { + "GetSSOUserByEmailAPIResponse": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "reason": { + "type": "string" }, - "ticket": { - "$ref": "#/components/schemas/APITicket" + "code": { + "type": "string" + }, + "user": { + "$ref": "#/components/schemas/APISSOUser" + }, + "status": { + "type": "string" } }, "required": [ - "status", - "ticket" + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "ChangeTicketStateBody": { + "DeleteSSOUserAPIResponse": { "properties": { - "state": { - "type": "integer", - "format": "int32" + "reason": { + "type": "string" + }, + "code": { + "type": "string" + }, + "user": { + "$ref": "#/components/schemas/APISSOUser" + }, + "status": { + "type": "string" } }, "required": [ - "state" - ], - "type": "object", - "additionalProperties": false - }, - "ImportedSiteType": { - "enum": [ - 0, - 1 + "status" ], - "type": "integer" - }, - "SiteType": { - "$ref": "#/components/schemas/ImportedSiteType" + "type": "object" }, - "APIDomainConfiguration": { + "PatchSSOUserAPIResponse": { "properties": { - "id": { + "reason": { "type": "string" }, - "domain": { + "code": { "type": "string" }, - "emailFromName": { - "type": "string", - "nullable": true - }, - "emailFromEmail": { - "type": "string", - "nullable": true + "user": { + "$ref": "#/components/schemas/APISSOUser" }, - "emailHeaders": { - "$ref": "#/components/schemas/Record_string.string_" + "status": { + "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "UpdateAPISSOUserData": { + "properties": { + "groupIds": { + "items": { + "type": "string" + }, + "type": "array" }, - "wpSyncToken": { - "type": "string", - "nullable": true + "hasBlockedUsers": { + "type": "boolean" }, - "wpSynced": { + "isProfileDMDisabled": { "type": "boolean" }, - "wpURL": { - "type": "string", - "nullable": true + "isProfileCommentsPrivate": { + "type": "boolean" }, - "createdAt": { - "type": "string", - "format": "date-time" + "isProfileActivityPrivate": { + "type": "boolean" }, - "autoAddedDate": { - "type": "string", - "format": "date-time" + "isCommentModeratorAdmin": { + "type": "boolean" }, - "siteType": { - "$ref": "#/components/schemas/SiteType" + "isAdminAdmin": { + "type": "boolean" }, - "logoSrc": { - "type": "string", - "nullable": true + "isAccountOwner": { + "type": "boolean" }, - "logoSrc100px": { - "type": "string", - "nullable": true + "displayName": { + "type": "string" }, - "footerUnsubscribeURL": { + "displayLabel": { "type": "string" }, - "disableUnsubscribeLinks": { + "optedInSubscriptionNotifications": { "type": "boolean" - } - }, - "required": [ - "id", - "domain", - "createdAt" - ], - "type": "object", - "additionalProperties": false - }, - "BillingInfo": { - "properties": { - "name": { - "type": "string" }, - "address": { + "optedInNotifications": { + "type": "boolean" + }, + "avatarSrc": { "type": "string" }, - "city": { + "loginCount": { + "type": "integer", + "format": "int32" + }, + "createdFromUrlId": { "type": "string" }, - "state": { + "signUpDate": { + "type": "integer", + "format": "int64" + }, + "email": { "type": "string" }, - "zip": { + "websiteUrl": { "type": "string" }, - "country": { + "username": { "type": "string" }, - "currency": { - "type": "string", - "nullable": true, - "description": "Currency for invoices." + "id": { + "type": "string" + } + }, + "type": "object" + }, + "PutSSOUserAPIResponse": { + "properties": { + "reason": { + "type": "string" }, - "email": { - "type": "string", - "description": "Email for invoices." + "code": { + "type": "string" + }, + "user": { + "allOf": [ + { + "$ref": "#/components/schemas/APISSOUser" + } + ], + "nullable": true + }, + "status": { + "type": "string" } }, "required": [ - "name", - "address", - "city", - "state", - "zip", - "country" + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "APITenant": { + "AddSSOUserAPIResponse": { "properties": { - "id": { - "type": "string" - }, - "name": { + "reason": { "type": "string" }, - "email": { + "code": { "type": "string" }, - "signUpDate": { - "type": "number", - "format": "double" + "user": { + "$ref": "#/components/schemas/APISSOUser" }, - "packageId": { + "status": { "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "CreateAPISSOUserData": { + "properties": { + "groupIds": { + "items": { + "type": "string" + }, + "type": "array" }, - "paymentFrequency": { - "type": "number", - "format": "double" - }, - "billingInfoValid": { + "hasBlockedUsers": { "type": "boolean" }, - "billingHandledExternally": { + "isProfileDMDisabled": { "type": "boolean" }, - "createdBy": { - "type": "string" + "isProfileCommentsPrivate": { + "type": "boolean" }, - "isSetup": { + "isProfileActivityPrivate": { "type": "boolean" }, - "domainConfiguration": { - "items": { - "$ref": "#/components/schemas/APIDomainConfiguration" - }, - "type": "array" + "isCommentModeratorAdmin": { + "type": "boolean" }, - "billingInfo": { - "$ref": "#/components/schemas/BillingInfo" + "isAdminAdmin": { + "type": "boolean" }, - "stripeCustomerId": { - "type": "string" + "isAccountOwner": { + "type": "boolean" }, - "stripeSubscriptionId": { + "displayName": { "type": "string" }, - "stripePlanId": { + "displayLabel": { "type": "string" }, - "enableProfanityFilter": { - "type": "boolean" - }, - "enableSpamFilter": { + "optedInSubscriptionNotifications": { "type": "boolean" }, - "lastBillingIssueReminderDate": { - "type": "string", - "format": "date-time" - }, - "removeUnverifiedComments": { + "optedInNotifications": { "type": "boolean" }, - "unverifiedCommentsTTLms": { - "type": "number", - "format": "double", - "nullable": true - }, - "commentsRequireApproval": { - "type": "boolean" + "avatarSrc": { + "type": "string" }, - "autoApproveCommentOnVerification": { - "type": "boolean" + "loginCount": { + "type": "integer", + "format": "int32" }, - "sendProfaneToSpam": { - "type": "boolean" + "createdFromUrlId": { + "type": "string" }, - "hasFlexPricing": { - "type": "boolean" + "signUpDate": { + "type": "integer", + "format": "int64" }, - "hasAuditing": { - "type": "boolean" + "email": { + "type": "string" }, - "flexLastBilledAmount": { - "type": "number", - "format": "double" + "websiteUrl": { + "type": "string" }, - "deAnonIpAddr": { - "type": "number", - "format": "double" + "username": { + "type": "string" }, - "meta": { - "$ref": "#/components/schemas/Record_string.string_" + "id": { + "type": "string" } }, "required": [ - "id", - "name", - "signUpDate", - "packageId", - "paymentFrequency", - "billingInfoValid", - "createdBy", - "isSetup", - "domainConfiguration", - "enableProfanityFilter", - "enableSpamFilter" + "email", + "username", + "id" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "GetTenantResponse": { + "APIPage": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "isClosed": { + "type": "boolean" }, - "tenant": { - "$ref": "#/components/schemas/APITenant" + "accessibleByGroupIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "rootCommentCount": { + "type": "integer", + "format": "int64" + }, + "commentCount": { + "type": "integer", + "format": "int64" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "title": { + "type": "string" + }, + "url": { + "type": "string" + }, + "urlId": { + "type": "string" + }, + "id": { + "type": "string" } }, "required": [ - "status", - "tenant" + "rootCommentCount", + "commentCount", + "createdAt", + "title", + "urlId", + "id" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "GetTenantsResponse": { + "GetPagesAPIResponse": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "reason": { + "type": "string" }, - "tenants": { + "code": { + "type": "string" + }, + "pages": { "items": { - "$ref": "#/components/schemas/APITenant" + "$ref": "#/components/schemas/APIPage" }, "type": "array" - } - }, - "required": [ - "status", - "tenants" - ], - "type": "object", - "additionalProperties": false - }, - "CreateTenantResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" }, - "tenant": { - "$ref": "#/components/schemas/APITenant" + "status": { + "type": "string" } }, "required": [ - "status", - "tenant" + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "CreateTenantBody": { + "GetPageByURLIdAPIResponse": { "properties": { - "name": { + "reason": { "type": "string" }, - "domainConfiguration": { - "items": { - "$ref": "#/components/schemas/APIDomainConfiguration" - }, - "type": "array" - }, - "email": { + "code": { "type": "string" }, - "signUpDate": { - "type": "number", - "format": "double" + "page": { + "$ref": "#/components/schemas/APIPage" }, - "packageId": { + "status": { + "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "AddPageAPIResponse": { + "properties": { + "reason": { "type": "string" }, - "paymentFrequency": { - "type": "number", - "format": "double" - }, - "billingInfoValid": { - "type": "boolean" + "code": { + "type": "string" }, - "billingHandledExternally": { - "type": "boolean" + "page": { + "$ref": "#/components/schemas/APIPage" }, - "createdBy": { + "status": { "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "CreateAPIPageData": { + "properties": { + "accessibleByGroupIds": { + "items": { + "type": "string" + }, + "type": "array" }, - "isSetup": { - "type": "boolean" + "rootCommentCount": { + "type": "integer", + "format": "int64" }, - "billingInfo": { - "$ref": "#/components/schemas/BillingInfo" + "commentCount": { + "type": "integer", + "format": "int64" }, - "stripeCustomerId": { + "title": { "type": "string" }, - "stripeSubscriptionId": { + "url": { "type": "string" }, - "stripePlanId": { + "urlId": { "type": "string" - }, - "enableProfanityFilter": { - "type": "boolean" - }, - "enableSpamFilter": { - "type": "boolean" - }, - "removeUnverifiedComments": { - "type": "boolean" - }, - "unverifiedCommentsTTLms": { - "type": "number", - "format": "double" - }, - "commentsRequireApproval": { - "type": "boolean" - }, - "autoApproveCommentOnVerification": { - "type": "boolean" - }, - "sendProfaneToSpam": { - "type": "boolean" - }, - "deAnonIpAddr": { - "type": "number", - "format": "double" - }, - "meta": { - "$ref": "#/components/schemas/Record_string.string_" } }, "required": [ - "name", - "domainConfiguration" + "title", + "url", + "urlId" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "UpdateTenantBody": { + "PatchPageAPIResponse": { "properties": { - "name": { - "type": "string" - }, - "email": { + "reason": { "type": "string" }, - "signUpDate": { - "type": "number", - "format": "double" - }, - "packageId": { + "code": { "type": "string" }, - "paymentFrequency": { - "type": "number", - "format": "double" - }, - "billingInfoValid": { - "type": "boolean" + "commentsUpdated": { + "type": "integer", + "format": "int64" }, - "billingHandledExternally": { - "type": "boolean" + "page": { + "$ref": "#/components/schemas/APIPage" }, - "createdBy": { + "status": { "type": "string" - }, - "isSetup": { + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "UpdateAPIPageData": { + "properties": { + "isClosed": { "type": "boolean" }, - "domainConfiguration": { + "accessibleByGroupIds": { "items": { - "$ref": "#/components/schemas/APIDomainConfiguration" + "type": "string" }, "type": "array" }, - "billingInfo": { - "$ref": "#/components/schemas/BillingInfo" - }, - "stripeCustomerId": { + "title": { "type": "string" }, - "stripeSubscriptionId": { + "url": { "type": "string" }, - "stripePlanId": { + "urlId": { + "type": "string" + } + }, + "type": "object" + }, + "DeletePageAPIResponse": { + "properties": { + "reason": { "type": "string" }, - "enableProfanityFilter": { - "type": "boolean" - }, - "enableSpamFilter": { - "type": "boolean" - }, - "removeUnverifiedComments": { - "type": "boolean" - }, - "unverifiedCommentsTTLms": { - "type": "number", - "format": "double" - }, - "commentsRequireApproval": { - "type": "boolean" + "code": { + "type": "string" }, - "autoApproveCommentOnVerification": { - "type": "boolean" + "status": { + "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "PublicVote": { + "properties": { + "id": { + "type": "string" }, - "sendProfaneToSpam": { - "type": "boolean" + "urlId": { + "type": "string" }, - "deAnonIpAddr": { - "type": "number", - "format": "double" + "commentId": { + "type": "string" }, - "meta": { - "$ref": "#/components/schemas/Record_string.string_" + "userId": { + "type": "string" }, - "managedByTenantId": { + "direction": { "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" } }, + "required": [ + "id", + "urlId", + "commentId", + "userId", + "direction", + "createdAt" + ], "type": "object", "additionalProperties": false }, - "GetTenantUserResponse": { + "GetVotesResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "tenantUser": { - "$ref": "#/components/schemas/User" + "appliedAuthorizedVotes": { + "items": { + "$ref": "#/components/schemas/PublicVote" + }, + "type": "array" + }, + "appliedAnonymousVotes": { + "items": { + "$ref": "#/components/schemas/PublicVote" + }, + "type": "array" + }, + "pendingVotes": { + "items": { + "$ref": "#/components/schemas/PublicVote" + }, + "type": "array" } }, "required": [ "status", - "tenantUser" + "appliedAuthorizedVotes", + "appliedAnonymousVotes", + "pendingVotes" ], "type": "object", "additionalProperties": false }, - "GetTenantUsersResponse": { + "GetVotesForUserResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "tenantUsers": { + "appliedAuthorizedVotes": { "items": { - "$ref": "#/components/schemas/User" + "$ref": "#/components/schemas/PublicVote" + }, + "type": "array" + }, + "appliedAnonymousVotes": { + "items": { + "$ref": "#/components/schemas/PublicVote" + }, + "type": "array" + }, + "pendingVotes": { + "items": { + "$ref": "#/components/schemas/PublicVote" }, "type": "array" } }, "required": [ "status", - "tenantUsers" + "appliedAuthorizedVotes", + "appliedAnonymousVotes", + "pendingVotes" ], "type": "object", "additionalProperties": false }, - "CreateTenantUserResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "tenantUser": { - "$ref": "#/components/schemas/User" - } - }, - "required": [ - "status", - "tenantUser" + "DigestEmailFrequency": { + "enum": [ + -1, + 0, + 1, + 2 ], - "type": "object", - "additionalProperties": false + "type": "integer" }, - "CreateTenantUserBody": { + "ImportedAgentApprovalNotificationFrequency": { + "enum": [ + -1, + 0, + 1, + 2 + ], + "type": "integer" + }, + "AgentApprovalNotificationFrequency": { + "$ref": "#/components/schemas/ImportedAgentApprovalNotificationFrequency" + }, + "User": { "properties": { - "username": { + "_id": { "type": "string" }, - "email": { + "tenantId": { + "type": "string", + "nullable": true + }, + "username": { "type": "string" }, "displayName": { "type": "string" }, "websiteUrl": { + "type": "string", + "nullable": true + }, + "email": { + "type": "string", + "nullable": true + }, + "pendingEmail": { + "type": "string" + }, + "backupEmail": { + "type": "string" + }, + "pendingBackupEmail": { "type": "string" }, "signUpDate": { - "type": "number", - "format": "double" + "type": "integer", + "format": "int64" }, - "locale": { + "createdFromUrlId": { + "type": "string", + "nullable": true + }, + "createdFromTenantId": { + "type": "string", + "nullable": true + }, + "createdFromIpHashed": { "type": "string" }, "verified": { "type": "boolean" }, + "loginId": { + "type": "string" + }, + "loginIdDate": { + "type": "integer", + "format": "int64" + }, "loginCount": { - "type": "number", - "format": "double" + "type": "integer", + "format": "int32" }, "optedInNotifications": { "type": "boolean" @@ -5058,7 +5841,11 @@ "type": "boolean" }, "avatarSrc": { - "type": "string" + "type": "string", + "nullable": true + }, + "isFastCommentsHelpRequestAdmin": { + "type": "boolean" }, "isHelpRequestAdmin": { "type": "boolean" @@ -5087,3452 +5874,2954 @@ "isAPIAdmin": { "type": "boolean" }, + "isSiteAdmin": { + "type": "boolean" + }, "moderatorIds": { "items": { "type": "string" }, "type": "array" }, - "digestEmailFrequency": { - "type": "number", - "format": "double" - }, - "displayLabel": { - "type": "string" - } - }, - "required": [ - "username", - "email" - ], - "type": "object", - "additionalProperties": false - }, - "ReplaceTenantUserBody": { - "properties": { - "username": { - "type": "string" + "isImpersonator": { + "type": "boolean" }, - "email": { - "type": "string" + "isCouponManager": { + "type": "boolean" }, - "displayName": { + "locale": { "type": "string" }, - "websiteUrl": { - "type": "string" + "digestEmailFrequency": { + "$ref": "#/components/schemas/DigestEmailFrequency" }, - "signUpDate": { + "notificationFrequency": { "type": "number", "format": "double" }, - "locale": { - "type": "string" - }, - "verified": { - "type": "boolean" - }, - "loginCount": { + "adminNotificationFrequency": { "type": "number", "format": "double" }, - "optedInNotifications": { - "type": "boolean" + "agentApprovalNotificationFrequency": { + "$ref": "#/components/schemas/AgentApprovalNotificationFrequency" }, - "optedInTenantNotifications": { - "type": "boolean" + "lastTenantNotificationSentDate": { + "type": "string", + "format": "date-time" }, - "hideAccountCode": { + "lastReplyNotificationSentDate": { + "type": "string", + "format": "date-time" + }, + "ignoredAddToMySiteMessages": { "type": "boolean" }, - "avatarSrc": { - "type": "string" + "lastLoginDate": { + "type": "string", + "format": "date-time" }, - "isHelpRequestAdmin": { - "type": "boolean" + "displayLabel": { + "type": "string" }, - "isAccountOwner": { + "isProfileActivityPrivate": { "type": "boolean" }, - "isAdminAdmin": { + "isProfileCommentsPrivate": { "type": "boolean" }, - "isBillingAdmin": { + "isProfileDMDisabled": { "type": "boolean" }, - "isAnalyticsAdmin": { - "type": "boolean" + "profileCommentApprovalMode": { + "type": "number", + "format": "double" }, - "isCustomizationAdmin": { - "type": "boolean" + "karma": { + "type": "number", + "format": "double" }, - "isManageDataAdmin": { - "type": "boolean" + "passwordHash": { + "type": "string" }, - "isCommentModeratorAdmin": { - "type": "boolean" + "averageTicketAckTimeMS": { + "type": "number", + "format": "double", + "nullable": true }, - "isAPIAdmin": { + "hasBlockedUsers": { "type": "boolean" }, - "moderatorIds": { - "items": { - "type": "string" - }, - "type": "array" - }, - "digestEmailFrequency": { - "type": "number", - "format": "double" + "bio": { + "type": "string" }, - "displayLabel": { + "headerBackgroundSrc": { "type": "string" }, - "createdFromUrlId": { + "countryCode": { "type": "string" }, - "createdFromTenantId": { + "countryFlag": { "type": "string" }, - "lastLoginDate": { - "type": "number", - "format": "double" + "socialLinks": { + "items": { + "type": "string" + }, + "type": "array" }, - "karma": { - "type": "number", - "format": "double" + "hasTwoFactor": { + "type": "boolean" + }, + "isEmailSuppressed": { + "type": "boolean" } }, "required": [ + "_id", "username", - "email" + "email", + "signUpDate", + "createdFromTenantId", + "createdFromIpHashed", + "verified", + "loginId", + "loginIdDate" ], "type": "object", "additionalProperties": false }, - "UpdateTenantUserBody": { + "GetUserResponse": { "properties": { - "username": { - "type": "string" - }, - "displayName": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "websiteUrl": { - "type": "string" + "user": { + "$ref": "#/components/schemas/User" + } + }, + "required": [ + "status", + "user" + ], + "type": "object", + "additionalProperties": false + }, + "APIGetUserBadgeResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "email": { - "type": "string" + "userBadge": { + "$ref": "#/components/schemas/UserBadge" + } + }, + "required": [ + "status", + "userBadge" + ], + "type": "object", + "additionalProperties": false + }, + "APIGetUserBadgesResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "signUpDate": { - "type": "number", - "format": "double" + "userBadges": { + "items": { + "$ref": "#/components/schemas/UserBadge" + }, + "type": "array" + } + }, + "required": [ + "status", + "userBadges" + ], + "type": "object", + "additionalProperties": false + }, + "APICreateUserBadgeResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "verified": { - "type": "boolean" + "userBadge": { + "$ref": "#/components/schemas/UserBadge" }, - "loginCount": { - "type": "number", - "format": "double" + "notes": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "status", + "userBadge" + ], + "type": "object", + "additionalProperties": false + }, + "CreateUserBadgeParams": { + "properties": { + "userId": { + "type": "string" }, - "optedInNotifications": { - "type": "boolean" + "badgeId": { + "type": "string" }, - "optedInTenantNotifications": { + "displayedOnComments": { "type": "boolean" - }, - "hideAccountCode": { + } + }, + "required": [ + "userId", + "badgeId" + ], + "type": "object", + "additionalProperties": false + }, + "APIEmptySuccessResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "status" + ], + "type": "object", + "additionalProperties": false + }, + "UpdateUserBadgeParams": { + "properties": { + "displayedOnComments": { "type": "boolean" - }, - "avatarSrc": { + } + }, + "type": "object", + "additionalProperties": false + }, + "UserBadgeProgress": { + "properties": { + "_id": { "type": "string" }, - "isHelpRequestAdmin": { - "type": "boolean" + "tenantId": { + "type": "string" }, - "isAccountOwner": { - "type": "boolean" + "userId": { + "type": "string" }, - "isAdminAdmin": { - "type": "boolean" + "firstCommentId": { + "type": "string" }, - "isBillingAdmin": { - "type": "boolean" + "firstCommentDate": { + "type": "string", + "format": "date-time" }, - "isAnalyticsAdmin": { - "type": "boolean" + "autoTrustFactor": { + "type": "number", + "format": "double" }, - "isCustomizationAdmin": { - "type": "boolean" + "manualTrustFactor": { + "type": "number", + "format": "double" }, - "isManageDataAdmin": { - "type": "boolean" + "progress": { + "$ref": "#/components/schemas/Record_string.number_" }, - "isCommentModeratorAdmin": { - "type": "boolean" + "tosAcceptedAt": { + "type": "string", + "format": "date-time" + } + }, + "required": [ + "_id", + "tenantId", + "userId", + "firstCommentId", + "firstCommentDate", + "progress" + ], + "type": "object", + "additionalProperties": false + }, + "APIGetUserBadgeProgressResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "isAPIAdmin": { - "type": "boolean" + "userBadgeProgress": { + "$ref": "#/components/schemas/UserBadgeProgress" + } + }, + "required": [ + "status", + "userBadgeProgress" + ], + "type": "object", + "additionalProperties": false + }, + "APIGetUserBadgeProgressListResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "moderatorIds": { + "userBadgeProgresses": { "items": { - "type": "string" + "$ref": "#/components/schemas/UserBadgeProgress" }, "type": "array" - }, - "locale": { - "type": "string" - }, - "digestEmailFrequency": { - "type": "number", - "format": "double" - }, - "displayLabel": { - "type": "string" } }, + "required": [ + "status", + "userBadgeProgresses" + ], "type": "object", "additionalProperties": false }, - "TenantPackage": { + "APITicket": { "properties": { "_id": { "type": "string" }, - "name": { + "urlId": { "type": "string" }, - "tenantId": { + "userId": { "type": "string" }, - "createdAt": { - "type": "string", - "format": "date-time" + "managedByTenantId": { + "type": "string" }, - "monthlyCostUSD": { - "type": "number", - "format": "double", - "nullable": true + "assignedUserIds": { + "items": { + "type": "string" + }, + "type": "array" }, - "yearlyCostUSD": { - "type": "number", - "format": "double", - "nullable": true + "subject": { + "type": "string" }, - "monthlyStripePlanId": { - "type": "string", - "nullable": true - }, - "yearlyStripePlanId": { - "type": "string", - "nullable": true - }, - "maxMonthlyPageLoads": { - "type": "number", - "format": "double" - }, - "maxMonthlyAPICredits": { - "type": "number", - "format": "double" - }, - "maxMonthlySmallWidgetsCredits": { - "type": "number", - "format": "double" - }, - "maxMonthlyComments": { - "type": "number", - "format": "double" - }, - "maxConcurrentUsers": { - "type": "number", - "format": "double" - }, - "maxTenantUsers": { - "type": "number", - "format": "double" - }, - "maxSSOUsers": { - "type": "number", - "format": "double" - }, - "maxModerators": { - "type": "number", - "format": "double" - }, - "maxDomains": { - "type": "number", - "format": "double" - }, - "maxWhiteLabeledTenants": { - "type": "number", - "format": "double" - }, - "maxMonthlyEventLogRequests": { - "type": "number", - "format": "double" - }, - "maxCustomCollectionSize": { - "type": "number", - "format": "double" - }, - "hasWhiteLabeling": { - "type": "boolean" - }, - "hasDebranding": { - "type": "boolean" - }, - "hasLLMSpamDetection": { - "type": "boolean" - }, - "forWhoText": { + "createdAt": { "type": "string" }, - "featureTaglines": { - "items": { - "type": "string" - }, - "type": "array" - }, - "hasAuditing": { - "type": "boolean" - }, - "hasFlexPricing": { - "type": "boolean" - }, - "enableSAML": { - "type": "boolean" - }, - "enableCanvasLTI": { - "type": "boolean" - }, - "flexPageLoadCostCents": { - "type": "number", - "format": "double" - }, - "flexPageLoadUnit": { - "type": "number", - "format": "double" - }, - "flexCommentCostCents": { - "type": "number", - "format": "double" - }, - "flexCommentUnit": { - "type": "number", - "format": "double" - }, - "flexSSOUserCostCents": { - "type": "number", - "format": "double" - }, - "flexSSOUserUnit": { - "type": "number", - "format": "double" - }, - "flexAPICreditCostCents": { - "type": "number", - "format": "double" - }, - "flexAPICreditUnit": { - "type": "number", - "format": "double" - }, - "flexSmallWidgetsCreditCostCents": { - "type": "number", - "format": "double" - }, - "flexSmallWidgetsCreditUnit": { - "type": "number", - "format": "double" - }, - "flexModeratorCostCents": { - "type": "number", - "format": "double" - }, - "flexModeratorUnit": { - "type": "number", - "format": "double" - }, - "flexAdminCostCents": { - "type": "number", - "format": "double" - }, - "flexAdminUnit": { - "type": "number", - "format": "double" - }, - "flexDomainCostCents": { - "type": "number", - "format": "double" - }, - "flexDomainUnit": { - "type": "number", - "format": "double" - }, - "flexChatGPTCostCents": { - "type": "number", - "format": "double" - }, - "flexChatGPTUnit": { - "type": "number", - "format": "double" - }, - "flexMinimumCostCents": { - "type": "number", - "format": "double" - }, - "flexManagedTenantCostCents": { - "type": "number", - "format": "double" - }, - "flexSSOAdminCostCents": { - "type": "number", - "format": "double" - }, - "flexSSOAdminUnit": { - "type": "number", - "format": "double" - }, - "flexSSOModeratorCostCents": { - "type": "number", - "format": "double" - }, - "flexSSOModeratorUnit": { - "type": "number", - "format": "double" + "state": { + "type": "integer", + "format": "int32" }, - "isSSOBillingMonthlyActiveUsers": { - "type": "boolean" + "fileCount": { + "type": "integer", + "format": "int32" } }, "required": [ "_id", - "name", - "tenantId", + "urlId", + "userId", + "managedByTenantId", + "assignedUserIds", + "subject", "createdAt", - "monthlyCostUSD", - "yearlyCostUSD", - "monthlyStripePlanId", - "yearlyStripePlanId", - "maxMonthlyPageLoads", - "maxMonthlyAPICredits", - "maxMonthlySmallWidgetsCredits", - "maxMonthlyComments", - "maxConcurrentUsers", - "maxTenantUsers", - "maxSSOUsers", - "maxModerators", - "maxDomains", - "maxWhiteLabeledTenants", - "maxMonthlyEventLogRequests", - "maxCustomCollectionSize", - "hasWhiteLabeling", - "hasDebranding", - "hasLLMSpamDetection", - "forWhoText", - "featureTaglines", - "hasAuditing", - "hasFlexPricing" + "state", + "fileCount" ], "type": "object", "additionalProperties": false }, - "GetTenantPackageResponse": { + "GetTicketsResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "tenantPackage": { - "$ref": "#/components/schemas/TenantPackage" + "tickets": { + "items": { + "$ref": "#/components/schemas/APITicket" + }, + "type": "array" } }, "required": [ "status", - "tenantPackage" + "tickets" ], "type": "object", "additionalProperties": false }, - "GetTenantPackagesResponse": { + "CreateTicketResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "tenantPackages": { - "items": { - "$ref": "#/components/schemas/TenantPackage" - }, - "type": "array" + "ticket": { + "$ref": "#/components/schemas/APITicket" } }, "required": [ "status", - "tenantPackages" + "ticket" ], "type": "object", "additionalProperties": false }, - "CreateTenantPackageResponse": { + "CreateTicketBody": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "tenantPackage": { - "$ref": "#/components/schemas/TenantPackage" + "subject": { + "type": "string" } }, "required": [ - "status", - "tenantPackage" + "subject" ], "type": "object", "additionalProperties": false }, - "CreateTenantPackageBody": { + "APITicketFile": { "properties": { - "name": { + "id": { "type": "string" }, - "monthlyCostUSD": { - "type": "number", - "format": "double", - "nullable": true - }, - "yearlyCostUSD": { - "type": "number", - "format": "double", - "nullable": true - }, - "monthlyStripePlanId": { - "type": "string", - "nullable": true - }, - "yearlyStripePlanId": { - "type": "string", - "nullable": true - }, - "maxMonthlyPageLoads": { - "type": "number", - "format": "double" - }, - "maxMonthlyAPICredits": { - "type": "number", - "format": "double" - }, - "maxMonthlySmallWidgetsCredits": { - "type": "number", - "format": "double" - }, - "maxMonthlyComments": { - "type": "number", - "format": "double" - }, - "maxConcurrentUsers": { - "type": "number", - "format": "double" + "s3Key": { + "type": "string" }, - "maxTenantUsers": { - "type": "number", - "format": "double" + "originalFileName": { + "type": "string" }, - "maxSSOUsers": { - "type": "number", - "format": "double" + "sizeBytes": { + "type": "integer", + "format": "int32" }, - "maxModerators": { - "type": "number", - "format": "double" + "contentType": { + "type": "string" }, - "maxDomains": { - "type": "number", - "format": "double" + "uploadedByUserId": { + "type": "string" }, - "maxWhiteLabeledTenants": { - "type": "number", - "format": "double" + "uploadedAt": { + "type": "string" }, - "maxMonthlyEventLogRequests": { - "type": "number", - "format": "double" + "url": { + "type": "string" }, - "maxCustomCollectionSize": { - "type": "number", - "format": "double" + "expiresAt": { + "type": "string" }, - "hasWhiteLabeling": { + "expired": { "type": "boolean" + } + }, + "required": [ + "id", + "s3Key", + "originalFileName", + "sizeBytes", + "contentType", + "uploadedByUserId", + "uploadedAt", + "url", + "expiresAt" + ], + "type": "object", + "additionalProperties": false + }, + "APITicketDetail": { + "properties": { + "_id": { + "type": "string" }, - "hasDebranding": { - "type": "boolean" + "urlId": { + "type": "string" }, - "hasLLMSpamDetection": { - "type": "boolean" + "userId": { + "type": "string" }, - "forWhoText": { + "managedByTenantId": { "type": "string" }, - "featureTaglines": { + "assignedUserIds": { "items": { "type": "string" }, "type": "array" }, - "hasAuditing": { - "type": "boolean" - }, - "hasFlexPricing": { - "type": "boolean" - }, - "enableSAML": { - "type": "boolean" - }, - "flexPageLoadCostCents": { - "type": "number", - "format": "double" - }, - "flexPageLoadUnit": { - "type": "number", - "format": "double" - }, - "flexCommentCostCents": { - "type": "number", - "format": "double" - }, - "flexCommentUnit": { - "type": "number", - "format": "double" - }, - "flexSSOUserCostCents": { - "type": "number", - "format": "double" - }, - "flexSSOUserUnit": { - "type": "number", - "format": "double" - }, - "flexAPICreditCostCents": { - "type": "number", - "format": "double" - }, - "flexAPICreditUnit": { - "type": "number", - "format": "double" - }, - "flexSmallWidgetsCreditCostCents": { - "type": "number", - "format": "double" - }, - "flexSmallWidgetsCreditUnit": { - "type": "number", - "format": "double" - }, - "flexModeratorCostCents": { - "type": "number", - "format": "double" - }, - "flexModeratorUnit": { - "type": "number", - "format": "double" - }, - "flexAdminCostCents": { - "type": "number", - "format": "double" - }, - "flexAdminUnit": { - "type": "number", - "format": "double" - }, - "flexDomainCostCents": { - "type": "number", - "format": "double" - }, - "flexDomainUnit": { - "type": "number", - "format": "double" - }, - "flexChatGPTCostCents": { - "type": "number", - "format": "double" + "subject": { + "type": "string" }, - "flexChatGPTUnit": { - "type": "number", - "format": "double" + "createdAt": { + "type": "string" }, - "flexMinimumCostCents": { - "type": "number", - "format": "double" + "state": { + "type": "integer", + "format": "int32" }, - "flexManagedTenantCostCents": { - "type": "number", - "format": "double" + "fileCount": { + "type": "integer", + "format": "int32" }, - "flexSSOAdminCostCents": { - "type": "number", - "format": "double" + "files": { + "items": { + "$ref": "#/components/schemas/APITicketFile" + }, + "type": "array" }, - "flexSSOAdminUnit": { - "type": "number", - "format": "double" + "reopenedAt": { + "type": "string", + "nullable": true }, - "flexSSOModeratorCostCents": { - "type": "number", - "format": "double" + "resolvedAt": { + "type": "string", + "nullable": true }, - "flexSSOModeratorUnit": { - "type": "number", - "format": "double" + "ackAt": { + "type": "string", + "nullable": true } }, "required": [ - "name", - "maxMonthlyPageLoads", - "maxMonthlyAPICredits", - "maxMonthlyComments", - "maxConcurrentUsers", - "maxTenantUsers", - "maxSSOUsers", - "maxModerators", - "maxDomains", - "hasDebranding", - "forWhoText", - "featureTaglines", - "hasFlexPricing" + "_id", + "urlId", + "userId", + "managedByTenantId", + "assignedUserIds", + "subject", + "createdAt", + "state", + "fileCount", + "files" ], "type": "object", "additionalProperties": false }, - "ReplaceTenantPackageBody": { + "GetTicketResponse": { "properties": { - "name": { - "type": "string" - }, - "monthlyCostUSD": { - "type": "number", - "format": "double" - }, - "yearlyCostUSD": { - "type": "number", - "format": "double" - }, - "maxMonthlyPageLoads": { - "type": "number", - "format": "double" - }, - "maxMonthlyAPICredits": { - "type": "number", - "format": "double" - }, - "maxMonthlyComments": { - "type": "number", - "format": "double" - }, - "maxConcurrentUsers": { - "type": "number", - "format": "double" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "maxTenantUsers": { - "type": "number", - "format": "double" + "ticket": { + "$ref": "#/components/schemas/APITicketDetail" }, - "maxSSOUsers": { - "type": "number", - "format": "double" + "availableStates": { + "items": { + "type": "number", + "format": "double" + }, + "type": "array" + } + }, + "required": [ + "status", + "ticket", + "availableStates" + ], + "type": "object", + "additionalProperties": false + }, + "ChangeTicketStateResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "maxModerators": { - "type": "number", - "format": "double" + "ticket": { + "$ref": "#/components/schemas/APITicket" + } + }, + "required": [ + "status", + "ticket" + ], + "type": "object", + "additionalProperties": false + }, + "ChangeTicketStateBody": { + "properties": { + "state": { + "type": "integer", + "format": "int32" + } + }, + "required": [ + "state" + ], + "type": "object", + "additionalProperties": false + }, + "ImportedSiteType": { + "enum": [ + 0, + 1 + ], + "type": "integer" + }, + "SiteType": { + "$ref": "#/components/schemas/ImportedSiteType" + }, + "APIDomainConfiguration": { + "properties": { + "id": { + "type": "string" }, - "maxDomains": { - "type": "number", - "format": "double" + "domain": { + "type": "string" }, - "maxCustomCollectionSize": { - "type": "number", - "format": "double" + "emailFromName": { + "type": "string", + "nullable": true }, - "hasDebranding": { - "type": "boolean" + "emailFromEmail": { + "type": "string", + "nullable": true }, - "forWhoText": { - "type": "string" + "emailHeaders": { + "$ref": "#/components/schemas/Record_string.string_" }, - "featureTaglines": { - "items": { - "type": "string" - }, - "type": "array" + "wpSyncToken": { + "type": "string", + "nullable": true }, - "hasFlexPricing": { + "wpSynced": { "type": "boolean" }, - "flexPageLoadCostCents": { - "type": "number", - "format": "double" + "wpURL": { + "type": "string", + "nullable": true }, - "flexPageLoadUnit": { - "type": "number", - "format": "double" + "createdAt": { + "type": "string", + "format": "date-time" }, - "flexCommentCostCents": { - "type": "number", - "format": "double" + "autoAddedDate": { + "type": "string", + "format": "date-time" }, - "flexCommentUnit": { - "type": "number", - "format": "double" + "siteType": { + "$ref": "#/components/schemas/SiteType" }, - "flexSSOUserCostCents": { - "type": "number", - "format": "double" + "logoSrc": { + "type": "string", + "nullable": true }, - "flexSSOUserUnit": { - "type": "number", - "format": "double" + "logoSrc100px": { + "type": "string", + "nullable": true }, - "flexAPICreditCostCents": { - "type": "number", - "format": "double" + "footerUnsubscribeURL": { + "type": "string" }, - "flexAPICreditUnit": { - "type": "number", - "format": "double" + "disableUnsubscribeLinks": { + "type": "boolean" + } + }, + "required": [ + "id", + "domain", + "createdAt" + ], + "type": "object", + "additionalProperties": false + }, + "BillingInfo": { + "properties": { + "name": { + "type": "string" }, - "flexModeratorCostCents": { - "type": "number", - "format": "double" + "address": { + "type": "string" }, - "flexModeratorUnit": { - "type": "number", - "format": "double" + "city": { + "type": "string" }, - "flexAdminCostCents": { - "type": "number", - "format": "double" + "state": { + "type": "string" }, - "flexAdminUnit": { - "type": "number", - "format": "double" + "zip": { + "type": "string" }, - "flexDomainCostCents": { - "type": "number", - "format": "double" + "country": { + "type": "string" }, - "flexDomainUnit": { - "type": "number", - "format": "double" + "currency": { + "type": "string", + "nullable": true, + "description": "Currency for invoices." }, - "flexMinimumCostCents": { - "type": "number", - "format": "double" + "email": { + "type": "string", + "description": "Email for invoices." } }, "required": [ "name", - "monthlyCostUSD", - "yearlyCostUSD", - "maxMonthlyPageLoads", - "maxMonthlyAPICredits", - "maxMonthlyComments", - "maxConcurrentUsers", - "maxTenantUsers", - "maxSSOUsers", - "maxModerators", - "maxDomains", - "hasDebranding", - "forWhoText", - "featureTaglines", - "hasFlexPricing" + "address", + "city", + "state", + "zip", + "country" ], "type": "object", "additionalProperties": false }, - "UpdateTenantPackageBody": { + "APITenant": { "properties": { + "id": { + "type": "string" + }, "name": { "type": "string" }, - "monthlyCostUSD": { + "email": { + "type": "string" + }, + "signUpDate": { "type": "number", "format": "double" }, - "yearlyCostUSD": { + "packageId": { + "type": "string" + }, + "paymentFrequency": { "type": "number", "format": "double" }, - "maxMonthlyPageLoads": { - "type": "number", - "format": "double" - }, - "maxMonthlyAPICredits": { - "type": "number", - "format": "double" - }, - "maxMonthlyComments": { - "type": "number", - "format": "double" - }, - "maxConcurrentUsers": { - "type": "number", - "format": "double" - }, - "maxTenantUsers": { - "type": "number", - "format": "double" - }, - "maxSSOUsers": { - "type": "number", - "format": "double" - }, - "maxModerators": { - "type": "number", - "format": "double" - }, - "maxDomains": { - "type": "number", - "format": "double" - }, - "maxCustomCollectionSize": { - "type": "number", - "format": "double" - }, - "hasDebranding": { + "billingInfoValid": { "type": "boolean" }, - "hasWhiteLabeling": { + "billingHandledExternally": { "type": "boolean" }, - "forWhoText": { + "createdBy": { "type": "string" }, - "featureTaglines": { + "isSetup": { + "type": "boolean" + }, + "domainConfiguration": { "items": { - "type": "string" + "$ref": "#/components/schemas/APIDomainConfiguration" }, "type": "array" }, - "hasFlexPricing": { - "type": "boolean" - }, - "flexPageLoadCostCents": { - "type": "number", - "format": "double" - }, - "flexPageLoadUnit": { - "type": "number", - "format": "double" - }, - "flexCommentCostCents": { - "type": "number", - "format": "double" - }, - "flexCommentUnit": { - "type": "number", - "format": "double" - }, - "flexSSOUserCostCents": { - "type": "number", - "format": "double" - }, - "flexSSOUserUnit": { - "type": "number", - "format": "double" - }, - "flexAPICreditCostCents": { - "type": "number", - "format": "double" - }, - "flexAPICreditUnit": { - "type": "number", - "format": "double" - }, - "flexModeratorCostCents": { - "type": "number", - "format": "double" - }, - "flexModeratorUnit": { - "type": "number", - "format": "double" - }, - "flexAdminCostCents": { - "type": "number", - "format": "double" - }, - "flexAdminUnit": { - "type": "number", - "format": "double" - }, - "flexDomainCostCents": { - "type": "number", - "format": "double" - }, - "flexDomainUnit": { - "type": "number", - "format": "double" + "billingInfo": { + "$ref": "#/components/schemas/BillingInfo" }, - "flexMinimumCostCents": { - "type": "number", - "format": "double" - } - }, - "type": "object", - "additionalProperties": false - }, - "APITenantDailyUsage": { - "properties": { - "id": { + "stripeCustomerId": { "type": "string" }, - "tenantId": { + "stripeSubscriptionId": { "type": "string" }, - "yearNumber": { - "type": "number", - "format": "double" + "stripePlanId": { + "type": "string" }, - "monthNumber": { - "type": "number", - "format": "double" + "enableProfanityFilter": { + "type": "boolean" }, - "dayNumber": { - "type": "number", - "format": "double" + "enableSpamFilter": { + "type": "boolean" }, - "commentFetchCount": { - "type": "number", - "format": "double" + "lastBillingIssueReminderDate": { + "type": "string", + "format": "date-time" }, - "commentCreateCount": { - "type": "number", - "format": "double" + "removeUnverifiedComments": { + "type": "boolean" }, - "conversationCreateCount": { + "unverifiedCommentsTTLms": { "type": "number", - "format": "double" + "format": "double", + "nullable": true }, - "voteCount": { - "type": "number", - "format": "double" + "commentsRequireApproval": { + "type": "boolean" }, - "accountCreatedCount": { - "type": "number", - "format": "double" + "autoApproveCommentOnVerification": { + "type": "boolean" }, - "userMentionSearch": { - "type": "number", - "format": "double" + "sendProfaneToSpam": { + "type": "boolean" }, - "hashTagSearch": { - "type": "number", - "format": "double" + "hasFlexPricing": { + "type": "boolean" }, - "gifSearchTrending": { - "type": "number", - "format": "double" + "hasAuditing": { + "type": "boolean" }, - "gifSearch": { + "flexLastBilledAmount": { "type": "number", "format": "double" }, - "apiCreditsUsed": { + "deAnonIpAddr": { "type": "number", "format": "double" }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "billed": { - "type": "boolean" - }, - "ignored": { - "type": "boolean" - }, - "apiErrorCount": { - "type": "number", - "format": "double" + "meta": { + "$ref": "#/components/schemas/Record_string.string_" } }, "required": [ "id", - "tenantId", - "yearNumber", - "monthNumber", - "dayNumber", - "commentFetchCount", - "commentCreateCount", - "conversationCreateCount", - "voteCount", - "accountCreatedCount", - "userMentionSearch", - "hashTagSearch", - "gifSearchTrending", - "gifSearch", - "apiCreditsUsed", - "createdAt", - "billed", - "ignored", - "apiErrorCount" + "name", + "signUpDate", + "packageId", + "paymentFrequency", + "billingInfoValid", + "createdBy", + "isSetup", + "domainConfiguration", + "enableProfanityFilter", + "enableSpamFilter" ], "type": "object", "additionalProperties": false }, - "GetTenantDailyUsagesResponse": { + "GetTenantResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "tenantDailyUsages": { - "items": { - "$ref": "#/components/schemas/APITenantDailyUsage" - }, - "type": "array" + "tenant": { + "$ref": "#/components/schemas/APITenant" } }, "required": [ "status", - "tenantDailyUsages" + "tenant" ], "type": "object", "additionalProperties": false }, - "MetaItem": { + "GetTenantsResponse": { "properties": { - "name": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "values": { + "tenants": { "items": { - "type": "string" + "$ref": "#/components/schemas/APITenant" }, "type": "array" } }, "required": [ - "name", - "values" + "status", + "tenants" ], "type": "object", "additionalProperties": false }, - "QuestionResult": { + "CreateTenantResponse": { "properties": { - "_id": { - "type": "string" - }, - "tenantId": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "tenant": { + "$ref": "#/components/schemas/APITenant" + } + }, + "required": [ + "status", + "tenant" + ], + "type": "object", + "additionalProperties": false + }, + "CreateTenantBody": { + "properties": { + "name": { "type": "string" }, - "urlId": { + "domainConfiguration": { + "items": { + "$ref": "#/components/schemas/APIDomainConfiguration" + }, + "type": "array" + }, + "email": { "type": "string" }, - "anonUserId": { + "signUpDate": { + "type": "number", + "format": "double" + }, + "packageId": { "type": "string" }, - "userId": { + "paymentFrequency": { + "type": "number", + "format": "double" + }, + "billingInfoValid": { + "type": "boolean" + }, + "billingHandledExternally": { + "type": "boolean" + }, + "createdBy": { "type": "string" }, - "createdAt": { - "type": "string", - "format": "date-time" + "isSetup": { + "type": "boolean" }, - "value": { - "type": "integer", - "format": "int32" + "billingInfo": { + "$ref": "#/components/schemas/BillingInfo" }, - "commentId": { - "type": "string", - "nullable": true + "stripeCustomerId": { + "type": "string" }, - "questionId": { + "stripeSubscriptionId": { + "type": "string" + }, + "stripePlanId": { "type": "string" }, + "enableProfanityFilter": { + "type": "boolean" + }, + "enableSpamFilter": { + "type": "boolean" + }, + "removeUnverifiedComments": { + "type": "boolean" + }, + "unverifiedCommentsTTLms": { + "type": "number", + "format": "double" + }, + "commentsRequireApproval": { + "type": "boolean" + }, + "autoApproveCommentOnVerification": { + "type": "boolean" + }, + "sendProfaneToSpam": { + "type": "boolean" + }, + "deAnonIpAddr": { + "type": "number", + "format": "double" + }, "meta": { + "$ref": "#/components/schemas/Record_string.string_" + } + }, + "required": [ + "name", + "domainConfiguration" + ], + "type": "object", + "additionalProperties": false + }, + "UpdateTenantBody": { + "properties": { + "name": { + "type": "string" + }, + "email": { + "type": "string" + }, + "signUpDate": { + "type": "number", + "format": "double" + }, + "packageId": { + "type": "string" + }, + "paymentFrequency": { + "type": "number", + "format": "double" + }, + "billingInfoValid": { + "type": "boolean" + }, + "billingHandledExternally": { + "type": "boolean" + }, + "createdBy": { + "type": "string" + }, + "isSetup": { + "type": "boolean" + }, + "domainConfiguration": { "items": { - "$ref": "#/components/schemas/MetaItem" + "$ref": "#/components/schemas/APIDomainConfiguration" }, - "type": "array", - "nullable": true + "type": "array" }, - "ipHash": { + "billingInfo": { + "$ref": "#/components/schemas/BillingInfo" + }, + "stripeCustomerId": { + "type": "string" + }, + "stripeSubscriptionId": { + "type": "string" + }, + "stripePlanId": { + "type": "string" + }, + "enableProfanityFilter": { + "type": "boolean" + }, + "enableSpamFilter": { + "type": "boolean" + }, + "removeUnverifiedComments": { + "type": "boolean" + }, + "unverifiedCommentsTTLms": { + "type": "number", + "format": "double" + }, + "commentsRequireApproval": { + "type": "boolean" + }, + "autoApproveCommentOnVerification": { + "type": "boolean" + }, + "sendProfaneToSpam": { + "type": "boolean" + }, + "deAnonIpAddr": { + "type": "number", + "format": "double" + }, + "meta": { + "$ref": "#/components/schemas/Record_string.string_" + }, + "managedByTenantId": { "type": "string" } }, - "required": [ - "_id", - "tenantId", - "urlId", - "anonUserId", - "userId", - "createdAt", - "value", - "questionId", - "ipHash" - ], "type": "object", "additionalProperties": false }, - "GetQuestionResultResponse": { + "GetTenantUserResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "questionResult": { - "$ref": "#/components/schemas/QuestionResult" + "tenantUser": { + "$ref": "#/components/schemas/User" } }, "required": [ "status", - "questionResult" + "tenantUser" ], "type": "object", "additionalProperties": false }, - "GetQuestionResultsResponse": { + "GetTenantUsersResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "questionResults": { + "tenantUsers": { "items": { - "$ref": "#/components/schemas/QuestionResult" + "$ref": "#/components/schemas/User" }, "type": "array" } }, "required": [ "status", - "questionResults" + "tenantUsers" ], "type": "object", "additionalProperties": false }, - "CreateQuestionResultResponse": { + "CreateTenantUserResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "questionResult": { - "$ref": "#/components/schemas/QuestionResult" + "tenantUser": { + "$ref": "#/components/schemas/User" } }, "required": [ "status", - "questionResult" + "tenantUser" ], "type": "object", "additionalProperties": false }, - "CreateQuestionResultBody": { + "CreateTenantUserBody": { "properties": { - "urlId": { + "username": { "type": "string" }, - "value": { - "type": "number", - "format": "double" - }, - "questionId": { + "email": { "type": "string" }, - "anonUserId": { + "displayName": { "type": "string" }, - "userId": { + "websiteUrl": { "type": "string" }, - "commentId": { - "type": "string" + "signUpDate": { + "type": "number", + "format": "double" }, - "meta": { - "items": { - "$ref": "#/components/schemas/MetaItem" - }, - "type": "array", - "nullable": true - } - }, - "required": [ - "urlId", - "value", - "questionId" - ], - "type": "object", - "additionalProperties": {} - }, - "UpdateQuestionResultBody": { - "properties": { - "urlId": { + "locale": { "type": "string" }, - "anonUserId": { - "type": "string" - }, - "userId": { - "type": "string" + "verified": { + "type": "boolean" }, - "value": { + "loginCount": { "type": "number", "format": "double" }, - "commentId": { - "type": "string" + "optedInNotifications": { + "type": "boolean" }, - "questionId": { + "optedInTenantNotifications": { + "type": "boolean" + }, + "hideAccountCode": { + "type": "boolean" + }, + "avatarSrc": { "type": "string" }, - "meta": { + "isHelpRequestAdmin": { + "type": "boolean" + }, + "isAccountOwner": { + "type": "boolean" + }, + "isAdminAdmin": { + "type": "boolean" + }, + "isBillingAdmin": { + "type": "boolean" + }, + "isAnalyticsAdmin": { + "type": "boolean" + }, + "isCustomizationAdmin": { + "type": "boolean" + }, + "isManageDataAdmin": { + "type": "boolean" + }, + "isCommentModeratorAdmin": { + "type": "boolean" + }, + "isAPIAdmin": { + "type": "boolean" + }, + "moderatorIds": { "items": { - "$ref": "#/components/schemas/MetaItem" + "type": "string" }, - "type": "array", - "nullable": true - } - }, - "type": "object", - "additionalProperties": {} - }, - "Record_number.number_": { - "properties": {}, - "additionalProperties": { - "type": "number", - "format": "double" - }, - "type": "object", - "description": "Construct a type with a set of properties K of type T" - }, - "QuestionDatum": { - "properties": { - "v": { - "$ref": "#/components/schemas/Record_number.number_" + "type": "array" }, - "total": { - "type": "integer", - "format": "int64" + "digestEmailFrequency": { + "type": "number", + "format": "double" + }, + "displayLabel": { + "type": "string" } }, "required": [ - "v", - "total" + "username", + "email" ], "type": "object", "additionalProperties": false }, - "Record_string.QuestionDatum_": { - "properties": {}, - "additionalProperties": { - "$ref": "#/components/schemas/QuestionDatum" - }, - "type": "object", - "description": "Construct a type with a set of properties K of type T" - }, - "QuestionResultAggregationOverall": { + "ReplaceTenantUserBody": { "properties": { - "dataByDateBucket": { - "$ref": "#/components/schemas/Record_string.QuestionDatum_" + "username": { + "type": "string" }, - "dataByUrlId": { - "$ref": "#/components/schemas/Record_string.QuestionDatum_" + "email": { + "type": "string" }, - "countsByValue": { - "$ref": "#/components/schemas/Int32Map" + "displayName": { + "type": "string" }, - "total": { - "type": "integer", - "format": "int64" + "websiteUrl": { + "type": "string" }, - "average": { + "signUpDate": { "type": "number", "format": "double" }, - "createdAt": { - "type": "string", - "format": "date-time" - } - }, - "required": [ - "total", - "createdAt" - ], - "type": "object", - "additionalProperties": false - }, - "AggregateQuestionResultsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "locale": { + "type": "string" }, - "data": { - "$ref": "#/components/schemas/QuestionResultAggregationOverall" - } - }, - "required": [ - "status", - "data" - ], - "type": "object", - "additionalProperties": false - }, - "AggregateTimeBucket": { - "type": "string", - "enum": [ - "day", - "month", - "year" - ] - }, - "Record_string.QuestionResultAggregationOverall_": { - "properties": {}, - "additionalProperties": { - "$ref": "#/components/schemas/QuestionResultAggregationOverall" - }, - "type": "object", - "description": "Construct a type with a set of properties K of type T" - }, - "BulkAggregateQuestionResultsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "verified": { + "type": "boolean" }, - "data": { - "$ref": "#/components/schemas/Record_string.QuestionResultAggregationOverall_" - } - }, - "required": [ - "status", - "data" - ], - "type": "object", - "additionalProperties": false - }, - "BulkAggregateQuestionItem": { - "properties": { - "aggId": { - "type": "string" + "loginCount": { + "type": "number", + "format": "double" }, - "questionId": { + "optedInNotifications": { + "type": "boolean" + }, + "optedInTenantNotifications": { + "type": "boolean" + }, + "hideAccountCode": { + "type": "boolean" + }, + "avatarSrc": { "type": "string" }, - "questionIds": { + "isHelpRequestAdmin": { + "type": "boolean" + }, + "isAccountOwner": { + "type": "boolean" + }, + "isAdminAdmin": { + "type": "boolean" + }, + "isBillingAdmin": { + "type": "boolean" + }, + "isAnalyticsAdmin": { + "type": "boolean" + }, + "isCustomizationAdmin": { + "type": "boolean" + }, + "isManageDataAdmin": { + "type": "boolean" + }, + "isCommentModeratorAdmin": { + "type": "boolean" + }, + "isAPIAdmin": { + "type": "boolean" + }, + "moderatorIds": { "items": { "type": "string" }, "type": "array" }, - "urlId": { + "digestEmailFrequency": { + "type": "number", + "format": "double" + }, + "displayLabel": { "type": "string" }, - "timeBucket": { - "$ref": "#/components/schemas/AggregateTimeBucket" + "createdFromUrlId": { + "type": "string" }, - "startDate": { - "type": "string", - "format": "date-time" + "createdFromTenantId": { + "type": "string" + }, + "lastLoginDate": { + "type": "number", + "format": "double" + }, + "karma": { + "type": "number", + "format": "double" } }, "required": [ - "aggId" + "username", + "email" ], "type": "object", "additionalProperties": false }, - "BulkAggregateQuestionResultsRequest": { + "UpdateTenantUserBody": { "properties": { - "aggregations": { - "items": { - "$ref": "#/components/schemas/BulkAggregateQuestionItem" - }, - "type": "array" - } - }, - "required": [ - "aggregations" - ], - "type": "object", - "additionalProperties": false - }, - "CommentLogType": { - "enum": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 24, - 25, - 26, - 27, - 28, - 29, - 30, - 31, - 32, - 33, - 34, - 35, - 36, - 37, - 38, - 39, - 40, - 41, - 42, - 43, - 44, - 45, - 46, - 47, - 48, - 49, - 50, - 51, - 52, - 53, - 54, - 55 - ], - "type": "integer" - }, - "RepeatCommentHandlingAction": { - "enum": [ - 0, - 1, - 2 - ], - "type": "integer" - }, - "RepeatCommentCheckIgnoredReason": { - "enum": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6 - ], - "type": "integer" - }, - "CommentLogData": { - "properties": { - "clearContent": { - "type": "boolean" - }, - "isDeletedUser": { - "type": "boolean" - }, - "phrase": { + "username": { "type": "string" }, - "badWord": { + "displayName": { "type": "string" }, - "word": { + "websiteUrl": { "type": "string" }, - "locale": { + "email": { "type": "string" }, - "tenantBadgeId": { - "type": "string" + "signUpDate": { + "type": "number", + "format": "double" }, - "badgeId": { - "type": "string" + "verified": { + "type": "boolean" }, - "wasLoggedIn": { + "loginCount": { + "type": "number", + "format": "double" + }, + "optedInNotifications": { "type": "boolean" }, - "foundUser": { + "optedInTenantNotifications": { "type": "boolean" }, - "verified": { + "hideAccountCode": { "type": "boolean" }, - "engine": { + "avatarSrc": { "type": "string" }, - "engineResponse": { + "isHelpRequestAdmin": { + "type": "boolean" + }, + "isAccountOwner": { + "type": "boolean" + }, + "isAdminAdmin": { + "type": "boolean" + }, + "isBillingAdmin": { + "type": "boolean" + }, + "isAnalyticsAdmin": { + "type": "boolean" + }, + "isCustomizationAdmin": { + "type": "boolean" + }, + "isManageDataAdmin": { + "type": "boolean" + }, + "isCommentModeratorAdmin": { + "type": "boolean" + }, + "isAPIAdmin": { + "type": "boolean" + }, + "moderatorIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "locale": { "type": "string" }, - "engineTokens": { + "digestEmailFrequency": { "type": "number", "format": "double" }, - "trustFactor": { - "type": "number", - "format": "double" + "displayLabel": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "TenantPackage": { + "properties": { + "_id": { + "type": "string" }, - "rule": { - "$ref": "#/components/schemas/SpamRule" + "name": { + "type": "string" }, - "userId": { + "tenantId": { "type": "string" }, - "subscribers": { - "type": "number", - "format": "double" + "createdAt": { + "type": "string", + "format": "date-time" }, - "notificationCount": { - "type": "number", - "format": "double" + "templateId": { + "type": "string" }, - "votesBefore": { + "monthlyCostUSD": { "type": "number", "format": "double", "nullable": true }, - "votesUpBefore": { + "yearlyCostUSD": { "type": "number", "format": "double", "nullable": true }, - "votesDownBefore": { - "type": "number", - "format": "double", + "monthlyStripePlanId": { + "type": "string", "nullable": true }, - "votesAfter": { - "type": "number", - "format": "double", + "yearlyStripePlanId": { + "type": "string", "nullable": true }, - "votesUpAfter": { + "maxMonthlyPageLoads": { "type": "number", - "format": "double", - "nullable": true + "format": "double" }, - "votesDownAfter": { + "maxMonthlyAPICredits": { "type": "number", - "format": "double", - "nullable": true + "format": "double" }, - "repeatAction": { - "$ref": "#/components/schemas/RepeatCommentHandlingAction" + "maxMonthlySmallWidgetsCredits": { + "type": "number", + "format": "double" }, - "reason": { - "$ref": "#/components/schemas/RepeatCommentCheckIgnoredReason" + "maxMonthlyComments": { + "type": "number", + "format": "double" }, - "otherData": {}, - "spamBefore": { - "type": "boolean" + "maxConcurrentUsers": { + "type": "number", + "format": "double" }, - "spamAfter": { - "type": "boolean" + "maxTenantUsers": { + "type": "number", + "format": "double" }, - "permanentFlag": { - "type": "string", - "enum": [ - "permanent" - ], - "nullable": false + "maxSSOUsers": { + "type": "number", + "format": "double" }, - "approvedBefore": { - "type": "boolean" + "maxModerators": { + "type": "number", + "format": "double" }, - "approvedAfter": { - "type": "boolean" + "maxDomains": { + "type": "number", + "format": "double" }, - "reviewedBefore": { - "type": "boolean" - }, - "reviewedAfter": { - "type": "boolean" - }, - "textBefore": { - "type": "string" - }, - "textAfter": { - "type": "string" - }, - "expireBefore": { - "type": "string", - "format": "date-time", - "nullable": true - }, - "expireAfter": { - "type": "string", - "format": "date-time", - "nullable": true - }, - "flagCountBefore": { + "maxWhiteLabeledTenants": { "type": "number", - "format": "double", - "nullable": true + "format": "double" }, - "trustFactorBefore": { + "maxMonthlyEventLogRequests": { "type": "number", "format": "double" }, - "trustFactorAfter": { + "maxCustomCollectionSize": { "type": "number", "format": "double" }, - "referencedCommentId": { - "type": "string" - }, - "invalidLocale": { - "type": "string" - }, - "detectedLocale": { - "type": "string" + "hasWhiteLabeling": { + "type": "boolean" }, - "detectedLanguage": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "CommentLogEntry": { - "properties": { - "d": { - "type": "string", - "format": "date-time" + "hasDebranding": { + "type": "boolean" }, - "t": { - "$ref": "#/components/schemas/CommentLogType" + "hasLLMSpamDetection": { + "type": "boolean" }, - "da": { - "$ref": "#/components/schemas/CommentLogData" - } - }, - "required": [ - "d", - "t" - ], - "type": "object", - "additionalProperties": false - }, - "FComment": { - "properties": { - "_id": { + "forWhoText": { "type": "string" }, - "tenantId": { - "type": "string" + "featureTaglines": { + "items": { + "type": "string" + }, + "type": "array" }, - "urlId": { - "type": "string" + "hasAuditing": { + "type": "boolean" }, - "urlIdRaw": { - "type": "string" + "hasFlexPricing": { + "type": "boolean" }, - "url": { - "type": "string" + "enableSAML": { + "type": "boolean" }, - "pageTitle": { - "type": "string", - "nullable": true + "enableCanvasLTI": { + "type": "boolean" }, - "userId": { - "allOf": [ - { - "$ref": "#/components/schemas/UserId" - } - ], - "nullable": true + "flexPageLoadCostCents": { + "type": "number", + "format": "double" }, - "anonUserId": { - "type": "string", - "nullable": true + "flexPageLoadUnit": { + "type": "number", + "format": "double" }, - "commenterEmail": { - "type": "string", - "nullable": true + "flexCommentCostCents": { + "type": "number", + "format": "double" }, - "commenterName": { - "type": "string" + "flexCommentUnit": { + "type": "number", + "format": "double" }, - "commenterLink": { - "type": "string", - "nullable": true + "flexSSOUserCostCents": { + "type": "number", + "format": "double" }, - "comment": { - "type": "string" + "flexSSOUserUnit": { + "type": "number", + "format": "double" }, - "commentHTML": { - "type": "string" + "flexAPICreditCostCents": { + "type": "number", + "format": "double" }, - "parentId": { - "type": "string", - "nullable": true + "flexAPICreditUnit": { + "type": "number", + "format": "double" }, - "date": { - "type": "string", - "format": "date-time", - "nullable": true + "flexSmallWidgetsCreditCostCents": { + "type": "number", + "format": "double" }, - "localDateString": { - "type": "string", - "nullable": true + "flexSmallWidgetsCreditUnit": { + "type": "number", + "format": "double" }, - "localDateHours": { - "type": "integer", - "format": "int32", - "nullable": true + "flexModeratorCostCents": { + "type": "number", + "format": "double" }, - "votes": { - "type": "integer", - "format": "int32", - "nullable": true + "flexModeratorUnit": { + "type": "number", + "format": "double" }, - "votesUp": { - "type": "integer", - "format": "int32", - "nullable": true + "flexAdminCostCents": { + "type": "number", + "format": "double" }, - "votesDown": { - "type": "integer", - "format": "int32", - "nullable": true + "flexAdminUnit": { + "type": "number", + "format": "double" }, - "expireAt": { - "type": "string", - "format": "date-time", - "nullable": true + "flexDomainCostCents": { + "type": "number", + "format": "double" }, - "verified": { - "type": "boolean" + "flexDomainUnit": { + "type": "number", + "format": "double" }, - "verifiedDate": { - "type": "string", - "format": "date-time", - "nullable": true + "flexChatGPTCostCents": { + "type": "number", + "format": "double" }, - "verificationId": { - "type": "string", - "nullable": true + "flexChatGPTUnit": { + "type": "number", + "format": "double" }, - "notificationSentForParent": { - "type": "boolean" + "flexLLMCostCents": { + "type": "number", + "format": "double" }, - "notificationSentForParentTenant": { - "type": "boolean" + "flexLLMUnit": { + "type": "number", + "format": "double" }, - "reviewed": { - "type": "boolean" + "flexMinimumCostCents": { + "type": "number", + "format": "double" }, - "imported": { - "type": "boolean" + "flexManagedTenantCostCents": { + "type": "number", + "format": "double" }, - "externalId": { - "type": "string" + "flexSSOAdminCostCents": { + "type": "number", + "format": "double" }, - "externalParentId": { - "type": "string", - "nullable": true + "flexSSOAdminUnit": { + "type": "number", + "format": "double" }, - "avatarSrc": { - "type": "string", - "nullable": true + "flexSSOModeratorCostCents": { + "type": "number", + "format": "double" }, - "isSpam": { - "type": "boolean" + "flexSSOModeratorUnit": { + "type": "number", + "format": "double" }, - "permNotSpam": { + "isSSOBillingMonthlyActiveUsers": { "type": "boolean" }, - "aiDeterminedSpam": { + "hasAIAgents": { "type": "boolean" }, - "hasImages": { - "type": "boolean" - }, - "pageNumber": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "pageNumberOF": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "pageNumberNF": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "hasLinks": { - "type": "boolean" - }, - "hasCode": { - "type": "boolean" - }, - "approved": { - "type": "boolean" - }, - "locale": { - "type": "string", - "nullable": true - }, - "isDeleted": { - "type": "boolean" - }, - "isDeletedUser": { - "type": "boolean" - }, - "isBannedUser": { - "type": "boolean" - }, - "isByAdmin": { - "type": "boolean" - }, - "isByModerator": { - "type": "boolean" - }, - "isPinned": { - "type": "boolean", - "nullable": true - }, - "isLocked": { - "type": "boolean", - "nullable": true - }, - "flagCount": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "rating": { + "maxAIAgents": { "type": "number", - "format": "double", - "nullable": true - }, - "displayLabel": { - "type": "string", - "nullable": true - }, - "fromProductId": { - "type": "integer", - "format": "int32" - }, - "meta": { - "properties": { - "wpId": { - "type": "string" - }, - "wpUserId": { - "type": "string" - }, - "wpPostId": { - "type": "string" - } - }, - "additionalProperties": {}, - "type": "object", - "nullable": true - }, - "ipHash": { - "type": "string" - }, - "mentions": { - "items": { - "$ref": "#/components/schemas/CommentUserMentionInfo" - }, - "type": "array" - }, - "hashTags": { - "items": { - "$ref": "#/components/schemas/CommentUserHashTagInfo" - }, - "type": "array" - }, - "badges": { - "items": { - "$ref": "#/components/schemas/CommentUserBadgeInfo" - }, - "type": "array", - "nullable": true - }, - "domain": { - "allOf": [ - { - "$ref": "#/components/schemas/FDomain" - } - ], - "nullable": true - }, - "veteranBadgeProcessed": { - "type": "string" - }, - "moderationGroupIds": { - "items": { - "type": "string" - }, - "type": "array", - "nullable": true - }, - "didProcessBadges": { - "type": "boolean" - }, - "fromOfflineRestore": { - "type": "boolean" - }, - "autoplayJobId": { - "type": "string" - }, - "autoplayDelayMS": { - "type": "integer", - "format": "int64" - }, - "feedbackIds": { - "items": { - "type": "string" - }, - "type": "array" - }, - "logs": { - "items": { - "$ref": "#/components/schemas/CommentLogEntry" - }, - "type": "array", - "nullable": true - }, - "groupIds": { - "items": { - "type": "string" - }, - "type": "array", - "nullable": true - }, - "viewCount": { - "type": "integer", - "format": "int64", - "nullable": true - }, - "requiresVerification": { - "type": "boolean" + "format": "double" }, - "editKey": { - "type": "string" + "aiAgentDailyBudgetCents": { + "type": "number", + "format": "double" }, - "tosAcceptedAt": { - "type": "string", - "format": "date-time" + "aiAgentMonthlyBudgetCents": { + "type": "number", + "format": "double" } }, "required": [ "_id", + "name", "tenantId", - "urlId", - "url", - "commenterName", - "comment", - "commentHTML", - "date", - "verified", - "approved", - "locale" + "createdAt", + "monthlyCostUSD", + "yearlyCostUSD", + "monthlyStripePlanId", + "yearlyStripePlanId", + "maxMonthlyPageLoads", + "maxMonthlyAPICredits", + "maxMonthlySmallWidgetsCredits", + "maxMonthlyComments", + "maxConcurrentUsers", + "maxTenantUsers", + "maxSSOUsers", + "maxModerators", + "maxDomains", + "maxWhiteLabeledTenants", + "maxMonthlyEventLogRequests", + "maxCustomCollectionSize", + "hasWhiteLabeling", + "hasDebranding", + "hasLLMSpamDetection", + "forWhoText", + "featureTaglines", + "hasAuditing", + "hasFlexPricing" ], "type": "object", "additionalProperties": false }, - "FindCommentsByRangeItem": { + "GetTenantPackageResponse": { "properties": { - "comment": { - "allOf": [ - { - "$ref": "#/components/schemas/FComment" - } - ], - "nullable": true + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "result": { - "$ref": "#/components/schemas/QuestionResult" + "tenantPackage": { + "$ref": "#/components/schemas/TenantPackage" } }, "required": [ - "comment", - "result" + "status", + "tenantPackage" ], "type": "object", "additionalProperties": false }, - "FindCommentsByRangeResponse": { + "GetTenantPackagesResponse": { "properties": { - "results": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "tenantPackages": { "items": { - "$ref": "#/components/schemas/FindCommentsByRangeItem" + "$ref": "#/components/schemas/TenantPackage" }, "type": "array" - }, - "createdAt": { - "type": "string", - "format": "date-time" } }, "required": [ - "results", - "createdAt" + "status", + "tenantPackages" ], "type": "object", "additionalProperties": false }, - "CombineQuestionResultsWithCommentsResponse": { + "CreateTenantPackageResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "data": { - "$ref": "#/components/schemas/FindCommentsByRangeResponse" + "tenantPackage": { + "$ref": "#/components/schemas/TenantPackage" } }, "required": [ "status", - "data" + "tenantPackage" ], "type": "object", "additionalProperties": false }, - "QuestionConfig": { + "CreateTenantPackageBody": { "properties": { - "_id": { - "type": "string" - }, - "tenantId": { - "type": "string" - }, "name": { "type": "string" }, - "question": { - "type": "string" - }, - "summaryLabel": { - "type": "string" + "monthlyCostUSD": { + "type": "number", + "format": "double", + "nullable": true }, - "helpText": { - "type": "string" + "yearlyCostUSD": { + "type": "number", + "format": "double", + "nullable": true }, - "createdAt": { + "monthlyStripePlanId": { "type": "string", - "format": "date-time" + "nullable": true }, - "createdBy": { - "type": "string" + "yearlyStripePlanId": { + "type": "string", + "nullable": true }, - "usedCount": { + "maxMonthlyPageLoads": { "type": "number", "format": "double" }, - "lastUsed": { - "type": "string", - "format": "date-time" - }, - "type": { - "type": "string" - }, - "numStars": { + "maxMonthlyAPICredits": { "type": "number", "format": "double" }, - "min": { + "maxMonthlySmallWidgetsCredits": { "type": "number", "format": "double" }, - "max": { + "maxMonthlyComments": { "type": "number", "format": "double" }, - "defaultValue": { + "maxConcurrentUsers": { "type": "number", "format": "double" }, - "labelNegative": { - "type": "string" - }, - "labelPositive": { - "type": "string" - }, - "customOptions": { - "items": { - "properties": { - "imageSrc": { - "type": "string" - }, - "name": { - "type": "string" - } - }, - "required": [ - "imageSrc", - "name" - ], - "type": "object" - }, - "type": "array" - }, - "subQuestionIds": { - "items": { - "type": "string" - }, - "type": "array" - }, - "alwaysShowSubQuestions": { - "type": "boolean" - }, - "reportingOrder": { + "maxTenantUsers": { "type": "number", "format": "double" - } - }, - "required": [ - "_id", - "tenantId", - "name", - "question", - "helpText", - "createdAt", - "createdBy", - "usedCount", - "lastUsed", - "type", - "numStars", - "min", - "max", - "defaultValue", - "labelNegative", - "labelPositive", - "customOptions", - "subQuestionIds", - "alwaysShowSubQuestions", - "reportingOrder" - ], - "type": "object", - "additionalProperties": false - }, - "GetQuestionConfigResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "questionConfig": { - "$ref": "#/components/schemas/QuestionConfig" - } - }, - "required": [ - "status", - "questionConfig" - ], - "type": "object", - "additionalProperties": false - }, - "GetQuestionConfigsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "questionConfigs": { - "items": { - "$ref": "#/components/schemas/QuestionConfig" - }, - "type": "array" - } - }, - "required": [ - "status", - "questionConfigs" - ], - "type": "object", - "additionalProperties": false - }, - "CreateQuestionConfigResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "questionConfig": { - "$ref": "#/components/schemas/QuestionConfig" - } - }, - "required": [ - "status", - "questionConfig" - ], - "type": "object", - "additionalProperties": false - }, - "CreateQuestionConfigBody": { - "properties": { - "name": { - "type": "string" - }, - "question": { - "type": "string" }, - "helpText": { - "type": "string" + "maxSSOUsers": { + "type": "number", + "format": "double" }, - "type": { - "type": "string" + "maxModerators": { + "type": "number", + "format": "double" }, - "numStars": { + "maxDomains": { "type": "number", "format": "double" }, - "min": { + "maxWhiteLabeledTenants": { "type": "number", "format": "double" }, - "max": { + "maxMonthlyEventLogRequests": { "type": "number", "format": "double" }, - "defaultValue": { + "maxCustomCollectionSize": { "type": "number", "format": "double" }, - "labelNegative": { - "type": "string" + "hasWhiteLabeling": { + "type": "boolean" }, - "labelPositive": { - "type": "string" + "hasDebranding": { + "type": "boolean" }, - "customOptions": { - "items": { - "properties": { - "imageSrc": { - "type": "string" - }, - "name": { - "type": "string" - } - }, - "required": [ - "imageSrc", - "name" - ], - "type": "object" - }, - "type": "array" + "hasLLMSpamDetection": { + "type": "boolean" }, - "subQuestionIds": { + "forWhoText": { + "type": "string" + }, + "featureTaglines": { "items": { "type": "string" }, "type": "array" }, - "alwaysShowSubQuestions": { + "hasAuditing": { "type": "boolean" }, - "reportingOrder": { - "type": "number", - "format": "double" - } - }, - "required": [ - "name", - "question", - "type", - "reportingOrder" - ], - "type": "object", - "additionalProperties": {} - }, - "UpdateQuestionConfigBody": { - "properties": { - "name": { - "type": "string" - }, - "question": { - "type": "string" - }, - "helpText": { - "type": "string" + "hasFlexPricing": { + "type": "boolean" }, - "type": { - "type": "string" + "enableSAML": { + "type": "boolean" }, - "numStars": { + "flexPageLoadCostCents": { "type": "number", "format": "double" }, - "min": { + "flexPageLoadUnit": { "type": "number", "format": "double" }, - "max": { + "flexCommentCostCents": { "type": "number", "format": "double" }, - "defaultValue": { + "flexCommentUnit": { "type": "number", "format": "double" }, - "labelNegative": { - "type": "string" + "flexSSOUserCostCents": { + "type": "number", + "format": "double" }, - "labelPositive": { - "type": "string" + "flexSSOUserUnit": { + "type": "number", + "format": "double" }, - "customOptions": { - "items": { - "properties": { - "imageSrc": { - "type": "string" - }, - "name": { - "type": "string" - } - }, - "required": [ - "imageSrc", - "name" - ], - "type": "object" - }, - "type": "array" + "flexAPICreditCostCents": { + "type": "number", + "format": "double" }, - "subQuestionIds": { - "items": { - "type": "string" - }, - "type": "array" + "flexAPICreditUnit": { + "type": "number", + "format": "double" }, - "alwaysShowSubQuestions": { - "type": "boolean" + "flexSmallWidgetsCreditCostCents": { + "type": "number", + "format": "double" }, - "reportingOrder": { + "flexSmallWidgetsCreditUnit": { "type": "number", "format": "double" - } - }, - "type": "object", - "additionalProperties": {} - }, - "PendingCommentToSyncOutbound": { - "properties": { - "_id": { - "type": "string" }, - "commentId": { - "type": "string" + "flexModeratorCostCents": { + "type": "number", + "format": "double" }, - "comment": { - "$ref": "#/components/schemas/FComment" + "flexModeratorUnit": { + "type": "number", + "format": "double" }, - "externalId": { - "type": "string", - "nullable": true + "flexAdminCostCents": { + "type": "number", + "format": "double" }, - "createdAt": { - "type": "string", - "format": "date-time" + "flexAdminUnit": { + "type": "number", + "format": "double" }, - "tenantId": { - "type": "string" + "flexDomainCostCents": { + "type": "number", + "format": "double" }, - "attemptCount": { + "flexDomainUnit": { "type": "number", "format": "double" }, - "nextAttemptAt": { - "type": "string", - "format": "date-time" + "flexLLMCostCents": { + "type": "number", + "format": "double" }, - "eventType": { + "flexLLMUnit": { "type": "number", "format": "double" }, - "type": { + "flexMinimumCostCents": { "type": "number", "format": "double" }, - "domain": { - "type": "string" + "flexManagedTenantCostCents": { + "type": "number", + "format": "double" }, - "lastError": { - "additionalProperties": false, - "type": "object" + "flexSSOAdminCostCents": { + "type": "number", + "format": "double" }, - "webhookId": { - "type": "string" - } - }, - "required": [ - "_id", - "commentId", - "externalId", - "createdAt", - "tenantId", - "attemptCount", - "nextAttemptAt", - "eventType", - "type", - "domain", - "lastError" - ], - "type": "object", - "additionalProperties": false - }, - "GetPendingWebhookEventsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "flexSSOAdminUnit": { + "type": "number", + "format": "double" }, - "pendingWebhookEvents": { - "items": { - "$ref": "#/components/schemas/PendingCommentToSyncOutbound" - }, - "type": "array" - } - }, - "required": [ - "status", - "pendingWebhookEvents" - ], - "type": "object", - "additionalProperties": false - }, - "GetPendingWebhookEventCountResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "flexSSOModeratorCostCents": { + "type": "number", + "format": "double" }, - "count": { + "flexSSOModeratorUnit": { "type": "number", "format": "double" } }, "required": [ - "status", - "count" + "name", + "maxMonthlyPageLoads", + "maxMonthlyAPICredits", + "maxMonthlyComments", + "maxConcurrentUsers", + "maxTenantUsers", + "maxSSOUsers", + "maxModerators", + "maxDomains", + "hasDebranding", + "forWhoText", + "featureTaglines", + "hasFlexPricing" ], "type": "object", "additionalProperties": false }, - "GetNotificationsResponse": { + "ReplaceTenantPackageBody": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "name": { + "type": "string" }, - "notifications": { - "items": { - "$ref": "#/components/schemas/UserNotification" - }, - "type": "array" - } - }, - "required": [ - "status", - "notifications" - ], - "type": "object", - "additionalProperties": false - }, - "GetNotificationCountResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "monthlyCostUSD": { + "type": "number", + "format": "double" }, - "count": { + "yearlyCostUSD": { "type": "number", "format": "double" - } - }, - "required": [ - "status", - "count" - ], - "type": "object", - "additionalProperties": false - }, - "UpdateNotificationBody": { - "properties": { - "viewed": { - "type": "boolean" }, - "optedOut": { - "type": "boolean" - } - }, - "type": "object", - "additionalProperties": {} - }, - "UserNotificationCount": { - "properties": { - "_id": { - "type": "string" + "maxMonthlyPageLoads": { + "type": "number", + "format": "double" }, - "count": { + "maxMonthlyAPICredits": { "type": "number", "format": "double" }, - "createdAt": { - "type": "string", - "format": "date-time" + "maxMonthlyComments": { + "type": "number", + "format": "double" }, - "expireAt": { - "type": "string", - "format": "date-time" - } - }, - "required": [ - "_id", - "count", - "createdAt", - "expireAt" - ], - "type": "object", - "additionalProperties": false - }, - "GetCachedNotificationCountResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "maxConcurrentUsers": { + "type": "number", + "format": "double" }, - "data": { - "$ref": "#/components/schemas/UserNotificationCount" - } - }, - "required": [ - "status", - "data" - ], - "type": "object", - "additionalProperties": false - }, - "Moderator": { - "properties": { - "_id": { - "type": "string" + "maxTenantUsers": { + "type": "number", + "format": "double" }, - "tenantId": { - "type": "string" + "maxSSOUsers": { + "type": "number", + "format": "double" }, - "name": { - "type": "string", - "nullable": true + "maxModerators": { + "type": "number", + "format": "double" }, - "userId": { - "type": "string", - "nullable": true + "maxDomains": { + "type": "number", + "format": "double" }, - "acceptedInvite": { + "maxCustomCollectionSize": { + "type": "number", + "format": "double" + }, + "hasDebranding": { "type": "boolean" }, - "email": { - "type": "string", - "nullable": true + "forWhoText": { + "type": "string" }, - "markReviewedCount": { + "featureTaglines": { + "items": { + "type": "string" + }, + "type": "array" + }, + "hasFlexPricing": { + "type": "boolean" + }, + "flexPageLoadCostCents": { "type": "number", "format": "double" }, - "deletedCount": { + "flexPageLoadUnit": { "type": "number", "format": "double" }, - "markedSpamCount": { + "flexCommentCostCents": { "type": "number", "format": "double" }, - "markedNotSpamCount": { + "flexCommentUnit": { "type": "number", "format": "double" }, - "approvedCount": { + "flexSSOUserCostCents": { "type": "number", "format": "double" }, - "unApprovedCount": { + "flexSSOUserUnit": { "type": "number", "format": "double" }, - "editedCount": { + "flexAPICreditCostCents": { "type": "number", "format": "double" }, - "bannedCount": { + "flexAPICreditUnit": { "type": "number", "format": "double" }, - "unFlaggedCount": { + "flexModeratorCostCents": { "type": "number", "format": "double" }, - "verificationId": { - "type": "string", - "nullable": true - }, - "createdAt": { - "type": "string", - "format": "date-time" + "flexModeratorUnit": { + "type": "number", + "format": "double" }, - "moderationGroupIds": { - "items": { - "type": "string" - }, - "type": "array", - "nullable": true + "flexAdminCostCents": { + "type": "number", + "format": "double" }, - "isEmailSuppressed": { - "type": "boolean" - } - }, - "required": [ - "_id", - "tenantId", - "name", - "userId", - "acceptedInvite", - "email", - "markReviewedCount", - "deletedCount", - "markedSpamCount", - "markedNotSpamCount", - "approvedCount", - "unApprovedCount", - "editedCount", - "bannedCount", - "unFlaggedCount", - "verificationId", - "createdAt", - "moderationGroupIds" - ], - "type": "object", - "additionalProperties": false - }, - "GetModeratorResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "flexAdminUnit": { + "type": "number", + "format": "double" }, - "moderator": { - "$ref": "#/components/schemas/Moderator" - } - }, - "required": [ - "status", - "moderator" - ], - "type": "object", - "additionalProperties": false - }, - "GetModeratorsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "flexDomainCostCents": { + "type": "number", + "format": "double" }, - "moderators": { - "items": { - "$ref": "#/components/schemas/Moderator" - }, - "type": "array" - } - }, - "required": [ - "status", - "moderators" - ], - "type": "object", - "additionalProperties": false - }, - "CreateModeratorResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "flexDomainUnit": { + "type": "number", + "format": "double" }, - "moderator": { - "$ref": "#/components/schemas/Moderator" + "flexMinimumCostCents": { + "type": "number", + "format": "double" } }, "required": [ - "status", - "moderator" + "name", + "monthlyCostUSD", + "yearlyCostUSD", + "maxMonthlyPageLoads", + "maxMonthlyAPICredits", + "maxMonthlyComments", + "maxConcurrentUsers", + "maxTenantUsers", + "maxSSOUsers", + "maxModerators", + "maxDomains", + "hasDebranding", + "forWhoText", + "featureTaglines", + "hasFlexPricing" ], "type": "object", "additionalProperties": false }, - "CreateModeratorBody": { + "UpdateTenantPackageBody": { "properties": { "name": { "type": "string" }, - "email": { - "type": "string" + "monthlyCostUSD": { + "type": "number", + "format": "double" }, - "userId": { - "type": "string" + "yearlyCostUSD": { + "type": "number", + "format": "double" }, - "moderationGroupIds": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "name", - "email" - ], - "type": "object", - "additionalProperties": {} - }, - "UpdateModeratorBody": { - "properties": { - "name": { - "type": "string" + "maxMonthlyPageLoads": { + "type": "number", + "format": "double" }, - "email": { - "type": "string" + "maxMonthlyAPICredits": { + "type": "number", + "format": "double" }, - "userId": { - "type": "string" + "maxMonthlyComments": { + "type": "number", + "format": "double" }, - "moderationGroupIds": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": {} - }, - "TenantHashTag": { - "properties": { - "_id": { - "type": "string" + "maxConcurrentUsers": { + "type": "number", + "format": "double" }, - "createdAt": { - "type": "string", - "format": "date-time" + "maxTenantUsers": { + "type": "number", + "format": "double" }, - "tenantId": { - "type": "string" + "maxSSOUsers": { + "type": "number", + "format": "double" }, - "tag": { - "type": "string" + "maxModerators": { + "type": "number", + "format": "double" }, - "url": { + "maxDomains": { + "type": "number", + "format": "double" + }, + "maxCustomCollectionSize": { + "type": "number", + "format": "double" + }, + "hasDebranding": { + "type": "boolean" + }, + "hasWhiteLabeling": { + "type": "boolean" + }, + "forWhoText": { "type": "string" - } - }, - "required": [ - "_id", - "createdAt", - "tenantId", - "tag" - ], - "type": "object", - "additionalProperties": false - }, - "GetHashTagsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" }, - "hashTags": { + "featureTaglines": { "items": { - "$ref": "#/components/schemas/TenantHashTag" + "type": "string" }, "type": "array" - } - }, - "required": [ - "status", - "hashTags" - ], - "type": "object", - "additionalProperties": false - }, - "CreateHashTagResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" }, - "hashTag": { - "$ref": "#/components/schemas/TenantHashTag" + "hasFlexPricing": { + "type": "boolean" + }, + "flexPageLoadCostCents": { + "type": "number", + "format": "double" + }, + "flexPageLoadUnit": { + "type": "number", + "format": "double" + }, + "flexCommentCostCents": { + "type": "number", + "format": "double" + }, + "flexCommentUnit": { + "type": "number", + "format": "double" + }, + "flexSSOUserCostCents": { + "type": "number", + "format": "double" + }, + "flexSSOUserUnit": { + "type": "number", + "format": "double" + }, + "flexAPICreditCostCents": { + "type": "number", + "format": "double" + }, + "flexAPICreditUnit": { + "type": "number", + "format": "double" + }, + "flexModeratorCostCents": { + "type": "number", + "format": "double" + }, + "flexModeratorUnit": { + "type": "number", + "format": "double" + }, + "flexAdminCostCents": { + "type": "number", + "format": "double" + }, + "flexAdminUnit": { + "type": "number", + "format": "double" + }, + "flexDomainCostCents": { + "type": "number", + "format": "double" + }, + "flexDomainUnit": { + "type": "number", + "format": "double" + }, + "flexMinimumCostCents": { + "type": "number", + "format": "double" } }, - "required": [ - "status", - "hashTag" - ], "type": "object", "additionalProperties": false }, - "CreateHashTagBody": { + "APITenantDailyUsage": { "properties": { - "tenantId": { + "id": { "type": "string" }, - "tag": { + "tenantId": { "type": "string" }, - "url": { - "type": "string" + "yearNumber": { + "type": "number", + "format": "double" + }, + "monthNumber": { + "type": "number", + "format": "double" + }, + "dayNumber": { + "type": "number", + "format": "double" + }, + "commentFetchCount": { + "type": "number", + "format": "double" + }, + "commentCreateCount": { + "type": "number", + "format": "double" + }, + "conversationCreateCount": { + "type": "number", + "format": "double" + }, + "voteCount": { + "type": "number", + "format": "double" + }, + "accountCreatedCount": { + "type": "number", + "format": "double" + }, + "userMentionSearch": { + "type": "number", + "format": "double" + }, + "hashTagSearch": { + "type": "number", + "format": "double" + }, + "gifSearchTrending": { + "type": "number", + "format": "double" + }, + "gifSearch": { + "type": "number", + "format": "double" + }, + "apiCreditsUsed": { + "type": "number", + "format": "double" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "billed": { + "type": "boolean" + }, + "ignored": { + "type": "boolean" + }, + "apiErrorCount": { + "type": "number", + "format": "double" } }, "required": [ - "tag" + "id", + "tenantId", + "yearNumber", + "monthNumber", + "dayNumber", + "commentFetchCount", + "commentCreateCount", + "conversationCreateCount", + "voteCount", + "accountCreatedCount", + "userMentionSearch", + "hashTagSearch", + "gifSearchTrending", + "gifSearch", + "apiCreditsUsed", + "createdAt", + "billed", + "ignored", + "apiErrorCount" ], "type": "object", "additionalProperties": false }, - "BulkCreateHashTagsResponse": { + "GetTenantDailyUsagesResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "results": { + "tenantDailyUsages": { "items": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateHashTagResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APITenantDailyUsage" }, "type": "array" } }, "required": [ "status", - "results" + "tenantDailyUsages" ], "type": "object", "additionalProperties": false }, - "BulkCreateHashTagsBody": { + "MetaItem": { "properties": { - "tenantId": { + "name": { "type": "string" }, - "tags": { + "values": { "items": { - "properties": { - "url": { - "type": "string" - }, - "tag": { - "type": "string" - } - }, - "required": [ - "tag" - ], - "type": "object" + "type": "string" }, "type": "array" } }, "required": [ - "tags" + "name", + "values" ], "type": "object", "additionalProperties": false }, - "UpdateHashTagResponse": { + "QuestionResult": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "hashTag": { - "$ref": "#/components/schemas/TenantHashTag" + "_id": { + "type": "string" + }, + "tenantId": { + "type": "string" + }, + "urlId": { + "type": "string" + }, + "anonUserId": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "value": { + "type": "integer", + "format": "int32" + }, + "commentId": { + "type": "string", + "nullable": true + }, + "questionId": { + "type": "string" + }, + "meta": { + "items": { + "$ref": "#/components/schemas/MetaItem" + }, + "type": "array", + "nullable": true + }, + "ipHash": { + "type": "string" } }, "required": [ - "status", - "hashTag" + "_id", + "tenantId", + "urlId", + "anonUserId", + "userId", + "createdAt", + "value", + "questionId", + "ipHash" ], "type": "object", "additionalProperties": false }, - "UpdateHashTagBody": { + "GetQuestionResultResponse": { "properties": { - "tenantId": { - "type": "string" - }, - "url": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "tag": { - "type": "string" + "questionResult": { + "$ref": "#/components/schemas/QuestionResult" } }, + "required": [ + "status", + "questionResult" + ], "type": "object", "additionalProperties": false }, - "GetFeedPostsResponse": { + "GetQuestionResultsResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "feedPosts": { + "questionResults": { "items": { - "$ref": "#/components/schemas/FeedPost" + "$ref": "#/components/schemas/QuestionResult" }, "type": "array" } }, "required": [ "status", - "feedPosts" + "questionResults" ], "type": "object", "additionalProperties": false }, - "CreateFeedPostsResponse": { + "CreateQuestionResultResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "feedPost": { - "$ref": "#/components/schemas/FeedPost" + "questionResult": { + "$ref": "#/components/schemas/QuestionResult" } }, "required": [ "status", - "feedPost" + "questionResult" ], "type": "object", "additionalProperties": false }, - "Record_string.unknown_": { - "properties": {}, - "additionalProperties": {}, - "type": "object", - "description": "Construct a type with a set of properties K of type T" - }, - "Record_string.Record_string.string__": { - "properties": {}, - "additionalProperties": { - "$ref": "#/components/schemas/Record_string.string_" - }, - "type": "object", - "description": "Construct a type with a set of properties K of type T" - }, - "EmailTemplateDefinition": { + "CreateQuestionResultBody": { "properties": { - "emailTemplateId": { + "urlId": { "type": "string" }, - "defaultTestData": { - "$ref": "#/components/schemas/Record_string.unknown_" + "value": { + "type": "number", + "format": "double" }, - "defaultTranslationsByLocale": { - "$ref": "#/components/schemas/Record_string.Record_string.string__" + "questionId": { + "type": "string" }, - "defaultEJS": { + "anonUserId": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "commentId": { "type": "string" + }, + "meta": { + "items": { + "$ref": "#/components/schemas/MetaItem" + }, + "type": "array", + "nullable": true } }, "required": [ - "emailTemplateId", - "defaultTestData", - "defaultTranslationsByLocale", - "defaultEJS" + "urlId", + "value", + "questionId" ], "type": "object", - "additionalProperties": false + "additionalProperties": {} }, - "GetEmailTemplateDefinitionsResponse": { + "UpdateQuestionResultBody": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "urlId": { + "type": "string" }, - "definitions": { + "anonUserId": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "value": { + "type": "number", + "format": "double" + }, + "commentId": { + "type": "string" + }, + "questionId": { + "type": "string" + }, + "meta": { "items": { - "$ref": "#/components/schemas/EmailTemplateDefinition" + "$ref": "#/components/schemas/MetaItem" }, - "type": "array" + "type": "array", + "nullable": true + } + }, + "type": "object", + "additionalProperties": {} + }, + "Record_number.number_": { + "properties": {}, + "additionalProperties": { + "type": "number", + "format": "double" + }, + "type": "object", + "description": "Construct a type with a set of properties K of type T" + }, + "QuestionDatum": { + "properties": { + "v": { + "$ref": "#/components/schemas/Record_number.number_" + }, + "total": { + "type": "integer", + "format": "int64" } }, "required": [ - "status", - "definitions" + "v", + "total" ], "type": "object", "additionalProperties": false }, - "EmailTemplateRenderErrorResponse": { + "Record_string.QuestionDatum_": { + "properties": {}, + "additionalProperties": { + "$ref": "#/components/schemas/QuestionDatum" + }, + "type": "object", + "description": "Construct a type with a set of properties K of type T" + }, + "QuestionResultAggregationOverall": { "properties": { - "id": { - "type": "string" + "dataByDateBucket": { + "$ref": "#/components/schemas/Record_string.QuestionDatum_" }, - "tenantId": { - "type": "string" + "dataByUrlId": { + "$ref": "#/components/schemas/Record_string.QuestionDatum_" }, - "customTemplateId": { - "type": "string" + "countsByValue": { + "$ref": "#/components/schemas/Int32Map" }, - "error": { - "type": "string" + "total": { + "type": "integer", + "format": "int64" }, - "count": { + "average": { "type": "number", "format": "double" }, "createdAt": { "type": "string", "format": "date-time" - }, - "lastOccurredAt": { - "type": "string", - "format": "date-time" } }, "required": [ - "id", - "tenantId", - "customTemplateId", - "error", - "count", - "createdAt", - "lastOccurredAt" + "total", + "createdAt" ], "type": "object", "additionalProperties": false }, - "GetEmailTemplateRenderErrorsResponse": { + "AggregateQuestionResultsResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "renderErrors": { - "items": { - "$ref": "#/components/schemas/EmailTemplateRenderErrorResponse" - }, - "type": "array" + "data": { + "$ref": "#/components/schemas/QuestionResultAggregationOverall" } }, "required": [ "status", - "renderErrors" + "data" ], "type": "object", "additionalProperties": false }, - "CustomEmailTemplate": { - "properties": { - "_id": { - "type": "string" - }, - "tenantId": { - "type": "string" - }, - "emailTemplateId": { - "type": "string" - }, - "displayName": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time", - "nullable": true - }, - "updatedByUserId": { - "type": "string", - "nullable": true - }, - "domain": { - "type": "string", - "nullable": true - }, - "ejs": { - "type": "string" - }, - "translationOverridesByLocale": { - "$ref": "#/components/schemas/Record_string.Record_string.string__" - }, - "testData": {} + "AggregateTimeBucket": { + "type": "string", + "enum": [ + "day", + "month", + "year" + ] + }, + "Record_string.QuestionResultAggregationOverall_": { + "properties": {}, + "additionalProperties": { + "$ref": "#/components/schemas/QuestionResultAggregationOverall" }, - "required": [ - "_id", - "tenantId", - "emailTemplateId", - "displayName", - "createdAt", - "updatedAt", - "updatedByUserId", - "ejs", - "translationOverridesByLocale", - "testData" - ], "type": "object", - "additionalProperties": false + "description": "Construct a type with a set of properties K of type T" }, - "GetEmailTemplateResponse": { + "BulkAggregateQuestionResultsResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "emailTemplate": { - "$ref": "#/components/schemas/CustomEmailTemplate" + "data": { + "$ref": "#/components/schemas/Record_string.QuestionResultAggregationOverall_" } }, "required": [ "status", - "emailTemplate" + "data" ], "type": "object", "additionalProperties": false }, - "GetEmailTemplatesResponse": { + "BulkAggregateQuestionItem": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "aggId": { + "type": "string" }, - "emailTemplates": { + "questionId": { + "type": "string" + }, + "questionIds": { "items": { - "$ref": "#/components/schemas/CustomEmailTemplate" + "type": "string" }, "type": "array" + }, + "urlId": { + "type": "string" + }, + "timeBucket": { + "$ref": "#/components/schemas/AggregateTimeBucket" + }, + "startDate": { + "type": "string", + "format": "date-time" } }, "required": [ - "status", - "emailTemplates" + "aggId" ], "type": "object", "additionalProperties": false }, - "CreateEmailTemplateResponse": { + "BulkAggregateQuestionResultsRequest": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "emailTemplate": { - "$ref": "#/components/schemas/CustomEmailTemplate" + "aggregations": { + "items": { + "$ref": "#/components/schemas/BulkAggregateQuestionItem" + }, + "type": "array" } }, "required": [ - "status", - "emailTemplate" + "aggregations" ], "type": "object", "additionalProperties": false }, - "CreateEmailTemplateBody": { + "CommentLogType": { + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55 + ], + "type": "integer" + }, + "RepeatCommentHandlingAction": { + "enum": [ + 0, + 1, + 2 + ], + "type": "integer" + }, + "RepeatCommentCheckIgnoredReason": { + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "integer" + }, + "CommentLogData": { "properties": { - "emailTemplateId": { - "type": "string" + "clearContent": { + "type": "boolean" }, - "displayName": { + "isDeletedUser": { + "type": "boolean" + }, + "phrase": { "type": "string" }, - "ejs": { + "badWord": { "type": "string" }, - "domain": { + "word": { "type": "string" }, - "translationOverridesByLocale": { - "$ref": "#/components/schemas/Record_string.Record_string.string__" + "locale": { + "type": "string" }, - "testData": { - "$ref": "#/components/schemas/Record_string.unknown_" - } - }, - "required": [ - "emailTemplateId", - "displayName", - "ejs" - ], - "type": "object", - "additionalProperties": false - }, - "UpdateEmailTemplateBody": { - "properties": { - "emailTemplateId": { + "tenantBadgeId": { "type": "string" }, - "displayName": { + "badgeId": { "type": "string" }, - "ejs": { + "wasLoggedIn": { + "type": "boolean" + }, + "foundUser": { + "type": "boolean" + }, + "verified": { + "type": "boolean" + }, + "engine": { "type": "string" }, - "domain": { + "engineResponse": { "type": "string" }, - "translationOverridesByLocale": { - "$ref": "#/components/schemas/Record_string.Record_string.string__" + "engineTokens": { + "type": "number", + "format": "double" }, - "testData": { - "$ref": "#/components/schemas/Record_string.unknown_" - } - }, - "type": "object", - "additionalProperties": false - }, - "RenderEmailTemplateResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "trustFactor": { + "type": "number", + "format": "double" }, - "html": { - "type": "string" - } - }, - "required": [ - "status", - "html" - ], - "type": "object", - "additionalProperties": false - }, - "RenderEmailTemplateBody": { - "properties": { - "emailTemplateId": { + "source": { "type": "string" }, - "ejs": { + "rule": { + "$ref": "#/components/schemas/SpamRule" + }, + "userId": { "type": "string" }, - "testData": { - "$ref": "#/components/schemas/Record_string.unknown_" + "subscribers": { + "type": "number", + "format": "double" }, - "translationOverridesByLocale": { - "$ref": "#/components/schemas/Record_string.Record_string.string__" - } - }, - "required": [ - "emailTemplateId", - "ejs" - ], - "type": "object", - "additionalProperties": false - }, - "AddDomainConfigParams": { - "properties": { - "domain": { - "type": "string" + "notificationCount": { + "type": "number", + "format": "double" }, - "emailFromName": { + "votesBefore": { + "type": "number", + "format": "double", + "nullable": true + }, + "votesUpBefore": { + "type": "number", + "format": "double", + "nullable": true + }, + "votesDownBefore": { + "type": "number", + "format": "double", + "nullable": true + }, + "votesAfter": { + "type": "number", + "format": "double", + "nullable": true + }, + "votesUpAfter": { + "type": "number", + "format": "double", + "nullable": true + }, + "votesDownAfter": { + "type": "number", + "format": "double", + "nullable": true + }, + "repeatAction": { + "$ref": "#/components/schemas/RepeatCommentHandlingAction" + }, + "reason": { + "$ref": "#/components/schemas/RepeatCommentCheckIgnoredReason" + }, + "otherData": {}, + "spamBefore": { + "type": "boolean" + }, + "spamAfter": { + "type": "boolean" + }, + "permanentFlag": { + "type": "string", + "enum": [ + "permanent" + ], + "nullable": false + }, + "approvedBefore": { + "type": "boolean" + }, + "approvedAfter": { + "type": "boolean" + }, + "reviewedBefore": { + "type": "boolean" + }, + "reviewedAfter": { + "type": "boolean" + }, + "textBefore": { "type": "string" }, - "emailFromEmail": { + "textAfter": { "type": "string" }, - "logoSrc": { + "expireBefore": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "expireAfter": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "flagCountBefore": { + "type": "number", + "format": "double", + "nullable": true + }, + "trustFactorBefore": { + "type": "number", + "format": "double" + }, + "trustFactorAfter": { + "type": "number", + "format": "double" + }, + "referencedCommentId": { "type": "string" }, - "logoSrc100px": { + "invalidLocale": { "type": "string" }, - "footerUnsubscribeURL": { + "detectedLocale": { "type": "string" }, - "emailHeaders": { - "$ref": "#/components/schemas/Record_string.string_" + "detectedLanguage": { + "type": "string" } }, - "required": [ - "domain" - ], "type": "object", "additionalProperties": false }, - "UpdateDomainConfigParams": { + "CommentLogEntry": { "properties": { - "domain": { - "type": "string" - }, - "emailFromName": { - "type": "string" - }, - "emailFromEmail": { - "type": "string" - }, - "logoSrc": { - "type": "string" - }, - "logoSrc100px": { - "type": "string" + "d": { + "type": "string", + "format": "date-time" }, - "footerUnsubscribeURL": { - "type": "string" + "t": { + "$ref": "#/components/schemas/CommentLogType" }, - "emailHeaders": { - "$ref": "#/components/schemas/Record_string.string_" + "da": { + "$ref": "#/components/schemas/CommentLogData" } }, "required": [ - "domain" + "d", + "t" ], "type": "object", "additionalProperties": false }, - "PatchDomainConfigParams": { + "FComment": { "properties": { - "domain": { - "type": "string" - }, - "emailFromName": { + "_id": { "type": "string" }, - "emailFromEmail": { + "tenantId": { "type": "string" }, - "logoSrc": { + "urlId": { "type": "string" }, - "logoSrc100px": { + "urlIdRaw": { "type": "string" }, - "footerUnsubscribeURL": { + "url": { "type": "string" }, - "emailHeaders": { - "$ref": "#/components/schemas/Record_string.string_" - } - }, - "type": "object", - "additionalProperties": false - }, - "APICommentBase": { - "properties": { - "_id": { - "type": "string" + "pageTitle": { + "type": "string", + "nullable": true }, - "aiDeterminedSpam": { - "type": "boolean" + "userId": { + "allOf": [ + { + "$ref": "#/components/schemas/UserId" + } + ], + "nullable": true }, "anonUserId": { "type": "string", "nullable": true }, - "approved": { - "type": "boolean" - }, - "avatarSrc": { + "commenterEmail": { "type": "string", "nullable": true }, - "badges": { - "items": { - "$ref": "#/components/schemas/CommentUserBadgeInfo" - }, - "type": "array", + "commenterName": { + "type": "string" + }, + "commenterLink": { + "type": "string", "nullable": true }, "comment": { @@ -8541,88 +8830,134 @@ "commentHTML": { "type": "string" }, - "commenterEmail": { - "type": "string", - "nullable": true - }, - "commenterLink": { + "parentId": { "type": "string", "nullable": true }, - "commenterName": { - "type": "string" - }, "date": { "type": "string", "format": "date-time", "nullable": true }, - "displayLabel": { + "localDateString": { "type": "string", "nullable": true }, - "domain": { - "allOf": [ - { - "$ref": "#/components/schemas/FDomain" - } - ], + "localDateHours": { + "type": "integer", + "format": "int32", "nullable": true }, - "externalId": { - "type": "string" - }, - "externalParentId": { - "type": "string", + "votes": { + "type": "integer", + "format": "int32", "nullable": true }, - "expireAt": { - "type": "string", - "format": "date-time", + "votesUp": { + "type": "integer", + "format": "int32", "nullable": true }, - "feedbackIds": { - "items": { - "type": "string" - }, - "type": "array" - }, - "flagCount": { + "votesDown": { "type": "integer", "format": "int32", "nullable": true }, - "fromProductId": { - "type": "integer", - "format": "int32" + "expireAt": { + "type": "string", + "format": "date-time", + "nullable": true }, - "hasCode": { + "verified": { + "type": "boolean" + }, + "verifiedDate": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "verificationId": { + "type": "string", + "nullable": true + }, + "notificationSentForParent": { + "type": "boolean" + }, + "notificationSentForParentTenant": { + "type": "boolean" + }, + "reviewed": { + "type": "boolean" + }, + "imported": { + "type": "boolean" + }, + "externalId": { + "type": "string" + }, + "externalParentId": { + "type": "string", + "nullable": true + }, + "avatarSrc": { + "type": "string", + "nullable": true + }, + "isSpam": { + "type": "boolean" + }, + "permNotSpam": { + "type": "boolean" + }, + "aiDeterminedSpam": { "type": "boolean" }, "hasImages": { "type": "boolean" }, + "pageNumber": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "pageNumberOF": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "pageNumberNF": { + "type": "integer", + "format": "int32", + "nullable": true + }, "hasLinks": { "type": "boolean" }, - "hashTags": { - "items": { - "$ref": "#/components/schemas/CommentUserHashTagInfo" - }, - "type": "array" - }, - "isByAdmin": { + "hasCode": { "type": "boolean" }, - "isByModerator": { + "approved": { "type": "boolean" }, + "locale": { + "type": "string", + "nullable": true + }, "isDeleted": { "type": "boolean" }, "isDeletedUser": { "type": "boolean" }, + "isBannedUser": { + "type": "boolean" + }, + "isByAdmin": { + "type": "boolean" + }, + "isByModerator": { + "type": "boolean" + }, "isPinned": { "type": "boolean", "nullable": true @@ -8631,30 +8966,29 @@ "type": "boolean", "nullable": true }, - "isSpam": { - "type": "boolean" - }, - "localDateHours": { + "flagCount": { "type": "integer", "format": "int32", "nullable": true }, - "localDateString": { - "type": "string", + "rating": { + "type": "number", + "format": "double", "nullable": true }, - "locale": { + "displayLabel": { "type": "string", "nullable": true }, - "mentions": { - "items": { - "$ref": "#/components/schemas/CommentUserMentionInfo" - }, - "type": "array" + "fromProductId": { + "type": "integer", + "format": "int32" }, "meta": { "properties": { + "wpId": { + "type": "string" + }, "wpUserId": { "type": "string" }, @@ -8666,956 +9000,6140 @@ "type": "object", "nullable": true }, - "moderationGroupIds": { + "ipHash": { + "type": "string" + }, + "mentions": { "items": { - "type": "string" + "$ref": "#/components/schemas/CommentUserMentionInfo" }, - "type": "array", - "nullable": true - }, - "notificationSentForParent": { - "type": "boolean" + "type": "array" }, - "notificationSentForParentTenant": { - "type": "boolean" + "hashTags": { + "items": { + "$ref": "#/components/schemas/CommentUserHashTagInfo" + }, + "type": "array" }, - "pageTitle": { - "type": "string", + "badges": { + "items": { + "$ref": "#/components/schemas/CommentUserBadgeInfo" + }, + "type": "array", "nullable": true }, - "parentId": { - "type": "string", + "domain": { + "allOf": [ + { + "$ref": "#/components/schemas/FDomain" + } + ], "nullable": true }, - "rating": { - "type": "number", - "format": "double", + "veteranBadgeProcessed": { + "type": "string" + }, + "moderationGroupIds": { + "items": { + "type": "string" + }, + "type": "array", "nullable": true }, - "reviewed": { + "didProcessBadges": { "type": "boolean" }, - "tenantId": { - "type": "string" + "fromOfflineRestore": { + "type": "boolean" }, - "url": { + "autoplayJobId": { "type": "string" }, - "urlId": { - "type": "string" + "autoplayDelayMS": { + "type": "integer", + "format": "int64" }, - "urlIdRaw": { - "type": "string" + "feedbackIds": { + "items": { + "type": "string" + }, + "type": "array" }, - "userId": { - "allOf": [ - { - "$ref": "#/components/schemas/UserId" - } - ], + "logs": { + "items": { + "$ref": "#/components/schemas/CommentLogEntry" + }, + "type": "array", "nullable": true }, - "verified": { - "type": "boolean" - }, - "verifiedDate": { - "type": "string", - "format": "date-time", + "groupIds": { + "items": { + "type": "string" + }, + "type": "array", "nullable": true }, - "votes": { + "viewCount": { "type": "integer", - "format": "int32", + "format": "int64", "nullable": true }, - "votesDown": { - "type": "integer", - "format": "int32", - "nullable": true + "requiresVerification": { + "type": "boolean" }, - "votesUp": { - "type": "integer", - "format": "int32", - "nullable": true + "editKey": { + "type": "string" + }, + "tosAcceptedAt": { + "type": "string", + "format": "date-time" + }, + "botId": { + "type": "string" } }, "required": [ "_id", - "approved", + "tenantId", + "urlId", + "url", + "commenterName", "comment", "commentHTML", - "commenterName", "date", - "locale", - "tenantId", - "url", - "urlId", - "verified" + "verified", + "approved", + "locale" ], "type": "object", "additionalProperties": false }, - "APIComment": { - "allOf": [ - { - "$ref": "#/components/schemas/APICommentBase" + "FindCommentsByRangeItem": { + "properties": { + "comment": { + "allOf": [ + { + "$ref": "#/components/schemas/FComment" + } + ], + "nullable": true }, - { - "properties": { - "date": { - "type": "number", - "format": "double", - "nullable": true - } - }, - "required": [ - "date" - ], - "type": "object" + "result": { + "$ref": "#/components/schemas/QuestionResult" } - ] + }, + "required": [ + "comment", + "result" + ], + "type": "object", + "additionalProperties": false }, - "APIGetCommentResponse": { + "FindCommentsByRangeResponse": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "results": { + "items": { + "$ref": "#/components/schemas/FindCommentsByRangeItem" + }, + "type": "array" }, - "comment": { - "$ref": "#/components/schemas/APIComment" + "createdAt": { + "type": "string", + "format": "date-time" } }, "required": [ - "status", - "comment" + "results", + "createdAt" ], "type": "object", "additionalProperties": false }, - "APIGetCommentsResponse": { + "CombineQuestionResultsWithCommentsResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "comments": { - "items": { - "$ref": "#/components/schemas/APIComment" - }, - "type": "array" + "data": { + "$ref": "#/components/schemas/FindCommentsByRangeResponse" } }, "required": [ "status", - "comments" + "data" ], "type": "object", "additionalProperties": false }, - "UpdatableCommentParams": { + "QuestionConfig": { "properties": { - "urlId": { + "_id": { "type": "string" }, - "urlIdRaw": { + "tenantId": { "type": "string" }, - "url": { + "name": { "type": "string" }, - "pageTitle": { - "type": "string", - "nullable": true - }, - "userId": { - "allOf": [ - { - "$ref": "#/components/schemas/UserId" - } - ], - "nullable": true - }, - "commenterEmail": { - "type": "string", - "nullable": true - }, - "commenterName": { + "question": { "type": "string" }, - "commenterLink": { - "type": "string", - "nullable": true - }, - "comment": { + "summaryLabel": { "type": "string" }, - "commentHTML": { + "helpText": { "type": "string" }, - "parentId": { - "type": "string", - "nullable": true - }, - "date": { - "type": "number", - "format": "double", - "nullable": true - }, - "localDateString": { - "type": "string", - "nullable": true - }, - "localDateHours": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "votes": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "votesUp": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "votesDown": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "expireAt": { - "type": "string", - "format": "date-time", - "nullable": true - }, - "verified": { - "type": "boolean" - }, - "verifiedDate": { + "createdAt": { "type": "string", - "format": "date-time", - "nullable": true - }, - "notificationSentForParent": { - "type": "boolean" - }, - "notificationSentForParentTenant": { - "type": "boolean" - }, - "reviewed": { - "type": "boolean" + "format": "date-time" }, - "externalId": { + "createdBy": { "type": "string" }, - "externalParentId": { - "type": "string", - "nullable": true + "usedCount": { + "type": "number", + "format": "double" }, - "avatarSrc": { + "lastUsed": { "type": "string", - "nullable": true - }, - "isSpam": { - "type": "boolean" - }, - "approved": { - "type": "boolean" - }, - "isDeleted": { - "type": "boolean" - }, - "isDeletedUser": { - "type": "boolean" + "format": "date-time" }, - "isByAdmin": { - "type": "boolean" + "type": { + "type": "string" }, - "isByModerator": { - "type": "boolean" + "numStars": { + "type": "number", + "format": "double" }, - "isPinned": { - "type": "boolean", - "nullable": true + "min": { + "type": "number", + "format": "double" }, - "isLocked": { - "type": "boolean", - "nullable": true + "max": { + "type": "number", + "format": "double" }, - "flagCount": { - "type": "integer", - "format": "int32", - "nullable": true + "defaultValue": { + "type": "number", + "format": "double" }, - "displayLabel": { - "type": "string", - "nullable": true + "labelNegative": { + "type": "string" }, - "meta": { - "properties": { - "wpUserId": { - "type": "string" - }, - "wpPostId": { - "type": "string" - } - }, - "additionalProperties": {}, - "type": "object", - "nullable": true + "labelPositive": { + "type": "string" }, - "moderationGroupIds": { + "customOptions": { "items": { - "type": "string" + "properties": { + "imageSrc": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "required": [ + "imageSrc", + "name" + ], + "type": "object" }, - "type": "array", - "nullable": true + "type": "array" }, - "feedbackIds": { + "subQuestionIds": { "items": { "type": "string" }, "type": "array" + }, + "alwaysShowSubQuestions": { + "type": "boolean" + }, + "reportingOrder": { + "type": "number", + "format": "double" } }, - "type": "object", - "additionalProperties": false - }, - "DeleteCommentAction": { - "type": "string", - "enum": [ - "already-deleted", - "hard-removed", - "anonymized" - ] - }, - "DeleteCommentResult": { - "properties": { - "action": { - "$ref": "#/components/schemas/DeleteCommentAction" - }, - "status": { + "required": [ + "_id", + "tenantId", + "name", + "question", + "helpText", + "createdAt", + "createdBy", + "usedCount", + "lastUsed", + "type", + "numStars", + "min", + "max", + "defaultValue", + "labelNegative", + "labelPositive", + "customOptions", + "subQuestionIds", + "alwaysShowSubQuestions", + "reportingOrder" + ], + "type": "object", + "additionalProperties": false + }, + "GetQuestionConfigResponse": { + "properties": { + "status": { "$ref": "#/components/schemas/APIStatus" + }, + "questionConfig": { + "$ref": "#/components/schemas/QuestionConfig" } }, "required": [ - "action", - "status" + "status", + "questionConfig" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "SaveCommentResponse": { + "GetQuestionConfigsResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "comment": { - "$ref": "#/components/schemas/FComment" - }, - "user": { - "allOf": [ - { - "$ref": "#/components/schemas/UserSessionInfo" - } - ], - "nullable": true - }, - "moduleData": { - "$ref": "#/components/schemas/Record_string.any_" + "questionConfigs": { + "items": { + "$ref": "#/components/schemas/QuestionConfig" + }, + "type": "array" } }, "required": [ "status", - "comment", - "user" + "questionConfigs" ], "type": "object", "additionalProperties": false }, - "CreateCommentParams": { + "CreateQuestionConfigResponse": { "properties": { - "date": { - "type": "integer", - "format": "int64" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "localDateString": { + "questionConfig": { + "$ref": "#/components/schemas/QuestionConfig" + } + }, + "required": [ + "status", + "questionConfig" + ], + "type": "object", + "additionalProperties": false + }, + "CreateQuestionConfigBody": { + "properties": { + "name": { "type": "string" }, - "localDateHours": { - "type": "integer", - "format": "int32" + "question": { + "type": "string" }, - "commenterName": { + "helpText": { "type": "string" }, - "commenterEmail": { - "type": "string", - "nullable": true + "type": { + "type": "string" }, - "commenterLink": { - "type": "string", - "nullable": true + "numStars": { + "type": "number", + "format": "double" }, - "comment": { - "type": "string" + "min": { + "type": "number", + "format": "double" }, - "productId": { - "type": "integer", - "format": "int32" + "max": { + "type": "number", + "format": "double" }, - "userId": { - "type": "string", - "nullable": true + "defaultValue": { + "type": "number", + "format": "double" }, - "avatarSrc": { - "type": "string", - "nullable": true + "labelNegative": { + "type": "string" }, - "parentId": { - "type": "string", - "nullable": true + "labelPositive": { + "type": "string" }, - "mentions": { + "customOptions": { "items": { - "$ref": "#/components/schemas/CommentUserMentionInfo" + "properties": { + "imageSrc": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "required": [ + "imageSrc", + "name" + ], + "type": "object" }, "type": "array" }, - "hashTags": { + "subQuestionIds": { "items": { - "$ref": "#/components/schemas/CommentUserHashTagInfo" + "type": "string" }, "type": "array" }, - "pageTitle": { + "alwaysShowSubQuestions": { + "type": "boolean" + }, + "reportingOrder": { + "type": "number", + "format": "double" + } + }, + "required": [ + "name", + "question", + "type", + "reportingOrder" + ], + "type": "object", + "additionalProperties": {} + }, + "UpdateQuestionConfigBody": { + "properties": { + "name": { "type": "string" }, - "isFromMyAccountPage": { - "type": "boolean" + "question": { + "type": "string" }, - "url": { + "helpText": { "type": "string" }, - "urlId": { + "type": { "type": "string" }, - "meta": { - "additionalProperties": false, - "type": "object" + "numStars": { + "type": "number", + "format": "double" }, - "moderationGroupIds": { - "items": { - "type": "string" - }, - "type": "array" + "min": { + "type": "number", + "format": "double" }, - "rating": { + "max": { "type": "number", "format": "double" }, - "fromOfflineRestore": { - "type": "boolean" + "defaultValue": { + "type": "number", + "format": "double" }, - "autoplayDelayMS": { - "type": "integer", - "format": "int64" + "labelNegative": { + "type": "string" }, - "feedbackIds": { + "labelPositive": { + "type": "string" + }, + "customOptions": { "items": { - "type": "string" + "properties": { + "imageSrc": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "required": [ + "imageSrc", + "name" + ], + "type": "object" }, "type": "array" }, - "questionValues": { - "$ref": "#/components/schemas/Record_string.string-or-number_" - }, - "tos": { - "type": "boolean" + "subQuestionIds": { + "items": { + "type": "string" + }, + "type": "array" }, - "approved": { + "alwaysShowSubQuestions": { "type": "boolean" }, - "domain": { + "reportingOrder": { + "type": "number", + "format": "double" + } + }, + "type": "object", + "additionalProperties": {} + }, + "PendingCommentToSyncOutbound": { + "properties": { + "_id": { "type": "string" }, - "ip": { + "commentId": { "type": "string" }, - "isPinned": { - "type": "boolean" + "comment": { + "$ref": "#/components/schemas/FComment" }, - "locale": { + "externalId": { "type": "string", - "description": "Example: en_us" + "nullable": true }, - "reviewed": { - "type": "boolean" + "createdAt": { + "type": "string", + "format": "date-time" }, - "verified": { - "type": "boolean" + "tenantId": { + "type": "string" }, - "votes": { - "type": "integer", - "format": "int32" + "attemptCount": { + "type": "number", + "format": "double" }, - "votesDown": { - "type": "integer", - "format": "int32" + "nextAttemptAt": { + "type": "string", + "format": "date-time" }, - "votesUp": { - "type": "integer", - "format": "int32" + "eventType": { + "type": "number", + "format": "double" + }, + "type": { + "type": "number", + "format": "double" + }, + "domain": { + "type": "string" + }, + "lastError": { + "additionalProperties": false, + "type": "object" + }, + "webhookId": { + "type": "string" } }, "required": [ - "commenterName", - "comment", - "url", - "urlId", - "locale" + "_id", + "commentId", + "externalId", + "createdAt", + "tenantId", + "attemptCount", + "nextAttemptAt", + "eventType", + "type", + "domain", + "lastError" ], "type": "object", "additionalProperties": false }, - "FlagCommentResponse": { + "GetPendingWebhookEventsResponse": { "properties": { - "statusCode": { - "type": "integer", - "format": "int32" - }, "status": { "$ref": "#/components/schemas/APIStatus" }, - "code": { - "type": "string" - }, - "reason": { - "type": "string" - }, - "wasUnapproved": { - "type": "boolean" + "pendingWebhookEvents": { + "items": { + "$ref": "#/components/schemas/PendingCommentToSyncOutbound" + }, + "type": "array" } }, "required": [ - "status" + "status", + "pendingWebhookEvents" ], "type": "object", "additionalProperties": false }, - "BlockFromCommentParams": { + "GetPendingWebhookEventCountResponse": { "properties": { - "commentIdsToCheck": { - "items": { - "type": "string" - }, - "type": "array" + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "count": { + "type": "number", + "format": "double" } }, + "required": [ + "status", + "count" + ], "type": "object", "additionalProperties": false }, - "UnBlockFromCommentParams": { + "GetNotificationsResponse": { "properties": { - "commentIdsToCheck": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "notifications": { "items": { - "type": "string" + "$ref": "#/components/schemas/UserNotification" }, "type": "array" } }, + "required": [ + "status", + "notifications" + ], "type": "object", "additionalProperties": false }, - "APIAuditLog": { + "GetNotificationCountResponse": { "properties": { - "_id": { - "type": "string" - }, - "userId": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "username": { - "type": "string" + "count": { + "type": "number", + "format": "double" + } + }, + "required": [ + "status", + "count" + ], + "type": "object", + "additionalProperties": false + }, + "UpdateNotificationBody": { + "properties": { + "viewed": { + "type": "boolean" }, - "resourceName": { + "optedOut": { + "type": "boolean" + } + }, + "type": "object", + "additionalProperties": {} + }, + "UserNotificationCount": { + "properties": { + "_id": { "type": "string" }, - "crudType": { - "type": "string", - "enum": [ - "c", - "r", - "u", - "d", - "login" - ] - }, - "from": { - "type": "string", - "enum": [ - "ui", - "api", - "cron" - ] - }, - "url": { - "type": "string", - "nullable": true - }, - "ip": { - "type": "string", - "nullable": true + "count": { + "type": "number", + "format": "double" }, - "when": { + "createdAt": { "type": "string", "format": "date-time" }, - "description": { - "type": "string" - }, - "serverStartDate": { + "expireAt": { "type": "string", "format": "date-time" - }, - "objectDetails": { - "allOf": [ - { - "$ref": "#/components/schemas/Record_string.any_" - } - ], - "nullable": true } }, "required": [ "_id", - "resourceName", - "crudType" + "count", + "createdAt", + "expireAt" ], "type": "object", "additionalProperties": false }, - "GetAuditLogsResponse": { + "GetCachedNotificationCountResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "auditLogs": { - "items": { - "$ref": "#/components/schemas/APIAuditLog" - }, - "type": "array" + "data": { + "$ref": "#/components/schemas/UserNotificationCount" } }, "required": [ "status", - "auditLogs" + "data" ], "type": "object", "additionalProperties": false }, - "SORT_DIR": { - "type": "string", - "enum": [ - "ASC", - "DESC" - ] - }, - "DistinctAccumulator": { - "$ref": "#/components/schemas/Record_string.number_" - }, - "GroupValues": { - "$ref": "#/components/schemas/Record_string.string_" - }, - "AggregationValue": { + "Moderator": { "properties": { - "groups": { - "$ref": "#/components/schemas/GroupValues" + "_id": { + "type": "string" }, - "stringValue": { + "tenantId": { "type": "string" }, - "numericValue": { + "name": { + "type": "string", + "nullable": true + }, + "userId": { + "type": "string", + "nullable": true + }, + "acceptedInvite": { + "type": "boolean" + }, + "email": { + "type": "string", + "nullable": true + }, + "markReviewedCount": { "type": "number", "format": "double" }, - "distinctCount": { - "type": "integer", - "format": "int64" + "deletedCount": { + "type": "number", + "format": "double" }, - "distinctCounts": { - "$ref": "#/components/schemas/DistinctAccumulator" - } - }, - "type": "object" - }, - "Record_string.AggregationValue_": { - "properties": {}, - "additionalProperties": { - "$ref": "#/components/schemas/AggregationValue" + "markedSpamCount": { + "type": "number", + "format": "double" + }, + "markedNotSpamCount": { + "type": "number", + "format": "double" + }, + "approvedCount": { + "type": "number", + "format": "double" + }, + "unApprovedCount": { + "type": "number", + "format": "double" + }, + "editedCount": { + "type": "number", + "format": "double" + }, + "bannedCount": { + "type": "number", + "format": "double" + }, + "unFlaggedCount": { + "type": "number", + "format": "double" + }, + "verificationId": { + "type": "string", + "nullable": true + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "moderationGroupIds": { + "items": { + "type": "string" + }, + "type": "array", + "nullable": true + }, + "isEmailSuppressed": { + "type": "boolean" + } }, + "required": [ + "_id", + "tenantId", + "name", + "userId", + "acceptedInvite", + "email", + "markReviewedCount", + "deletedCount", + "markedSpamCount", + "markedNotSpamCount", + "approvedCount", + "unApprovedCount", + "editedCount", + "bannedCount", + "unFlaggedCount", + "verificationId", + "createdAt", + "moderationGroupIds" + ], "type": "object", - "description": "Construct a type with a set of properties K of type T" + "additionalProperties": false }, - "AggregationItem": { - "allOf": [ - { - "$ref": "#/components/schemas/Record_string.AggregationValue_" + "GetModeratorResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - { - "properties": { - "groups": { - "$ref": "#/components/schemas/GroupValues" - } - }, - "type": "object" + "moderator": { + "$ref": "#/components/schemas/Moderator" } - ] + }, + "required": [ + "status", + "moderator" + ], + "type": "object", + "additionalProperties": false }, - "AggregationResponse": { - "description": "The API response returns the aggregated data along with simple stats", + "GetModeratorsResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "data": { + "moderators": { "items": { - "$ref": "#/components/schemas/AggregationItem" + "$ref": "#/components/schemas/Moderator" }, "type": "array" - }, - "stats": { - "properties": { - "timeMS": { - "type": "integer", - "format": "int64" - }, - "scanned": { - "type": "integer", - "format": "int64" - } - }, - "required": [ - "timeMS", - "scanned" - ], - "type": "object" } }, "required": [ "status", - "data" + "moderators" ], "type": "object", "additionalProperties": false }, - "QueryPredicate": { + "CreateModeratorResponse": { "properties": { - "key": { - "type": "string" - }, - "value": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "number", - "format": "double" - }, - { - "type": "boolean" - } - ] + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "operator": { - "type": "string", - "enum": [ - "eq", - "not_eq", - "greater_than", - "less_than", - "contains" - ] + "moderator": { + "$ref": "#/components/schemas/Moderator" } }, "required": [ - "key", - "value", - "operator" + "status", + "moderator" ], "type": "object", "additionalProperties": false }, - "AggregationOpType": { - "type": "string", - "enum": [ - "sum", - "countDistinct", - "distinct", - "avg", - "min", - "max", - "count" - ], - "description": "The supported aggregation operation types" - }, - "AggregationOperation": { - "description": "An operation that will be applied on a field", + "CreateModeratorBody": { "properties": { - "field": { - "type": "string", - "description": "The field to operate on" + "name": { + "type": "string" }, - "op": { - "$ref": "#/components/schemas/AggregationOpType", - "description": "The type of operation" + "email": { + "type": "string" }, - "alias": { - "type": "string", - "description": "Optional alias for the output; if not provided, a default alias is computed" + "userId": { + "type": "string" }, - "expandArray": { - "type": "boolean" + "moderationGroupIds": { + "items": { + "type": "string" + }, + "type": "array" } }, "required": [ - "field", - "op" + "name", + "email" ], "type": "object", - "additionalProperties": false + "additionalProperties": {} }, - "AggregationRequest": { - "description": "The aggregation request accepts a resource, optional grouping keys, an array of operations, and an optional sort", + "UpdateModeratorBody": { "properties": { - "query": { - "items": { - "$ref": "#/components/schemas/QueryPredicate" - }, - "type": "array" + "name": { + "type": "string" }, - "resourceName": { + "email": { "type": "string" }, - "groupBy": { - "items": { - "type": "string" - }, - "type": "array" + "userId": { + "type": "string" }, - "operations": { + "moderationGroupIds": { "items": { - "$ref": "#/components/schemas/AggregationOperation" + "type": "string" }, "type": "array" - }, - "sort": { - "properties": { - "dir": { - "type": "string", - "enum": [ - "asc", - "desc" - ] - }, - "field": { - "type": "string" - } - }, - "required": [ - "dir", - "field" - ], - "type": "object" } }, - "required": [ - "resourceName", - "operations" - ], "type": "object", - "additionalProperties": false - } - }, - "securitySchemes": { - "api_key": { - "type": "apiKey", - "name": "x-api-key", - "in": "header" + "additionalProperties": {} + }, + "TenantHashTag": { + "properties": { + "_id": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "tenantId": { + "type": "string" + }, + "tag": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "required": [ + "_id", + "createdAt", + "tenantId", + "tag" + ], + "type": "object", + "additionalProperties": false + }, + "GetHashTagsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "hashTags": { + "items": { + "$ref": "#/components/schemas/TenantHashTag" + }, + "type": "array" + } + }, + "required": [ + "status", + "hashTags" + ], + "type": "object", + "additionalProperties": false + }, + "CreateHashTagResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "hashTag": { + "$ref": "#/components/schemas/TenantHashTag" + } + }, + "required": [ + "status", + "hashTag" + ], + "type": "object", + "additionalProperties": false + }, + "CreateHashTagBody": { + "properties": { + "tenantId": { + "type": "string" + }, + "tag": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "required": [ + "tag" + ], + "type": "object", + "additionalProperties": false + }, + "BulkCreateHashTagsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "results": { + "items": { + "anyOf": [ + { + "$ref": "#/components/schemas/CreateHashTagResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + }, + "type": "array" + } + }, + "required": [ + "status", + "results" + ], + "type": "object", + "additionalProperties": false + }, + "BulkCreateHashTagsBody": { + "properties": { + "tenantId": { + "type": "string" + }, + "tags": { + "items": { + "properties": { + "url": { + "type": "string" + }, + "tag": { + "type": "string" + } + }, + "required": [ + "tag" + ], + "type": "object" + }, + "type": "array" + } + }, + "required": [ + "tags" + ], + "type": "object", + "additionalProperties": false + }, + "UpdateHashTagResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "hashTag": { + "$ref": "#/components/schemas/TenantHashTag" + } + }, + "required": [ + "status", + "hashTag" + ], + "type": "object", + "additionalProperties": false + }, + "UpdateHashTagBody": { + "properties": { + "tenantId": { + "type": "string" + }, + "url": { + "type": "string" + }, + "tag": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "GetFeedPostsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "feedPosts": { + "items": { + "$ref": "#/components/schemas/FeedPost" + }, + "type": "array" + } + }, + "required": [ + "status", + "feedPosts" + ], + "type": "object", + "additionalProperties": false + }, + "CreateFeedPostsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "feedPost": { + "$ref": "#/components/schemas/FeedPost" + } + }, + "required": [ + "status", + "feedPost" + ], + "type": "object", + "additionalProperties": false + }, + "Record_string.unknown_": { + "properties": {}, + "additionalProperties": {}, + "type": "object", + "description": "Construct a type with a set of properties K of type T" + }, + "Record_string.Record_string.string__": { + "properties": {}, + "additionalProperties": { + "$ref": "#/components/schemas/Record_string.string_" + }, + "type": "object", + "description": "Construct a type with a set of properties K of type T" + }, + "EmailTemplateDefinition": { + "properties": { + "emailTemplateId": { + "type": "string" + }, + "defaultTestData": { + "$ref": "#/components/schemas/Record_string.unknown_" + }, + "defaultTranslationsByLocale": { + "$ref": "#/components/schemas/Record_string.Record_string.string__" + }, + "defaultEJS": { + "type": "string" + } + }, + "required": [ + "emailTemplateId", + "defaultTestData", + "defaultTranslationsByLocale", + "defaultEJS" + ], + "type": "object", + "additionalProperties": false + }, + "GetEmailTemplateDefinitionsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "definitions": { + "items": { + "$ref": "#/components/schemas/EmailTemplateDefinition" + }, + "type": "array" + } + }, + "required": [ + "status", + "definitions" + ], + "type": "object", + "additionalProperties": false + }, + "EmailTemplateRenderErrorResponse": { + "properties": { + "id": { + "type": "string" + }, + "tenantId": { + "type": "string" + }, + "customTemplateId": { + "type": "string" + }, + "error": { + "type": "string" + }, + "count": { + "type": "number", + "format": "double" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "lastOccurredAt": { + "type": "string", + "format": "date-time" + } + }, + "required": [ + "id", + "tenantId", + "customTemplateId", + "error", + "count", + "createdAt", + "lastOccurredAt" + ], + "type": "object", + "additionalProperties": false + }, + "GetEmailTemplateRenderErrorsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "renderErrors": { + "items": { + "$ref": "#/components/schemas/EmailTemplateRenderErrorResponse" + }, + "type": "array" + } + }, + "required": [ + "status", + "renderErrors" + ], + "type": "object", + "additionalProperties": false + }, + "CustomEmailTemplate": { + "properties": { + "_id": { + "type": "string" + }, + "tenantId": { + "type": "string" + }, + "emailTemplateId": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "updatedByUserId": { + "type": "string", + "nullable": true + }, + "domain": { + "type": "string", + "nullable": true + }, + "ejs": { + "type": "string" + }, + "translationOverridesByLocale": { + "$ref": "#/components/schemas/Record_string.Record_string.string__" + }, + "testData": {} + }, + "required": [ + "_id", + "tenantId", + "emailTemplateId", + "displayName", + "createdAt", + "updatedAt", + "updatedByUserId", + "ejs", + "translationOverridesByLocale", + "testData" + ], + "type": "object", + "additionalProperties": false + }, + "GetEmailTemplateResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "emailTemplate": { + "$ref": "#/components/schemas/CustomEmailTemplate" + } + }, + "required": [ + "status", + "emailTemplate" + ], + "type": "object", + "additionalProperties": false + }, + "GetEmailTemplatesResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "emailTemplates": { + "items": { + "$ref": "#/components/schemas/CustomEmailTemplate" + }, + "type": "array" + } + }, + "required": [ + "status", + "emailTemplates" + ], + "type": "object", + "additionalProperties": false + }, + "CreateEmailTemplateResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "emailTemplate": { + "$ref": "#/components/schemas/CustomEmailTemplate" + } + }, + "required": [ + "status", + "emailTemplate" + ], + "type": "object", + "additionalProperties": false + }, + "CreateEmailTemplateBody": { + "properties": { + "emailTemplateId": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "ejs": { + "type": "string" + }, + "domain": { + "type": "string" + }, + "translationOverridesByLocale": { + "$ref": "#/components/schemas/Record_string.Record_string.string__" + }, + "testData": { + "$ref": "#/components/schemas/Record_string.unknown_" + } + }, + "required": [ + "emailTemplateId", + "displayName", + "ejs" + ], + "type": "object", + "additionalProperties": false + }, + "UpdateEmailTemplateBody": { + "properties": { + "emailTemplateId": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "ejs": { + "type": "string" + }, + "domain": { + "type": "string" + }, + "translationOverridesByLocale": { + "$ref": "#/components/schemas/Record_string.Record_string.string__" + }, + "testData": { + "$ref": "#/components/schemas/Record_string.unknown_" + } + }, + "type": "object", + "additionalProperties": false + }, + "RenderEmailTemplateResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "html": { + "type": "string" + } + }, + "required": [ + "status", + "html" + ], + "type": "object", + "additionalProperties": false + }, + "RenderEmailTemplateBody": { + "properties": { + "emailTemplateId": { + "type": "string" + }, + "ejs": { + "type": "string" + }, + "testData": { + "$ref": "#/components/schemas/Record_string.unknown_" + }, + "translationOverridesByLocale": { + "$ref": "#/components/schemas/Record_string.Record_string.string__" + } + }, + "required": [ + "emailTemplateId", + "ejs" + ], + "type": "object", + "additionalProperties": false + }, + "AddDomainConfigParams": { + "properties": { + "domain": { + "type": "string" + }, + "emailFromName": { + "type": "string" + }, + "emailFromEmail": { + "type": "string" + }, + "logoSrc": { + "type": "string" + }, + "logoSrc100px": { + "type": "string" + }, + "footerUnsubscribeURL": { + "type": "string" + }, + "emailHeaders": { + "$ref": "#/components/schemas/Record_string.string_" + } + }, + "required": [ + "domain" + ], + "type": "object", + "additionalProperties": false + }, + "UpdateDomainConfigParams": { + "properties": { + "domain": { + "type": "string" + }, + "emailFromName": { + "type": "string" + }, + "emailFromEmail": { + "type": "string" + }, + "logoSrc": { + "type": "string" + }, + "logoSrc100px": { + "type": "string" + }, + "footerUnsubscribeURL": { + "type": "string" + }, + "emailHeaders": { + "$ref": "#/components/schemas/Record_string.string_" + } + }, + "required": [ + "domain" + ], + "type": "object", + "additionalProperties": false + }, + "PatchDomainConfigParams": { + "properties": { + "domain": { + "type": "string" + }, + "emailFromName": { + "type": "string" + }, + "emailFromEmail": { + "type": "string" + }, + "logoSrc": { + "type": "string" + }, + "logoSrc100px": { + "type": "string" + }, + "footerUnsubscribeURL": { + "type": "string" + }, + "emailHeaders": { + "$ref": "#/components/schemas/Record_string.string_" + } + }, + "type": "object", + "additionalProperties": false + }, + "APICommentBase": { + "properties": { + "id": { + "type": "string" + }, + "aiDeterminedSpam": { + "type": "boolean" + }, + "anonUserId": { + "type": "string", + "nullable": true + }, + "approved": { + "type": "boolean" + }, + "avatarSrc": { + "type": "string", + "nullable": true + }, + "badges": { + "items": { + "$ref": "#/components/schemas/CommentUserBadgeInfo" + }, + "type": "array", + "nullable": true + }, + "comment": { + "type": "string" + }, + "commentHTML": { + "type": "string" + }, + "commenterEmail": { + "type": "string", + "nullable": true + }, + "commenterLink": { + "type": "string", + "nullable": true + }, + "commenterName": { + "type": "string" + }, + "date": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "displayLabel": { + "type": "string", + "nullable": true + }, + "domain": { + "allOf": [ + { + "$ref": "#/components/schemas/FDomain" + } + ], + "nullable": true + }, + "externalId": { + "type": "string" + }, + "externalParentId": { + "type": "string", + "nullable": true + }, + "expireAt": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "feedbackIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "flagCount": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "fromProductId": { + "type": "integer", + "format": "int32" + }, + "hasCode": { + "type": "boolean" + }, + "hasImages": { + "type": "boolean" + }, + "hasLinks": { + "type": "boolean" + }, + "hashTags": { + "items": { + "$ref": "#/components/schemas/CommentUserHashTagInfo" + }, + "type": "array" + }, + "isByAdmin": { + "type": "boolean" + }, + "isByModerator": { + "type": "boolean" + }, + "isDeleted": { + "type": "boolean" + }, + "isDeletedUser": { + "type": "boolean" + }, + "isPinned": { + "type": "boolean", + "nullable": true + }, + "isLocked": { + "type": "boolean", + "nullable": true + }, + "isSpam": { + "type": "boolean" + }, + "localDateHours": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "localDateString": { + "type": "string", + "nullable": true + }, + "locale": { + "type": "string", + "nullable": true + }, + "mentions": { + "items": { + "$ref": "#/components/schemas/CommentUserMentionInfo" + }, + "type": "array" + }, + "meta": { + "properties": { + "wpUserId": { + "type": "string" + }, + "wpPostId": { + "type": "string" + } + }, + "additionalProperties": {}, + "type": "object", + "nullable": true + }, + "moderationGroupIds": { + "items": { + "type": "string" + }, + "type": "array", + "nullable": true + }, + "notificationSentForParent": { + "type": "boolean" + }, + "notificationSentForParentTenant": { + "type": "boolean" + }, + "pageTitle": { + "type": "string", + "nullable": true + }, + "parentId": { + "type": "string", + "nullable": true + }, + "rating": { + "type": "number", + "format": "double", + "nullable": true + }, + "reviewed": { + "type": "boolean" + }, + "tenantId": { + "type": "string" + }, + "url": { + "type": "string" + }, + "urlId": { + "type": "string" + }, + "urlIdRaw": { + "type": "string" + }, + "userId": { + "allOf": [ + { + "$ref": "#/components/schemas/UserId" + } + ], + "nullable": true + }, + "verified": { + "type": "boolean" + }, + "verifiedDate": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "votes": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "votesDown": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "votesUp": { + "type": "integer", + "format": "int32", + "nullable": true + } + }, + "required": [ + "id", + "approved", + "comment", + "commentHTML", + "commenterName", + "date", + "locale", + "tenantId", + "url", + "urlId", + "verified" + ], + "type": "object", + "additionalProperties": false + }, + "APIComment": { + "allOf": [ + { + "$ref": "#/components/schemas/APICommentBase" + }, + { + "properties": { + "date": { + "type": "number", + "format": "double", + "nullable": true + } + }, + "required": [ + "date" + ], + "type": "object" + } + ] + }, + "APIGetCommentResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "comment": { + "$ref": "#/components/schemas/APIComment" + } + }, + "required": [ + "status", + "comment" + ], + "type": "object", + "additionalProperties": false + }, + "APIGetCommentsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "comments": { + "items": { + "$ref": "#/components/schemas/APIComment" + }, + "type": "array" + } + }, + "required": [ + "status", + "comments" + ], + "type": "object", + "additionalProperties": false + }, + "UpdatableCommentParams": { + "properties": { + "urlId": { + "type": "string" + }, + "urlIdRaw": { + "type": "string" + }, + "url": { + "type": "string" + }, + "pageTitle": { + "type": "string", + "nullable": true + }, + "userId": { + "allOf": [ + { + "$ref": "#/components/schemas/UserId" + } + ], + "nullable": true + }, + "commenterEmail": { + "type": "string", + "nullable": true + }, + "commenterName": { + "type": "string" + }, + "commenterLink": { + "type": "string", + "nullable": true + }, + "comment": { + "type": "string" + }, + "commentHTML": { + "type": "string" + }, + "parentId": { + "type": "string", + "nullable": true + }, + "date": { + "type": "number", + "format": "double", + "nullable": true + }, + "localDateString": { + "type": "string", + "nullable": true + }, + "localDateHours": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "votes": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "votesUp": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "votesDown": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "expireAt": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "verified": { + "type": "boolean" + }, + "verifiedDate": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "notificationSentForParent": { + "type": "boolean" + }, + "notificationSentForParentTenant": { + "type": "boolean" + }, + "reviewed": { + "type": "boolean" + }, + "externalId": { + "type": "string" + }, + "externalParentId": { + "type": "string", + "nullable": true + }, + "avatarSrc": { + "type": "string", + "nullable": true + }, + "isSpam": { + "type": "boolean" + }, + "approved": { + "type": "boolean" + }, + "isDeleted": { + "type": "boolean" + }, + "isDeletedUser": { + "type": "boolean" + }, + "isByAdmin": { + "type": "boolean" + }, + "isByModerator": { + "type": "boolean" + }, + "isPinned": { + "type": "boolean", + "nullable": true + }, + "isLocked": { + "type": "boolean", + "nullable": true + }, + "flagCount": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "displayLabel": { + "type": "string", + "nullable": true + }, + "meta": { + "properties": { + "wpUserId": { + "type": "string" + }, + "wpPostId": { + "type": "string" + } + }, + "additionalProperties": {}, + "type": "object", + "nullable": true + }, + "moderationGroupIds": { + "items": { + "type": "string" + }, + "type": "array", + "nullable": true + }, + "feedbackIds": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object", + "additionalProperties": false + }, + "APISaveCommentResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "comment": { + "$ref": "#/components/schemas/APIComment" + }, + "user": { + "allOf": [ + { + "$ref": "#/components/schemas/UserSessionInfo" + } + ], + "nullable": true + }, + "moduleData": { + "$ref": "#/components/schemas/Record_string.any_" + } + }, + "required": [ + "status", + "comment", + "user" + ], + "type": "object", + "additionalProperties": false + }, + "CreateCommentParams": { + "properties": { + "date": { + "type": "integer", + "format": "int64" + }, + "localDateString": { + "type": "string" + }, + "localDateHours": { + "type": "integer", + "format": "int32" + }, + "commenterName": { + "type": "string" + }, + "commenterEmail": { + "type": "string", + "nullable": true + }, + "commenterLink": { + "type": "string", + "nullable": true + }, + "comment": { + "type": "string" + }, + "productId": { + "type": "integer", + "format": "int32" + }, + "userId": { + "type": "string", + "nullable": true + }, + "avatarSrc": { + "type": "string", + "nullable": true + }, + "parentId": { + "type": "string", + "nullable": true + }, + "mentions": { + "items": { + "$ref": "#/components/schemas/CommentUserMentionInfo" + }, + "type": "array" + }, + "hashTags": { + "items": { + "$ref": "#/components/schemas/CommentUserHashTagInfo" + }, + "type": "array" + }, + "pageTitle": { + "type": "string" + }, + "isFromMyAccountPage": { + "type": "boolean" + }, + "url": { + "type": "string" + }, + "urlId": { + "type": "string" + }, + "meta": { + "additionalProperties": false, + "type": "object" + }, + "moderationGroupIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "rating": { + "type": "number", + "format": "double" + }, + "fromOfflineRestore": { + "type": "boolean" + }, + "autoplayDelayMS": { + "type": "integer", + "format": "int64" + }, + "feedbackIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "questionValues": { + "$ref": "#/components/schemas/Record_string.string-or-number_" + }, + "tos": { + "type": "boolean" + }, + "botId": { + "type": "string" + }, + "approved": { + "type": "boolean" + }, + "domain": { + "type": "string" + }, + "ip": { + "type": "string" + }, + "isPinned": { + "type": "boolean" + }, + "locale": { + "type": "string", + "description": "Example: en_us" + }, + "reviewed": { + "type": "boolean" + }, + "verified": { + "type": "boolean" + }, + "votes": { + "type": "integer", + "format": "int32" + }, + "votesDown": { + "type": "integer", + "format": "int32" + }, + "votesUp": { + "type": "integer", + "format": "int32" + } + }, + "required": [ + "commenterName", + "comment", + "url", + "urlId", + "locale" + ], + "type": "object", + "additionalProperties": false + }, + "FlagCommentResponse": { + "properties": { + "statusCode": { + "type": "integer", + "format": "int32" + }, + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "code": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "wasUnapproved": { + "type": "boolean" + } + }, + "required": [ + "status" + ], + "type": "object", + "additionalProperties": false + }, + "BlockFromCommentParams": { + "properties": { + "commentIdsToCheck": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object", + "additionalProperties": false + }, + "UnBlockFromCommentParams": { + "properties": { + "commentIdsToCheck": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object", + "additionalProperties": false + }, + "APIAuditLog": { + "properties": { + "_id": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "username": { + "type": "string" + }, + "resourceName": { + "type": "string" + }, + "crudType": { + "type": "string", + "enum": [ + "c", + "r", + "u", + "d", + "login" + ] + }, + "from": { + "type": "string", + "enum": [ + "ui", + "api", + "cron" + ] + }, + "url": { + "type": "string", + "nullable": true + }, + "ip": { + "type": "string", + "nullable": true + }, + "when": { + "type": "string", + "format": "date-time" + }, + "description": { + "type": "string" + }, + "serverStartDate": { + "type": "string", + "format": "date-time" + }, + "objectDetails": { + "allOf": [ + { + "$ref": "#/components/schemas/Record_string.any_" + } + ], + "nullable": true + } + }, + "required": [ + "_id", + "resourceName", + "crudType" + ], + "type": "object", + "additionalProperties": false + }, + "GetAuditLogsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "auditLogs": { + "items": { + "$ref": "#/components/schemas/APIAuditLog" + }, + "type": "array" + } + }, + "required": [ + "status", + "auditLogs" + ], + "type": "object", + "additionalProperties": false + }, + "SORT_DIR": { + "type": "string", + "enum": [ + "ASC", + "DESC" + ] + }, + "DistinctAccumulator": { + "$ref": "#/components/schemas/Record_string.number_" + }, + "GroupValues": { + "$ref": "#/components/schemas/Record_string.string_" + }, + "AggregationValue": { + "properties": { + "groups": { + "$ref": "#/components/schemas/GroupValues" + }, + "stringValue": { + "type": "string" + }, + "numericValue": { + "type": "number", + "format": "double" + }, + "distinctCount": { + "type": "integer", + "format": "int64" + }, + "distinctCounts": { + "$ref": "#/components/schemas/DistinctAccumulator" + } + }, + "type": "object" + }, + "Record_string.AggregationValue_": { + "properties": {}, + "additionalProperties": { + "$ref": "#/components/schemas/AggregationValue" + }, + "type": "object", + "description": "Construct a type with a set of properties K of type T" + }, + "AggregationItem": { + "allOf": [ + { + "$ref": "#/components/schemas/Record_string.AggregationValue_" + }, + { + "properties": { + "groups": { + "$ref": "#/components/schemas/GroupValues" + } + }, + "type": "object" + } + ] + }, + "AggregationResponse": { + "description": "The API response returns the aggregated data along with simple stats", + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "data": { + "items": { + "$ref": "#/components/schemas/AggregationItem" + }, + "type": "array" + }, + "stats": { + "properties": { + "timeMS": { + "type": "integer", + "format": "int64" + }, + "scanned": { + "type": "integer", + "format": "int64" + } + }, + "required": [ + "timeMS", + "scanned" + ], + "type": "object" + } + }, + "required": [ + "status", + "data" + ], + "type": "object", + "additionalProperties": false + }, + "AggregationAPIError": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "reason": { + "type": "string" + }, + "code": { + "type": "string" + }, + "validResourceNames": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "status", + "reason", + "code" + ], + "type": "object", + "additionalProperties": false + }, + "QueryPredicate": { + "properties": { + "key": { + "type": "string" + }, + "value": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number", + "format": "double" + }, + { + "type": "boolean" + } + ] + }, + "operator": { + "type": "string", + "enum": [ + "eq", + "not_eq", + "greater_than", + "less_than", + "contains" + ] + } + }, + "required": [ + "key", + "value", + "operator" + ], + "type": "object", + "additionalProperties": false + }, + "AggregationOpType": { + "type": "string", + "enum": [ + "sum", + "countDistinct", + "distinct", + "avg", + "min", + "max", + "count" + ], + "description": "The supported aggregation operation types" + }, + "AggregationOperation": { + "description": "An operation that will be applied on a field", + "properties": { + "field": { + "type": "string", + "description": "The field to operate on" + }, + "op": { + "$ref": "#/components/schemas/AggregationOpType", + "description": "The type of operation" + }, + "alias": { + "type": "string", + "description": "Optional alias for the output; if not provided, a default alias is computed" + }, + "expandArray": { + "type": "boolean" + } + }, + "required": [ + "field", + "op" + ], + "type": "object", + "additionalProperties": false + }, + "AggregationRequest": { + "description": "The aggregation request accepts a resource, optional grouping keys, an array of operations, and an optional sort", + "properties": { + "query": { + "items": { + "$ref": "#/components/schemas/QueryPredicate" + }, + "type": "array" + }, + "resourceName": { + "type": "string" + }, + "groupBy": { + "items": { + "type": "string" + }, + "type": "array" + }, + "operations": { + "items": { + "$ref": "#/components/schemas/AggregationOperation" + }, + "type": "array" + }, + "sort": { + "properties": { + "dir": { + "type": "string", + "enum": [ + "asc", + "desc" + ] + }, + "field": { + "type": "string" + } + }, + "required": [ + "dir", + "field" + ], + "type": "object" + } + }, + "required": [ + "resourceName", + "operations" + ], + "type": "object", + "additionalProperties": false + } + }, + "securitySchemes": { + "api_key": { + "type": "apiKey", + "name": "x-api-key", + "in": "header" + } + } + }, + "info": { + "title": "fastcomments", + "version": "0.0.0", + "contact": {} + }, + "paths": { + "/user-search/{tenantId}": { + "get": { + "operationId": "SearchUsers", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SearchUsersResult" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usernameStartsWith", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "mentionGroupIds", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "searchSection", + "required": false, + "schema": { + "type": "string", + "enum": [ + "fast", + "site" + ] + } + } + ] + } + }, + "/user-presence-status": { + "get": { + "operationId": "GetUserPresenceStatuses", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetUserPresenceStatusesResponse" + } + } + } + }, + "422": { + "description": "Validation Failed", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlIdWS", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "userIds", + "required": true, + "schema": { + "type": "string" + } + } + ] + } + }, + "/user-notifications": { + "get": { + "operationId": "GetUserNotifications", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetMyNotificationsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Used to determine whether the current page is subscribed.", + "in": "query", + "name": "urlId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "pageSize", + "required": false, + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "in": "query", + "name": "afterId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "includeContext", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "afterCreatedAt", + "required": false, + "schema": { + "format": "int64", + "type": "integer" + } + }, + { + "in": "query", + "name": "unreadOnly", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "dmOnly", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "noDm", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "includeTranslations", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "includeTenantNotifications", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/user-notifications/reset": { + "post": { + "operationId": "ResetUserNotifications", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ResetUserNotificationsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "afterId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "afterCreatedAt", + "required": false, + "schema": { + "format": "int64", + "type": "integer" + } + }, + { + "in": "query", + "name": "unreadOnly", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "dmOnly", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "noDm", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/user-notifications/get-count": { + "get": { + "operationId": "GetUserNotificationCount", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetUserNotificationCountResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/user-notifications/reset-count": { + "post": { + "operationId": "ResetUserNotificationCount", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ResetUserNotificationsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/user-notifications/{notificationId}/mark/{newStatus}": { + "post": { + "operationId": "UpdateUserNotificationStatus", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "title": "UpdateUserNotificationStatusResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/UserNotificationWriteResponse" + }, + { + "$ref": "#/components/schemas/IgnoredResponse" + } + ] + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "notificationId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "newStatus", + "required": true, + "schema": { + "type": "string", + "enum": [ + "read", + "unread" + ] + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/user-notifications/{notificationId}/mark-opted/{optedInOrOut}": { + "post": { + "operationId": "UpdateUserNotificationCommentSubscriptionStatus", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "title": "UpdateUserNotificationCommentSubscriptionStatusResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/UserNotificationWriteResponse" + }, + { + "$ref": "#/components/schemas/IgnoredResponse" + } + ] + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "description": "Enable or disable notifications for a specific comment.", + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "notificationId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "optedInOrOut", + "required": true, + "schema": { + "type": "string", + "enum": [ + "in", + "out" + ] + } + }, + { + "in": "query", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/user-notifications/set-subscription-state/{subscribedOrUnsubscribed}": { + "post": { + "operationId": "UpdateUserNotificationPageSubscriptionStatus", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "title": "UpdateUserNotificationPageSubscriptionStatusResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/UserNotificationWriteResponse" + }, + { + "$ref": "#/components/schemas/IgnoredResponse" + } + ] + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "description": "Enable or disable notifications for a page. When users are subscribed to a page, notifications are created\nfor new root comments, and also", + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "url", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "pageTitle", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "subscribedOrUnsubscribed", + "required": true, + "schema": { + "type": "string", + "enum": [ + "subscribe", + "unsubscribe" + ] + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/upload-image/{tenantId}": { + "post": { + "operationId": "UploadImage", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UploadImageResponse" + } + } + } + } + }, + "description": "Upload and resize an image", + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Size preset: \"Default\" (1000x1000px) or \"CrossPlatform\" (creates sizes for popular devices)", + "in": "query", + "name": "sizePreset", + "required": false, + "schema": { + "$ref": "#/components/schemas/SizePreset" + } + }, + { + "description": "Page id that upload is happening from, to configure", + "in": "query", + "name": "urlId", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "file": { + "type": "string", + "format": "binary" + } + }, + "required": [ + "file" + ] + } + } + } + } + } + }, + "/translations/{namespace}/{component}": { + "get": { + "operationId": "GetTranslations", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetTranslationsResponse" + } + } + } + }, + "422": { + "description": "Validation Failed", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + }, + "500": { + "description": "Internal", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "namespace", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "component", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "useFullTranslationIds", + "required": false, + "schema": { + "type": "boolean" + } + } + ] + } + }, + "/pages/{tenantId}": { + "get": { + "operationId": "GetPagesPublic", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetPublicPagesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "description": "List pages for a tenant. Used by the FChat desktop client to populate its room list.\nRequires `enableFChat` to be true on the resolved custom config for each page.\nPages that require SSO are filtered against the requesting user's group access.", + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`.", + "in": "query", + "name": "cursor", + "required": false, + "schema": { + "type": "string" + } + }, + { + "description": "1..200, default 50", + "in": "query", + "name": "limit", + "required": false, + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "description": "Optional case-insensitive title prefix filter.", + "in": "query", + "name": "q", + "required": false, + "schema": { + "type": "string" + } + }, + { + "description": "Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical).", + "in": "query", + "name": "sortBy", + "required": false, + "schema": { + "$ref": "#/components/schemas/PagesSortBy" + } + }, + { + "description": "If true, only return pages with at least one comment.", + "in": "query", + "name": "hasComments", + "required": false, + "schema": { + "type": "boolean" + } + } + ] + } + }, + "/pages/{tenantId}/users/online": { + "get": { + "operationId": "GetOnlineUsers", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PageUsersOnlineResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + }, + "422": { + "description": "Validation Failed", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "description": "Currently-online viewers of a page: people whose websocket session is subscribed to the page right now.\nReturns anonCount + totalCount (room-wide subscribers, including anon viewers we don't enumerate).", + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Page URL identifier (cleaned server-side).", + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Cursor: pass nextAfterName from the previous response.", + "in": "query", + "name": "afterName", + "required": false, + "schema": { + "type": "string" + } + }, + { + "description": "Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries.", + "in": "query", + "name": "afterUserId", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/pages/{tenantId}/users/offline": { + "get": { + "operationId": "GetOfflineUsers", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PageUsersOfflineResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + }, + "422": { + "description": "Validation Failed", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "description": "Past commenters on the page who are NOT currently online. Sorted by displayName.\nUse this after exhausting /users/online to render a \"Members\" section.\nCursor pagination on commenterName: server walks the partial {tenantId, urlId, commenterName}\nindex from afterName forward via $gt, no $skip cost.", + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Page URL identifier (cleaned server-side).", + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Cursor: pass nextAfterName from the previous response.", + "in": "query", + "name": "afterName", + "required": false, + "schema": { + "type": "string" + } + }, + { + "description": "Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries.", + "in": "query", + "name": "afterUserId", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/pages/{tenantId}/users/info": { + "get": { + "operationId": "GetUsersInfo", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PageUsersInfoResponse" + } + } + } + }, + "422": { + "description": "Validation Failed", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "description": "Bulk user info for a tenant. Given userIds, return display info from User / SSOUser.\nUsed by the comment widget to enrich users that just appeared via a presence event.\nNo page context: privacy is enforced uniformly (private profiles are masked).", + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Comma-delimited userIds.", + "in": "query", + "name": "ids", + "required": true, + "schema": { + "type": "string" + } + } + ] + } + }, + "/page-reacts/v1/likes/{tenantId}": { + "get": { + "operationId": "GetV1PageLikes", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetV1PageLikes" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "post": { + "operationId": "CreateV1PageReact", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateV1PageReact" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "title", + "required": false, + "schema": { + "type": "string" + } + } + ] + }, + "delete": { + "operationId": "DeleteV1PageReact", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeleteV1PageReact" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + } + ] + } + }, + "/page-reacts/v2/{tenantId}/list": { + "get": { + "operationId": "GetV2PageReactUsers", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetV2PageReactUsersResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ] + } + }, + "/page-reacts/v2/{tenantId}": { + "get": { + "operationId": "GetV2PageReacts", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetV2PageReacts" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "post": { + "operationId": "CreateV2PageReact", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateV2PageReact" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "title", + "required": false, + "schema": { + "type": "string" + } + } + ] + }, + "delete": { + "operationId": "DeleteV2PageReact", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeleteV2PageReact" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/count": { + "get": { + "operationId": "GetCount", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationAPICountCommentsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "text-search", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "byIPFromComment", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "filter", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "searchFilters", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "demo", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/api/ids": { + "get": { + "operationId": "GetApiIds", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationAPIGetCommentIdsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "text-search", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "byIPFromComment", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "filters", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "searchFilters", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "afterId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "demo", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/api/comments": { + "get": { + "operationId": "GetApiComments", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationAPIGetCommentsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "format": "double", + "type": "number" + } + }, + { + "in": "query", + "name": "count", + "required": false, + "schema": { + "format": "double", + "type": "number" + } + }, + { + "in": "query", + "name": "text-search", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "byIPFromComment", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "filters", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "searchFilters", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sorts", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "demo", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/api/export": { + "post": { + "operationId": "PostApiExport", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationExportResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "text-search", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "byIPFromComment", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "filters", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "searchFilters", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sorts", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/api/export/status": { + "get": { + "operationId": "GetApiExportStatus", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationExportStatusResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "batchJobId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/search/users": { + "get": { + "operationId": "GetSearchUsers", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationUserSearchResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "value", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/search/pages": { + "get": { + "operationId": "GetSearchPages", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationPageSearchResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "value", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/search/sites": { + "get": { + "operationId": "GetSearchSites", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationSiteSearchResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "value", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/search/comments/summary": { + "get": { + "operationId": "GetSearchCommentsSummary", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationCommentSearchResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "value", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "filters", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "searchFilters", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/search/suggest": { + "get": { + "operationId": "GetSearchSuggest", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationSuggestResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "text-search", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/pre-ban-summary/{commentId}": { + "get": { + "operationId": "GetPreBanSummary", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PreBanSummary" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "includeByUserIdAndEmail", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "includeByIP", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "includeByEmailDomain", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/bulk-pre-ban-summary": { + "post": { + "operationId": "PostBulkPreBanSummary", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BulkPreBanSummary" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "includeByUserIdAndEmail", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "includeByIP", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "includeByEmailDomain", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BulkPreBanParams" + } + } + } + } + } + }, + "/auth/my-account/moderate-comments/ban-user/from-comment/{commentId}": { + "post": { + "operationId": "PostBanUserFromComment", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BanUserFromCommentResult" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "banEmail", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "banEmailDomain", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "banIP", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "deleteAllUsersComments", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "bannedUntil", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "isShadowBan", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "updateId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "banReason", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/ban-users/from-comment/{commentId}": { + "get": { + "operationId": "GetBanUsersFromComment", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetBannedUsersFromCommentResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/ban-user/undo": { + "post": { + "operationId": "PostBanUserUndo", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BanUserUndoParams" + } + } + } + } + } + }, + "/auth/my-account/moderate-comments/remove-comment/{commentId}": { + "post": { + "operationId": "PostRemoveComment", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "title": "PostRemoveCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/DeleteCommentResult" + }, + { + "$ref": "#/components/schemas/RemoveCommentActionResponse" + } + ] + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/restore-deleted-comment/{commentId}": { + "post": { + "operationId": "PostRestoreDeletedComment", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/flag-comment/{commentId}": { + "post": { + "operationId": "PostFlagComment", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/un-flag-comment/{commentId}": { + "post": { + "operationId": "PostUnFlagComment", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/set-comment-review-status/{commentId}": { + "post": { + "operationId": "PostSetCommentReviewStatus", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "reviewed", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/set-comment-spam-status/{commentId}": { + "post": { + "operationId": "PostSetCommentSpamStatus", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "spam", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "permNotSpam", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/set-comment-approval-status/{commentId}": { + "post": { + "operationId": "PostSetCommentApprovalStatus", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SetCommentApprovedResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "approved", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/logs/{commentId}": { + "get": { + "operationId": "GetLogs", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationAPIGetLogsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/comment/{commentId}": { + "get": { + "operationId": "GetModerationComment", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationAPICommentResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "includeEmail", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "includeIP", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/comments-by-ids": { + "post": { + "operationId": "PostCommentsByIds", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationAPIChildCommentsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommentsByIdsParams" + } + } + } + } + } + }, + "/auth/my-account/moderate-comments/comment-children/{commentId}": { + "get": { + "operationId": "GetCommentChildren", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationAPIChildCommentsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/get-comment-text/{commentId}": { + "get": { + "operationId": "GetModerationCommentText", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetCommentTextResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/set-comment-text/{commentId}": { + "post": { + "operationId": "PostSetCommentText", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SetCommentTextResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SetCommentTextParams" + } + } + } + } } - } - }, - "info": { - "title": "fastcomments", - "version": "0.0.0", - "contact": {} - }, - "paths": { - "/user-search/{tenantId}": { + }, + "/auth/my-account/moderate-comments/adjust-comment-votes/{commentId}": { + "post": { + "operationId": "PostAdjustCommentVotes", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AdjustVotesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AdjustCommentVotesParams" + } + } + } + } + } + }, + "/auth/my-account/moderate-comments/vote/{commentId}": { + "post": { + "operationId": "PostVote", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VoteResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "direction", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/vote/{commentId}/{voteId}": { + "delete": { + "operationId": "DeleteModerationVote", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VoteDeleteResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "voteId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/get-comment-ban-status/{commentId}": { "get": { - "operationId": "SearchUsers", + "operationId": "GetCommentBanStatus", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/SearchUsersSectionedResponse" - }, - { - "$ref": "#/components/schemas/SearchUsersResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetCommentBanStatusResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/user-ban-preference": { + "get": { + "operationId": "GetUserBanPreference", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIModerateGetUserBanPreferencesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } } }, "tags": [ - "Public" + "Moderation" ], "security": [], "parameters": [ - { - "in": "path", - "name": "tenantId", - "required": true, - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "urlId", - "required": true, - "schema": { - "type": "string" - } - }, { "in": "query", - "name": "usernameStartsWith", + "name": "sso", "required": false, "schema": { "type": "string" } - }, - { - "in": "query", - "name": "mentionGroupIds", - "required": false, - "schema": { - "type": "array", - "items": { - "type": "string" + } + ] + } + }, + "/auth/my-account/moderate-comments/get-manual-badges": { + "get": { + "operationId": "GetManualBadges", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetTenantManualBadgesResponse" + } } } }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ { "in": "query", "name": "sso", @@ -9623,45 +15141,26 @@ "schema": { "type": "string" } - }, - { - "in": "query", - "name": "searchSection", - "required": false, - "schema": { - "type": "string", - "enum": [ - "fast", - "site" - ] - } } ] } }, - "/user-presence-status": { + "/auth/my-account/moderate-comments/get-manual-badges-for-user": { "get": { - "operationId": "GetUserPresenceStatuses", + "operationId": "GetManualBadgesForUser", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetUserPresenceStatusesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetUserManualBadgesResponse" } } } }, - "422": { - "description": "Validation Failed", + "default": { + "description": "Error", "content": { "application/json": { "schema": { @@ -9672,30 +15171,30 @@ } }, "tags": [ - "Public" + "Moderation" ], "security": [], "parameters": [ { "in": "query", - "name": "tenantId", - "required": true, + "name": "badgesUserId", + "required": false, "schema": { "type": "string" } }, { "in": "query", - "name": "urlIdWS", - "required": true, + "name": "commentId", + "required": false, "schema": { "type": "string" } }, { "in": "query", - "name": "userIds", - "required": true, + "name": "sso", + "required": false, "schema": { "type": "string" } @@ -9703,36 +15202,39 @@ ] } }, - "/user-notifications": { - "get": { - "operationId": "GetUserNotifications", + "/auth/my-account/moderate-comments/award-badge": { + "put": { + "operationId": "PutAwardBadge", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetMyNotificationsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/AwardUserBadgeResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } } }, "tags": [ - "Public" + "Moderation" ], "security": [], "parameters": [ { "in": "query", - "name": "tenantId", + "name": "badgeId", "required": true, "schema": { "type": "string" @@ -9740,16 +15242,15 @@ }, { "in": "query", - "name": "pageSize", + "name": "userId", "required": false, "schema": { - "format": "int32", - "type": "integer" + "type": "string" } }, { "in": "query", - "name": "afterId", + "name": "commentId", "required": false, "schema": { "type": "string" @@ -9757,51 +15258,83 @@ }, { "in": "query", - "name": "includeContext", + "name": "broadcastId", "required": false, "schema": { - "type": "boolean" + "type": "string" } }, { "in": "query", - "name": "afterCreatedAt", + "name": "sso", "required": false, "schema": { - "format": "int64", - "type": "integer" + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/remove-badge": { + "put": { + "operationId": "PutRemoveBadge", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RemoveUserBadgeResponse" + } + } } }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ { "in": "query", - "name": "unreadOnly", - "required": false, + "name": "badgeId", + "required": true, "schema": { - "type": "boolean" + "type": "string" } }, { "in": "query", - "name": "dmOnly", + "name": "userId", "required": false, "schema": { - "type": "boolean" + "type": "string" } }, { "in": "query", - "name": "noDm", + "name": "commentId", "required": false, "schema": { - "type": "boolean" + "type": "string" } }, { "in": "query", - "name": "includeTranslations", + "name": "broadcastId", "required": false, "schema": { - "type": "boolean" + "type": "string" } }, { @@ -9815,80 +15348,148 @@ ] } }, - "/user-notifications/reset": { - "post": { - "operationId": "ResetUserNotifications", + "/auth/my-account/moderate-comments/get-trust-factor": { + "get": { + "operationId": "GetTrustFactor", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/ResetUserNotificationsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetUserTrustFactorResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } } }, "tags": [ - "Public" + "Moderation" ], "security": [], "parameters": [ { "in": "query", - "name": "tenantId", - "required": true, + "name": "userId", + "required": false, "schema": { "type": "string" } }, { "in": "query", - "name": "afterId", + "name": "sso", "required": false, "schema": { "type": "string" } + } + ] + } + }, + "/auth/my-account/moderate-comments/set-trust-factor": { + "put": { + "operationId": "SetTrustFactor", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SetUserTrustFactorResponse" + } + } + } }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ { "in": "query", - "name": "afterCreatedAt", + "name": "userId", "required": false, "schema": { - "format": "int64", - "type": "integer" + "type": "string" } }, { "in": "query", - "name": "unreadOnly", + "name": "trustFactor", "required": false, "schema": { - "type": "boolean" + "type": "string" } }, { "in": "query", - "name": "dmOnly", + "name": "sso", "required": false, "schema": { - "type": "boolean" + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/get-user-internal-profile": { + "get": { + "operationId": "GetUserInternalProfile", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetUserInternalProfileResponse" + } + } } }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ { "in": "query", - "name": "noDm", + "name": "commentId", "required": false, "schema": { - "type": "boolean" + "type": "string" } }, { @@ -9902,36 +15503,39 @@ ] } }, - "/user-notifications/get-count": { - "get": { - "operationId": "GetUserNotificationCount", + "/auth/my-account/moderate-comments/reopen-thread": { + "put": { + "operationId": "PutReopenThread", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetUserNotificationCountResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } } }, "tags": [ - "Public" + "Moderation" ], "security": [], "parameters": [ { "in": "query", - "name": "tenantId", + "name": "urlId", "required": true, "schema": { "type": "string" @@ -9948,36 +15552,39 @@ ] } }, - "/user-notifications/reset-count": { - "post": { - "operationId": "ResetUserNotificationCount", + "/auth/my-account/moderate-comments/close-thread": { + "put": { + "operationId": "PutCloseThread", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/ResetUserNotificationsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } } }, "tags": [ - "Public" + "Moderation" ], "security": [], "parameters": [ { "in": "query", - "name": "tenantId", + "name": "urlId", "required": true, "schema": { "type": "string" @@ -9994,64 +15601,36 @@ ] } }, - "/user-notifications/{notificationId}/mark/{newStatus}": { - "post": { - "operationId": "UpdateUserNotificationStatus", + "/auth/my-account/moderate-comments/banned-users/counts": { + "get": { + "operationId": "GetCounts", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/UserNotificationWriteResponse" - }, - { - "$ref": "#/components/schemas/IgnoredResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetBannedUsersCountResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } } }, "tags": [ - "Public" + "Moderation" ], "security": [], "parameters": [ - { - "in": "query", - "name": "tenantId", - "required": true, - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "notificationId", - "required": true, - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "newStatus", - "required": true, - "schema": { - "type": "string", - "enum": [ - "read", - "unread" - ] - } - }, { "in": "query", "name": "sso", @@ -10063,24 +15642,22 @@ ] } }, - "/user-notifications/{notificationId}/mark-opted/{optedInOrOut}": { - "post": { - "operationId": "UpdateUserNotificationCommentSubscriptionStatus", + "/gifs/trending/{tenantId}": { + "get": { + "operationId": "GetGifsTrending", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { + "title": "GetGifsTrendingResponse", "anyOf": [ { - "$ref": "#/components/schemas/UserNotificationWriteResponse" - }, - { - "$ref": "#/components/schemas/IgnoredResponse" + "$ref": "#/components/schemas/GifSearchResponse" }, { - "$ref": "#/components/schemas/APIError" + "$ref": "#/components/schemas/GifSearchInternalError" } ] } @@ -10088,14 +15665,13 @@ } } }, - "description": "Enable or disable notifications for a specific comment.", "tags": [ "Public" ], "security": [], "parameters": [ { - "in": "query", + "in": "path", "name": "tenantId", "required": true, "schema": { @@ -10103,77 +15679,83 @@ } }, { - "in": "path", - "name": "notificationId", - "required": true, + "in": "query", + "name": "locale", + "required": false, "schema": { "type": "string" } }, - { - "in": "path", - "name": "optedInOrOut", - "required": true, - "schema": { - "type": "string", - "enum": [ - "in", - "out" - ] - } - }, { "in": "query", - "name": "commentId", - "required": true, + "name": "rating", + "required": false, "schema": { "type": "string" } }, { "in": "query", - "name": "sso", + "name": "page", "required": false, "schema": { - "type": "string" + "format": "double", + "type": "number" } } ] } }, - "/user-notifications/set-subscription-state/{subscribedOrUnsubscribed}": { - "post": { - "operationId": "UpdateUserNotificationPageSubscriptionStatus", + "/gifs/search/{tenantId}": { + "get": { + "operationId": "GetGifsSearch", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { + "title": "GetGifsSearchResponse", "anyOf": [ { - "$ref": "#/components/schemas/UserNotificationWriteResponse" - }, - { - "$ref": "#/components/schemas/IgnoredResponse" + "$ref": "#/components/schemas/GifSearchResponse" }, { - "$ref": "#/components/schemas/APIError" + "$ref": "#/components/schemas/GifSearchInternalError" } ] } } } + }, + "422": { + "description": "Validation Failed", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } } }, - "description": "Enable or disable notifications for a page. When users are subscribed to a page, notifications are created\nfor new root comments, and also", "tags": [ "Public" ], "security": [], "parameters": [ { - "in": "query", + "in": "path", "name": "tenantId", "required": true, "schema": { @@ -10182,7 +15764,7 @@ }, { "in": "query", - "name": "urlId", + "name": "search", "required": true, "schema": { "type": "string" @@ -10190,59 +15772,67 @@ }, { "in": "query", - "name": "url", - "required": true, + "name": "locale", + "required": false, "schema": { "type": "string" } }, { "in": "query", - "name": "pageTitle", - "required": true, + "name": "rating", + "required": false, "schema": { "type": "string" } }, - { - "in": "path", - "name": "subscribedOrUnsubscribed", - "required": true, - "schema": { - "type": "string", - "enum": [ - "subscribe", - "unsubscribe" - ] - } - }, { "in": "query", - "name": "sso", + "name": "page", "required": false, "schema": { - "type": "string" + "format": "double", + "type": "number" } } ] } }, - "/upload-image/{tenantId}": { - "post": { - "operationId": "UploadImage", + "/gifs/get-large/{tenantId}": { + "get": { + "operationId": "GetGifLarge", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UploadImageResponse" + "$ref": "#/components/schemas/GifGetLargeResponse" + } + } + } + }, + "422": { + "description": "Validation Failed", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } } }, - "description": "Upload and resize an image", "tags": [ "Public" ], @@ -10257,43 +15847,14 @@ } }, { - "description": "Size preset: \"Default\" (1000x1000px) or \"CrossPlatform\" (creates sizes for popular devices)", - "in": "query", - "name": "sizePreset", - "required": false, - "schema": { - "$ref": "#/components/schemas/SizePreset" - } - }, - { - "description": "Page id that upload is happening from, to configure", "in": "query", - "name": "urlId", - "required": false, + "name": "largeInternalURLSanitized", + "required": true, "schema": { "type": "string" } } - ], - "requestBody": { - "required": true, - "content": { - "multipart/form-data": { - "schema": { - "type": "object", - "properties": { - "file": { - "type": "string", - "format": "binary" - } - }, - "required": [ - "file" - ] - } - } - } - } + ] } }, "/flag-comment/{commentId}": { @@ -10305,14 +15866,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -10367,14 +15931,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/PublicFeedPostsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/PublicFeedPostsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -10456,14 +16023,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateFeedPostResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateFeedPostResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -10520,14 +16090,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/ReactFeedPostResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ReactFeedPostResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -10600,14 +16173,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/UserReactsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/UserReactsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -10657,14 +16233,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateFeedPostResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateFeedPostResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -10727,22 +16306,26 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - { - "$ref": "#/components/schemas/APIError" + "title": "DeleteFeedPostPublicResponse", + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" } - ] + }, + "required": [ + "status" + ], + "type": "object" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -10797,14 +16380,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/FeedPostsStatsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/FeedPostsStatsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -10854,14 +16440,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetEventLogResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetEventLogResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -10909,7 +16498,7 @@ { "in": "query", "name": "endTime", - "required": true, + "required": false, "schema": { "format": "int64", "type": "integer" @@ -10927,14 +16516,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetEventLogResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetEventLogResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -10982,7 +16574,7 @@ { "in": "query", "name": "endTime", - "required": true, + "required": false, "schema": { "format": "int64", "type": "integer" @@ -11000,14 +16592,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/PublicAPIGetCommentTextResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/PublicAPIGetCommentTextResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11062,14 +16657,100 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/PublicAPISetCommentTextResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/PublicAPISetCommentTextResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "broadcastId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "editKey", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommentTextUpdateRequest" + } + } + } + } + } + }, + "/comments-for-user": { + "get": { + "operationId": "GetCommentsForUser", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetCommentsForUserResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11081,56 +16762,63 @@ "security": [], "parameters": [ { - "in": "path", - "name": "tenantId", - "required": true, + "in": "query", + "name": "userId", + "required": false, "schema": { "type": "string" } }, { - "in": "path", - "name": "commentId", - "required": true, + "in": "query", + "name": "direction", + "required": false, "schema": { - "type": "string" + "$ref": "#/components/schemas/SortDirections" } }, { "in": "query", - "name": "broadcastId", - "required": true, + "name": "repliesToUserId", + "required": false, "schema": { "type": "string" } }, { "in": "query", - "name": "editKey", + "name": "page", "required": false, "schema": { - "type": "string" + "format": "double", + "type": "number" } }, { "in": "query", - "name": "sso", + "name": "includei10n", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "locale", "required": false, "schema": { "type": "string" } - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CommentTextUpdateRequest" - } + }, + { + "in": "query", + "name": "isCrawler", + "required": false, + "schema": { + "type": "boolean" } } - } + ] } }, "/comments/{tenantId}": { @@ -11142,14 +16830,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetCommentsResponseWithPresence_PublicComment_" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetCommentsResponseWithPresence_PublicComment_" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11404,14 +17095,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/SaveCommentsResponseWithPresence" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/SaveCommentsResponseWithPresence" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11484,14 +17178,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/PublicAPIDeleteCommentResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/PublicAPIDeleteCommentResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11554,14 +17251,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CheckBlockedCommentsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CheckBlockedCommentsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11609,14 +17309,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/VoteResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/VoteResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11697,14 +17400,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/VoteDeleteResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/VoteDeleteResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11783,14 +17489,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetCommentVoteUserNamesSuccessResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetCommentVoteUserNamesSuccessResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11846,14 +17555,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/ChangeCommentPinStatusResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ChangeCommentPinStatusResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11908,14 +17620,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/ChangeCommentPinStatusResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ChangeCommentPinStatusResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11970,14 +17685,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIError" - }, - { - "$ref": "#/components/schemas/APIEmptyResponse" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -12032,14 +17750,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIError" - }, - { - "$ref": "#/components/schemas/APIEmptyResponse" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -12094,14 +17815,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/BlockSuccess" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/BlockSuccess" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -12156,14 +17880,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/UnblockSuccess" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/UnblockSuccess" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -12211,6 +17938,28 @@ } } }, + "/auth/logout": { + "put": { + "operationId": "LogoutPublic", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [] + } + }, "/api/v1/subscriptions": { "get": { "operationId": "GetSubscriptions", @@ -12404,6 +18153,7 @@ "content": { "application/json": { "schema": { + "title": "GetSSOUsersResponse", "properties": { "users": { "items": { @@ -12948,14 +18698,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetVotesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetVotesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -12993,14 +18746,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/VoteResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/VoteResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13068,14 +18824,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetVotesForUserResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetVotesForUserResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13131,14 +18890,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/VoteDeleteResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/VoteDeleteResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13186,14 +18948,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetUserResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetUserResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13233,14 +18998,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIGetUserBadgeResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIGetUserBadgeResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13278,14 +19046,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptySuccessResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptySuccessResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13333,14 +19104,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptySuccessResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptySuccessResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13380,14 +19154,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIGetUserBadgesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIGetUserBadgesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13468,14 +19245,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APICreateUserBadgeResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APICreateUserBadgeResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13517,14 +19297,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIGetUserBadgeProgressResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIGetUserBadgeProgressResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13564,14 +19347,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIGetUserBadgeProgressListResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIGetUserBadgeProgressListResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13629,14 +19415,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIGetUserBadgeProgressResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIGetUserBadgeProgressResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13676,14 +19465,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetTicketsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTicketsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13748,14 +19540,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateTicketResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateTicketResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13805,14 +19600,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetTicketResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTicketResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13860,14 +19658,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/ChangeTicketStateResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ChangeTicketStateResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13925,14 +19726,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13970,14 +19774,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14025,14 +19832,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14080,14 +19890,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14134,14 +19947,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateTenantResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateTenantResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14183,14 +19999,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantUserResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantUserResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14228,14 +20047,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14291,14 +20113,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14354,14 +20179,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14417,14 +20245,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantUsersResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantUsersResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14463,14 +20294,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateTenantUserResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateTenantUserResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14512,14 +20346,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14567,14 +20404,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantPackageResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantPackageResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14612,14 +20452,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14667,14 +20510,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14722,14 +20568,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14769,14 +20618,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantPackagesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantPackagesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14815,14 +20667,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateTenantPackageResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateTenantPackageResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14864,14 +20719,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantDailyUsagesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantDailyUsagesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14939,14 +20797,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetQuestionResultResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetQuestionResultResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14984,14 +20845,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15039,14 +20903,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15086,14 +20953,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetQuestionResultsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetQuestionResultsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15172,14 +21042,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateQuestionResultResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateQuestionResultResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15221,14 +21094,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/AggregateQuestionResultsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/AggregateQuestionResultsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15312,14 +21188,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/BulkAggregateQuestionResultsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/BulkAggregateQuestionResultsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15369,14 +21248,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CombineQuestionResultsWithCommentsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CombineQuestionResultsWithCommentsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15479,14 +21361,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetQuestionConfigResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetQuestionConfigResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15524,14 +21409,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15579,14 +21467,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15626,14 +21517,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetQuestionConfigsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetQuestionConfigsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15672,14 +21566,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateQuestionConfigResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateQuestionConfigResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15721,14 +21618,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetPendingWebhookEventsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetPendingWebhookEventsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15818,14 +21718,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetPendingWebhookEventCountResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetPendingWebhookEventCountResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15906,14 +21809,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15953,14 +21859,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetNotificationsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetNotificationsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16041,14 +21950,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetNotificationCountResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetNotificationCountResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16120,14 +22032,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16185,14 +22100,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetCachedNotificationCountResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetCachedNotificationCountResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16230,14 +22148,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16277,14 +22198,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetModeratorResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetModeratorResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16322,14 +22246,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16377,14 +22304,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16432,14 +22362,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetModeratorsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetModeratorsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16478,14 +22411,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateModeratorResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateModeratorResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16527,14 +22463,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16582,14 +22521,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetHashTagsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetHashTagsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16628,14 +22570,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateHashTagResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateHashTagResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16677,14 +22622,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/BulkCreateHashTagsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/BulkCreateHashTagsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16726,14 +22674,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/UpdateHashTagResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/UpdateHashTagResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16781,14 +22732,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16822,6 +22776,7 @@ "content": { "application/json": { "schema": { + "title": "DeleteHashTagRequestBody", "properties": { "tenantId": { "type": "string" @@ -16843,14 +22798,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetFeedPostsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetFeedPostsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16909,14 +22867,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateFeedPostsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateFeedPostsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16990,14 +22951,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17047,14 +23011,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetEmailTemplateDefinitionsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetEmailTemplateDefinitionsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17086,14 +23053,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetEmailTemplateRenderErrorsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetEmailTemplateRenderErrorsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17142,14 +23112,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17197,14 +23170,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetEmailTemplateResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetEmailTemplateResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17242,14 +23218,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17297,14 +23276,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17344,14 +23326,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetEmailTemplatesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetEmailTemplatesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17390,14 +23375,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateEmailTemplateResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateEmailTemplateResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17439,14 +23427,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/RenderEmailTemplateResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/RenderEmailTemplateResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17496,6 +23487,7 @@ "content": { "application/json": { "schema": { + "title": "GetDomainConfigsResponse", "anyOf": [ { "properties": { @@ -17555,6 +23547,7 @@ "content": { "application/json": { "schema": { + "title": "AddDomainConfigResponse", "anyOf": [ { "properties": { @@ -17626,6 +23619,7 @@ "content": { "application/json": { "schema": { + "title": "GetDomainConfigResponse", "anyOf": [ { "properties": { @@ -17693,6 +23687,7 @@ "content": { "application/json": { "schema": { + "title": "DeleteDomainConfigResponse", "properties": { "status": {} }, @@ -17739,6 +23734,7 @@ "content": { "application/json": { "schema": { + "title": "PutDomainConfigResponse", "anyOf": [ { "properties": { @@ -17816,6 +23812,7 @@ "content": { "application/json": { "schema": { + "title": "PatchDomainConfigResponse", "anyOf": [ { "properties": { @@ -17895,14 +23892,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIGetCommentResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIGetCommentResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17940,14 +23940,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -18019,14 +24022,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/DeleteCommentResult" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/DeleteCommentResult" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -18082,14 +24088,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIGetCommentsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIGetCommentsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -18226,6 +24235,24 @@ "schema": { "$ref": "#/components/schemas/SortDirections" } + }, + { + "in": "query", + "name": "fromDate", + "required": false, + "schema": { + "format": "int64", + "type": "integer" + } + }, + { + "in": "query", + "name": "toDate", + "required": false, + "schema": { + "format": "int64", + "type": "integer" + } } ] }, @@ -18237,14 +24264,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/SaveCommentResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APISaveCommentResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -18319,9 +24349,10 @@ "application/json": { "schema": { "items": { + "title": "SaveCommentsBulkResponse", "anyOf": [ { - "$ref": "#/components/schemas/SaveCommentResponse" + "$ref": "#/components/schemas/APISaveCommentResponse" }, { "$ref": "#/components/schemas/APIError" @@ -18405,14 +24436,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/FlagCommentResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/FlagCommentResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -18468,14 +24502,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/FlagCommentResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/FlagCommentResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -18531,14 +24568,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/BlockSuccess" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/BlockSuccess" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -18604,14 +24644,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/UnblockSuccess" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/UnblockSuccess" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -18677,14 +24720,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetAuditLogsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetAuditLogsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -18760,7 +24806,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AggregationResponse" + "title": "AggregateResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/AggregationResponse" + }, + { + "$ref": "#/components/schemas/AggregationAPIError" + } + ] } } }