diff --git a/README.md b/README.md index ea38b95c..2dbea988 100644 --- a/README.md +++ b/README.md @@ -82,10 +82,7 @@ to make working with the API easier, and the `pubsub` module which is a library For the API client, there are three classes, `DefaultApi`, `PublicApi`, and `ModerationApi`. The `DefaultApi` contains methods that require your API key, and `PublicApi` contains methods that can be made directly from a browser/mobile device/etc without authentication. -The `ModerationApi` powers the moderator dashboard. It contains methods for comment moderation (list, count, search, logs, and export), moderation actions (remove/restore, -flag, set review/spam/approval status, votes, and reopen/close thread), bans (ban from comment, undo a ban, pre-ban summaries, ban status and preferences, and banned-user counts), -and badges & trust (award/remove a badge, manual badges, get/set trust factor, and user internal profile). Every `ModerationApi` method accepts an `sso` parameter so the call can be -performed on behalf of an SSO-authenticated moderator. +The `ModerationApi` provides an extensive suite of live and fast moderation APIs. Every `ModerationApi` method accepts an `sso` parameter and can authenticate via SSO or a FastComments.com session cookie. ## Quick Start diff --git a/client/.openapi-generator/FILES b/client/.openapi-generator/FILES index fb0b9ca0..947bc5b4 100644 --- a/client/.openapi-generator/FILES +++ b/client/.openapi-generator/FILES @@ -266,7 +266,7 @@ docs/PatchDomainConfigResponse.md docs/PatchPageAPIResponse.md docs/PatchSSOUserAPIResponse.md docs/PendingCommentToSyncOutbound.md -docs/PostRemoveCommentResponse.md +docs/PostRemoveCommentApiResponse.md docs/PreBanSummary.md docs/PubSubComment.md docs/PubSubCommentBase.md @@ -657,7 +657,7 @@ src/main/java/com/fastcomments/model/PatchDomainConfigResponse.java src/main/java/com/fastcomments/model/PatchPageAPIResponse.java src/main/java/com/fastcomments/model/PatchSSOUserAPIResponse.java src/main/java/com/fastcomments/model/PendingCommentToSyncOutbound.java -src/main/java/com/fastcomments/model/PostRemoveCommentResponse.java +src/main/java/com/fastcomments/model/PostRemoveCommentApiResponse.java src/main/java/com/fastcomments/model/PreBanSummary.java src/main/java/com/fastcomments/model/PubSubComment.java src/main/java/com/fastcomments/model/PubSubCommentBase.java @@ -1020,7 +1020,7 @@ src/test/java/com/fastcomments/model/PatchDomainConfigResponseTest.java src/test/java/com/fastcomments/model/PatchPageAPIResponseTest.java src/test/java/com/fastcomments/model/PatchSSOUserAPIResponseTest.java src/test/java/com/fastcomments/model/PendingCommentToSyncOutboundTest.java -src/test/java/com/fastcomments/model/PostRemoveCommentResponseTest.java +src/test/java/com/fastcomments/model/PostRemoveCommentApiResponseTest.java src/test/java/com/fastcomments/model/PreBanSummaryTest.java src/test/java/com/fastcomments/model/PubSubCommentBaseTest.java src/test/java/com/fastcomments/model/PubSubCommentTest.java diff --git a/client/README.md b/client/README.md index 40a5c479..b3ceef16 100644 --- a/client/README.md +++ b/client/README.md @@ -237,49 +237,49 @@ 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 | +*ModerationApi* | [**deleteModerationVote**](docs/ModerationApi.md#deleteModerationVote) | **DELETE** /auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId} | +*ModerationApi* | [**getApiComments**](docs/ModerationApi.md#getApiComments) | **GET** /auth/my-account/moderate-comments/mod_api/api/comments | +*ModerationApi* | [**getApiExportStatus**](docs/ModerationApi.md#getApiExportStatus) | **GET** /auth/my-account/moderate-comments/mod_api/api/export/status | +*ModerationApi* | [**getApiIds**](docs/ModerationApi.md#getApiIds) | **GET** /auth/my-account/moderate-comments/mod_api/api/ids | +*ModerationApi* | [**getBanUsersFromComment**](docs/ModerationApi.md#getBanUsersFromComment) | **GET** /auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId} | +*ModerationApi* | [**getCommentBanStatus**](docs/ModerationApi.md#getCommentBanStatus) | **GET** /auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId} | +*ModerationApi* | [**getCommentChildren**](docs/ModerationApi.md#getCommentChildren) | **GET** /auth/my-account/moderate-comments/mod_api/comment-children/{commentId} | +*ModerationApi* | [**getCount**](docs/ModerationApi.md#getCount) | **GET** /auth/my-account/moderate-comments/mod_api/count | +*ModerationApi* | [**getCounts**](docs/ModerationApi.md#getCounts) | **GET** /auth/my-account/moderate-comments/banned-users/mod_api/counts | +*ModerationApi* | [**getLogs**](docs/ModerationApi.md#getLogs) | **GET** /auth/my-account/moderate-comments/mod_api/logs/{commentId} | +*ModerationApi* | [**getManualBadges**](docs/ModerationApi.md#getManualBadges) | **GET** /auth/my-account/moderate-comments/mod_api/get-manual-badges | +*ModerationApi* | [**getManualBadgesForUser**](docs/ModerationApi.md#getManualBadgesForUser) | **GET** /auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user | +*ModerationApi* | [**getModerationComment**](docs/ModerationApi.md#getModerationComment) | **GET** /auth/my-account/moderate-comments/mod_api/comment/{commentId} | +*ModerationApi* | [**getModerationCommentText**](docs/ModerationApi.md#getModerationCommentText) | **GET** /auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId} | +*ModerationApi* | [**getPreBanSummary**](docs/ModerationApi.md#getPreBanSummary) | **GET** /auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId} | +*ModerationApi* | [**getSearchCommentsSummary**](docs/ModerationApi.md#getSearchCommentsSummary) | **GET** /auth/my-account/moderate-comments/mod_api/search/comments/summary | +*ModerationApi* | [**getSearchPages**](docs/ModerationApi.md#getSearchPages) | **GET** /auth/my-account/moderate-comments/mod_api/search/pages | +*ModerationApi* | [**getSearchSites**](docs/ModerationApi.md#getSearchSites) | **GET** /auth/my-account/moderate-comments/mod_api/search/sites | +*ModerationApi* | [**getSearchSuggest**](docs/ModerationApi.md#getSearchSuggest) | **GET** /auth/my-account/moderate-comments/mod_api/search/suggest | +*ModerationApi* | [**getSearchUsers**](docs/ModerationApi.md#getSearchUsers) | **GET** /auth/my-account/moderate-comments/mod_api/search/users | +*ModerationApi* | [**getTrustFactor**](docs/ModerationApi.md#getTrustFactor) | **GET** /auth/my-account/moderate-comments/mod_api/get-trust-factor | +*ModerationApi* | [**getUserBanPreference**](docs/ModerationApi.md#getUserBanPreference) | **GET** /auth/my-account/moderate-comments/mod_api/user-ban-preference | +*ModerationApi* | [**getUserInternalProfile**](docs/ModerationApi.md#getUserInternalProfile) | **GET** /auth/my-account/moderate-comments/mod_api/get-user-internal-profile | +*ModerationApi* | [**postAdjustCommentVotes**](docs/ModerationApi.md#postAdjustCommentVotes) | **POST** /auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId} | +*ModerationApi* | [**postApiExport**](docs/ModerationApi.md#postApiExport) | **POST** /auth/my-account/moderate-comments/mod_api/api/export | +*ModerationApi* | [**postBanUserFromComment**](docs/ModerationApi.md#postBanUserFromComment) | **POST** /auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId} | +*ModerationApi* | [**postBanUserUndo**](docs/ModerationApi.md#postBanUserUndo) | **POST** /auth/my-account/moderate-comments/mod_api/ban-user/undo | +*ModerationApi* | [**postBulkPreBanSummary**](docs/ModerationApi.md#postBulkPreBanSummary) | **POST** /auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary | +*ModerationApi* | [**postCommentsByIds**](docs/ModerationApi.md#postCommentsByIds) | **POST** /auth/my-account/moderate-comments/mod_api/comments-by-ids | +*ModerationApi* | [**postFlagComment**](docs/ModerationApi.md#postFlagComment) | **POST** /auth/my-account/moderate-comments/mod_api/flag-comment/{commentId} | +*ModerationApi* | [**postRemoveComment**](docs/ModerationApi.md#postRemoveComment) | **POST** /auth/my-account/moderate-comments/mod_api/remove-comment/{commentId} | +*ModerationApi* | [**postRestoreDeletedComment**](docs/ModerationApi.md#postRestoreDeletedComment) | **POST** /auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId} | +*ModerationApi* | [**postSetCommentApprovalStatus**](docs/ModerationApi.md#postSetCommentApprovalStatus) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId} | +*ModerationApi* | [**postSetCommentReviewStatus**](docs/ModerationApi.md#postSetCommentReviewStatus) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId} | +*ModerationApi* | [**postSetCommentSpamStatus**](docs/ModerationApi.md#postSetCommentSpamStatus) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId} | +*ModerationApi* | [**postSetCommentText**](docs/ModerationApi.md#postSetCommentText) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId} | +*ModerationApi* | [**postUnFlagComment**](docs/ModerationApi.md#postUnFlagComment) | **POST** /auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId} | +*ModerationApi* | [**postVote**](docs/ModerationApi.md#postVote) | **POST** /auth/my-account/moderate-comments/mod_api/vote/{commentId} | +*ModerationApi* | [**putAwardBadge**](docs/ModerationApi.md#putAwardBadge) | **PUT** /auth/my-account/moderate-comments/mod_api/award-badge | +*ModerationApi* | [**putCloseThread**](docs/ModerationApi.md#putCloseThread) | **PUT** /auth/my-account/moderate-comments/mod_api/close-thread | +*ModerationApi* | [**putRemoveBadge**](docs/ModerationApi.md#putRemoveBadge) | **PUT** /auth/my-account/moderate-comments/mod_api/remove-badge | +*ModerationApi* | [**putReopenThread**](docs/ModerationApi.md#putReopenThread) | **PUT** /auth/my-account/moderate-comments/mod_api/reopen-thread | +*ModerationApi* | [**setTrustFactor**](docs/ModerationApi.md#setTrustFactor) | **PUT** /auth/my-account/moderate-comments/mod_api/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} | @@ -595,7 +595,7 @@ Class | Method | HTTP request | Description - [PatchPageAPIResponse](docs/PatchPageAPIResponse.md) - [PatchSSOUserAPIResponse](docs/PatchSSOUserAPIResponse.md) - [PendingCommentToSyncOutbound](docs/PendingCommentToSyncOutbound.md) - - [PostRemoveCommentResponse](docs/PostRemoveCommentResponse.md) + - [PostRemoveCommentApiResponse](docs/PostRemoveCommentApiResponse.md) - [PreBanSummary](docs/PreBanSummary.md) - [PubSubComment](docs/PubSubComment.md) - [PubSubCommentBase](docs/PubSubCommentBase.md) diff --git a/client/api/openapi.yaml b/client/api/openapi.yaml index a0379b03..19a5ed7c 100644 --- a/client/api/openapi.yaml +++ b/client/api/openapi.yaml @@ -1218,10 +1218,17 @@ paths: - Public x-accepts: - application/json - /auth/my-account/moderate-comments/count: + /auth/my-account/moderate-comments/mod_api/count: get: - operationId: GetCount + operationId: getCount parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: text-search @@ -1282,10 +1289,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/api/ids: + /auth/my-account/moderate-comments/mod_api/api/ids: get: - operationId: GetApiIds + operationId: getApiIds parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: text-search @@ -1353,10 +1367,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/api/comments: + /auth/my-account/moderate-comments/mod_api/api/comments: get: - operationId: GetApiComments + operationId: getApiComments parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: page @@ -1440,10 +1461,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/api/export: + /auth/my-account/moderate-comments/mod_api/api/export: post: - operationId: PostApiExport + operationId: postApiExport parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: text-search @@ -1504,10 +1532,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/api/export/status: + /auth/my-account/moderate-comments/mod_api/api/export/status: get: - operationId: GetApiExportStatus + operationId: getApiExportStatus parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: batchJobId @@ -1540,10 +1575,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/search/users: + /auth/my-account/moderate-comments/mod_api/search/users: get: - operationId: GetSearchUsers + operationId: getSearchUsers parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: value @@ -1576,10 +1618,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/search/pages: + /auth/my-account/moderate-comments/mod_api/search/pages: get: - operationId: GetSearchPages + operationId: getSearchPages parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: value @@ -1612,10 +1661,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/search/sites: + /auth/my-account/moderate-comments/mod_api/search/sites: get: - operationId: GetSearchSites + operationId: getSearchSites parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: value @@ -1648,10 +1704,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/search/comments/summary: + /auth/my-account/moderate-comments/mod_api/search/comments/summary: get: - operationId: GetSearchCommentsSummary + operationId: getSearchCommentsSummary parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: value @@ -1698,10 +1761,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/search/suggest: + /auth/my-account/moderate-comments/mod_api/search/suggest: get: - operationId: GetSearchSuggest + operationId: getSearchSuggest parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: text-search @@ -1734,10 +1804,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/pre-ban-summary/{commentId}: + /auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId}: get: - operationId: GetPreBanSummary + operationId: getPreBanSummary parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -1791,10 +1868,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/bulk-pre-ban-summary: + /auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary: post: - operationId: PostBulkPreBanSummary + operationId: postBulkPreBanSummary parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: includeByUserIdAndEmail @@ -1848,10 +1932,17 @@ paths: x-content-type: application/json x-accepts: - application/json - /auth/my-account/moderate-comments/ban-user/from-comment/{commentId}: + /auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId}: post: - operationId: PostBanUserFromComment + operationId: postBanUserFromComment parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -1940,10 +2031,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/ban-users/from-comment/{commentId}: + /auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId}: get: - operationId: GetBanUsersFromComment + operationId: getBanUsersFromComment parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -1976,10 +2074,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/ban-user/undo: + /auth/my-account/moderate-comments/mod_api/ban-user/undo: post: - operationId: PostBanUserUndo + operationId: postBanUserUndo parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: sso @@ -2012,10 +2117,17 @@ paths: x-content-type: application/json x-accepts: - application/json - /auth/my-account/moderate-comments/remove-comment/{commentId}: + /auth/my-account/moderate-comments/mod_api/remove-comment/{commentId}: post: - operationId: PostRemoveComment + operationId: postRemoveComment parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2023,6 +2135,13 @@ paths: schema: type: string style: simple + - explode: true + in: query + name: broadcastId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2035,7 +2154,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PostRemoveCommentResponse" + $ref: "#/components/schemas/PostRemoveCommentApiResponse" description: Ok default: content: @@ -2048,10 +2167,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/restore-deleted-comment/{commentId}: + /auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId}: post: - operationId: PostRestoreDeletedComment + operationId: postRestoreDeletedComment parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2059,6 +2185,13 @@ paths: schema: type: string style: simple + - explode: true + in: query + name: broadcastId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2084,10 +2217,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/flag-comment/{commentId}: + /auth/my-account/moderate-comments/mod_api/flag-comment/{commentId}: post: - operationId: PostFlagComment + operationId: postFlagComment parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2095,6 +2235,13 @@ paths: schema: type: string style: simple + - explode: true + in: query + name: broadcastId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2120,10 +2267,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/un-flag-comment/{commentId}: + /auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId}: post: - operationId: PostUnFlagComment + operationId: postUnFlagComment parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2131,6 +2285,13 @@ paths: schema: type: string style: simple + - explode: true + in: query + name: broadcastId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2156,10 +2317,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/set-comment-review-status/{commentId}: + /auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId}: post: - operationId: PostSetCommentReviewStatus + operationId: postSetCommentReviewStatus parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2174,6 +2342,13 @@ paths: schema: type: boolean style: form + - explode: true + in: query + name: broadcastId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2199,10 +2374,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/set-comment-spam-status/{commentId}: + /auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId}: post: - operationId: PostSetCommentSpamStatus + operationId: postSetCommentSpamStatus parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2224,6 +2406,13 @@ paths: schema: type: boolean style: form + - explode: true + in: query + name: broadcastId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2249,10 +2438,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/set-comment-approval-status/{commentId}: + /auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId}: post: - operationId: PostSetCommentApprovalStatus + operationId: postSetCommentApprovalStatus parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2267,6 +2463,13 @@ paths: schema: type: boolean style: form + - explode: true + in: query + name: broadcastId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2292,10 +2495,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/logs/{commentId}: + /auth/my-account/moderate-comments/mod_api/logs/{commentId}: get: - operationId: GetLogs + operationId: getLogs parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2328,10 +2538,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/comment/{commentId}: + /auth/my-account/moderate-comments/mod_api/comment/{commentId}: get: - operationId: GetModerationComment + operationId: getModerationComment parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2378,10 +2595,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/comments-by-ids: + /auth/my-account/moderate-comments/mod_api/comments-by-ids: post: - operationId: PostCommentsByIds + operationId: postCommentsByIds parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: sso @@ -2414,10 +2638,17 @@ paths: x-content-type: application/json x-accepts: - application/json - /auth/my-account/moderate-comments/comment-children/{commentId}: + /auth/my-account/moderate-comments/mod_api/comment-children/{commentId}: get: - operationId: GetCommentChildren + operationId: getCommentChildren parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2450,10 +2681,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/get-comment-text/{commentId}: + /auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId}: get: - operationId: GetModerationCommentText + operationId: getModerationCommentText parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2486,10 +2724,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/set-comment-text/{commentId}: + /auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId}: post: - operationId: PostSetCommentText + operationId: postSetCommentText parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2497,6 +2742,13 @@ paths: schema: type: string style: simple + - explode: true + in: query + name: broadcastId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2529,10 +2781,17 @@ paths: x-content-type: application/json x-accepts: - application/json - /auth/my-account/moderate-comments/adjust-comment-votes/{commentId}: + /auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId}: post: - operationId: PostAdjustCommentVotes + operationId: postAdjustCommentVotes parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2540,6 +2799,13 @@ paths: schema: type: string style: simple + - explode: true + in: query + name: broadcastId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2572,10 +2838,17 @@ paths: x-content-type: application/json x-accepts: - application/json - /auth/my-account/moderate-comments/vote/{commentId}: + /auth/my-account/moderate-comments/mod_api/vote/{commentId}: post: - operationId: PostVote + operationId: postVote parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2590,6 +2863,13 @@ paths: schema: type: string style: form + - explode: true + in: query + name: broadcastId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2615,10 +2895,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/vote/{commentId}/{voteId}: + /auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId}: delete: - operationId: DeleteModerationVote + operationId: deleteModerationVote parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2633,6 +2920,13 @@ paths: schema: type: string style: simple + - explode: true + in: query + name: broadcastId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2658,10 +2952,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/get-comment-ban-status/{commentId}: + /auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId}: get: - operationId: GetCommentBanStatus + operationId: getCommentBanStatus parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2694,10 +2995,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/user-ban-preference: + /auth/my-account/moderate-comments/mod_api/user-ban-preference: get: - operationId: GetUserBanPreference + operationId: getUserBanPreference parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: sso @@ -2723,10 +3031,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/get-manual-badges: + /auth/my-account/moderate-comments/mod_api/get-manual-badges: get: - operationId: GetManualBadges + operationId: getManualBadges parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: sso @@ -2752,10 +3067,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/get-manual-badges-for-user: + /auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user: get: - operationId: GetManualBadgesForUser + operationId: getManualBadgesForUser parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: badgesUserId @@ -2795,10 +3117,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/award-badge: + /auth/my-account/moderate-comments/mod_api/award-badge: put: - operationId: PutAwardBadge + operationId: putAwardBadge parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: badgeId @@ -2852,10 +3181,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/remove-badge: + /auth/my-account/moderate-comments/mod_api/remove-badge: put: - operationId: PutRemoveBadge + operationId: putRemoveBadge parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: badgeId @@ -2909,10 +3245,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/get-trust-factor: + /auth/my-account/moderate-comments/mod_api/get-trust-factor: get: - operationId: GetTrustFactor + operationId: getTrustFactor parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: userId @@ -2945,10 +3288,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/set-trust-factor: + /auth/my-account/moderate-comments/mod_api/set-trust-factor: put: - operationId: SetTrustFactor + operationId: setTrustFactor parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: userId @@ -2988,10 +3338,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/get-user-internal-profile: + /auth/my-account/moderate-comments/mod_api/get-user-internal-profile: get: - operationId: GetUserInternalProfile + operationId: getUserInternalProfile parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: commentId @@ -3024,10 +3381,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/reopen-thread: + /auth/my-account/moderate-comments/mod_api/reopen-thread: put: - operationId: PutReopenThread + operationId: putReopenThread parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: urlId @@ -3060,10 +3424,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/close-thread: + /auth/my-account/moderate-comments/mod_api/close-thread: put: - operationId: PutCloseThread + operationId: putCloseThread parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: urlId @@ -3096,10 +3467,17 @@ paths: - Moderation x-accepts: - application/json - /auth/my-account/moderate-comments/banned-users/counts: + /auth/my-account/moderate-comments/banned-users/mod_api/counts: get: - operationId: GetCounts + operationId: getCounts parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: sso @@ -8276,7 +8654,7 @@ paths: - explode: true in: query name: tenantId - required: false + required: true schema: type: string style: form @@ -8311,7 +8689,7 @@ paths: - explode: true in: query name: tenantId - required: false + required: true schema: type: string style: form @@ -8343,6 +8721,13 @@ paths: delete: operationId: DeleteHashTag parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: tag @@ -8350,13 +8735,6 @@ paths: schema: type: string style: simple - - explode: true - in: query - name: tenantId - required: false - schema: - type: string - style: form requestBody: content: application/json: @@ -8384,6 +8762,13 @@ paths: patch: operationId: PatchHashTag parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: tag @@ -8391,13 +8776,6 @@ paths: schema: type: string style: simple - - explode: true - in: query - name: tenantId - required: false - schema: - type: string - style: form requestBody: content: application/json: @@ -25549,11 +25927,11 @@ components: required: - file type: object - PostRemoveCommentResponse: + PostRemoveCommentApiResponse: anyOf: - $ref: "#/components/schemas/DeleteCommentResult" - $ref: "#/components/schemas/RemoveCommentActionResponse" - title: PostRemoveCommentResponse + title: PostRemoveCommentApiResponse GetGifsTrendingResponse: anyOf: - $ref: "#/components/schemas/GifSearchResponse" diff --git a/client/docs/DefaultApi.md b/client/docs/DefaultApi.md index 066a52fe..2c687ed4 100644 --- a/client/docs/DefaultApi.md +++ b/client/docs/DefaultApi.md @@ -193,7 +193,7 @@ public class Example { # **addHashTag** -> CreateHashTagResponse addHashTag().tenantId(tenantId).createHashTagBody(createHashTagBody).execute(); +> CreateHashTagResponse addHashTag(tenantId).createHashTagBody(createHashTagBody).execute(); @@ -222,8 +222,7 @@ public class Example { String tenantId = "tenantId_example"; // String | CreateHashTagBody createHashTagBody = new CreateHashTagBody(); // CreateHashTagBody | try { - CreateHashTagResponse result = apiInstance.addHashTag() - .tenantId(tenantId) + CreateHashTagResponse result = apiInstance.addHashTag(tenantId) .createHashTagBody(createHashTagBody) .execute(); System.out.println(result); @@ -242,7 +241,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **tenantId** | **String**| | [optional] | +| **tenantId** | **String**| | | | **createHashTagBody** | [**CreateHashTagBody**](CreateHashTagBody.md)| | [optional] | ### Return type @@ -266,7 +265,7 @@ public class Example { # **addHashTagsBulk** -> BulkCreateHashTagsResponse addHashTagsBulk().tenantId(tenantId).bulkCreateHashTagsBody(bulkCreateHashTagsBody).execute(); +> BulkCreateHashTagsResponse addHashTagsBulk(tenantId).bulkCreateHashTagsBody(bulkCreateHashTagsBody).execute(); @@ -295,8 +294,7 @@ public class Example { String tenantId = "tenantId_example"; // String | BulkCreateHashTagsBody bulkCreateHashTagsBody = new BulkCreateHashTagsBody(); // BulkCreateHashTagsBody | try { - BulkCreateHashTagsResponse result = apiInstance.addHashTagsBulk() - .tenantId(tenantId) + BulkCreateHashTagsResponse result = apiInstance.addHashTagsBulk(tenantId) .bulkCreateHashTagsBody(bulkCreateHashTagsBody) .execute(); System.out.println(result); @@ -315,7 +313,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **tenantId** | **String**| | [optional] | +| **tenantId** | **String**| | | | **bulkCreateHashTagsBody** | [**BulkCreateHashTagsBody**](BulkCreateHashTagsBody.md)| | [optional] | ### Return type @@ -2129,7 +2127,7 @@ public class Example { # **deleteHashTag** -> APIEmptyResponse deleteHashTag(tag).tenantId(tenantId).deleteHashTagRequestBody(deleteHashTagRequestBody).execute(); +> APIEmptyResponse deleteHashTag(tenantId, tag).deleteHashTagRequestBody(deleteHashTagRequestBody).execute(); @@ -2155,12 +2153,11 @@ public class Example { //api_key.setApiKeyPrefix("Token"); DefaultApi apiInstance = new DefaultApi(defaultClient); - String tag = "tag_example"; // String | String tenantId = "tenantId_example"; // String | + String tag = "tag_example"; // String | DeleteHashTagRequestBody deleteHashTagRequestBody = new DeleteHashTagRequestBody(); // DeleteHashTagRequestBody | try { - APIEmptyResponse result = apiInstance.deleteHashTag(tag) - .tenantId(tenantId) + APIEmptyResponse result = apiInstance.deleteHashTag(tenantId, tag) .deleteHashTagRequestBody(deleteHashTagRequestBody) .execute(); System.out.println(result); @@ -2179,8 +2176,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **tag** | **String**| | | -| **tenantId** | **String**| | [optional] | | **deleteHashTagRequestBody** | [**DeleteHashTagRequestBody**](DeleteHashTagRequestBody.md)| | [optional] | ### Return type @@ -6693,7 +6690,7 @@ public class Example { # **patchHashTag** -> UpdateHashTagResponse patchHashTag(tag).tenantId(tenantId).updateHashTagBody(updateHashTagBody).execute(); +> UpdateHashTagResponse patchHashTag(tenantId, tag).updateHashTagBody(updateHashTagBody).execute(); @@ -6719,12 +6716,11 @@ public class Example { //api_key.setApiKeyPrefix("Token"); DefaultApi apiInstance = new DefaultApi(defaultClient); - String tag = "tag_example"; // String | String tenantId = "tenantId_example"; // String | + String tag = "tag_example"; // String | UpdateHashTagBody updateHashTagBody = new UpdateHashTagBody(); // UpdateHashTagBody | try { - UpdateHashTagResponse result = apiInstance.patchHashTag(tag) - .tenantId(tenantId) + UpdateHashTagResponse result = apiInstance.patchHashTag(tenantId, tag) .updateHashTagBody(updateHashTagBody) .execute(); System.out.println(result); @@ -6743,8 +6739,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **tag** | **String**| | | -| **tenantId** | **String**| | [optional] | | **updateHashTagBody** | [**UpdateHashTagBody**](UpdateHashTagBody.md)| | [optional] | ### Return type diff --git a/client/docs/ModerationApi.md b/client/docs/ModerationApi.md index 9e1561f0..321a21fd 100644 --- a/client/docs/ModerationApi.md +++ b/client/docs/ModerationApi.md @@ -5,54 +5,54 @@ 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**](ModerationApi.md#deleteModerationVote) | **DELETE** /auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId} | | +| [**getApiComments**](ModerationApi.md#getApiComments) | **GET** /auth/my-account/moderate-comments/mod_api/api/comments | | +| [**getApiExportStatus**](ModerationApi.md#getApiExportStatus) | **GET** /auth/my-account/moderate-comments/mod_api/api/export/status | | +| [**getApiIds**](ModerationApi.md#getApiIds) | **GET** /auth/my-account/moderate-comments/mod_api/api/ids | | +| [**getBanUsersFromComment**](ModerationApi.md#getBanUsersFromComment) | **GET** /auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId} | | +| [**getCommentBanStatus**](ModerationApi.md#getCommentBanStatus) | **GET** /auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId} | | +| [**getCommentChildren**](ModerationApi.md#getCommentChildren) | **GET** /auth/my-account/moderate-comments/mod_api/comment-children/{commentId} | | +| [**getCount**](ModerationApi.md#getCount) | **GET** /auth/my-account/moderate-comments/mod_api/count | | +| [**getCounts**](ModerationApi.md#getCounts) | **GET** /auth/my-account/moderate-comments/banned-users/mod_api/counts | | +| [**getLogs**](ModerationApi.md#getLogs) | **GET** /auth/my-account/moderate-comments/mod_api/logs/{commentId} | | +| [**getManualBadges**](ModerationApi.md#getManualBadges) | **GET** /auth/my-account/moderate-comments/mod_api/get-manual-badges | | +| [**getManualBadgesForUser**](ModerationApi.md#getManualBadgesForUser) | **GET** /auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user | | +| [**getModerationComment**](ModerationApi.md#getModerationComment) | **GET** /auth/my-account/moderate-comments/mod_api/comment/{commentId} | | +| [**getModerationCommentText**](ModerationApi.md#getModerationCommentText) | **GET** /auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId} | | +| [**getPreBanSummary**](ModerationApi.md#getPreBanSummary) | **GET** /auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId} | | +| [**getSearchCommentsSummary**](ModerationApi.md#getSearchCommentsSummary) | **GET** /auth/my-account/moderate-comments/mod_api/search/comments/summary | | +| [**getSearchPages**](ModerationApi.md#getSearchPages) | **GET** /auth/my-account/moderate-comments/mod_api/search/pages | | +| [**getSearchSites**](ModerationApi.md#getSearchSites) | **GET** /auth/my-account/moderate-comments/mod_api/search/sites | | +| [**getSearchSuggest**](ModerationApi.md#getSearchSuggest) | **GET** /auth/my-account/moderate-comments/mod_api/search/suggest | | +| [**getSearchUsers**](ModerationApi.md#getSearchUsers) | **GET** /auth/my-account/moderate-comments/mod_api/search/users | | +| [**getTrustFactor**](ModerationApi.md#getTrustFactor) | **GET** /auth/my-account/moderate-comments/mod_api/get-trust-factor | | +| [**getUserBanPreference**](ModerationApi.md#getUserBanPreference) | **GET** /auth/my-account/moderate-comments/mod_api/user-ban-preference | | +| [**getUserInternalProfile**](ModerationApi.md#getUserInternalProfile) | **GET** /auth/my-account/moderate-comments/mod_api/get-user-internal-profile | | +| [**postAdjustCommentVotes**](ModerationApi.md#postAdjustCommentVotes) | **POST** /auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId} | | +| [**postApiExport**](ModerationApi.md#postApiExport) | **POST** /auth/my-account/moderate-comments/mod_api/api/export | | +| [**postBanUserFromComment**](ModerationApi.md#postBanUserFromComment) | **POST** /auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId} | | +| [**postBanUserUndo**](ModerationApi.md#postBanUserUndo) | **POST** /auth/my-account/moderate-comments/mod_api/ban-user/undo | | +| [**postBulkPreBanSummary**](ModerationApi.md#postBulkPreBanSummary) | **POST** /auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary | | +| [**postCommentsByIds**](ModerationApi.md#postCommentsByIds) | **POST** /auth/my-account/moderate-comments/mod_api/comments-by-ids | | +| [**postFlagComment**](ModerationApi.md#postFlagComment) | **POST** /auth/my-account/moderate-comments/mod_api/flag-comment/{commentId} | | +| [**postRemoveComment**](ModerationApi.md#postRemoveComment) | **POST** /auth/my-account/moderate-comments/mod_api/remove-comment/{commentId} | | +| [**postRestoreDeletedComment**](ModerationApi.md#postRestoreDeletedComment) | **POST** /auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId} | | +| [**postSetCommentApprovalStatus**](ModerationApi.md#postSetCommentApprovalStatus) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId} | | +| [**postSetCommentReviewStatus**](ModerationApi.md#postSetCommentReviewStatus) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId} | | +| [**postSetCommentSpamStatus**](ModerationApi.md#postSetCommentSpamStatus) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId} | | +| [**postSetCommentText**](ModerationApi.md#postSetCommentText) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId} | | +| [**postUnFlagComment**](ModerationApi.md#postUnFlagComment) | **POST** /auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId} | | +| [**postVote**](ModerationApi.md#postVote) | **POST** /auth/my-account/moderate-comments/mod_api/vote/{commentId} | | +| [**putAwardBadge**](ModerationApi.md#putAwardBadge) | **PUT** /auth/my-account/moderate-comments/mod_api/award-badge | | +| [**putCloseThread**](ModerationApi.md#putCloseThread) | **PUT** /auth/my-account/moderate-comments/mod_api/close-thread | | +| [**putRemoveBadge**](ModerationApi.md#putRemoveBadge) | **PUT** /auth/my-account/moderate-comments/mod_api/remove-badge | | +| [**putReopenThread**](ModerationApi.md#putReopenThread) | **PUT** /auth/my-account/moderate-comments/mod_api/reopen-thread | | +| [**setTrustFactor**](ModerationApi.md#setTrustFactor) | **PUT** /auth/my-account/moderate-comments/mod_api/set-trust-factor | | # **deleteModerationVote** -> VoteDeleteResponse deleteModerationVote(commentId, voteId).sso(sso).execute(); +> VoteDeleteResponse deleteModerationVote(tenantId, commentId, voteId).broadcastId(broadcastId).sso(sso).execute(); @@ -71,11 +71,14 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String commentId = "commentId_example"; // String | String voteId = "voteId_example"; // String | + String broadcastId = "broadcastId_example"; // String | String sso = "sso_example"; // String | try { - VoteDeleteResponse result = apiInstance.deleteModerationVote(commentId, voteId) + VoteDeleteResponse result = apiInstance.deleteModerationVote(tenantId, commentId, voteId) + .broadcastId(broadcastId) .sso(sso) .execute(); System.out.println(result); @@ -94,8 +97,10 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | | **voteId** | **String**| | | +| **broadcastId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -119,7 +124,7 @@ No authorization required # **getApiComments** -> ModerationAPIGetCommentsResponse getApiComments().page(page).count(count).textSearch(textSearch).byIPFromComment(byIPFromComment).filters(filters).searchFilters(searchFilters).sorts(sorts).demo(demo).sso(sso).execute(); +> ModerationAPIGetCommentsResponse getApiComments(tenantId).page(page).count(count).textSearch(textSearch).byIPFromComment(byIPFromComment).filters(filters).searchFilters(searchFilters).sorts(sorts).demo(demo).sso(sso).execute(); @@ -138,6 +143,7 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | Double page = 3.4D; // Double | Double count = 3.4D; // Double | String textSearch = "textSearch_example"; // String | @@ -148,7 +154,7 @@ public class Example { Boolean demo = true; // Boolean | String sso = "sso_example"; // String | try { - ModerationAPIGetCommentsResponse result = apiInstance.getApiComments() + ModerationAPIGetCommentsResponse result = apiInstance.getApiComments(tenantId) .page(page) .count(count) .textSearch(textSearch) @@ -175,6 +181,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **page** | **Double**| | [optional] | | **count** | **Double**| | [optional] | | **textSearch** | **String**| | [optional] | @@ -206,7 +213,7 @@ No authorization required # **getApiExportStatus** -> ModerationExportStatusResponse getApiExportStatus().batchJobId(batchJobId).sso(sso).execute(); +> ModerationExportStatusResponse getApiExportStatus(tenantId).batchJobId(batchJobId).sso(sso).execute(); @@ -225,10 +232,11 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String batchJobId = "batchJobId_example"; // String | String sso = "sso_example"; // String | try { - ModerationExportStatusResponse result = apiInstance.getApiExportStatus() + ModerationExportStatusResponse result = apiInstance.getApiExportStatus(tenantId) .batchJobId(batchJobId) .sso(sso) .execute(); @@ -248,6 +256,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **batchJobId** | **String**| | [optional] | | **sso** | **String**| | [optional] | @@ -272,7 +281,7 @@ No authorization required # **getApiIds** -> ModerationAPIGetCommentIdsResponse getApiIds().textSearch(textSearch).byIPFromComment(byIPFromComment).filters(filters).searchFilters(searchFilters).afterId(afterId).demo(demo).sso(sso).execute(); +> ModerationAPIGetCommentIdsResponse getApiIds(tenantId).textSearch(textSearch).byIPFromComment(byIPFromComment).filters(filters).searchFilters(searchFilters).afterId(afterId).demo(demo).sso(sso).execute(); @@ -291,6 +300,7 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String textSearch = "textSearch_example"; // String | String byIPFromComment = "byIPFromComment_example"; // String | String filters = "filters_example"; // String | @@ -299,7 +309,7 @@ public class Example { Boolean demo = true; // Boolean | String sso = "sso_example"; // String | try { - ModerationAPIGetCommentIdsResponse result = apiInstance.getApiIds() + ModerationAPIGetCommentIdsResponse result = apiInstance.getApiIds(tenantId) .textSearch(textSearch) .byIPFromComment(byIPFromComment) .filters(filters) @@ -324,6 +334,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **textSearch** | **String**| | [optional] | | **byIPFromComment** | **String**| | [optional] | | **filters** | **String**| | [optional] | @@ -353,7 +364,7 @@ No authorization required # **getBanUsersFromComment** -> GetBannedUsersFromCommentResponse getBanUsersFromComment(commentId).sso(sso).execute(); +> GetBannedUsersFromCommentResponse getBanUsersFromComment(tenantId, commentId).sso(sso).execute(); @@ -372,10 +383,11 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String commentId = "commentId_example"; // String | String sso = "sso_example"; // String | try { - GetBannedUsersFromCommentResponse result = apiInstance.getBanUsersFromComment(commentId) + GetBannedUsersFromCommentResponse result = apiInstance.getBanUsersFromComment(tenantId, commentId) .sso(sso) .execute(); System.out.println(result); @@ -394,6 +406,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | | **sso** | **String**| | [optional] | @@ -418,7 +431,7 @@ No authorization required # **getCommentBanStatus** -> GetCommentBanStatusResponse getCommentBanStatus(commentId).sso(sso).execute(); +> GetCommentBanStatusResponse getCommentBanStatus(tenantId, commentId).sso(sso).execute(); @@ -437,10 +450,11 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String commentId = "commentId_example"; // String | String sso = "sso_example"; // String | try { - GetCommentBanStatusResponse result = apiInstance.getCommentBanStatus(commentId) + GetCommentBanStatusResponse result = apiInstance.getCommentBanStatus(tenantId, commentId) .sso(sso) .execute(); System.out.println(result); @@ -459,6 +473,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | | **sso** | **String**| | [optional] | @@ -483,7 +498,7 @@ No authorization required # **getCommentChildren** -> ModerationAPIChildCommentsResponse getCommentChildren(commentId).sso(sso).execute(); +> ModerationAPIChildCommentsResponse getCommentChildren(tenantId, commentId).sso(sso).execute(); @@ -502,10 +517,11 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String commentId = "commentId_example"; // String | String sso = "sso_example"; // String | try { - ModerationAPIChildCommentsResponse result = apiInstance.getCommentChildren(commentId) + ModerationAPIChildCommentsResponse result = apiInstance.getCommentChildren(tenantId, commentId) .sso(sso) .execute(); System.out.println(result); @@ -524,6 +540,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | | **sso** | **String**| | [optional] | @@ -548,7 +565,7 @@ No authorization required # **getCount** -> ModerationAPICountCommentsResponse getCount().textSearch(textSearch).byIPFromComment(byIPFromComment).filter(filter).searchFilters(searchFilters).demo(demo).sso(sso).execute(); +> ModerationAPICountCommentsResponse getCount(tenantId).textSearch(textSearch).byIPFromComment(byIPFromComment).filter(filter).searchFilters(searchFilters).demo(demo).sso(sso).execute(); @@ -567,6 +584,7 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String textSearch = "textSearch_example"; // String | String byIPFromComment = "byIPFromComment_example"; // String | String filter = "filter_example"; // String | @@ -574,7 +592,7 @@ public class Example { Boolean demo = true; // Boolean | String sso = "sso_example"; // String | try { - ModerationAPICountCommentsResponse result = apiInstance.getCount() + ModerationAPICountCommentsResponse result = apiInstance.getCount(tenantId) .textSearch(textSearch) .byIPFromComment(byIPFromComment) .filter(filter) @@ -598,6 +616,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **textSearch** | **String**| | [optional] | | **byIPFromComment** | **String**| | [optional] | | **filter** | **String**| | [optional] | @@ -626,7 +645,7 @@ No authorization required # **getCounts** -> GetBannedUsersCountResponse getCounts().sso(sso).execute(); +> GetBannedUsersCountResponse getCounts(tenantId).sso(sso).execute(); @@ -645,9 +664,10 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetBannedUsersCountResponse result = apiInstance.getCounts() + GetBannedUsersCountResponse result = apiInstance.getCounts(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -666,6 +686,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **sso** | **String**| | [optional] | ### Return type @@ -689,7 +710,7 @@ No authorization required # **getLogs** -> ModerationAPIGetLogsResponse getLogs(commentId).sso(sso).execute(); +> ModerationAPIGetLogsResponse getLogs(tenantId, commentId).sso(sso).execute(); @@ -708,10 +729,11 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String commentId = "commentId_example"; // String | String sso = "sso_example"; // String | try { - ModerationAPIGetLogsResponse result = apiInstance.getLogs(commentId) + ModerationAPIGetLogsResponse result = apiInstance.getLogs(tenantId, commentId) .sso(sso) .execute(); System.out.println(result); @@ -730,6 +752,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | | **sso** | **String**| | [optional] | @@ -754,7 +777,7 @@ No authorization required # **getManualBadges** -> GetTenantManualBadgesResponse getManualBadges().sso(sso).execute(); +> GetTenantManualBadgesResponse getManualBadges(tenantId).sso(sso).execute(); @@ -773,9 +796,10 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - GetTenantManualBadgesResponse result = apiInstance.getManualBadges() + GetTenantManualBadgesResponse result = apiInstance.getManualBadges(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -794,6 +818,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **sso** | **String**| | [optional] | ### Return type @@ -817,7 +842,7 @@ No authorization required # **getManualBadgesForUser** -> GetUserManualBadgesResponse getManualBadgesForUser().badgesUserId(badgesUserId).commentId(commentId).sso(sso).execute(); +> GetUserManualBadgesResponse getManualBadgesForUser(tenantId).badgesUserId(badgesUserId).commentId(commentId).sso(sso).execute(); @@ -836,11 +861,12 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String badgesUserId = "badgesUserId_example"; // String | String commentId = "commentId_example"; // String | String sso = "sso_example"; // String | try { - GetUserManualBadgesResponse result = apiInstance.getManualBadgesForUser() + GetUserManualBadgesResponse result = apiInstance.getManualBadgesForUser(tenantId) .badgesUserId(badgesUserId) .commentId(commentId) .sso(sso) @@ -861,6 +887,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **badgesUserId** | **String**| | [optional] | | **commentId** | **String**| | [optional] | | **sso** | **String**| | [optional] | @@ -886,7 +913,7 @@ No authorization required # **getModerationComment** -> ModerationAPICommentResponse getModerationComment(commentId).includeEmail(includeEmail).includeIP(includeIP).sso(sso).execute(); +> ModerationAPICommentResponse getModerationComment(tenantId, commentId).includeEmail(includeEmail).includeIP(includeIP).sso(sso).execute(); @@ -905,12 +932,13 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String commentId = "commentId_example"; // String | Boolean includeEmail = true; // Boolean | Boolean includeIP = true; // Boolean | String sso = "sso_example"; // String | try { - ModerationAPICommentResponse result = apiInstance.getModerationComment(commentId) + ModerationAPICommentResponse result = apiInstance.getModerationComment(tenantId, commentId) .includeEmail(includeEmail) .includeIP(includeIP) .sso(sso) @@ -931,6 +959,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | | **includeEmail** | **Boolean**| | [optional] | | **includeIP** | **Boolean**| | [optional] | @@ -957,7 +986,7 @@ No authorization required # **getModerationCommentText** -> GetCommentTextResponse getModerationCommentText(commentId).sso(sso).execute(); +> GetCommentTextResponse getModerationCommentText(tenantId, commentId).sso(sso).execute(); @@ -976,10 +1005,11 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String commentId = "commentId_example"; // String | String sso = "sso_example"; // String | try { - GetCommentTextResponse result = apiInstance.getModerationCommentText(commentId) + GetCommentTextResponse result = apiInstance.getModerationCommentText(tenantId, commentId) .sso(sso) .execute(); System.out.println(result); @@ -998,6 +1028,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | | **sso** | **String**| | [optional] | @@ -1022,7 +1053,7 @@ No authorization required # **getPreBanSummary** -> PreBanSummary getPreBanSummary(commentId).includeByUserIdAndEmail(includeByUserIdAndEmail).includeByIP(includeByIP).includeByEmailDomain(includeByEmailDomain).sso(sso).execute(); +> PreBanSummary getPreBanSummary(tenantId, commentId).includeByUserIdAndEmail(includeByUserIdAndEmail).includeByIP(includeByIP).includeByEmailDomain(includeByEmailDomain).sso(sso).execute(); @@ -1041,13 +1072,14 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String commentId = "commentId_example"; // String | Boolean includeByUserIdAndEmail = true; // Boolean | Boolean includeByIP = true; // Boolean | Boolean includeByEmailDomain = true; // Boolean | String sso = "sso_example"; // String | try { - PreBanSummary result = apiInstance.getPreBanSummary(commentId) + PreBanSummary result = apiInstance.getPreBanSummary(tenantId, commentId) .includeByUserIdAndEmail(includeByUserIdAndEmail) .includeByIP(includeByIP) .includeByEmailDomain(includeByEmailDomain) @@ -1069,6 +1101,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | | **includeByUserIdAndEmail** | **Boolean**| | [optional] | | **includeByIP** | **Boolean**| | [optional] | @@ -1096,7 +1129,7 @@ No authorization required # **getSearchCommentsSummary** -> ModerationCommentSearchResponse getSearchCommentsSummary().value(value).filters(filters).searchFilters(searchFilters).sso(sso).execute(); +> ModerationCommentSearchResponse getSearchCommentsSummary(tenantId).value(value).filters(filters).searchFilters(searchFilters).sso(sso).execute(); @@ -1115,12 +1148,13 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String value = "value_example"; // String | String filters = "filters_example"; // String | String searchFilters = "searchFilters_example"; // String | String sso = "sso_example"; // String | try { - ModerationCommentSearchResponse result = apiInstance.getSearchCommentsSummary() + ModerationCommentSearchResponse result = apiInstance.getSearchCommentsSummary(tenantId) .value(value) .filters(filters) .searchFilters(searchFilters) @@ -1142,6 +1176,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **value** | **String**| | [optional] | | **filters** | **String**| | [optional] | | **searchFilters** | **String**| | [optional] | @@ -1168,7 +1203,7 @@ No authorization required # **getSearchPages** -> ModerationPageSearchResponse getSearchPages().value(value).sso(sso).execute(); +> ModerationPageSearchResponse getSearchPages(tenantId).value(value).sso(sso).execute(); @@ -1187,10 +1222,11 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String value = "value_example"; // String | String sso = "sso_example"; // String | try { - ModerationPageSearchResponse result = apiInstance.getSearchPages() + ModerationPageSearchResponse result = apiInstance.getSearchPages(tenantId) .value(value) .sso(sso) .execute(); @@ -1210,6 +1246,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **value** | **String**| | [optional] | | **sso** | **String**| | [optional] | @@ -1234,7 +1271,7 @@ No authorization required # **getSearchSites** -> ModerationSiteSearchResponse getSearchSites().value(value).sso(sso).execute(); +> ModerationSiteSearchResponse getSearchSites(tenantId).value(value).sso(sso).execute(); @@ -1253,10 +1290,11 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String value = "value_example"; // String | String sso = "sso_example"; // String | try { - ModerationSiteSearchResponse result = apiInstance.getSearchSites() + ModerationSiteSearchResponse result = apiInstance.getSearchSites(tenantId) .value(value) .sso(sso) .execute(); @@ -1276,6 +1314,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **value** | **String**| | [optional] | | **sso** | **String**| | [optional] | @@ -1300,7 +1339,7 @@ No authorization required # **getSearchSuggest** -> ModerationSuggestResponse getSearchSuggest().textSearch(textSearch).sso(sso).execute(); +> ModerationSuggestResponse getSearchSuggest(tenantId).textSearch(textSearch).sso(sso).execute(); @@ -1319,10 +1358,11 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String textSearch = "textSearch_example"; // String | String sso = "sso_example"; // String | try { - ModerationSuggestResponse result = apiInstance.getSearchSuggest() + ModerationSuggestResponse result = apiInstance.getSearchSuggest(tenantId) .textSearch(textSearch) .sso(sso) .execute(); @@ -1342,6 +1382,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **textSearch** | **String**| | [optional] | | **sso** | **String**| | [optional] | @@ -1366,7 +1407,7 @@ No authorization required # **getSearchUsers** -> ModerationUserSearchResponse getSearchUsers().value(value).sso(sso).execute(); +> ModerationUserSearchResponse getSearchUsers(tenantId).value(value).sso(sso).execute(); @@ -1385,10 +1426,11 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String value = "value_example"; // String | String sso = "sso_example"; // String | try { - ModerationUserSearchResponse result = apiInstance.getSearchUsers() + ModerationUserSearchResponse result = apiInstance.getSearchUsers(tenantId) .value(value) .sso(sso) .execute(); @@ -1408,6 +1450,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **value** | **String**| | [optional] | | **sso** | **String**| | [optional] | @@ -1432,7 +1475,7 @@ No authorization required # **getTrustFactor** -> GetUserTrustFactorResponse getTrustFactor().userId(userId).sso(sso).execute(); +> GetUserTrustFactorResponse getTrustFactor(tenantId).userId(userId).sso(sso).execute(); @@ -1451,10 +1494,11 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String userId = "userId_example"; // String | String sso = "sso_example"; // String | try { - GetUserTrustFactorResponse result = apiInstance.getTrustFactor() + GetUserTrustFactorResponse result = apiInstance.getTrustFactor(tenantId) .userId(userId) .sso(sso) .execute(); @@ -1474,6 +1518,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **userId** | **String**| | [optional] | | **sso** | **String**| | [optional] | @@ -1498,7 +1543,7 @@ No authorization required # **getUserBanPreference** -> APIModerateGetUserBanPreferencesResponse getUserBanPreference().sso(sso).execute(); +> APIModerateGetUserBanPreferencesResponse getUserBanPreference(tenantId).sso(sso).execute(); @@ -1517,9 +1562,10 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String sso = "sso_example"; // String | try { - APIModerateGetUserBanPreferencesResponse result = apiInstance.getUserBanPreference() + APIModerateGetUserBanPreferencesResponse result = apiInstance.getUserBanPreference(tenantId) .sso(sso) .execute(); System.out.println(result); @@ -1538,6 +1584,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **sso** | **String**| | [optional] | ### Return type @@ -1561,7 +1608,7 @@ No authorization required # **getUserInternalProfile** -> GetUserInternalProfileResponse getUserInternalProfile().commentId(commentId).sso(sso).execute(); +> GetUserInternalProfileResponse getUserInternalProfile(tenantId).commentId(commentId).sso(sso).execute(); @@ -1580,10 +1627,11 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String commentId = "commentId_example"; // String | String sso = "sso_example"; // String | try { - GetUserInternalProfileResponse result = apiInstance.getUserInternalProfile() + GetUserInternalProfileResponse result = apiInstance.getUserInternalProfile(tenantId) .commentId(commentId) .sso(sso) .execute(); @@ -1603,6 +1651,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | [optional] | | **sso** | **String**| | [optional] | @@ -1627,7 +1676,7 @@ No authorization required # **postAdjustCommentVotes** -> AdjustVotesResponse postAdjustCommentVotes(commentId, adjustCommentVotesParams).sso(sso).execute(); +> AdjustVotesResponse postAdjustCommentVotes(tenantId, commentId, adjustCommentVotesParams).broadcastId(broadcastId).sso(sso).execute(); @@ -1646,11 +1695,14 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String commentId = "commentId_example"; // String | AdjustCommentVotesParams adjustCommentVotesParams = new AdjustCommentVotesParams(); // AdjustCommentVotesParams | + String broadcastId = "broadcastId_example"; // String | String sso = "sso_example"; // String | try { - AdjustVotesResponse result = apiInstance.postAdjustCommentVotes(commentId, adjustCommentVotesParams) + AdjustVotesResponse result = apiInstance.postAdjustCommentVotes(tenantId, commentId, adjustCommentVotesParams) + .broadcastId(broadcastId) .sso(sso) .execute(); System.out.println(result); @@ -1669,8 +1721,10 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | | **adjustCommentVotesParams** | [**AdjustCommentVotesParams**](AdjustCommentVotesParams.md)| | | +| **broadcastId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -1694,7 +1748,7 @@ No authorization required # **postApiExport** -> ModerationExportResponse postApiExport().textSearch(textSearch).byIPFromComment(byIPFromComment).filters(filters).searchFilters(searchFilters).sorts(sorts).sso(sso).execute(); +> ModerationExportResponse postApiExport(tenantId).textSearch(textSearch).byIPFromComment(byIPFromComment).filters(filters).searchFilters(searchFilters).sorts(sorts).sso(sso).execute(); @@ -1713,6 +1767,7 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String textSearch = "textSearch_example"; // String | String byIPFromComment = "byIPFromComment_example"; // String | String filters = "filters_example"; // String | @@ -1720,7 +1775,7 @@ public class Example { String sorts = "sorts_example"; // String | String sso = "sso_example"; // String | try { - ModerationExportResponse result = apiInstance.postApiExport() + ModerationExportResponse result = apiInstance.postApiExport(tenantId) .textSearch(textSearch) .byIPFromComment(byIPFromComment) .filters(filters) @@ -1744,6 +1799,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **textSearch** | **String**| | [optional] | | **byIPFromComment** | **String**| | [optional] | | **filters** | **String**| | [optional] | @@ -1772,7 +1828,7 @@ No authorization required # **postBanUserFromComment** -> BanUserFromCommentResult postBanUserFromComment(commentId).banEmail(banEmail).banEmailDomain(banEmailDomain).banIP(banIP).deleteAllUsersComments(deleteAllUsersComments).bannedUntil(bannedUntil).isShadowBan(isShadowBan).updateId(updateId).banReason(banReason).sso(sso).execute(); +> BanUserFromCommentResult postBanUserFromComment(tenantId, commentId).banEmail(banEmail).banEmailDomain(banEmailDomain).banIP(banIP).deleteAllUsersComments(deleteAllUsersComments).bannedUntil(bannedUntil).isShadowBan(isShadowBan).updateId(updateId).banReason(banReason).sso(sso).execute(); @@ -1791,6 +1847,7 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String commentId = "commentId_example"; // String | Boolean banEmail = true; // Boolean | Boolean banEmailDomain = true; // Boolean | @@ -1802,7 +1859,7 @@ public class Example { String banReason = "banReason_example"; // String | String sso = "sso_example"; // String | try { - BanUserFromCommentResult result = apiInstance.postBanUserFromComment(commentId) + BanUserFromCommentResult result = apiInstance.postBanUserFromComment(tenantId, commentId) .banEmail(banEmail) .banEmailDomain(banEmailDomain) .banIP(banIP) @@ -1829,6 +1886,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | | **banEmail** | **Boolean**| | [optional] | | **banEmailDomain** | **Boolean**| | [optional] | @@ -1861,7 +1919,7 @@ No authorization required # **postBanUserUndo** -> APIEmptyResponse postBanUserUndo(banUserUndoParams).sso(sso).execute(); +> APIEmptyResponse postBanUserUndo(tenantId, banUserUndoParams).sso(sso).execute(); @@ -1880,10 +1938,11 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | BanUserUndoParams banUserUndoParams = new BanUserUndoParams(); // BanUserUndoParams | String sso = "sso_example"; // String | try { - APIEmptyResponse result = apiInstance.postBanUserUndo(banUserUndoParams) + APIEmptyResponse result = apiInstance.postBanUserUndo(tenantId, banUserUndoParams) .sso(sso) .execute(); System.out.println(result); @@ -1902,6 +1961,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **banUserUndoParams** | [**BanUserUndoParams**](BanUserUndoParams.md)| | | | **sso** | **String**| | [optional] | @@ -1926,7 +1986,7 @@ No authorization required # **postBulkPreBanSummary** -> BulkPreBanSummary postBulkPreBanSummary(bulkPreBanParams).includeByUserIdAndEmail(includeByUserIdAndEmail).includeByIP(includeByIP).includeByEmailDomain(includeByEmailDomain).sso(sso).execute(); +> BulkPreBanSummary postBulkPreBanSummary(tenantId, bulkPreBanParams).includeByUserIdAndEmail(includeByUserIdAndEmail).includeByIP(includeByIP).includeByEmailDomain(includeByEmailDomain).sso(sso).execute(); @@ -1945,13 +2005,14 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | BulkPreBanParams bulkPreBanParams = new BulkPreBanParams(); // BulkPreBanParams | Boolean includeByUserIdAndEmail = true; // Boolean | Boolean includeByIP = true; // Boolean | Boolean includeByEmailDomain = true; // Boolean | String sso = "sso_example"; // String | try { - BulkPreBanSummary result = apiInstance.postBulkPreBanSummary(bulkPreBanParams) + BulkPreBanSummary result = apiInstance.postBulkPreBanSummary(tenantId, bulkPreBanParams) .includeByUserIdAndEmail(includeByUserIdAndEmail) .includeByIP(includeByIP) .includeByEmailDomain(includeByEmailDomain) @@ -1973,6 +2034,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **bulkPreBanParams** | [**BulkPreBanParams**](BulkPreBanParams.md)| | | | **includeByUserIdAndEmail** | **Boolean**| | [optional] | | **includeByIP** | **Boolean**| | [optional] | @@ -2000,7 +2062,7 @@ No authorization required # **postCommentsByIds** -> ModerationAPIChildCommentsResponse postCommentsByIds(commentsByIdsParams).sso(sso).execute(); +> ModerationAPIChildCommentsResponse postCommentsByIds(tenantId, commentsByIdsParams).sso(sso).execute(); @@ -2019,10 +2081,11 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | CommentsByIdsParams commentsByIdsParams = new CommentsByIdsParams(); // CommentsByIdsParams | String sso = "sso_example"; // String | try { - ModerationAPIChildCommentsResponse result = apiInstance.postCommentsByIds(commentsByIdsParams) + ModerationAPIChildCommentsResponse result = apiInstance.postCommentsByIds(tenantId, commentsByIdsParams) .sso(sso) .execute(); System.out.println(result); @@ -2041,6 +2104,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentsByIdsParams** | [**CommentsByIdsParams**](CommentsByIdsParams.md)| | | | **sso** | **String**| | [optional] | @@ -2065,7 +2129,7 @@ No authorization required # **postFlagComment** -> APIEmptyResponse postFlagComment(commentId).sso(sso).execute(); +> APIEmptyResponse postFlagComment(tenantId, commentId).broadcastId(broadcastId).sso(sso).execute(); @@ -2084,10 +2148,13 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String commentId = "commentId_example"; // String | + String broadcastId = "broadcastId_example"; // String | String sso = "sso_example"; // String | try { - APIEmptyResponse result = apiInstance.postFlagComment(commentId) + APIEmptyResponse result = apiInstance.postFlagComment(tenantId, commentId) + .broadcastId(broadcastId) .sso(sso) .execute(); System.out.println(result); @@ -2106,7 +2173,9 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | +| **broadcastId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -2130,7 +2199,7 @@ No authorization required # **postRemoveComment** -> PostRemoveCommentResponse postRemoveComment(commentId).sso(sso).execute(); +> PostRemoveCommentApiResponse postRemoveComment(tenantId, commentId).broadcastId(broadcastId).sso(sso).execute(); @@ -2149,10 +2218,13 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String commentId = "commentId_example"; // String | + String broadcastId = "broadcastId_example"; // String | String sso = "sso_example"; // String | try { - PostRemoveCommentResponse result = apiInstance.postRemoveComment(commentId) + PostRemoveCommentApiResponse result = apiInstance.postRemoveComment(tenantId, commentId) + .broadcastId(broadcastId) .sso(sso) .execute(); System.out.println(result); @@ -2171,12 +2243,14 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | +| **broadcastId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type -[**PostRemoveCommentResponse**](PostRemoveCommentResponse.md) +[**PostRemoveCommentApiResponse**](PostRemoveCommentApiResponse.md) ### Authorization @@ -2195,7 +2269,7 @@ No authorization required # **postRestoreDeletedComment** -> APIEmptyResponse postRestoreDeletedComment(commentId).sso(sso).execute(); +> APIEmptyResponse postRestoreDeletedComment(tenantId, commentId).broadcastId(broadcastId).sso(sso).execute(); @@ -2214,10 +2288,13 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String commentId = "commentId_example"; // String | + String broadcastId = "broadcastId_example"; // String | String sso = "sso_example"; // String | try { - APIEmptyResponse result = apiInstance.postRestoreDeletedComment(commentId) + APIEmptyResponse result = apiInstance.postRestoreDeletedComment(tenantId, commentId) + .broadcastId(broadcastId) .sso(sso) .execute(); System.out.println(result); @@ -2236,7 +2313,9 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | +| **broadcastId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -2260,7 +2339,7 @@ No authorization required # **postSetCommentApprovalStatus** -> SetCommentApprovedResponse postSetCommentApprovalStatus(commentId).approved(approved).sso(sso).execute(); +> SetCommentApprovedResponse postSetCommentApprovalStatus(tenantId, commentId).approved(approved).broadcastId(broadcastId).sso(sso).execute(); @@ -2279,12 +2358,15 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String commentId = "commentId_example"; // String | Boolean approved = true; // Boolean | + String broadcastId = "broadcastId_example"; // String | String sso = "sso_example"; // String | try { - SetCommentApprovedResponse result = apiInstance.postSetCommentApprovalStatus(commentId) + SetCommentApprovedResponse result = apiInstance.postSetCommentApprovalStatus(tenantId, commentId) .approved(approved) + .broadcastId(broadcastId) .sso(sso) .execute(); System.out.println(result); @@ -2303,8 +2385,10 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | | **approved** | **Boolean**| | [optional] | +| **broadcastId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -2328,7 +2412,7 @@ No authorization required # **postSetCommentReviewStatus** -> APIEmptyResponse postSetCommentReviewStatus(commentId).reviewed(reviewed).sso(sso).execute(); +> APIEmptyResponse postSetCommentReviewStatus(tenantId, commentId).reviewed(reviewed).broadcastId(broadcastId).sso(sso).execute(); @@ -2347,12 +2431,15 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String commentId = "commentId_example"; // String | Boolean reviewed = true; // Boolean | + String broadcastId = "broadcastId_example"; // String | String sso = "sso_example"; // String | try { - APIEmptyResponse result = apiInstance.postSetCommentReviewStatus(commentId) + APIEmptyResponse result = apiInstance.postSetCommentReviewStatus(tenantId, commentId) .reviewed(reviewed) + .broadcastId(broadcastId) .sso(sso) .execute(); System.out.println(result); @@ -2371,8 +2458,10 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | | **reviewed** | **Boolean**| | [optional] | +| **broadcastId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -2396,7 +2485,7 @@ No authorization required # **postSetCommentSpamStatus** -> APIEmptyResponse postSetCommentSpamStatus(commentId).spam(spam).permNotSpam(permNotSpam).sso(sso).execute(); +> APIEmptyResponse postSetCommentSpamStatus(tenantId, commentId).spam(spam).permNotSpam(permNotSpam).broadcastId(broadcastId).sso(sso).execute(); @@ -2415,14 +2504,17 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String commentId = "commentId_example"; // String | Boolean spam = true; // Boolean | Boolean permNotSpam = true; // Boolean | + String broadcastId = "broadcastId_example"; // String | String sso = "sso_example"; // String | try { - APIEmptyResponse result = apiInstance.postSetCommentSpamStatus(commentId) + APIEmptyResponse result = apiInstance.postSetCommentSpamStatus(tenantId, commentId) .spam(spam) .permNotSpam(permNotSpam) + .broadcastId(broadcastId) .sso(sso) .execute(); System.out.println(result); @@ -2441,9 +2533,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | | **spam** | **Boolean**| | [optional] | | **permNotSpam** | **Boolean**| | [optional] | +| **broadcastId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -2467,7 +2561,7 @@ No authorization required # **postSetCommentText** -> SetCommentTextResponse postSetCommentText(commentId, setCommentTextParams).sso(sso).execute(); +> SetCommentTextResponse postSetCommentText(tenantId, commentId, setCommentTextParams).broadcastId(broadcastId).sso(sso).execute(); @@ -2486,11 +2580,14 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String commentId = "commentId_example"; // String | SetCommentTextParams setCommentTextParams = new SetCommentTextParams(); // SetCommentTextParams | + String broadcastId = "broadcastId_example"; // String | String sso = "sso_example"; // String | try { - SetCommentTextResponse result = apiInstance.postSetCommentText(commentId, setCommentTextParams) + SetCommentTextResponse result = apiInstance.postSetCommentText(tenantId, commentId, setCommentTextParams) + .broadcastId(broadcastId) .sso(sso) .execute(); System.out.println(result); @@ -2509,8 +2606,10 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | | **setCommentTextParams** | [**SetCommentTextParams**](SetCommentTextParams.md)| | | +| **broadcastId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -2534,7 +2633,7 @@ No authorization required # **postUnFlagComment** -> APIEmptyResponse postUnFlagComment(commentId).sso(sso).execute(); +> APIEmptyResponse postUnFlagComment(tenantId, commentId).broadcastId(broadcastId).sso(sso).execute(); @@ -2553,10 +2652,13 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String commentId = "commentId_example"; // String | + String broadcastId = "broadcastId_example"; // String | String sso = "sso_example"; // String | try { - APIEmptyResponse result = apiInstance.postUnFlagComment(commentId) + APIEmptyResponse result = apiInstance.postUnFlagComment(tenantId, commentId) + .broadcastId(broadcastId) .sso(sso) .execute(); System.out.println(result); @@ -2575,7 +2677,9 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | +| **broadcastId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -2599,7 +2703,7 @@ No authorization required # **postVote** -> VoteResponse postVote(commentId).direction(direction).sso(sso).execute(); +> VoteResponse postVote(tenantId, commentId).direction(direction).broadcastId(broadcastId).sso(sso).execute(); @@ -2618,12 +2722,15 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String commentId = "commentId_example"; // String | String direction = "direction_example"; // String | + String broadcastId = "broadcastId_example"; // String | String sso = "sso_example"; // String | try { - VoteResponse result = apiInstance.postVote(commentId) + VoteResponse result = apiInstance.postVote(tenantId, commentId) .direction(direction) + .broadcastId(broadcastId) .sso(sso) .execute(); System.out.println(result); @@ -2642,8 +2749,10 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **commentId** | **String**| | | | **direction** | **String**| | [optional] | +| **broadcastId** | **String**| | [optional] | | **sso** | **String**| | [optional] | ### Return type @@ -2667,7 +2776,7 @@ No authorization required # **putAwardBadge** -> AwardUserBadgeResponse putAwardBadge(badgeId).userId(userId).commentId(commentId).broadcastId(broadcastId).sso(sso).execute(); +> AwardUserBadgeResponse putAwardBadge(tenantId, badgeId).userId(userId).commentId(commentId).broadcastId(broadcastId).sso(sso).execute(); @@ -2686,13 +2795,14 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String badgeId = "badgeId_example"; // String | String userId = "userId_example"; // String | String commentId = "commentId_example"; // String | String broadcastId = "broadcastId_example"; // String | String sso = "sso_example"; // String | try { - AwardUserBadgeResponse result = apiInstance.putAwardBadge(badgeId) + AwardUserBadgeResponse result = apiInstance.putAwardBadge(tenantId, badgeId) .userId(userId) .commentId(commentId) .broadcastId(broadcastId) @@ -2714,6 +2824,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **badgeId** | **String**| | | | **userId** | **String**| | [optional] | | **commentId** | **String**| | [optional] | @@ -2741,7 +2852,7 @@ No authorization required # **putCloseThread** -> APIEmptyResponse putCloseThread(urlId).sso(sso).execute(); +> APIEmptyResponse putCloseThread(tenantId, urlId).sso(sso).execute(); @@ -2760,10 +2871,11 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String urlId = "urlId_example"; // String | String sso = "sso_example"; // String | try { - APIEmptyResponse result = apiInstance.putCloseThread(urlId) + APIEmptyResponse result = apiInstance.putCloseThread(tenantId, urlId) .sso(sso) .execute(); System.out.println(result); @@ -2782,6 +2894,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **urlId** | **String**| | | | **sso** | **String**| | [optional] | @@ -2806,7 +2919,7 @@ No authorization required # **putRemoveBadge** -> RemoveUserBadgeResponse putRemoveBadge(badgeId).userId(userId).commentId(commentId).broadcastId(broadcastId).sso(sso).execute(); +> RemoveUserBadgeResponse putRemoveBadge(tenantId, badgeId).userId(userId).commentId(commentId).broadcastId(broadcastId).sso(sso).execute(); @@ -2825,13 +2938,14 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String badgeId = "badgeId_example"; // String | String userId = "userId_example"; // String | String commentId = "commentId_example"; // String | String broadcastId = "broadcastId_example"; // String | String sso = "sso_example"; // String | try { - RemoveUserBadgeResponse result = apiInstance.putRemoveBadge(badgeId) + RemoveUserBadgeResponse result = apiInstance.putRemoveBadge(tenantId, badgeId) .userId(userId) .commentId(commentId) .broadcastId(broadcastId) @@ -2853,6 +2967,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **badgeId** | **String**| | | | **userId** | **String**| | [optional] | | **commentId** | **String**| | [optional] | @@ -2880,7 +2995,7 @@ No authorization required # **putReopenThread** -> APIEmptyResponse putReopenThread(urlId).sso(sso).execute(); +> APIEmptyResponse putReopenThread(tenantId, urlId).sso(sso).execute(); @@ -2899,10 +3014,11 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String urlId = "urlId_example"; // String | String sso = "sso_example"; // String | try { - APIEmptyResponse result = apiInstance.putReopenThread(urlId) + APIEmptyResponse result = apiInstance.putReopenThread(tenantId, urlId) .sso(sso) .execute(); System.out.println(result); @@ -2921,6 +3037,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **urlId** | **String**| | | | **sso** | **String**| | [optional] | @@ -2945,7 +3062,7 @@ No authorization required # **setTrustFactor** -> SetUserTrustFactorResponse setTrustFactor().userId(userId).trustFactor(trustFactor).sso(sso).execute(); +> SetUserTrustFactorResponse setTrustFactor(tenantId).userId(userId).trustFactor(trustFactor).sso(sso).execute(); @@ -2964,11 +3081,12 @@ public class Example { defaultClient.setBasePath("https://fastcomments.com"); ModerationApi apiInstance = new ModerationApi(defaultClient); + String tenantId = "tenantId_example"; // String | String userId = "userId_example"; // String | String trustFactor = "trustFactor_example"; // String | String sso = "sso_example"; // String | try { - SetUserTrustFactorResponse result = apiInstance.setTrustFactor() + SetUserTrustFactorResponse result = apiInstance.setTrustFactor(tenantId) .userId(userId) .trustFactor(trustFactor) .sso(sso) @@ -2989,6 +3107,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | | | **userId** | **String**| | [optional] | | **trustFactor** | **String**| | [optional] | | **sso** | **String**| | [optional] | diff --git a/client/docs/PostRemoveCommentResponse.md b/client/docs/PostRemoveCommentApiResponse.md similarity index 85% rename from client/docs/PostRemoveCommentResponse.md rename to client/docs/PostRemoveCommentApiResponse.md index ad9d1d96..82d83cc4 100644 --- a/client/docs/PostRemoveCommentResponse.md +++ b/client/docs/PostRemoveCommentApiResponse.md @@ -1,6 +1,6 @@ -# PostRemoveCommentResponse +# PostRemoveCommentApiResponse ## Properties diff --git a/client/src/main/java/com/fastcomments/api/DefaultApi.java b/client/src/main/java/com/fastcomments/api/DefaultApi.java index 677aced1..84df6073 100644 --- a/client/src/main/java/com/fastcomments/api/DefaultApi.java +++ b/client/src/main/java/com/fastcomments/api/DefaultApi.java @@ -377,7 +377,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal public APIaddDomainConfigRequest addDomainConfig(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull AddDomainConfigParams addDomainConfigParams) { return new APIaddDomainConfigRequest(tenantId, addDomainConfigParams); } - private okhttp3.Call addHashTagCall(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable CreateHashTagBody createHashTagBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call addHashTagCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable CreateHashTagBody createHashTagBody, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -427,19 +427,24 @@ private okhttp3.Call addHashTagCall(@javax.annotation.Nullable String tenantId, } @SuppressWarnings("rawtypes") - private okhttp3.Call addHashTagValidateBeforeCall(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable CreateHashTagBody createHashTagBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call addHashTagValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable CreateHashTagBody createHashTagBody, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling addHashTag(Async)"); + } + return addHashTagCall(tenantId, createHashTagBody, _callback); } - private ApiResponse addHashTagWithHttpInfo(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable CreateHashTagBody createHashTagBody) throws ApiException { + private ApiResponse addHashTagWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable CreateHashTagBody createHashTagBody) throws ApiException { okhttp3.Call localVarCall = addHashTagValidateBeforeCall(tenantId, createHashTagBody, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call addHashTagAsync(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable CreateHashTagBody createHashTagBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call addHashTagAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable CreateHashTagBody createHashTagBody, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = addHashTagValidateBeforeCall(tenantId, createHashTagBody, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -448,22 +453,13 @@ private okhttp3.Call addHashTagAsync(@javax.annotation.Nullable String tenantId, } public class APIaddHashTagRequest { - @javax.annotation.Nullable - private String tenantId; + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nullable private CreateHashTagBody createHashTagBody; - private APIaddHashTagRequest() { - } - - /** - * Set tenantId - * @param tenantId (optional) - * @return APIaddHashTagRequest - */ - public APIaddHashTagRequest tenantId(@javax.annotation.Nullable String tenantId) { + private APIaddHashTagRequest(@javax.annotation.Nonnull String tenantId) { this.tenantId = tenantId; - return this; } /** @@ -547,6 +543,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb /** * * + * @param tenantId (required) * @return APIaddHashTagRequest * @http.response.details @@ -556,10 +553,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callb
0 Error -
*/ - public APIaddHashTagRequest addHashTag() { - return new APIaddHashTagRequest(); + public APIaddHashTagRequest addHashTag(@javax.annotation.Nonnull String tenantId) { + return new APIaddHashTagRequest(tenantId); } - private okhttp3.Call addHashTagsBulkCall(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable BulkCreateHashTagsBody bulkCreateHashTagsBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call addHashTagsBulkCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable BulkCreateHashTagsBody bulkCreateHashTagsBody, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -609,19 +606,24 @@ private okhttp3.Call addHashTagsBulkCall(@javax.annotation.Nullable String tenan } @SuppressWarnings("rawtypes") - private okhttp3.Call addHashTagsBulkValidateBeforeCall(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable BulkCreateHashTagsBody bulkCreateHashTagsBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call addHashTagsBulkValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable BulkCreateHashTagsBody bulkCreateHashTagsBody, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling addHashTagsBulk(Async)"); + } + return addHashTagsBulkCall(tenantId, bulkCreateHashTagsBody, _callback); } - private ApiResponse addHashTagsBulkWithHttpInfo(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable BulkCreateHashTagsBody bulkCreateHashTagsBody) throws ApiException { + private ApiResponse addHashTagsBulkWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable BulkCreateHashTagsBody bulkCreateHashTagsBody) throws ApiException { okhttp3.Call localVarCall = addHashTagsBulkValidateBeforeCall(tenantId, bulkCreateHashTagsBody, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call addHashTagsBulkAsync(@javax.annotation.Nullable String tenantId, @javax.annotation.Nullable BulkCreateHashTagsBody bulkCreateHashTagsBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call addHashTagsBulkAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable BulkCreateHashTagsBody bulkCreateHashTagsBody, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = addHashTagsBulkValidateBeforeCall(tenantId, bulkCreateHashTagsBody, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -630,22 +632,13 @@ private okhttp3.Call addHashTagsBulkAsync(@javax.annotation.Nullable String tena } public class APIaddHashTagsBulkRequest { - @javax.annotation.Nullable - private String tenantId; + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nullable private BulkCreateHashTagsBody bulkCreateHashTagsBody; - private APIaddHashTagsBulkRequest() { - } - - /** - * Set tenantId - * @param tenantId (optional) - * @return APIaddHashTagsBulkRequest - */ - public APIaddHashTagsBulkRequest tenantId(@javax.annotation.Nullable String tenantId) { + private APIaddHashTagsBulkRequest(@javax.annotation.Nonnull String tenantId) { this.tenantId = tenantId; - return this; } /** @@ -729,6 +722,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ /** * * + * @param tenantId (required) * @return APIaddHashTagsBulkRequest * @http.response.details @@ -738,8 +732,8 @@ public okhttp3.Call executeAsync(final ApiCallback _
0 Error -
*/ - public APIaddHashTagsBulkRequest addHashTagsBulk() { - return new APIaddHashTagsBulkRequest(); + public APIaddHashTagsBulkRequest addHashTagsBulk(@javax.annotation.Nonnull String tenantId) { + return new APIaddHashTagsBulkRequest(tenantId); } private okhttp3.Call addPageCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CreateAPIPageData createAPIPageData, final ApiCallback _callback) throws ApiException { String basePath = null; @@ -5424,7 +5418,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIdeleteEmailTemplateRenderErrorRequest deleteEmailTemplateRenderError(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull String errorId) { return new APIdeleteEmailTemplateRenderErrorRequest(tenantId, id, errorId); } - private okhttp3.Call deleteHashTagCall(@javax.annotation.Nonnull String tag, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable DeleteHashTagRequestBody deleteHashTagRequestBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteHashTagCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String tag, @javax.annotation.Nullable DeleteHashTagRequestBody deleteHashTagRequestBody, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5475,51 +5469,47 @@ private okhttp3.Call deleteHashTagCall(@javax.annotation.Nonnull String tag, @ja } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteHashTagValidateBeforeCall(@javax.annotation.Nonnull String tag, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable DeleteHashTagRequestBody deleteHashTagRequestBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteHashTagValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String tag, @javax.annotation.Nullable DeleteHashTagRequestBody deleteHashTagRequestBody, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling deleteHashTag(Async)"); + } + // verify the required parameter 'tag' is set if (tag == null) { throw new ApiException("Missing the required parameter 'tag' when calling deleteHashTag(Async)"); } - return deleteHashTagCall(tag, tenantId, deleteHashTagRequestBody, _callback); + return deleteHashTagCall(tenantId, tag, deleteHashTagRequestBody, _callback); } - private ApiResponse deleteHashTagWithHttpInfo(@javax.annotation.Nonnull String tag, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable DeleteHashTagRequestBody deleteHashTagRequestBody) throws ApiException { - okhttp3.Call localVarCall = deleteHashTagValidateBeforeCall(tag, tenantId, deleteHashTagRequestBody, null); + private ApiResponse deleteHashTagWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String tag, @javax.annotation.Nullable DeleteHashTagRequestBody deleteHashTagRequestBody) throws ApiException { + okhttp3.Call localVarCall = deleteHashTagValidateBeforeCall(tenantId, tag, deleteHashTagRequestBody, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteHashTagAsync(@javax.annotation.Nonnull String tag, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable DeleteHashTagRequestBody deleteHashTagRequestBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteHashTagAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String tag, @javax.annotation.Nullable DeleteHashTagRequestBody deleteHashTagRequestBody, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteHashTagValidateBeforeCall(tag, tenantId, deleteHashTagRequestBody, _callback); + okhttp3.Call localVarCall = deleteHashTagValidateBeforeCall(tenantId, tag, deleteHashTagRequestBody, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIdeleteHashTagRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String tag; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private DeleteHashTagRequestBody deleteHashTagRequestBody; - private APIdeleteHashTagRequest(@javax.annotation.Nonnull String tag) { - this.tag = tag; - } - - /** - * Set tenantId - * @param tenantId (optional) - * @return APIdeleteHashTagRequest - */ - public APIdeleteHashTagRequest tenantId(@javax.annotation.Nullable String tenantId) { + private APIdeleteHashTagRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String tag) { this.tenantId = tenantId; - return this; + this.tag = tag; } /** @@ -5546,7 +5536,7 @@ public APIdeleteHashTagRequest deleteHashTagRequestBody(@javax.annotation.Nullab */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteHashTagCall(tag, tenantId, deleteHashTagRequestBody, _callback); + return deleteHashTagCall(tenantId, tag, deleteHashTagRequestBody, _callback); } /** @@ -5562,7 +5552,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public APIEmptyResponse execute() throws ApiException { - ApiResponse localVarResp = deleteHashTagWithHttpInfo(tag, tenantId, deleteHashTagRequestBody); + ApiResponse localVarResp = deleteHashTagWithHttpInfo(tenantId, tag, deleteHashTagRequestBody); return localVarResp.getData(); } @@ -5579,7 +5569,7 @@ public APIEmptyResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteHashTagWithHttpInfo(tag, tenantId, deleteHashTagRequestBody); + return deleteHashTagWithHttpInfo(tenantId, tag, deleteHashTagRequestBody); } /** @@ -5596,13 +5586,14 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteHashTagAsync(tag, tenantId, deleteHashTagRequestBody, _callback); + return deleteHashTagAsync(tenantId, tag, deleteHashTagRequestBody, _callback); } } /** * * + * @param tenantId (required) * @param tag (required) * @return APIdeleteHashTagRequest * @http.response.details @@ -5613,8 +5604,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 0 Error - */ - public APIdeleteHashTagRequest deleteHashTag(@javax.annotation.Nonnull String tag) { - return new APIdeleteHashTagRequest(tag); + public APIdeleteHashTagRequest deleteHashTag(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String tag) { + return new APIdeleteHashTagRequest(tenantId, tag); } private okhttp3.Call deleteModeratorCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nullable String sendEmail, final ApiCallback _callback) throws ApiException { String basePath = null; @@ -17415,7 +17406,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c public APIpatchDomainConfigRequest patchDomainConfig(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String domainToUpdate, @javax.annotation.Nonnull PatchDomainConfigParams patchDomainConfigParams) { return new APIpatchDomainConfigRequest(tenantId, domainToUpdate, patchDomainConfigParams); } - private okhttp3.Call patchHashTagCall(@javax.annotation.Nonnull String tag, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable UpdateHashTagBody updateHashTagBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchHashTagCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String tag, @javax.annotation.Nullable UpdateHashTagBody updateHashTagBody, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -17466,51 +17457,47 @@ private okhttp3.Call patchHashTagCall(@javax.annotation.Nonnull String tag, @jav } @SuppressWarnings("rawtypes") - private okhttp3.Call patchHashTagValidateBeforeCall(@javax.annotation.Nonnull String tag, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable UpdateHashTagBody updateHashTagBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchHashTagValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String tag, @javax.annotation.Nullable UpdateHashTagBody updateHashTagBody, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling patchHashTag(Async)"); + } + // verify the required parameter 'tag' is set if (tag == null) { throw new ApiException("Missing the required parameter 'tag' when calling patchHashTag(Async)"); } - return patchHashTagCall(tag, tenantId, updateHashTagBody, _callback); + return patchHashTagCall(tenantId, tag, updateHashTagBody, _callback); } - private ApiResponse patchHashTagWithHttpInfo(@javax.annotation.Nonnull String tag, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable UpdateHashTagBody updateHashTagBody) throws ApiException { - okhttp3.Call localVarCall = patchHashTagValidateBeforeCall(tag, tenantId, updateHashTagBody, null); + private ApiResponse patchHashTagWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String tag, @javax.annotation.Nullable UpdateHashTagBody updateHashTagBody) throws ApiException { + okhttp3.Call localVarCall = patchHashTagValidateBeforeCall(tenantId, tag, updateHashTagBody, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchHashTagAsync(@javax.annotation.Nonnull String tag, @javax.annotation.Nullable String tenantId, @javax.annotation.Nullable UpdateHashTagBody updateHashTagBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchHashTagAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String tag, @javax.annotation.Nullable UpdateHashTagBody updateHashTagBody, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchHashTagValidateBeforeCall(tag, tenantId, updateHashTagBody, _callback); + okhttp3.Call localVarCall = patchHashTagValidateBeforeCall(tenantId, tag, updateHashTagBody, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpatchHashTagRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String tag; @javax.annotation.Nullable - private String tenantId; - @javax.annotation.Nullable private UpdateHashTagBody updateHashTagBody; - private APIpatchHashTagRequest(@javax.annotation.Nonnull String tag) { - this.tag = tag; - } - - /** - * Set tenantId - * @param tenantId (optional) - * @return APIpatchHashTagRequest - */ - public APIpatchHashTagRequest tenantId(@javax.annotation.Nullable String tenantId) { + private APIpatchHashTagRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String tag) { this.tenantId = tenantId; - return this; + this.tag = tag; } /** @@ -17537,7 +17524,7 @@ public APIpatchHashTagRequest updateHashTagBody(@javax.annotation.Nullable Updat */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchHashTagCall(tag, tenantId, updateHashTagBody, _callback); + return patchHashTagCall(tenantId, tag, updateHashTagBody, _callback); } /** @@ -17553,7 +17540,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public UpdateHashTagResponse execute() throws ApiException { - ApiResponse localVarResp = patchHashTagWithHttpInfo(tag, tenantId, updateHashTagBody); + ApiResponse localVarResp = patchHashTagWithHttpInfo(tenantId, tag, updateHashTagBody); return localVarResp.getData(); } @@ -17570,7 +17557,7 @@ public UpdateHashTagResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return patchHashTagWithHttpInfo(tag, tenantId, updateHashTagBody); + return patchHashTagWithHttpInfo(tenantId, tag, updateHashTagBody); } /** @@ -17587,13 +17574,14 @@ public ApiResponse executeWithHttpInfo() throws ApiExcept */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchHashTagAsync(tag, tenantId, updateHashTagBody, _callback); + return patchHashTagAsync(tenantId, tag, updateHashTagBody, _callback); } } /** * * + * @param tenantId (required) * @param tag (required) * @return APIpatchHashTagRequest * @http.response.details @@ -17604,8 +17592,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callb 0 Error - */ - public APIpatchHashTagRequest patchHashTag(@javax.annotation.Nonnull String tag) { - return new APIpatchHashTagRequest(tag); + public APIpatchHashTagRequest patchHashTag(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String tag) { + return new APIpatchHashTagRequest(tenantId, tag); } private okhttp3.Call patchPageCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String id, @javax.annotation.Nonnull UpdateAPIPageData updateAPIPageData, final ApiCallback _callback) throws ApiException { String basePath = null; diff --git a/client/src/main/java/com/fastcomments/api/ModerationApi.java b/client/src/main/java/com/fastcomments/api/ModerationApi.java index c6475fb1..915f327f 100644 --- a/client/src/main/java/com/fastcomments/api/ModerationApi.java +++ b/client/src/main/java/com/fastcomments/api/ModerationApi.java @@ -59,7 +59,7 @@ import com.fastcomments.model.ModerationSiteSearchResponse; import com.fastcomments.model.ModerationSuggestResponse; import com.fastcomments.model.ModerationUserSearchResponse; -import com.fastcomments.model.PostRemoveCommentResponse; +import com.fastcomments.model.PostRemoveCommentApiResponse; import com.fastcomments.model.PreBanSummary; import com.fastcomments.model.RemoveUserBadgeResponse; import com.fastcomments.model.SetCommentApprovedResponse; @@ -112,7 +112,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call deleteModerationVoteCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteModerationVoteCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -129,7 +129,7 @@ private okhttp3.Call deleteModerationVoteCall(@javax.annotation.Nonnull String c Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/vote/{commentId}/{voteId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())) .replace("{" + "voteId" + "}", localVarApiClient.escapeString(voteId.toString())); @@ -139,6 +139,14 @@ private okhttp3.Call deleteModerationVoteCall(@javax.annotation.Nonnull String c Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + + if (broadcastId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -163,7 +171,12 @@ private okhttp3.Call deleteModerationVoteCall(@javax.annotation.Nonnull String c } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteModerationVoteValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteModerationVoteValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling deleteModerationVote(Async)"); + } + // verify the required parameter 'commentId' is set if (commentId == null) { throw new ApiException("Missing the required parameter 'commentId' when calling deleteModerationVote(Async)"); @@ -174,38 +187,53 @@ private okhttp3.Call deleteModerationVoteValidateBeforeCall(@javax.annotation.No throw new ApiException("Missing the required parameter 'voteId' when calling deleteModerationVote(Async)"); } - return deleteModerationVoteCall(commentId, voteId, sso, _callback); + return deleteModerationVoteCall(tenantId, commentId, voteId, broadcastId, sso, _callback); } - private ApiResponse deleteModerationVoteWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = deleteModerationVoteValidateBeforeCall(commentId, voteId, sso, null); + private ApiResponse deleteModerationVoteWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = deleteModerationVoteValidateBeforeCall(tenantId, commentId, voteId, broadcastId, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteModerationVoteAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteModerationVoteAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteModerationVoteValidateBeforeCall(commentId, voteId, sso, _callback); + okhttp3.Call localVarCall = deleteModerationVoteValidateBeforeCall(tenantId, commentId, voteId, broadcastId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIdeleteModerationVoteRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nonnull private final String voteId; @javax.annotation.Nullable + private String broadcastId; + @javax.annotation.Nullable private String sso; - private APIdeleteModerationVoteRequest(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId) { + private APIdeleteModerationVoteRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId) { + this.tenantId = tenantId; this.commentId = commentId; this.voteId = voteId; } + /** + * Set broadcastId + * @param broadcastId (optional) + * @return APIdeleteModerationVoteRequest + */ + public APIdeleteModerationVoteRequest broadcastId(@javax.annotation.Nullable String broadcastId) { + this.broadcastId = broadcastId; + return this; + } + /** * Set sso * @param sso (optional) @@ -230,7 +258,7 @@ public APIdeleteModerationVoteRequest sso(@javax.annotation.Nullable String sso) */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteModerationVoteCall(commentId, voteId, sso, _callback); + return deleteModerationVoteCall(tenantId, commentId, voteId, broadcastId, sso, _callback); } /** @@ -246,7 +274,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public VoteDeleteResponse execute() throws ApiException { - ApiResponse localVarResp = deleteModerationVoteWithHttpInfo(commentId, voteId, sso); + ApiResponse localVarResp = deleteModerationVoteWithHttpInfo(tenantId, commentId, voteId, broadcastId, sso); return localVarResp.getData(); } @@ -263,7 +291,7 @@ public VoteDeleteResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteModerationVoteWithHttpInfo(commentId, voteId, sso); + return deleteModerationVoteWithHttpInfo(tenantId, commentId, voteId, broadcastId, sso); } /** @@ -280,13 +308,14 @@ public ApiResponse executeWithHttpInfo() throws ApiException */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteModerationVoteAsync(commentId, voteId, sso, _callback); + return deleteModerationVoteAsync(tenantId, commentId, voteId, broadcastId, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @param voteId (required) * @return APIdeleteModerationVoteRequest @@ -298,10 +327,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback 0 Error - */ - public APIdeleteModerationVoteRequest deleteModerationVote(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId) { - return new APIdeleteModerationVoteRequest(commentId, voteId); + public APIdeleteModerationVoteRequest deleteModerationVote(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull String voteId) { + return new APIdeleteModerationVoteRequest(tenantId, commentId, voteId); } - private okhttp3.Call getApiCommentsCall(@javax.annotation.Nullable Double page, @javax.annotation.Nullable Double count, @javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String sorts, @javax.annotation.Nullable Boolean demo, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getApiCommentsCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Double page, @javax.annotation.Nullable Double count, @javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String sorts, @javax.annotation.Nullable Boolean demo, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -318,7 +347,7 @@ private okhttp3.Call getApiCommentsCall(@javax.annotation.Nullable Double page, Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/api/comments"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/api/comments"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -326,6 +355,10 @@ private okhttp3.Call getApiCommentsCall(@javax.annotation.Nullable Double page, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (page != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); } @@ -382,27 +415,34 @@ private okhttp3.Call getApiCommentsCall(@javax.annotation.Nullable Double page, } @SuppressWarnings("rawtypes") - private okhttp3.Call getApiCommentsValidateBeforeCall(@javax.annotation.Nullable Double page, @javax.annotation.Nullable Double count, @javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String sorts, @javax.annotation.Nullable Boolean demo, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - return getApiCommentsCall(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, sso, _callback); + private okhttp3.Call getApiCommentsValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Double page, @javax.annotation.Nullable Double count, @javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String sorts, @javax.annotation.Nullable Boolean demo, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getApiComments(Async)"); + } + + return getApiCommentsCall(tenantId, page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, sso, _callback); } - private ApiResponse getApiCommentsWithHttpInfo(@javax.annotation.Nullable Double page, @javax.annotation.Nullable Double count, @javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String sorts, @javax.annotation.Nullable Boolean demo, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getApiCommentsValidateBeforeCall(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, sso, null); + private ApiResponse getApiCommentsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Double page, @javax.annotation.Nullable Double count, @javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String sorts, @javax.annotation.Nullable Boolean demo, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getApiCommentsValidateBeforeCall(tenantId, page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getApiCommentsAsync(@javax.annotation.Nullable Double page, @javax.annotation.Nullable Double count, @javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String sorts, @javax.annotation.Nullable Boolean demo, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getApiCommentsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable Double page, @javax.annotation.Nullable Double count, @javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String sorts, @javax.annotation.Nullable Boolean demo, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getApiCommentsValidateBeforeCall(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, sso, _callback); + okhttp3.Call localVarCall = getApiCommentsValidateBeforeCall(tenantId, page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetApiCommentsRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nullable private Double page; @javax.annotation.Nullable @@ -422,7 +462,8 @@ public class APIgetApiCommentsRequest { @javax.annotation.Nullable private String sso; - private APIgetApiCommentsRequest() { + private APIgetApiCommentsRequest(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; } /** @@ -529,7 +570,7 @@ public APIgetApiCommentsRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getApiCommentsCall(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, sso, _callback); + return getApiCommentsCall(tenantId, page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, sso, _callback); } /** @@ -545,7 +586,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public ModerationAPIGetCommentsResponse execute() throws ApiException { - ApiResponse localVarResp = getApiCommentsWithHttpInfo(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, sso); + ApiResponse localVarResp = getApiCommentsWithHttpInfo(tenantId, page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, sso); return localVarResp.getData(); } @@ -562,7 +603,7 @@ public ModerationAPIGetCommentsResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getApiCommentsWithHttpInfo(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, sso); + return getApiCommentsWithHttpInfo(tenantId, page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, sso); } /** @@ -579,13 +620,14 @@ public ApiResponse executeWithHttpInfo() throw */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getApiCommentsAsync(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, sso, _callback); + return getApiCommentsAsync(tenantId, page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, sso, _callback); } } /** * * + * @param tenantId (required) * @return APIgetApiCommentsRequest * @http.response.details @@ -595,10 +637,10 @@ public okhttp3.Call executeAsync(final ApiCallback
0 Error -
*/ - public APIgetApiCommentsRequest getApiComments() { - return new APIgetApiCommentsRequest(); + public APIgetApiCommentsRequest getApiComments(@javax.annotation.Nonnull String tenantId) { + return new APIgetApiCommentsRequest(tenantId); } - private okhttp3.Call getApiExportStatusCall(@javax.annotation.Nullable String batchJobId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getApiExportStatusCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String batchJobId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -615,7 +657,7 @@ private okhttp3.Call getApiExportStatusCall(@javax.annotation.Nullable String ba Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/api/export/status"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/api/export/status"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -623,6 +665,10 @@ private okhttp3.Call getApiExportStatusCall(@javax.annotation.Nullable String ba Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (batchJobId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("batchJobId", batchJobId)); } @@ -651,33 +697,41 @@ private okhttp3.Call getApiExportStatusCall(@javax.annotation.Nullable String ba } @SuppressWarnings("rawtypes") - private okhttp3.Call getApiExportStatusValidateBeforeCall(@javax.annotation.Nullable String batchJobId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - return getApiExportStatusCall(batchJobId, sso, _callback); + private okhttp3.Call getApiExportStatusValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String batchJobId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getApiExportStatus(Async)"); + } + + return getApiExportStatusCall(tenantId, batchJobId, sso, _callback); } - private ApiResponse getApiExportStatusWithHttpInfo(@javax.annotation.Nullable String batchJobId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getApiExportStatusValidateBeforeCall(batchJobId, sso, null); + private ApiResponse getApiExportStatusWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String batchJobId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getApiExportStatusValidateBeforeCall(tenantId, batchJobId, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getApiExportStatusAsync(@javax.annotation.Nullable String batchJobId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getApiExportStatusAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String batchJobId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getApiExportStatusValidateBeforeCall(batchJobId, sso, _callback); + okhttp3.Call localVarCall = getApiExportStatusValidateBeforeCall(tenantId, batchJobId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetApiExportStatusRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nullable private String batchJobId; @javax.annotation.Nullable private String sso; - private APIgetApiExportStatusRequest() { + private APIgetApiExportStatusRequest(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; } /** @@ -714,7 +768,7 @@ public APIgetApiExportStatusRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getApiExportStatusCall(batchJobId, sso, _callback); + return getApiExportStatusCall(tenantId, batchJobId, sso, _callback); } /** @@ -730,7 +784,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public ModerationExportStatusResponse execute() throws ApiException { - ApiResponse localVarResp = getApiExportStatusWithHttpInfo(batchJobId, sso); + ApiResponse localVarResp = getApiExportStatusWithHttpInfo(tenantId, batchJobId, sso); return localVarResp.getData(); } @@ -747,7 +801,7 @@ public ModerationExportStatusResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getApiExportStatusWithHttpInfo(batchJobId, sso); + return getApiExportStatusWithHttpInfo(tenantId, batchJobId, sso); } /** @@ -764,13 +818,14 @@ public ApiResponse executeWithHttpInfo() throws */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getApiExportStatusAsync(batchJobId, sso, _callback); + return getApiExportStatusAsync(tenantId, batchJobId, sso, _callback); } } /** * * + * @param tenantId (required) * @return APIgetApiExportStatusRequest * @http.response.details @@ -780,10 +835,10 @@ public okhttp3.Call executeAsync(final ApiCallback
0 Error -
*/ - public APIgetApiExportStatusRequest getApiExportStatus() { - return new APIgetApiExportStatusRequest(); + public APIgetApiExportStatusRequest getApiExportStatus(@javax.annotation.Nonnull String tenantId) { + return new APIgetApiExportStatusRequest(tenantId); } - private okhttp3.Call getApiIdsCall(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String afterId, @javax.annotation.Nullable Boolean demo, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getApiIdsCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String afterId, @javax.annotation.Nullable Boolean demo, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -800,7 +855,7 @@ private okhttp3.Call getApiIdsCall(@javax.annotation.Nullable String textSearch, Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/api/ids"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/api/ids"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -808,6 +863,10 @@ private okhttp3.Call getApiIdsCall(@javax.annotation.Nullable String textSearch, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (textSearch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("text-search", textSearch)); } @@ -856,27 +915,34 @@ private okhttp3.Call getApiIdsCall(@javax.annotation.Nullable String textSearch, } @SuppressWarnings("rawtypes") - private okhttp3.Call getApiIdsValidateBeforeCall(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String afterId, @javax.annotation.Nullable Boolean demo, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - return getApiIdsCall(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, sso, _callback); + private okhttp3.Call getApiIdsValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String afterId, @javax.annotation.Nullable Boolean demo, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getApiIds(Async)"); + } + + return getApiIdsCall(tenantId, textSearch, byIPFromComment, filters, searchFilters, afterId, demo, sso, _callback); } - private ApiResponse getApiIdsWithHttpInfo(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String afterId, @javax.annotation.Nullable Boolean demo, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getApiIdsValidateBeforeCall(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, sso, null); + private ApiResponse getApiIdsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String afterId, @javax.annotation.Nullable Boolean demo, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getApiIdsValidateBeforeCall(tenantId, textSearch, byIPFromComment, filters, searchFilters, afterId, demo, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getApiIdsAsync(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String afterId, @javax.annotation.Nullable Boolean demo, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getApiIdsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String afterId, @javax.annotation.Nullable Boolean demo, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getApiIdsValidateBeforeCall(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, sso, _callback); + okhttp3.Call localVarCall = getApiIdsValidateBeforeCall(tenantId, textSearch, byIPFromComment, filters, searchFilters, afterId, demo, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetApiIdsRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nullable private String textSearch; @javax.annotation.Nullable @@ -892,7 +958,8 @@ public class APIgetApiIdsRequest { @javax.annotation.Nullable private String sso; - private APIgetApiIdsRequest() { + private APIgetApiIdsRequest(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; } /** @@ -979,7 +1046,7 @@ public APIgetApiIdsRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getApiIdsCall(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, sso, _callback); + return getApiIdsCall(tenantId, textSearch, byIPFromComment, filters, searchFilters, afterId, demo, sso, _callback); } /** @@ -995,7 +1062,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public ModerationAPIGetCommentIdsResponse execute() throws ApiException { - ApiResponse localVarResp = getApiIdsWithHttpInfo(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, sso); + ApiResponse localVarResp = getApiIdsWithHttpInfo(tenantId, textSearch, byIPFromComment, filters, searchFilters, afterId, demo, sso); return localVarResp.getData(); } @@ -1012,7 +1079,7 @@ public ModerationAPIGetCommentIdsResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getApiIdsWithHttpInfo(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, sso); + return getApiIdsWithHttpInfo(tenantId, textSearch, byIPFromComment, filters, searchFilters, afterId, demo, sso); } /** @@ -1029,13 +1096,14 @@ public ApiResponse executeWithHttpInfo() thr */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getApiIdsAsync(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, sso, _callback); + return getApiIdsAsync(tenantId, textSearch, byIPFromComment, filters, searchFilters, afterId, demo, sso, _callback); } } /** * * + * @param tenantId (required) * @return APIgetApiIdsRequest * @http.response.details @@ -1045,10 +1113,10 @@ public okhttp3.Call executeAsync(final ApiCallback
0 Error -
*/ - public APIgetApiIdsRequest getApiIds() { - return new APIgetApiIdsRequest(); + public APIgetApiIdsRequest getApiIds(@javax.annotation.Nonnull String tenantId) { + return new APIgetApiIdsRequest(tenantId); } - private okhttp3.Call getBanUsersFromCommentCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getBanUsersFromCommentCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1065,7 +1133,7 @@ private okhttp3.Call getBanUsersFromCommentCall(@javax.annotation.Nonnull String Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/ban-users/from-comment/{commentId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); @@ -1074,6 +1142,10 @@ private okhttp3.Call getBanUsersFromCommentCall(@javax.annotation.Nonnull String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -1098,38 +1170,46 @@ private okhttp3.Call getBanUsersFromCommentCall(@javax.annotation.Nonnull String } @SuppressWarnings("rawtypes") - private okhttp3.Call getBanUsersFromCommentValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getBanUsersFromCommentValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getBanUsersFromComment(Async)"); + } + // verify the required parameter 'commentId' is set if (commentId == null) { throw new ApiException("Missing the required parameter 'commentId' when calling getBanUsersFromComment(Async)"); } - return getBanUsersFromCommentCall(commentId, sso, _callback); + return getBanUsersFromCommentCall(tenantId, commentId, sso, _callback); } - private ApiResponse getBanUsersFromCommentWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getBanUsersFromCommentValidateBeforeCall(commentId, sso, null); + private ApiResponse getBanUsersFromCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getBanUsersFromCommentValidateBeforeCall(tenantId, commentId, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getBanUsersFromCommentAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getBanUsersFromCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getBanUsersFromCommentValidateBeforeCall(commentId, sso, _callback); + okhttp3.Call localVarCall = getBanUsersFromCommentValidateBeforeCall(tenantId, commentId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetBanUsersFromCommentRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable private String sso; - private APIgetBanUsersFromCommentRequest(@javax.annotation.Nonnull String commentId) { + private APIgetBanUsersFromCommentRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + this.tenantId = tenantId; this.commentId = commentId; } @@ -1157,7 +1237,7 @@ public APIgetBanUsersFromCommentRequest sso(@javax.annotation.Nullable String ss */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getBanUsersFromCommentCall(commentId, sso, _callback); + return getBanUsersFromCommentCall(tenantId, commentId, sso, _callback); } /** @@ -1173,7 +1253,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public GetBannedUsersFromCommentResponse execute() throws ApiException { - ApiResponse localVarResp = getBanUsersFromCommentWithHttpInfo(commentId, sso); + ApiResponse localVarResp = getBanUsersFromCommentWithHttpInfo(tenantId, commentId, sso); return localVarResp.getData(); } @@ -1190,7 +1270,7 @@ public GetBannedUsersFromCommentResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getBanUsersFromCommentWithHttpInfo(commentId, sso); + return getBanUsersFromCommentWithHttpInfo(tenantId, commentId, sso); } /** @@ -1207,13 +1287,14 @@ public ApiResponse executeWithHttpInfo() thro */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getBanUsersFromCommentAsync(commentId, sso, _callback); + return getBanUsersFromCommentAsync(tenantId, commentId, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @return APIgetBanUsersFromCommentRequest * @http.response.details @@ -1224,10 +1305,10 @@ public okhttp3.Call executeAsync(final ApiCallback 0 Error - */ - public APIgetBanUsersFromCommentRequest getBanUsersFromComment(@javax.annotation.Nonnull String commentId) { - return new APIgetBanUsersFromCommentRequest(commentId); + public APIgetBanUsersFromCommentRequest getBanUsersFromComment(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + return new APIgetBanUsersFromCommentRequest(tenantId, commentId); } - private okhttp3.Call getCommentBanStatusCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCommentBanStatusCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1244,7 +1325,7 @@ private okhttp3.Call getCommentBanStatusCall(@javax.annotation.Nonnull String co Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/get-comment-ban-status/{commentId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); @@ -1253,6 +1334,10 @@ private okhttp3.Call getCommentBanStatusCall(@javax.annotation.Nonnull String co Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -1277,38 +1362,46 @@ private okhttp3.Call getCommentBanStatusCall(@javax.annotation.Nonnull String co } @SuppressWarnings("rawtypes") - private okhttp3.Call getCommentBanStatusValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCommentBanStatusValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getCommentBanStatus(Async)"); + } + // verify the required parameter 'commentId' is set if (commentId == null) { throw new ApiException("Missing the required parameter 'commentId' when calling getCommentBanStatus(Async)"); } - return getCommentBanStatusCall(commentId, sso, _callback); + return getCommentBanStatusCall(tenantId, commentId, sso, _callback); } - private ApiResponse getCommentBanStatusWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getCommentBanStatusValidateBeforeCall(commentId, sso, null); + private ApiResponse getCommentBanStatusWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getCommentBanStatusValidateBeforeCall(tenantId, commentId, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getCommentBanStatusAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCommentBanStatusAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getCommentBanStatusValidateBeforeCall(commentId, sso, _callback); + okhttp3.Call localVarCall = getCommentBanStatusValidateBeforeCall(tenantId, commentId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetCommentBanStatusRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable private String sso; - private APIgetCommentBanStatusRequest(@javax.annotation.Nonnull String commentId) { + private APIgetCommentBanStatusRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + this.tenantId = tenantId; this.commentId = commentId; } @@ -1336,7 +1429,7 @@ public APIgetCommentBanStatusRequest sso(@javax.annotation.Nullable String sso) */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getCommentBanStatusCall(commentId, sso, _callback); + return getCommentBanStatusCall(tenantId, commentId, sso, _callback); } /** @@ -1352,7 +1445,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public GetCommentBanStatusResponse execute() throws ApiException { - ApiResponse localVarResp = getCommentBanStatusWithHttpInfo(commentId, sso); + ApiResponse localVarResp = getCommentBanStatusWithHttpInfo(tenantId, commentId, sso); return localVarResp.getData(); } @@ -1369,7 +1462,7 @@ public GetCommentBanStatusResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getCommentBanStatusWithHttpInfo(commentId, sso); + return getCommentBanStatusWithHttpInfo(tenantId, commentId, sso); } /** @@ -1386,13 +1479,14 @@ public ApiResponse executeWithHttpInfo() throws Api */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getCommentBanStatusAsync(commentId, sso, _callback); + return getCommentBanStatusAsync(tenantId, commentId, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @return APIgetCommentBanStatusRequest * @http.response.details @@ -1403,10 +1497,10 @@ public okhttp3.Call executeAsync(final ApiCallback 0 Error - */ - public APIgetCommentBanStatusRequest getCommentBanStatus(@javax.annotation.Nonnull String commentId) { - return new APIgetCommentBanStatusRequest(commentId); + public APIgetCommentBanStatusRequest getCommentBanStatus(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + return new APIgetCommentBanStatusRequest(tenantId, commentId); } - private okhttp3.Call getCommentChildrenCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCommentChildrenCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1423,7 +1517,7 @@ private okhttp3.Call getCommentChildrenCall(@javax.annotation.Nonnull String com Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/comment-children/{commentId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/comment-children/{commentId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); @@ -1432,6 +1526,10 @@ private okhttp3.Call getCommentChildrenCall(@javax.annotation.Nonnull String com Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -1456,38 +1554,46 @@ private okhttp3.Call getCommentChildrenCall(@javax.annotation.Nonnull String com } @SuppressWarnings("rawtypes") - private okhttp3.Call getCommentChildrenValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCommentChildrenValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getCommentChildren(Async)"); + } + // verify the required parameter 'commentId' is set if (commentId == null) { throw new ApiException("Missing the required parameter 'commentId' when calling getCommentChildren(Async)"); } - return getCommentChildrenCall(commentId, sso, _callback); + return getCommentChildrenCall(tenantId, commentId, sso, _callback); } - private ApiResponse getCommentChildrenWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getCommentChildrenValidateBeforeCall(commentId, sso, null); + private ApiResponse getCommentChildrenWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getCommentChildrenValidateBeforeCall(tenantId, commentId, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getCommentChildrenAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCommentChildrenAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getCommentChildrenValidateBeforeCall(commentId, sso, _callback); + okhttp3.Call localVarCall = getCommentChildrenValidateBeforeCall(tenantId, commentId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetCommentChildrenRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable private String sso; - private APIgetCommentChildrenRequest(@javax.annotation.Nonnull String commentId) { + private APIgetCommentChildrenRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + this.tenantId = tenantId; this.commentId = commentId; } @@ -1515,7 +1621,7 @@ public APIgetCommentChildrenRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getCommentChildrenCall(commentId, sso, _callback); + return getCommentChildrenCall(tenantId, commentId, sso, _callback); } /** @@ -1531,7 +1637,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public ModerationAPIChildCommentsResponse execute() throws ApiException { - ApiResponse localVarResp = getCommentChildrenWithHttpInfo(commentId, sso); + ApiResponse localVarResp = getCommentChildrenWithHttpInfo(tenantId, commentId, sso); return localVarResp.getData(); } @@ -1548,7 +1654,7 @@ public ModerationAPIChildCommentsResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getCommentChildrenWithHttpInfo(commentId, sso); + return getCommentChildrenWithHttpInfo(tenantId, commentId, sso); } /** @@ -1565,13 +1671,14 @@ public ApiResponse executeWithHttpInfo() thr */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getCommentChildrenAsync(commentId, sso, _callback); + return getCommentChildrenAsync(tenantId, commentId, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @return APIgetCommentChildrenRequest * @http.response.details @@ -1582,10 +1689,10 @@ public okhttp3.Call executeAsync(final ApiCallback 0 Error - */ - public APIgetCommentChildrenRequest getCommentChildren(@javax.annotation.Nonnull String commentId) { - return new APIgetCommentChildrenRequest(commentId); + public APIgetCommentChildrenRequest getCommentChildren(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + return new APIgetCommentChildrenRequest(tenantId, commentId); } - private okhttp3.Call getCountCall(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filter, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable Boolean demo, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCountCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filter, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable Boolean demo, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1602,7 +1709,7 @@ private okhttp3.Call getCountCall(@javax.annotation.Nullable String textSearch, Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/count"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/count"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1610,6 +1717,10 @@ private okhttp3.Call getCountCall(@javax.annotation.Nullable String textSearch, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (textSearch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("text-search", textSearch)); } @@ -1654,27 +1765,34 @@ private okhttp3.Call getCountCall(@javax.annotation.Nullable String textSearch, } @SuppressWarnings("rawtypes") - private okhttp3.Call getCountValidateBeforeCall(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filter, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable Boolean demo, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - return getCountCall(textSearch, byIPFromComment, filter, searchFilters, demo, sso, _callback); + private okhttp3.Call getCountValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filter, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable Boolean demo, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getCount(Async)"); + } + + return getCountCall(tenantId, textSearch, byIPFromComment, filter, searchFilters, demo, sso, _callback); } - private ApiResponse getCountWithHttpInfo(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filter, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable Boolean demo, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getCountValidateBeforeCall(textSearch, byIPFromComment, filter, searchFilters, demo, sso, null); + private ApiResponse getCountWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filter, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable Boolean demo, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getCountValidateBeforeCall(tenantId, textSearch, byIPFromComment, filter, searchFilters, demo, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getCountAsync(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filter, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable Boolean demo, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCountAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filter, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable Boolean demo, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getCountValidateBeforeCall(textSearch, byIPFromComment, filter, searchFilters, demo, sso, _callback); + okhttp3.Call localVarCall = getCountValidateBeforeCall(tenantId, textSearch, byIPFromComment, filter, searchFilters, demo, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetCountRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nullable private String textSearch; @javax.annotation.Nullable @@ -1688,7 +1806,8 @@ public class APIgetCountRequest { @javax.annotation.Nullable private String sso; - private APIgetCountRequest() { + private APIgetCountRequest(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; } /** @@ -1765,7 +1884,7 @@ public APIgetCountRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getCountCall(textSearch, byIPFromComment, filter, searchFilters, demo, sso, _callback); + return getCountCall(tenantId, textSearch, byIPFromComment, filter, searchFilters, demo, sso, _callback); } /** @@ -1781,7 +1900,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public ModerationAPICountCommentsResponse execute() throws ApiException { - ApiResponse localVarResp = getCountWithHttpInfo(textSearch, byIPFromComment, filter, searchFilters, demo, sso); + ApiResponse localVarResp = getCountWithHttpInfo(tenantId, textSearch, byIPFromComment, filter, searchFilters, demo, sso); return localVarResp.getData(); } @@ -1798,7 +1917,7 @@ public ModerationAPICountCommentsResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getCountWithHttpInfo(textSearch, byIPFromComment, filter, searchFilters, demo, sso); + return getCountWithHttpInfo(tenantId, textSearch, byIPFromComment, filter, searchFilters, demo, sso); } /** @@ -1815,13 +1934,14 @@ public ApiResponse executeWithHttpInfo() thr */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getCountAsync(textSearch, byIPFromComment, filter, searchFilters, demo, sso, _callback); + return getCountAsync(tenantId, textSearch, byIPFromComment, filter, searchFilters, demo, sso, _callback); } } /** * * + * @param tenantId (required) * @return APIgetCountRequest * @http.response.details @@ -1831,10 +1951,10 @@ public okhttp3.Call executeAsync(final ApiCallback
0 Error -
*/ - public APIgetCountRequest getCount() { - return new APIgetCountRequest(); + public APIgetCountRequest getCount(@javax.annotation.Nonnull String tenantId) { + return new APIgetCountRequest(tenantId); } - private okhttp3.Call getCountsCall(@javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCountsCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1851,7 +1971,7 @@ private okhttp3.Call getCountsCall(@javax.annotation.Nullable String sso, final Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/banned-users/counts"; + String localVarPath = "/auth/my-account/moderate-comments/banned-users/mod_api/counts"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1859,6 +1979,10 @@ private okhttp3.Call getCountsCall(@javax.annotation.Nullable String sso, final Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -1883,31 +2007,39 @@ private okhttp3.Call getCountsCall(@javax.annotation.Nullable String sso, final } @SuppressWarnings("rawtypes") - private okhttp3.Call getCountsValidateBeforeCall(@javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - return getCountsCall(sso, _callback); + private okhttp3.Call getCountsValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getCounts(Async)"); + } + + return getCountsCall(tenantId, sso, _callback); } - private ApiResponse getCountsWithHttpInfo(@javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getCountsValidateBeforeCall(sso, null); + private ApiResponse getCountsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getCountsValidateBeforeCall(tenantId, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getCountsAsync(@javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCountsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getCountsValidateBeforeCall(sso, _callback); + okhttp3.Call localVarCall = getCountsValidateBeforeCall(tenantId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetCountsRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nullable private String sso; - private APIgetCountsRequest() { + private APIgetCountsRequest(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; } /** @@ -1934,7 +2066,7 @@ public APIgetCountsRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getCountsCall(sso, _callback); + return getCountsCall(tenantId, sso, _callback); } /** @@ -1950,7 +2082,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public GetBannedUsersCountResponse execute() throws ApiException { - ApiResponse localVarResp = getCountsWithHttpInfo(sso); + ApiResponse localVarResp = getCountsWithHttpInfo(tenantId, sso); return localVarResp.getData(); } @@ -1967,7 +2099,7 @@ public GetBannedUsersCountResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getCountsWithHttpInfo(sso); + return getCountsWithHttpInfo(tenantId, sso); } /** @@ -1984,13 +2116,14 @@ public ApiResponse executeWithHttpInfo() throws Api */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getCountsAsync(sso, _callback); + return getCountsAsync(tenantId, sso, _callback); } } /** * * + * @param tenantId (required) * @return APIgetCountsRequest * @http.response.details @@ -2000,10 +2133,10 @@ public okhttp3.Call executeAsync(final ApiCallback
0 Error -
*/ - public APIgetCountsRequest getCounts() { - return new APIgetCountsRequest(); + public APIgetCountsRequest getCounts(@javax.annotation.Nonnull String tenantId) { + return new APIgetCountsRequest(tenantId); } - private okhttp3.Call getLogsCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getLogsCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2020,7 +2153,7 @@ private okhttp3.Call getLogsCall(@javax.annotation.Nonnull String commentId, @ja Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/logs/{commentId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/logs/{commentId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); @@ -2029,6 +2162,10 @@ private okhttp3.Call getLogsCall(@javax.annotation.Nonnull String commentId, @ja Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -2053,38 +2190,46 @@ private okhttp3.Call getLogsCall(@javax.annotation.Nonnull String commentId, @ja } @SuppressWarnings("rawtypes") - private okhttp3.Call getLogsValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getLogsValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getLogs(Async)"); + } + // verify the required parameter 'commentId' is set if (commentId == null) { throw new ApiException("Missing the required parameter 'commentId' when calling getLogs(Async)"); } - return getLogsCall(commentId, sso, _callback); + return getLogsCall(tenantId, commentId, sso, _callback); } - private ApiResponse getLogsWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getLogsValidateBeforeCall(commentId, sso, null); + private ApiResponse getLogsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getLogsValidateBeforeCall(tenantId, commentId, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getLogsAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getLogsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getLogsValidateBeforeCall(commentId, sso, _callback); + okhttp3.Call localVarCall = getLogsValidateBeforeCall(tenantId, commentId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetLogsRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable private String sso; - private APIgetLogsRequest(@javax.annotation.Nonnull String commentId) { + private APIgetLogsRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + this.tenantId = tenantId; this.commentId = commentId; } @@ -2112,7 +2257,7 @@ public APIgetLogsRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getLogsCall(commentId, sso, _callback); + return getLogsCall(tenantId, commentId, sso, _callback); } /** @@ -2128,7 +2273,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public ModerationAPIGetLogsResponse execute() throws ApiException { - ApiResponse localVarResp = getLogsWithHttpInfo(commentId, sso); + ApiResponse localVarResp = getLogsWithHttpInfo(tenantId, commentId, sso); return localVarResp.getData(); } @@ -2145,7 +2290,7 @@ public ModerationAPIGetLogsResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getLogsWithHttpInfo(commentId, sso); + return getLogsWithHttpInfo(tenantId, commentId, sso); } /** @@ -2162,13 +2307,14 @@ public ApiResponse executeWithHttpInfo() throws Ap */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getLogsAsync(commentId, sso, _callback); + return getLogsAsync(tenantId, commentId, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @return APIgetLogsRequest * @http.response.details @@ -2179,10 +2325,10 @@ public okhttp3.Call executeAsync(final ApiCallback 0 Error - */ - public APIgetLogsRequest getLogs(@javax.annotation.Nonnull String commentId) { - return new APIgetLogsRequest(commentId); + public APIgetLogsRequest getLogs(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + return new APIgetLogsRequest(tenantId, commentId); } - private okhttp3.Call getManualBadgesCall(@javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getManualBadgesCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2199,7 +2345,7 @@ private okhttp3.Call getManualBadgesCall(@javax.annotation.Nullable String sso, Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/get-manual-badges"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/get-manual-badges"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2207,6 +2353,10 @@ private okhttp3.Call getManualBadgesCall(@javax.annotation.Nullable String sso, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -2231,31 +2381,39 @@ private okhttp3.Call getManualBadgesCall(@javax.annotation.Nullable String sso, } @SuppressWarnings("rawtypes") - private okhttp3.Call getManualBadgesValidateBeforeCall(@javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - return getManualBadgesCall(sso, _callback); + private okhttp3.Call getManualBadgesValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getManualBadges(Async)"); + } + + return getManualBadgesCall(tenantId, sso, _callback); } - private ApiResponse getManualBadgesWithHttpInfo(@javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getManualBadgesValidateBeforeCall(sso, null); + private ApiResponse getManualBadgesWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getManualBadgesValidateBeforeCall(tenantId, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getManualBadgesAsync(@javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getManualBadgesAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getManualBadgesValidateBeforeCall(sso, _callback); + okhttp3.Call localVarCall = getManualBadgesValidateBeforeCall(tenantId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetManualBadgesRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nullable private String sso; - private APIgetManualBadgesRequest() { + private APIgetManualBadgesRequest(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; } /** @@ -2282,7 +2440,7 @@ public APIgetManualBadgesRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getManualBadgesCall(sso, _callback); + return getManualBadgesCall(tenantId, sso, _callback); } /** @@ -2298,7 +2456,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public GetTenantManualBadgesResponse execute() throws ApiException { - ApiResponse localVarResp = getManualBadgesWithHttpInfo(sso); + ApiResponse localVarResp = getManualBadgesWithHttpInfo(tenantId, sso); return localVarResp.getData(); } @@ -2315,7 +2473,7 @@ public GetTenantManualBadgesResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getManualBadgesWithHttpInfo(sso); + return getManualBadgesWithHttpInfo(tenantId, sso); } /** @@ -2332,13 +2490,14 @@ public ApiResponse executeWithHttpInfo() throws A */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getManualBadgesAsync(sso, _callback); + return getManualBadgesAsync(tenantId, sso, _callback); } } /** * * + * @param tenantId (required) * @return APIgetManualBadgesRequest * @http.response.details @@ -2348,10 +2507,10 @@ public okhttp3.Call executeAsync(final ApiCallback
0 Error -
*/ - public APIgetManualBadgesRequest getManualBadges() { - return new APIgetManualBadgesRequest(); + public APIgetManualBadgesRequest getManualBadges(@javax.annotation.Nonnull String tenantId) { + return new APIgetManualBadgesRequest(tenantId); } - private okhttp3.Call getManualBadgesForUserCall(@javax.annotation.Nullable String badgesUserId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getManualBadgesForUserCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String badgesUserId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2368,7 +2527,7 @@ private okhttp3.Call getManualBadgesForUserCall(@javax.annotation.Nullable Strin Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/get-manual-badges-for-user"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2376,6 +2535,10 @@ private okhttp3.Call getManualBadgesForUserCall(@javax.annotation.Nullable Strin Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (badgesUserId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("badgesUserId", badgesUserId)); } @@ -2408,27 +2571,34 @@ private okhttp3.Call getManualBadgesForUserCall(@javax.annotation.Nullable Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call getManualBadgesForUserValidateBeforeCall(@javax.annotation.Nullable String badgesUserId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - return getManualBadgesForUserCall(badgesUserId, commentId, sso, _callback); + private okhttp3.Call getManualBadgesForUserValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String badgesUserId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getManualBadgesForUser(Async)"); + } + + return getManualBadgesForUserCall(tenantId, badgesUserId, commentId, sso, _callback); } - private ApiResponse getManualBadgesForUserWithHttpInfo(@javax.annotation.Nullable String badgesUserId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getManualBadgesForUserValidateBeforeCall(badgesUserId, commentId, sso, null); + private ApiResponse getManualBadgesForUserWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String badgesUserId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getManualBadgesForUserValidateBeforeCall(tenantId, badgesUserId, commentId, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getManualBadgesForUserAsync(@javax.annotation.Nullable String badgesUserId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getManualBadgesForUserAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String badgesUserId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getManualBadgesForUserValidateBeforeCall(badgesUserId, commentId, sso, _callback); + okhttp3.Call localVarCall = getManualBadgesForUserValidateBeforeCall(tenantId, badgesUserId, commentId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetManualBadgesForUserRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nullable private String badgesUserId; @javax.annotation.Nullable @@ -2436,7 +2606,8 @@ public class APIgetManualBadgesForUserRequest { @javax.annotation.Nullable private String sso; - private APIgetManualBadgesForUserRequest() { + private APIgetManualBadgesForUserRequest(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; } /** @@ -2483,7 +2654,7 @@ public APIgetManualBadgesForUserRequest sso(@javax.annotation.Nullable String ss */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getManualBadgesForUserCall(badgesUserId, commentId, sso, _callback); + return getManualBadgesForUserCall(tenantId, badgesUserId, commentId, sso, _callback); } /** @@ -2499,7 +2670,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public GetUserManualBadgesResponse execute() throws ApiException { - ApiResponse localVarResp = getManualBadgesForUserWithHttpInfo(badgesUserId, commentId, sso); + ApiResponse localVarResp = getManualBadgesForUserWithHttpInfo(tenantId, badgesUserId, commentId, sso); return localVarResp.getData(); } @@ -2516,7 +2687,7 @@ public GetUserManualBadgesResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getManualBadgesForUserWithHttpInfo(badgesUserId, commentId, sso); + return getManualBadgesForUserWithHttpInfo(tenantId, badgesUserId, commentId, sso); } /** @@ -2533,13 +2704,14 @@ public ApiResponse executeWithHttpInfo() throws Api */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getManualBadgesForUserAsync(badgesUserId, commentId, sso, _callback); + return getManualBadgesForUserAsync(tenantId, badgesUserId, commentId, sso, _callback); } } /** * * + * @param tenantId (required) * @return APIgetManualBadgesForUserRequest * @http.response.details @@ -2549,10 +2721,10 @@ public okhttp3.Call executeAsync(final ApiCallback
0 Error -
*/ - public APIgetManualBadgesForUserRequest getManualBadgesForUser() { - return new APIgetManualBadgesForUserRequest(); + public APIgetManualBadgesForUserRequest getManualBadgesForUser(@javax.annotation.Nonnull String tenantId) { + return new APIgetManualBadgesForUserRequest(tenantId); } - private okhttp3.Call getModerationCommentCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean includeEmail, @javax.annotation.Nullable Boolean includeIP, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getModerationCommentCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean includeEmail, @javax.annotation.Nullable Boolean includeIP, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2569,7 +2741,7 @@ private okhttp3.Call getModerationCommentCall(@javax.annotation.Nonnull String c Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/comment/{commentId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/comment/{commentId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); @@ -2578,6 +2750,10 @@ private okhttp3.Call getModerationCommentCall(@javax.annotation.Nonnull String c Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (includeEmail != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("includeEmail", includeEmail)); } @@ -2610,32 +2786,39 @@ private okhttp3.Call getModerationCommentCall(@javax.annotation.Nonnull String c } @SuppressWarnings("rawtypes") - private okhttp3.Call getModerationCommentValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean includeEmail, @javax.annotation.Nullable Boolean includeIP, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getModerationCommentValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean includeEmail, @javax.annotation.Nullable Boolean includeIP, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getModerationComment(Async)"); + } + // verify the required parameter 'commentId' is set if (commentId == null) { throw new ApiException("Missing the required parameter 'commentId' when calling getModerationComment(Async)"); } - return getModerationCommentCall(commentId, includeEmail, includeIP, sso, _callback); + return getModerationCommentCall(tenantId, commentId, includeEmail, includeIP, sso, _callback); } - private ApiResponse getModerationCommentWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean includeEmail, @javax.annotation.Nullable Boolean includeIP, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getModerationCommentValidateBeforeCall(commentId, includeEmail, includeIP, sso, null); + private ApiResponse getModerationCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean includeEmail, @javax.annotation.Nullable Boolean includeIP, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getModerationCommentValidateBeforeCall(tenantId, commentId, includeEmail, includeIP, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getModerationCommentAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean includeEmail, @javax.annotation.Nullable Boolean includeIP, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getModerationCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean includeEmail, @javax.annotation.Nullable Boolean includeIP, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getModerationCommentValidateBeforeCall(commentId, includeEmail, includeIP, sso, _callback); + okhttp3.Call localVarCall = getModerationCommentValidateBeforeCall(tenantId, commentId, includeEmail, includeIP, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetModerationCommentRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable @@ -2645,7 +2828,8 @@ public class APIgetModerationCommentRequest { @javax.annotation.Nullable private String sso; - private APIgetModerationCommentRequest(@javax.annotation.Nonnull String commentId) { + private APIgetModerationCommentRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + this.tenantId = tenantId; this.commentId = commentId; } @@ -2693,7 +2877,7 @@ public APIgetModerationCommentRequest sso(@javax.annotation.Nullable String sso) */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getModerationCommentCall(commentId, includeEmail, includeIP, sso, _callback); + return getModerationCommentCall(tenantId, commentId, includeEmail, includeIP, sso, _callback); } /** @@ -2709,7 +2893,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public ModerationAPICommentResponse execute() throws ApiException { - ApiResponse localVarResp = getModerationCommentWithHttpInfo(commentId, includeEmail, includeIP, sso); + ApiResponse localVarResp = getModerationCommentWithHttpInfo(tenantId, commentId, includeEmail, includeIP, sso); return localVarResp.getData(); } @@ -2726,7 +2910,7 @@ public ModerationAPICommentResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getModerationCommentWithHttpInfo(commentId, includeEmail, includeIP, sso); + return getModerationCommentWithHttpInfo(tenantId, commentId, includeEmail, includeIP, sso); } /** @@ -2743,13 +2927,14 @@ public ApiResponse executeWithHttpInfo() throws Ap */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getModerationCommentAsync(commentId, includeEmail, includeIP, sso, _callback); + return getModerationCommentAsync(tenantId, commentId, includeEmail, includeIP, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @return APIgetModerationCommentRequest * @http.response.details @@ -2760,10 +2945,10 @@ public okhttp3.Call executeAsync(final ApiCallback 0 Error - */ - public APIgetModerationCommentRequest getModerationComment(@javax.annotation.Nonnull String commentId) { - return new APIgetModerationCommentRequest(commentId); + public APIgetModerationCommentRequest getModerationComment(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + return new APIgetModerationCommentRequest(tenantId, commentId); } - private okhttp3.Call getModerationCommentTextCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getModerationCommentTextCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2780,7 +2965,7 @@ private okhttp3.Call getModerationCommentTextCall(@javax.annotation.Nonnull Stri Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/get-comment-text/{commentId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); @@ -2789,6 +2974,10 @@ private okhttp3.Call getModerationCommentTextCall(@javax.annotation.Nonnull Stri Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -2813,38 +3002,46 @@ private okhttp3.Call getModerationCommentTextCall(@javax.annotation.Nonnull Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call getModerationCommentTextValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getModerationCommentTextValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getModerationCommentText(Async)"); + } + // verify the required parameter 'commentId' is set if (commentId == null) { throw new ApiException("Missing the required parameter 'commentId' when calling getModerationCommentText(Async)"); } - return getModerationCommentTextCall(commentId, sso, _callback); + return getModerationCommentTextCall(tenantId, commentId, sso, _callback); } - private ApiResponse getModerationCommentTextWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getModerationCommentTextValidateBeforeCall(commentId, sso, null); + private ApiResponse getModerationCommentTextWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getModerationCommentTextValidateBeforeCall(tenantId, commentId, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getModerationCommentTextAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getModerationCommentTextAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getModerationCommentTextValidateBeforeCall(commentId, sso, _callback); + okhttp3.Call localVarCall = getModerationCommentTextValidateBeforeCall(tenantId, commentId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetModerationCommentTextRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable private String sso; - private APIgetModerationCommentTextRequest(@javax.annotation.Nonnull String commentId) { + private APIgetModerationCommentTextRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + this.tenantId = tenantId; this.commentId = commentId; } @@ -2872,7 +3069,7 @@ public APIgetModerationCommentTextRequest sso(@javax.annotation.Nullable String */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getModerationCommentTextCall(commentId, sso, _callback); + return getModerationCommentTextCall(tenantId, commentId, sso, _callback); } /** @@ -2888,7 +3085,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public GetCommentTextResponse execute() throws ApiException { - ApiResponse localVarResp = getModerationCommentTextWithHttpInfo(commentId, sso); + ApiResponse localVarResp = getModerationCommentTextWithHttpInfo(tenantId, commentId, sso); return localVarResp.getData(); } @@ -2905,7 +3102,7 @@ public GetCommentTextResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getModerationCommentTextWithHttpInfo(commentId, sso); + return getModerationCommentTextWithHttpInfo(tenantId, commentId, sso); } /** @@ -2922,13 +3119,14 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getModerationCommentTextAsync(commentId, sso, _callback); + return getModerationCommentTextAsync(tenantId, commentId, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @return APIgetModerationCommentTextRequest * @http.response.details @@ -2939,10 +3137,10 @@ public okhttp3.Call executeAsync(final ApiCallback _call 0 Error - */ - public APIgetModerationCommentTextRequest getModerationCommentText(@javax.annotation.Nonnull String commentId) { - return new APIgetModerationCommentTextRequest(commentId); + public APIgetModerationCommentTextRequest getModerationCommentText(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + return new APIgetModerationCommentTextRequest(tenantId, commentId); } - private okhttp3.Call getPreBanSummaryCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean includeByUserIdAndEmail, @javax.annotation.Nullable Boolean includeByIP, @javax.annotation.Nullable Boolean includeByEmailDomain, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getPreBanSummaryCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean includeByUserIdAndEmail, @javax.annotation.Nullable Boolean includeByIP, @javax.annotation.Nullable Boolean includeByEmailDomain, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2959,7 +3157,7 @@ private okhttp3.Call getPreBanSummaryCall(@javax.annotation.Nonnull String comme Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/pre-ban-summary/{commentId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); @@ -2968,6 +3166,10 @@ private okhttp3.Call getPreBanSummaryCall(@javax.annotation.Nonnull String comme Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (includeByUserIdAndEmail != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("includeByUserIdAndEmail", includeByUserIdAndEmail)); } @@ -3004,32 +3206,39 @@ private okhttp3.Call getPreBanSummaryCall(@javax.annotation.Nonnull String comme } @SuppressWarnings("rawtypes") - private okhttp3.Call getPreBanSummaryValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean includeByUserIdAndEmail, @javax.annotation.Nullable Boolean includeByIP, @javax.annotation.Nullable Boolean includeByEmailDomain, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getPreBanSummaryValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean includeByUserIdAndEmail, @javax.annotation.Nullable Boolean includeByIP, @javax.annotation.Nullable Boolean includeByEmailDomain, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getPreBanSummary(Async)"); + } + // verify the required parameter 'commentId' is set if (commentId == null) { throw new ApiException("Missing the required parameter 'commentId' when calling getPreBanSummary(Async)"); } - return getPreBanSummaryCall(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, _callback); + return getPreBanSummaryCall(tenantId, commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, _callback); } - private ApiResponse getPreBanSummaryWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean includeByUserIdAndEmail, @javax.annotation.Nullable Boolean includeByIP, @javax.annotation.Nullable Boolean includeByEmailDomain, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getPreBanSummaryValidateBeforeCall(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, null); + private ApiResponse getPreBanSummaryWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean includeByUserIdAndEmail, @javax.annotation.Nullable Boolean includeByIP, @javax.annotation.Nullable Boolean includeByEmailDomain, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getPreBanSummaryValidateBeforeCall(tenantId, commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getPreBanSummaryAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean includeByUserIdAndEmail, @javax.annotation.Nullable Boolean includeByIP, @javax.annotation.Nullable Boolean includeByEmailDomain, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getPreBanSummaryAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean includeByUserIdAndEmail, @javax.annotation.Nullable Boolean includeByIP, @javax.annotation.Nullable Boolean includeByEmailDomain, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getPreBanSummaryValidateBeforeCall(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, _callback); + okhttp3.Call localVarCall = getPreBanSummaryValidateBeforeCall(tenantId, commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetPreBanSummaryRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable @@ -3041,7 +3250,8 @@ public class APIgetPreBanSummaryRequest { @javax.annotation.Nullable private String sso; - private APIgetPreBanSummaryRequest(@javax.annotation.Nonnull String commentId) { + private APIgetPreBanSummaryRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + this.tenantId = tenantId; this.commentId = commentId; } @@ -3099,7 +3309,7 @@ public APIgetPreBanSummaryRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getPreBanSummaryCall(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, _callback); + return getPreBanSummaryCall(tenantId, commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, _callback); } /** @@ -3115,7 +3325,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public PreBanSummary execute() throws ApiException { - ApiResponse localVarResp = getPreBanSummaryWithHttpInfo(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso); + ApiResponse localVarResp = getPreBanSummaryWithHttpInfo(tenantId, commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso); return localVarResp.getData(); } @@ -3132,7 +3342,7 @@ public PreBanSummary execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getPreBanSummaryWithHttpInfo(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso); + return getPreBanSummaryWithHttpInfo(tenantId, commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso); } /** @@ -3149,13 +3359,14 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getPreBanSummaryAsync(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, _callback); + return getPreBanSummaryAsync(tenantId, commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @return APIgetPreBanSummaryRequest * @http.response.details @@ -3166,10 +3377,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr 0 Error - */ - public APIgetPreBanSummaryRequest getPreBanSummary(@javax.annotation.Nonnull String commentId) { - return new APIgetPreBanSummaryRequest(commentId); + public APIgetPreBanSummaryRequest getPreBanSummary(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + return new APIgetPreBanSummaryRequest(tenantId, commentId); } - private okhttp3.Call getSearchCommentsSummaryCall(@javax.annotation.Nullable String value, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getSearchCommentsSummaryCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String value, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3186,7 +3397,7 @@ private okhttp3.Call getSearchCommentsSummaryCall(@javax.annotation.Nullable Str Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/search/comments/summary"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/search/comments/summary"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3194,6 +3405,10 @@ private okhttp3.Call getSearchCommentsSummaryCall(@javax.annotation.Nullable Str Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (value != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("value", value)); } @@ -3230,27 +3445,34 @@ private okhttp3.Call getSearchCommentsSummaryCall(@javax.annotation.Nullable Str } @SuppressWarnings("rawtypes") - private okhttp3.Call getSearchCommentsSummaryValidateBeforeCall(@javax.annotation.Nullable String value, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - return getSearchCommentsSummaryCall(value, filters, searchFilters, sso, _callback); + private okhttp3.Call getSearchCommentsSummaryValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String value, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getSearchCommentsSummary(Async)"); + } + + return getSearchCommentsSummaryCall(tenantId, value, filters, searchFilters, sso, _callback); } - private ApiResponse getSearchCommentsSummaryWithHttpInfo(@javax.annotation.Nullable String value, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getSearchCommentsSummaryValidateBeforeCall(value, filters, searchFilters, sso, null); + private ApiResponse getSearchCommentsSummaryWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String value, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getSearchCommentsSummaryValidateBeforeCall(tenantId, value, filters, searchFilters, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getSearchCommentsSummaryAsync(@javax.annotation.Nullable String value, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getSearchCommentsSummaryAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String value, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getSearchCommentsSummaryValidateBeforeCall(value, filters, searchFilters, sso, _callback); + okhttp3.Call localVarCall = getSearchCommentsSummaryValidateBeforeCall(tenantId, value, filters, searchFilters, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetSearchCommentsSummaryRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nullable private String value; @javax.annotation.Nullable @@ -3260,7 +3482,8 @@ public class APIgetSearchCommentsSummaryRequest { @javax.annotation.Nullable private String sso; - private APIgetSearchCommentsSummaryRequest() { + private APIgetSearchCommentsSummaryRequest(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; } /** @@ -3317,7 +3540,7 @@ public APIgetSearchCommentsSummaryRequest sso(@javax.annotation.Nullable String */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getSearchCommentsSummaryCall(value, filters, searchFilters, sso, _callback); + return getSearchCommentsSummaryCall(tenantId, value, filters, searchFilters, sso, _callback); } /** @@ -3333,7 +3556,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public ModerationCommentSearchResponse execute() throws ApiException { - ApiResponse localVarResp = getSearchCommentsSummaryWithHttpInfo(value, filters, searchFilters, sso); + ApiResponse localVarResp = getSearchCommentsSummaryWithHttpInfo(tenantId, value, filters, searchFilters, sso); return localVarResp.getData(); } @@ -3350,7 +3573,7 @@ public ModerationCommentSearchResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getSearchCommentsSummaryWithHttpInfo(value, filters, searchFilters, sso); + return getSearchCommentsSummaryWithHttpInfo(tenantId, value, filters, searchFilters, sso); } /** @@ -3367,13 +3590,14 @@ public ApiResponse executeWithHttpInfo() throws */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getSearchCommentsSummaryAsync(value, filters, searchFilters, sso, _callback); + return getSearchCommentsSummaryAsync(tenantId, value, filters, searchFilters, sso, _callback); } } /** * * + * @param tenantId (required) * @return APIgetSearchCommentsSummaryRequest * @http.response.details @@ -3383,10 +3607,10 @@ public okhttp3.Call executeAsync(final ApiCallback
0 Error -
*/ - public APIgetSearchCommentsSummaryRequest getSearchCommentsSummary() { - return new APIgetSearchCommentsSummaryRequest(); + public APIgetSearchCommentsSummaryRequest getSearchCommentsSummary(@javax.annotation.Nonnull String tenantId) { + return new APIgetSearchCommentsSummaryRequest(tenantId); } - private okhttp3.Call getSearchPagesCall(@javax.annotation.Nullable String value, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getSearchPagesCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String value, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3403,7 +3627,7 @@ private okhttp3.Call getSearchPagesCall(@javax.annotation.Nullable String value, Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/search/pages"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/search/pages"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3411,6 +3635,10 @@ private okhttp3.Call getSearchPagesCall(@javax.annotation.Nullable String value, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (value != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("value", value)); } @@ -3439,33 +3667,41 @@ private okhttp3.Call getSearchPagesCall(@javax.annotation.Nullable String value, } @SuppressWarnings("rawtypes") - private okhttp3.Call getSearchPagesValidateBeforeCall(@javax.annotation.Nullable String value, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - return getSearchPagesCall(value, sso, _callback); + private okhttp3.Call getSearchPagesValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String value, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getSearchPages(Async)"); + } + + return getSearchPagesCall(tenantId, value, sso, _callback); } - private ApiResponse getSearchPagesWithHttpInfo(@javax.annotation.Nullable String value, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getSearchPagesValidateBeforeCall(value, sso, null); + private ApiResponse getSearchPagesWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String value, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getSearchPagesValidateBeforeCall(tenantId, value, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getSearchPagesAsync(@javax.annotation.Nullable String value, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getSearchPagesAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String value, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getSearchPagesValidateBeforeCall(value, sso, _callback); + okhttp3.Call localVarCall = getSearchPagesValidateBeforeCall(tenantId, value, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetSearchPagesRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nullable private String value; @javax.annotation.Nullable private String sso; - private APIgetSearchPagesRequest() { + private APIgetSearchPagesRequest(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; } /** @@ -3502,7 +3738,7 @@ public APIgetSearchPagesRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getSearchPagesCall(value, sso, _callback); + return getSearchPagesCall(tenantId, value, sso, _callback); } /** @@ -3518,7 +3754,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public ModerationPageSearchResponse execute() throws ApiException { - ApiResponse localVarResp = getSearchPagesWithHttpInfo(value, sso); + ApiResponse localVarResp = getSearchPagesWithHttpInfo(tenantId, value, sso); return localVarResp.getData(); } @@ -3535,7 +3771,7 @@ public ModerationPageSearchResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getSearchPagesWithHttpInfo(value, sso); + return getSearchPagesWithHttpInfo(tenantId, value, sso); } /** @@ -3552,13 +3788,14 @@ public ApiResponse executeWithHttpInfo() throws Ap */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getSearchPagesAsync(value, sso, _callback); + return getSearchPagesAsync(tenantId, value, sso, _callback); } } /** * * + * @param tenantId (required) * @return APIgetSearchPagesRequest * @http.response.details @@ -3568,10 +3805,10 @@ public okhttp3.Call executeAsync(final ApiCallback
0 Error -
*/ - public APIgetSearchPagesRequest getSearchPages() { - return new APIgetSearchPagesRequest(); + public APIgetSearchPagesRequest getSearchPages(@javax.annotation.Nonnull String tenantId) { + return new APIgetSearchPagesRequest(tenantId); } - private okhttp3.Call getSearchSitesCall(@javax.annotation.Nullable String value, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getSearchSitesCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String value, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3588,7 +3825,7 @@ private okhttp3.Call getSearchSitesCall(@javax.annotation.Nullable String value, Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/search/sites"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/search/sites"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3596,6 +3833,10 @@ private okhttp3.Call getSearchSitesCall(@javax.annotation.Nullable String value, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (value != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("value", value)); } @@ -3624,33 +3865,41 @@ private okhttp3.Call getSearchSitesCall(@javax.annotation.Nullable String value, } @SuppressWarnings("rawtypes") - private okhttp3.Call getSearchSitesValidateBeforeCall(@javax.annotation.Nullable String value, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - return getSearchSitesCall(value, sso, _callback); + private okhttp3.Call getSearchSitesValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String value, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getSearchSites(Async)"); + } + + return getSearchSitesCall(tenantId, value, sso, _callback); } - private ApiResponse getSearchSitesWithHttpInfo(@javax.annotation.Nullable String value, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getSearchSitesValidateBeforeCall(value, sso, null); + private ApiResponse getSearchSitesWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String value, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getSearchSitesValidateBeforeCall(tenantId, value, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getSearchSitesAsync(@javax.annotation.Nullable String value, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getSearchSitesAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String value, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getSearchSitesValidateBeforeCall(value, sso, _callback); + okhttp3.Call localVarCall = getSearchSitesValidateBeforeCall(tenantId, value, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetSearchSitesRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nullable private String value; @javax.annotation.Nullable private String sso; - private APIgetSearchSitesRequest() { + private APIgetSearchSitesRequest(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; } /** @@ -3687,7 +3936,7 @@ public APIgetSearchSitesRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getSearchSitesCall(value, sso, _callback); + return getSearchSitesCall(tenantId, value, sso, _callback); } /** @@ -3703,7 +3952,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public ModerationSiteSearchResponse execute() throws ApiException { - ApiResponse localVarResp = getSearchSitesWithHttpInfo(value, sso); + ApiResponse localVarResp = getSearchSitesWithHttpInfo(tenantId, value, sso); return localVarResp.getData(); } @@ -3720,7 +3969,7 @@ public ModerationSiteSearchResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getSearchSitesWithHttpInfo(value, sso); + return getSearchSitesWithHttpInfo(tenantId, value, sso); } /** @@ -3737,13 +3986,14 @@ public ApiResponse executeWithHttpInfo() throws Ap */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getSearchSitesAsync(value, sso, _callback); + return getSearchSitesAsync(tenantId, value, sso, _callback); } } /** * * + * @param tenantId (required) * @return APIgetSearchSitesRequest * @http.response.details @@ -3753,10 +4003,10 @@ public okhttp3.Call executeAsync(final ApiCallback
0 Error -
*/ - public APIgetSearchSitesRequest getSearchSites() { - return new APIgetSearchSitesRequest(); + public APIgetSearchSitesRequest getSearchSites(@javax.annotation.Nonnull String tenantId) { + return new APIgetSearchSitesRequest(tenantId); } - private okhttp3.Call getSearchSuggestCall(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getSearchSuggestCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3773,7 +4023,7 @@ private okhttp3.Call getSearchSuggestCall(@javax.annotation.Nullable String text Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/search/suggest"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/search/suggest"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3781,6 +4031,10 @@ private okhttp3.Call getSearchSuggestCall(@javax.annotation.Nullable String text Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (textSearch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("text-search", textSearch)); } @@ -3809,33 +4063,41 @@ private okhttp3.Call getSearchSuggestCall(@javax.annotation.Nullable String text } @SuppressWarnings("rawtypes") - private okhttp3.Call getSearchSuggestValidateBeforeCall(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - return getSearchSuggestCall(textSearch, sso, _callback); + private okhttp3.Call getSearchSuggestValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getSearchSuggest(Async)"); + } + + return getSearchSuggestCall(tenantId, textSearch, sso, _callback); } - private ApiResponse getSearchSuggestWithHttpInfo(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getSearchSuggestValidateBeforeCall(textSearch, sso, null); + private ApiResponse getSearchSuggestWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getSearchSuggestValidateBeforeCall(tenantId, textSearch, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getSearchSuggestAsync(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getSearchSuggestAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getSearchSuggestValidateBeforeCall(textSearch, sso, _callback); + okhttp3.Call localVarCall = getSearchSuggestValidateBeforeCall(tenantId, textSearch, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetSearchSuggestRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nullable private String textSearch; @javax.annotation.Nullable private String sso; - private APIgetSearchSuggestRequest() { + private APIgetSearchSuggestRequest(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; } /** @@ -3872,7 +4134,7 @@ public APIgetSearchSuggestRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getSearchSuggestCall(textSearch, sso, _callback); + return getSearchSuggestCall(tenantId, textSearch, sso, _callback); } /** @@ -3888,7 +4150,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public ModerationSuggestResponse execute() throws ApiException { - ApiResponse localVarResp = getSearchSuggestWithHttpInfo(textSearch, sso); + ApiResponse localVarResp = getSearchSuggestWithHttpInfo(tenantId, textSearch, sso); return localVarResp.getData(); } @@ -3905,7 +4167,7 @@ public ModerationSuggestResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getSearchSuggestWithHttpInfo(textSearch, sso); + return getSearchSuggestWithHttpInfo(tenantId, textSearch, sso); } /** @@ -3922,13 +4184,14 @@ public ApiResponse executeWithHttpInfo() throws ApiEx */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getSearchSuggestAsync(textSearch, sso, _callback); + return getSearchSuggestAsync(tenantId, textSearch, sso, _callback); } } /** * * + * @param tenantId (required) * @return APIgetSearchSuggestRequest * @http.response.details @@ -3938,10 +4201,10 @@ public okhttp3.Call executeAsync(final ApiCallback _c
0 Error -
*/ - public APIgetSearchSuggestRequest getSearchSuggest() { - return new APIgetSearchSuggestRequest(); + public APIgetSearchSuggestRequest getSearchSuggest(@javax.annotation.Nonnull String tenantId) { + return new APIgetSearchSuggestRequest(tenantId); } - private okhttp3.Call getSearchUsersCall(@javax.annotation.Nullable String value, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getSearchUsersCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String value, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3958,7 +4221,7 @@ private okhttp3.Call getSearchUsersCall(@javax.annotation.Nullable String value, Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/search/users"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/search/users"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3966,6 +4229,10 @@ private okhttp3.Call getSearchUsersCall(@javax.annotation.Nullable String value, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (value != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("value", value)); } @@ -3994,33 +4261,41 @@ private okhttp3.Call getSearchUsersCall(@javax.annotation.Nullable String value, } @SuppressWarnings("rawtypes") - private okhttp3.Call getSearchUsersValidateBeforeCall(@javax.annotation.Nullable String value, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - return getSearchUsersCall(value, sso, _callback); + private okhttp3.Call getSearchUsersValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String value, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getSearchUsers(Async)"); + } + + return getSearchUsersCall(tenantId, value, sso, _callback); } - private ApiResponse getSearchUsersWithHttpInfo(@javax.annotation.Nullable String value, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getSearchUsersValidateBeforeCall(value, sso, null); + private ApiResponse getSearchUsersWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String value, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getSearchUsersValidateBeforeCall(tenantId, value, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getSearchUsersAsync(@javax.annotation.Nullable String value, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getSearchUsersAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String value, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getSearchUsersValidateBeforeCall(value, sso, _callback); + okhttp3.Call localVarCall = getSearchUsersValidateBeforeCall(tenantId, value, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetSearchUsersRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nullable private String value; @javax.annotation.Nullable private String sso; - private APIgetSearchUsersRequest() { + private APIgetSearchUsersRequest(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; } /** @@ -4057,7 +4332,7 @@ public APIgetSearchUsersRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getSearchUsersCall(value, sso, _callback); + return getSearchUsersCall(tenantId, value, sso, _callback); } /** @@ -4073,7 +4348,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public ModerationUserSearchResponse execute() throws ApiException { - ApiResponse localVarResp = getSearchUsersWithHttpInfo(value, sso); + ApiResponse localVarResp = getSearchUsersWithHttpInfo(tenantId, value, sso); return localVarResp.getData(); } @@ -4090,7 +4365,7 @@ public ModerationUserSearchResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getSearchUsersWithHttpInfo(value, sso); + return getSearchUsersWithHttpInfo(tenantId, value, sso); } /** @@ -4107,13 +4382,14 @@ public ApiResponse executeWithHttpInfo() throws Ap */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getSearchUsersAsync(value, sso, _callback); + return getSearchUsersAsync(tenantId, value, sso, _callback); } } /** * * + * @param tenantId (required) * @return APIgetSearchUsersRequest * @http.response.details @@ -4123,10 +4399,10 @@ public okhttp3.Call executeAsync(final ApiCallback
0 Error -
*/ - public APIgetSearchUsersRequest getSearchUsers() { - return new APIgetSearchUsersRequest(); + public APIgetSearchUsersRequest getSearchUsers(@javax.annotation.Nonnull String tenantId) { + return new APIgetSearchUsersRequest(tenantId); } - private okhttp3.Call getTrustFactorCall(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getTrustFactorCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4143,7 +4419,7 @@ private okhttp3.Call getTrustFactorCall(@javax.annotation.Nullable String userId Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/get-trust-factor"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/get-trust-factor"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4151,6 +4427,10 @@ private okhttp3.Call getTrustFactorCall(@javax.annotation.Nullable String userId Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (userId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("userId", userId)); } @@ -4179,33 +4459,41 @@ private okhttp3.Call getTrustFactorCall(@javax.annotation.Nullable String userId } @SuppressWarnings("rawtypes") - private okhttp3.Call getTrustFactorValidateBeforeCall(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - return getTrustFactorCall(userId, sso, _callback); + private okhttp3.Call getTrustFactorValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getTrustFactor(Async)"); + } + + return getTrustFactorCall(tenantId, userId, sso, _callback); } - private ApiResponse getTrustFactorWithHttpInfo(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getTrustFactorValidateBeforeCall(userId, sso, null); + private ApiResponse getTrustFactorWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getTrustFactorValidateBeforeCall(tenantId, userId, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getTrustFactorAsync(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getTrustFactorAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getTrustFactorValidateBeforeCall(userId, sso, _callback); + okhttp3.Call localVarCall = getTrustFactorValidateBeforeCall(tenantId, userId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetTrustFactorRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nullable private String userId; @javax.annotation.Nullable private String sso; - private APIgetTrustFactorRequest() { + private APIgetTrustFactorRequest(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; } /** @@ -4242,7 +4530,7 @@ public APIgetTrustFactorRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getTrustFactorCall(userId, sso, _callback); + return getTrustFactorCall(tenantId, userId, sso, _callback); } /** @@ -4258,7 +4546,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public GetUserTrustFactorResponse execute() throws ApiException { - ApiResponse localVarResp = getTrustFactorWithHttpInfo(userId, sso); + ApiResponse localVarResp = getTrustFactorWithHttpInfo(tenantId, userId, sso); return localVarResp.getData(); } @@ -4275,7 +4563,7 @@ public GetUserTrustFactorResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getTrustFactorWithHttpInfo(userId, sso); + return getTrustFactorWithHttpInfo(tenantId, userId, sso); } /** @@ -4292,13 +4580,14 @@ public ApiResponse executeWithHttpInfo() throws ApiE */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getTrustFactorAsync(userId, sso, _callback); + return getTrustFactorAsync(tenantId, userId, sso, _callback); } } /** * * + * @param tenantId (required) * @return APIgetTrustFactorRequest * @http.response.details @@ -4308,10 +4597,10 @@ public okhttp3.Call executeAsync(final ApiCallback _
0 Error -
*/ - public APIgetTrustFactorRequest getTrustFactor() { - return new APIgetTrustFactorRequest(); + public APIgetTrustFactorRequest getTrustFactor(@javax.annotation.Nonnull String tenantId) { + return new APIgetTrustFactorRequest(tenantId); } - private okhttp3.Call getUserBanPreferenceCall(@javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserBanPreferenceCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4328,7 +4617,7 @@ private okhttp3.Call getUserBanPreferenceCall(@javax.annotation.Nullable String Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/user-ban-preference"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/user-ban-preference"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4336,6 +4625,10 @@ private okhttp3.Call getUserBanPreferenceCall(@javax.annotation.Nullable String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -4360,31 +4653,39 @@ private okhttp3.Call getUserBanPreferenceCall(@javax.annotation.Nullable String } @SuppressWarnings("rawtypes") - private okhttp3.Call getUserBanPreferenceValidateBeforeCall(@javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - return getUserBanPreferenceCall(sso, _callback); + private okhttp3.Call getUserBanPreferenceValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getUserBanPreference(Async)"); + } + + return getUserBanPreferenceCall(tenantId, sso, _callback); } - private ApiResponse getUserBanPreferenceWithHttpInfo(@javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getUserBanPreferenceValidateBeforeCall(sso, null); + private ApiResponse getUserBanPreferenceWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getUserBanPreferenceValidateBeforeCall(tenantId, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getUserBanPreferenceAsync(@javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserBanPreferenceAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getUserBanPreferenceValidateBeforeCall(sso, _callback); + okhttp3.Call localVarCall = getUserBanPreferenceValidateBeforeCall(tenantId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetUserBanPreferenceRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nullable private String sso; - private APIgetUserBanPreferenceRequest() { + private APIgetUserBanPreferenceRequest(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; } /** @@ -4411,7 +4712,7 @@ public APIgetUserBanPreferenceRequest sso(@javax.annotation.Nullable String sso) */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getUserBanPreferenceCall(sso, _callback); + return getUserBanPreferenceCall(tenantId, sso, _callback); } /** @@ -4427,7 +4728,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public APIModerateGetUserBanPreferencesResponse execute() throws ApiException { - ApiResponse localVarResp = getUserBanPreferenceWithHttpInfo(sso); + ApiResponse localVarResp = getUserBanPreferenceWithHttpInfo(tenantId, sso); return localVarResp.getData(); } @@ -4444,7 +4745,7 @@ public APIModerateGetUserBanPreferencesResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getUserBanPreferenceWithHttpInfo(sso); + return getUserBanPreferenceWithHttpInfo(tenantId, sso); } /** @@ -4461,13 +4762,14 @@ public ApiResponse executeWithHttpInfo */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getUserBanPreferenceAsync(sso, _callback); + return getUserBanPreferenceAsync(tenantId, sso, _callback); } } /** * * + * @param tenantId (required) * @return APIgetUserBanPreferenceRequest * @http.response.details @@ -4477,10 +4779,10 @@ public okhttp3.Call executeAsync(final ApiCallback
0 Error -
*/ - public APIgetUserBanPreferenceRequest getUserBanPreference() { - return new APIgetUserBanPreferenceRequest(); + public APIgetUserBanPreferenceRequest getUserBanPreference(@javax.annotation.Nonnull String tenantId) { + return new APIgetUserBanPreferenceRequest(tenantId); } - private okhttp3.Call getUserInternalProfileCall(@javax.annotation.Nullable String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserInternalProfileCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4497,7 +4799,7 @@ private okhttp3.Call getUserInternalProfileCall(@javax.annotation.Nullable Strin Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/get-user-internal-profile"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/get-user-internal-profile"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4505,6 +4807,10 @@ private okhttp3.Call getUserInternalProfileCall(@javax.annotation.Nullable Strin Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (commentId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("commentId", commentId)); } @@ -4533,33 +4839,41 @@ private okhttp3.Call getUserInternalProfileCall(@javax.annotation.Nullable Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call getUserInternalProfileValidateBeforeCall(@javax.annotation.Nullable String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - return getUserInternalProfileCall(commentId, sso, _callback); + private okhttp3.Call getUserInternalProfileValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling getUserInternalProfile(Async)"); + } + + return getUserInternalProfileCall(tenantId, commentId, sso, _callback); } - private ApiResponse getUserInternalProfileWithHttpInfo(@javax.annotation.Nullable String commentId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = getUserInternalProfileValidateBeforeCall(commentId, sso, null); + private ApiResponse getUserInternalProfileWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = getUserInternalProfileValidateBeforeCall(tenantId, commentId, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getUserInternalProfileAsync(@javax.annotation.Nullable String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserInternalProfileAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getUserInternalProfileValidateBeforeCall(commentId, sso, _callback); + okhttp3.Call localVarCall = getUserInternalProfileValidateBeforeCall(tenantId, commentId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetUserInternalProfileRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nullable private String commentId; @javax.annotation.Nullable private String sso; - private APIgetUserInternalProfileRequest() { + private APIgetUserInternalProfileRequest(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; } /** @@ -4596,7 +4910,7 @@ public APIgetUserInternalProfileRequest sso(@javax.annotation.Nullable String ss */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getUserInternalProfileCall(commentId, sso, _callback); + return getUserInternalProfileCall(tenantId, commentId, sso, _callback); } /** @@ -4612,7 +4926,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public GetUserInternalProfileResponse execute() throws ApiException { - ApiResponse localVarResp = getUserInternalProfileWithHttpInfo(commentId, sso); + ApiResponse localVarResp = getUserInternalProfileWithHttpInfo(tenantId, commentId, sso); return localVarResp.getData(); } @@ -4629,7 +4943,7 @@ public GetUserInternalProfileResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return getUserInternalProfileWithHttpInfo(commentId, sso); + return getUserInternalProfileWithHttpInfo(tenantId, commentId, sso); } /** @@ -4646,13 +4960,14 @@ public ApiResponse executeWithHttpInfo() throws */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getUserInternalProfileAsync(commentId, sso, _callback); + return getUserInternalProfileAsync(tenantId, commentId, sso, _callback); } } /** * * + * @param tenantId (required) * @return APIgetUserInternalProfileRequest * @http.response.details @@ -4662,10 +4977,10 @@ public okhttp3.Call executeAsync(final ApiCallback
0 Error -
*/ - public APIgetUserInternalProfileRequest getUserInternalProfile() { - return new APIgetUserInternalProfileRequest(); + public APIgetUserInternalProfileRequest getUserInternalProfile(@javax.annotation.Nonnull String tenantId) { + return new APIgetUserInternalProfileRequest(tenantId); } - private okhttp3.Call postAdjustCommentVotesCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postAdjustCommentVotesCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4682,7 +4997,7 @@ private okhttp3.Call postAdjustCommentVotesCall(@javax.annotation.Nonnull String Object localVarPostBody = adjustCommentVotesParams; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/adjust-comment-votes/{commentId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); @@ -4691,6 +5006,14 @@ private okhttp3.Call postAdjustCommentVotesCall(@javax.annotation.Nonnull String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + + if (broadcastId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -4716,7 +5039,12 @@ private okhttp3.Call postAdjustCommentVotesCall(@javax.annotation.Nonnull String } @SuppressWarnings("rawtypes") - private okhttp3.Call postAdjustCommentVotesValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postAdjustCommentVotesValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling postAdjustCommentVotes(Async)"); + } + // verify the required parameter 'commentId' is set if (commentId == null) { throw new ApiException("Missing the required parameter 'commentId' when calling postAdjustCommentVotes(Async)"); @@ -4727,38 +5055,53 @@ private okhttp3.Call postAdjustCommentVotesValidateBeforeCall(@javax.annotation. throw new ApiException("Missing the required parameter 'adjustCommentVotesParams' when calling postAdjustCommentVotes(Async)"); } - return postAdjustCommentVotesCall(commentId, adjustCommentVotesParams, sso, _callback); + return postAdjustCommentVotesCall(tenantId, commentId, adjustCommentVotesParams, broadcastId, sso, _callback); } - private ApiResponse postAdjustCommentVotesWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = postAdjustCommentVotesValidateBeforeCall(commentId, adjustCommentVotesParams, sso, null); + private ApiResponse postAdjustCommentVotesWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postAdjustCommentVotesValidateBeforeCall(tenantId, commentId, adjustCommentVotesParams, broadcastId, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call postAdjustCommentVotesAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postAdjustCommentVotesAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postAdjustCommentVotesValidateBeforeCall(commentId, adjustCommentVotesParams, sso, _callback); + okhttp3.Call localVarCall = postAdjustCommentVotesValidateBeforeCall(tenantId, commentId, adjustCommentVotesParams, broadcastId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpostAdjustCommentVotesRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nonnull private final AdjustCommentVotesParams adjustCommentVotesParams; @javax.annotation.Nullable + private String broadcastId; + @javax.annotation.Nullable private String sso; - private APIpostAdjustCommentVotesRequest(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams) { + private APIpostAdjustCommentVotesRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams) { + this.tenantId = tenantId; this.commentId = commentId; this.adjustCommentVotesParams = adjustCommentVotesParams; } + /** + * Set broadcastId + * @param broadcastId (optional) + * @return APIpostAdjustCommentVotesRequest + */ + public APIpostAdjustCommentVotesRequest broadcastId(@javax.annotation.Nullable String broadcastId) { + this.broadcastId = broadcastId; + return this; + } + /** * Set sso * @param sso (optional) @@ -4783,7 +5126,7 @@ public APIpostAdjustCommentVotesRequest sso(@javax.annotation.Nullable String ss */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return postAdjustCommentVotesCall(commentId, adjustCommentVotesParams, sso, _callback); + return postAdjustCommentVotesCall(tenantId, commentId, adjustCommentVotesParams, broadcastId, sso, _callback); } /** @@ -4799,7 +5142,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public AdjustVotesResponse execute() throws ApiException { - ApiResponse localVarResp = postAdjustCommentVotesWithHttpInfo(commentId, adjustCommentVotesParams, sso); + ApiResponse localVarResp = postAdjustCommentVotesWithHttpInfo(tenantId, commentId, adjustCommentVotesParams, broadcastId, sso); return localVarResp.getData(); } @@ -4816,7 +5159,7 @@ public AdjustVotesResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return postAdjustCommentVotesWithHttpInfo(commentId, adjustCommentVotesParams, sso); + return postAdjustCommentVotesWithHttpInfo(tenantId, commentId, adjustCommentVotesParams, broadcastId, sso); } /** @@ -4833,13 +5176,14 @@ public ApiResponse executeWithHttpInfo() throws ApiExceptio */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return postAdjustCommentVotesAsync(commentId, adjustCommentVotesParams, sso, _callback); + return postAdjustCommentVotesAsync(tenantId, commentId, adjustCommentVotesParams, broadcastId, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @param adjustCommentVotesParams (required) * @return APIpostAdjustCommentVotesRequest @@ -4851,10 +5195,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac 0 Error - */ - public APIpostAdjustCommentVotesRequest postAdjustCommentVotes(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams) { - return new APIpostAdjustCommentVotesRequest(commentId, adjustCommentVotesParams); + public APIpostAdjustCommentVotesRequest postAdjustCommentVotes(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull AdjustCommentVotesParams adjustCommentVotesParams) { + return new APIpostAdjustCommentVotesRequest(tenantId, commentId, adjustCommentVotesParams); } - private okhttp3.Call postApiExportCall(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String sorts, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postApiExportCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String sorts, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4871,7 +5215,7 @@ private okhttp3.Call postApiExportCall(@javax.annotation.Nullable String textSea Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/api/export"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/api/export"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4879,6 +5223,10 @@ private okhttp3.Call postApiExportCall(@javax.annotation.Nullable String textSea Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (textSearch != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("text-search", textSearch)); } @@ -4923,27 +5271,34 @@ private okhttp3.Call postApiExportCall(@javax.annotation.Nullable String textSea } @SuppressWarnings("rawtypes") - private okhttp3.Call postApiExportValidateBeforeCall(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String sorts, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - return postApiExportCall(textSearch, byIPFromComment, filters, searchFilters, sorts, sso, _callback); + private okhttp3.Call postApiExportValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String sorts, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling postApiExport(Async)"); + } + + return postApiExportCall(tenantId, textSearch, byIPFromComment, filters, searchFilters, sorts, sso, _callback); } - private ApiResponse postApiExportWithHttpInfo(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String sorts, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = postApiExportValidateBeforeCall(textSearch, byIPFromComment, filters, searchFilters, sorts, sso, null); + private ApiResponse postApiExportWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String sorts, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postApiExportValidateBeforeCall(tenantId, textSearch, byIPFromComment, filters, searchFilters, sorts, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call postApiExportAsync(@javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String sorts, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postApiExportAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String textSearch, @javax.annotation.Nullable String byIPFromComment, @javax.annotation.Nullable String filters, @javax.annotation.Nullable String searchFilters, @javax.annotation.Nullable String sorts, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postApiExportValidateBeforeCall(textSearch, byIPFromComment, filters, searchFilters, sorts, sso, _callback); + okhttp3.Call localVarCall = postApiExportValidateBeforeCall(tenantId, textSearch, byIPFromComment, filters, searchFilters, sorts, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpostApiExportRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nullable private String textSearch; @javax.annotation.Nullable @@ -4957,7 +5312,8 @@ public class APIpostApiExportRequest { @javax.annotation.Nullable private String sso; - private APIpostApiExportRequest() { + private APIpostApiExportRequest(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; } /** @@ -5034,7 +5390,7 @@ public APIpostApiExportRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return postApiExportCall(textSearch, byIPFromComment, filters, searchFilters, sorts, sso, _callback); + return postApiExportCall(tenantId, textSearch, byIPFromComment, filters, searchFilters, sorts, sso, _callback); } /** @@ -5050,7 +5406,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public ModerationExportResponse execute() throws ApiException { - ApiResponse localVarResp = postApiExportWithHttpInfo(textSearch, byIPFromComment, filters, searchFilters, sorts, sso); + ApiResponse localVarResp = postApiExportWithHttpInfo(tenantId, textSearch, byIPFromComment, filters, searchFilters, sorts, sso); return localVarResp.getData(); } @@ -5067,7 +5423,7 @@ public ModerationExportResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return postApiExportWithHttpInfo(textSearch, byIPFromComment, filters, searchFilters, sorts, sso); + return postApiExportWithHttpInfo(tenantId, textSearch, byIPFromComment, filters, searchFilters, sorts, sso); } /** @@ -5084,13 +5440,14 @@ public ApiResponse executeWithHttpInfo() throws ApiExc */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return postApiExportAsync(textSearch, byIPFromComment, filters, searchFilters, sorts, sso, _callback); + return postApiExportAsync(tenantId, textSearch, byIPFromComment, filters, searchFilters, sorts, sso, _callback); } } /** * * + * @param tenantId (required) * @return APIpostApiExportRequest * @http.response.details @@ -5100,10 +5457,10 @@ public okhttp3.Call executeAsync(final ApiCallback _ca
0 Error -
*/ - public APIpostApiExportRequest postApiExport() { - return new APIpostApiExportRequest(); + public APIpostApiExportRequest postApiExport(@javax.annotation.Nonnull String tenantId) { + return new APIpostApiExportRequest(tenantId); } - private okhttp3.Call postBanUserFromCommentCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean banEmail, @javax.annotation.Nullable Boolean banEmailDomain, @javax.annotation.Nullable Boolean banIP, @javax.annotation.Nullable Boolean deleteAllUsersComments, @javax.annotation.Nullable String bannedUntil, @javax.annotation.Nullable Boolean isShadowBan, @javax.annotation.Nullable String updateId, @javax.annotation.Nullable String banReason, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postBanUserFromCommentCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean banEmail, @javax.annotation.Nullable Boolean banEmailDomain, @javax.annotation.Nullable Boolean banIP, @javax.annotation.Nullable Boolean deleteAllUsersComments, @javax.annotation.Nullable String bannedUntil, @javax.annotation.Nullable Boolean isShadowBan, @javax.annotation.Nullable String updateId, @javax.annotation.Nullable String banReason, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5120,7 +5477,7 @@ private okhttp3.Call postBanUserFromCommentCall(@javax.annotation.Nonnull String Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/ban-user/from-comment/{commentId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); @@ -5129,6 +5486,10 @@ private okhttp3.Call postBanUserFromCommentCall(@javax.annotation.Nonnull String Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (banEmail != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("banEmail", banEmail)); } @@ -5185,32 +5546,39 @@ private okhttp3.Call postBanUserFromCommentCall(@javax.annotation.Nonnull String } @SuppressWarnings("rawtypes") - private okhttp3.Call postBanUserFromCommentValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean banEmail, @javax.annotation.Nullable Boolean banEmailDomain, @javax.annotation.Nullable Boolean banIP, @javax.annotation.Nullable Boolean deleteAllUsersComments, @javax.annotation.Nullable String bannedUntil, @javax.annotation.Nullable Boolean isShadowBan, @javax.annotation.Nullable String updateId, @javax.annotation.Nullable String banReason, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postBanUserFromCommentValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean banEmail, @javax.annotation.Nullable Boolean banEmailDomain, @javax.annotation.Nullable Boolean banIP, @javax.annotation.Nullable Boolean deleteAllUsersComments, @javax.annotation.Nullable String bannedUntil, @javax.annotation.Nullable Boolean isShadowBan, @javax.annotation.Nullable String updateId, @javax.annotation.Nullable String banReason, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling postBanUserFromComment(Async)"); + } + // verify the required parameter 'commentId' is set if (commentId == null) { throw new ApiException("Missing the required parameter 'commentId' when calling postBanUserFromComment(Async)"); } - return postBanUserFromCommentCall(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, sso, _callback); + return postBanUserFromCommentCall(tenantId, commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, sso, _callback); } - private ApiResponse postBanUserFromCommentWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean banEmail, @javax.annotation.Nullable Boolean banEmailDomain, @javax.annotation.Nullable Boolean banIP, @javax.annotation.Nullable Boolean deleteAllUsersComments, @javax.annotation.Nullable String bannedUntil, @javax.annotation.Nullable Boolean isShadowBan, @javax.annotation.Nullable String updateId, @javax.annotation.Nullable String banReason, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = postBanUserFromCommentValidateBeforeCall(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, sso, null); + private ApiResponse postBanUserFromCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean banEmail, @javax.annotation.Nullable Boolean banEmailDomain, @javax.annotation.Nullable Boolean banIP, @javax.annotation.Nullable Boolean deleteAllUsersComments, @javax.annotation.Nullable String bannedUntil, @javax.annotation.Nullable Boolean isShadowBan, @javax.annotation.Nullable String updateId, @javax.annotation.Nullable String banReason, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postBanUserFromCommentValidateBeforeCall(tenantId, commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call postBanUserFromCommentAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean banEmail, @javax.annotation.Nullable Boolean banEmailDomain, @javax.annotation.Nullable Boolean banIP, @javax.annotation.Nullable Boolean deleteAllUsersComments, @javax.annotation.Nullable String bannedUntil, @javax.annotation.Nullable Boolean isShadowBan, @javax.annotation.Nullable String updateId, @javax.annotation.Nullable String banReason, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postBanUserFromCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean banEmail, @javax.annotation.Nullable Boolean banEmailDomain, @javax.annotation.Nullable Boolean banIP, @javax.annotation.Nullable Boolean deleteAllUsersComments, @javax.annotation.Nullable String bannedUntil, @javax.annotation.Nullable Boolean isShadowBan, @javax.annotation.Nullable String updateId, @javax.annotation.Nullable String banReason, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postBanUserFromCommentValidateBeforeCall(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, sso, _callback); + okhttp3.Call localVarCall = postBanUserFromCommentValidateBeforeCall(tenantId, commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpostBanUserFromCommentRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable @@ -5232,7 +5600,8 @@ public class APIpostBanUserFromCommentRequest { @javax.annotation.Nullable private String sso; - private APIpostBanUserFromCommentRequest(@javax.annotation.Nonnull String commentId) { + private APIpostBanUserFromCommentRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + this.tenantId = tenantId; this.commentId = commentId; } @@ -5340,7 +5709,7 @@ public APIpostBanUserFromCommentRequest sso(@javax.annotation.Nullable String ss */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return postBanUserFromCommentCall(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, sso, _callback); + return postBanUserFromCommentCall(tenantId, commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, sso, _callback); } /** @@ -5356,7 +5725,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public BanUserFromCommentResult execute() throws ApiException { - ApiResponse localVarResp = postBanUserFromCommentWithHttpInfo(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, sso); + ApiResponse localVarResp = postBanUserFromCommentWithHttpInfo(tenantId, commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, sso); return localVarResp.getData(); } @@ -5373,7 +5742,7 @@ public BanUserFromCommentResult execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return postBanUserFromCommentWithHttpInfo(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, sso); + return postBanUserFromCommentWithHttpInfo(tenantId, commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, sso); } /** @@ -5390,13 +5759,14 @@ public ApiResponse executeWithHttpInfo() throws ApiExc */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return postBanUserFromCommentAsync(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, sso, _callback); + return postBanUserFromCommentAsync(tenantId, commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @return APIpostBanUserFromCommentRequest * @http.response.details @@ -5407,10 +5777,10 @@ public okhttp3.Call executeAsync(final ApiCallback _ca 0 Error - */ - public APIpostBanUserFromCommentRequest postBanUserFromComment(@javax.annotation.Nonnull String commentId) { - return new APIpostBanUserFromCommentRequest(commentId); + public APIpostBanUserFromCommentRequest postBanUserFromComment(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + return new APIpostBanUserFromCommentRequest(tenantId, commentId); } - private okhttp3.Call postBanUserUndoCall(@javax.annotation.Nonnull BanUserUndoParams banUserUndoParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postBanUserUndoCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull BanUserUndoParams banUserUndoParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5427,7 +5797,7 @@ private okhttp3.Call postBanUserUndoCall(@javax.annotation.Nonnull BanUserUndoPa Object localVarPostBody = banUserUndoParams; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/ban-user/undo"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/ban-user/undo"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -5435,6 +5805,10 @@ private okhttp3.Call postBanUserUndoCall(@javax.annotation.Nonnull BanUserUndoPa Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -5460,38 +5834,46 @@ private okhttp3.Call postBanUserUndoCall(@javax.annotation.Nonnull BanUserUndoPa } @SuppressWarnings("rawtypes") - private okhttp3.Call postBanUserUndoValidateBeforeCall(@javax.annotation.Nonnull BanUserUndoParams banUserUndoParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postBanUserUndoValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull BanUserUndoParams banUserUndoParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling postBanUserUndo(Async)"); + } + // verify the required parameter 'banUserUndoParams' is set if (banUserUndoParams == null) { throw new ApiException("Missing the required parameter 'banUserUndoParams' when calling postBanUserUndo(Async)"); } - return postBanUserUndoCall(banUserUndoParams, sso, _callback); + return postBanUserUndoCall(tenantId, banUserUndoParams, sso, _callback); } - private ApiResponse postBanUserUndoWithHttpInfo(@javax.annotation.Nonnull BanUserUndoParams banUserUndoParams, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = postBanUserUndoValidateBeforeCall(banUserUndoParams, sso, null); + private ApiResponse postBanUserUndoWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull BanUserUndoParams banUserUndoParams, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postBanUserUndoValidateBeforeCall(tenantId, banUserUndoParams, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call postBanUserUndoAsync(@javax.annotation.Nonnull BanUserUndoParams banUserUndoParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postBanUserUndoAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull BanUserUndoParams banUserUndoParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postBanUserUndoValidateBeforeCall(banUserUndoParams, sso, _callback); + okhttp3.Call localVarCall = postBanUserUndoValidateBeforeCall(tenantId, banUserUndoParams, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpostBanUserUndoRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final BanUserUndoParams banUserUndoParams; @javax.annotation.Nullable private String sso; - private APIpostBanUserUndoRequest(@javax.annotation.Nonnull BanUserUndoParams banUserUndoParams) { + private APIpostBanUserUndoRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull BanUserUndoParams banUserUndoParams) { + this.tenantId = tenantId; this.banUserUndoParams = banUserUndoParams; } @@ -5519,7 +5901,7 @@ public APIpostBanUserUndoRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return postBanUserUndoCall(banUserUndoParams, sso, _callback); + return postBanUserUndoCall(tenantId, banUserUndoParams, sso, _callback); } /** @@ -5535,7 +5917,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public APIEmptyResponse execute() throws ApiException { - ApiResponse localVarResp = postBanUserUndoWithHttpInfo(banUserUndoParams, sso); + ApiResponse localVarResp = postBanUserUndoWithHttpInfo(tenantId, banUserUndoParams, sso); return localVarResp.getData(); } @@ -5552,7 +5934,7 @@ public APIEmptyResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return postBanUserUndoWithHttpInfo(banUserUndoParams, sso); + return postBanUserUndoWithHttpInfo(tenantId, banUserUndoParams, sso); } /** @@ -5569,13 +5951,14 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return postBanUserUndoAsync(banUserUndoParams, sso, _callback); + return postBanUserUndoAsync(tenantId, banUserUndoParams, sso, _callback); } } /** * * + * @param tenantId (required) * @param banUserUndoParams (required) * @return APIpostBanUserUndoRequest * @http.response.details @@ -5586,10 +5969,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 0 Error - */ - public APIpostBanUserUndoRequest postBanUserUndo(@javax.annotation.Nonnull BanUserUndoParams banUserUndoParams) { - return new APIpostBanUserUndoRequest(banUserUndoParams); + public APIpostBanUserUndoRequest postBanUserUndo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull BanUserUndoParams banUserUndoParams) { + return new APIpostBanUserUndoRequest(tenantId, banUserUndoParams); } - private okhttp3.Call postBulkPreBanSummaryCall(@javax.annotation.Nonnull BulkPreBanParams bulkPreBanParams, @javax.annotation.Nullable Boolean includeByUserIdAndEmail, @javax.annotation.Nullable Boolean includeByIP, @javax.annotation.Nullable Boolean includeByEmailDomain, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postBulkPreBanSummaryCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull BulkPreBanParams bulkPreBanParams, @javax.annotation.Nullable Boolean includeByUserIdAndEmail, @javax.annotation.Nullable Boolean includeByIP, @javax.annotation.Nullable Boolean includeByEmailDomain, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5606,7 +5989,7 @@ private okhttp3.Call postBulkPreBanSummaryCall(@javax.annotation.Nonnull BulkPre Object localVarPostBody = bulkPreBanParams; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/bulk-pre-ban-summary"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -5614,6 +5997,10 @@ private okhttp3.Call postBulkPreBanSummaryCall(@javax.annotation.Nonnull BulkPre Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (includeByUserIdAndEmail != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("includeByUserIdAndEmail", includeByUserIdAndEmail)); } @@ -5651,32 +6038,39 @@ private okhttp3.Call postBulkPreBanSummaryCall(@javax.annotation.Nonnull BulkPre } @SuppressWarnings("rawtypes") - private okhttp3.Call postBulkPreBanSummaryValidateBeforeCall(@javax.annotation.Nonnull BulkPreBanParams bulkPreBanParams, @javax.annotation.Nullable Boolean includeByUserIdAndEmail, @javax.annotation.Nullable Boolean includeByIP, @javax.annotation.Nullable Boolean includeByEmailDomain, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postBulkPreBanSummaryValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull BulkPreBanParams bulkPreBanParams, @javax.annotation.Nullable Boolean includeByUserIdAndEmail, @javax.annotation.Nullable Boolean includeByIP, @javax.annotation.Nullable Boolean includeByEmailDomain, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling postBulkPreBanSummary(Async)"); + } + // verify the required parameter 'bulkPreBanParams' is set if (bulkPreBanParams == null) { throw new ApiException("Missing the required parameter 'bulkPreBanParams' when calling postBulkPreBanSummary(Async)"); } - return postBulkPreBanSummaryCall(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, _callback); + return postBulkPreBanSummaryCall(tenantId, bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, _callback); } - private ApiResponse postBulkPreBanSummaryWithHttpInfo(@javax.annotation.Nonnull BulkPreBanParams bulkPreBanParams, @javax.annotation.Nullable Boolean includeByUserIdAndEmail, @javax.annotation.Nullable Boolean includeByIP, @javax.annotation.Nullable Boolean includeByEmailDomain, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = postBulkPreBanSummaryValidateBeforeCall(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, null); + private ApiResponse postBulkPreBanSummaryWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull BulkPreBanParams bulkPreBanParams, @javax.annotation.Nullable Boolean includeByUserIdAndEmail, @javax.annotation.Nullable Boolean includeByIP, @javax.annotation.Nullable Boolean includeByEmailDomain, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postBulkPreBanSummaryValidateBeforeCall(tenantId, bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call postBulkPreBanSummaryAsync(@javax.annotation.Nonnull BulkPreBanParams bulkPreBanParams, @javax.annotation.Nullable Boolean includeByUserIdAndEmail, @javax.annotation.Nullable Boolean includeByIP, @javax.annotation.Nullable Boolean includeByEmailDomain, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postBulkPreBanSummaryAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull BulkPreBanParams bulkPreBanParams, @javax.annotation.Nullable Boolean includeByUserIdAndEmail, @javax.annotation.Nullable Boolean includeByIP, @javax.annotation.Nullable Boolean includeByEmailDomain, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postBulkPreBanSummaryValidateBeforeCall(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, _callback); + okhttp3.Call localVarCall = postBulkPreBanSummaryValidateBeforeCall(tenantId, bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpostBulkPreBanSummaryRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final BulkPreBanParams bulkPreBanParams; @javax.annotation.Nullable @@ -5688,7 +6082,8 @@ public class APIpostBulkPreBanSummaryRequest { @javax.annotation.Nullable private String sso; - private APIpostBulkPreBanSummaryRequest(@javax.annotation.Nonnull BulkPreBanParams bulkPreBanParams) { + private APIpostBulkPreBanSummaryRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull BulkPreBanParams bulkPreBanParams) { + this.tenantId = tenantId; this.bulkPreBanParams = bulkPreBanParams; } @@ -5746,7 +6141,7 @@ public APIpostBulkPreBanSummaryRequest sso(@javax.annotation.Nullable String sso */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return postBulkPreBanSummaryCall(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, _callback); + return postBulkPreBanSummaryCall(tenantId, bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, _callback); } /** @@ -5762,7 +6157,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public BulkPreBanSummary execute() throws ApiException { - ApiResponse localVarResp = postBulkPreBanSummaryWithHttpInfo(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso); + ApiResponse localVarResp = postBulkPreBanSummaryWithHttpInfo(tenantId, bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso); return localVarResp.getData(); } @@ -5779,7 +6174,7 @@ public BulkPreBanSummary execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return postBulkPreBanSummaryWithHttpInfo(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso); + return postBulkPreBanSummaryWithHttpInfo(tenantId, bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso); } /** @@ -5796,13 +6191,14 @@ public ApiResponse executeWithHttpInfo() throws ApiException */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return postBulkPreBanSummaryAsync(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, _callback); + return postBulkPreBanSummaryAsync(tenantId, bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso, _callback); } } /** * * + * @param tenantId (required) * @param bulkPreBanParams (required) * @return APIpostBulkPreBanSummaryRequest * @http.response.details @@ -5813,10 +6209,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 0 Error - */ - public APIpostBulkPreBanSummaryRequest postBulkPreBanSummary(@javax.annotation.Nonnull BulkPreBanParams bulkPreBanParams) { - return new APIpostBulkPreBanSummaryRequest(bulkPreBanParams); + public APIpostBulkPreBanSummaryRequest postBulkPreBanSummary(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull BulkPreBanParams bulkPreBanParams) { + return new APIpostBulkPreBanSummaryRequest(tenantId, bulkPreBanParams); } - private okhttp3.Call postCommentsByIdsCall(@javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postCommentsByIdsCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5833,7 +6229,7 @@ private okhttp3.Call postCommentsByIdsCall(@javax.annotation.Nonnull CommentsByI Object localVarPostBody = commentsByIdsParams; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/comments-by-ids"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/comments-by-ids"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -5841,6 +6237,10 @@ private okhttp3.Call postCommentsByIdsCall(@javax.annotation.Nonnull CommentsByI Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -5866,38 +6266,46 @@ private okhttp3.Call postCommentsByIdsCall(@javax.annotation.Nonnull CommentsByI } @SuppressWarnings("rawtypes") - private okhttp3.Call postCommentsByIdsValidateBeforeCall(@javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postCommentsByIdsValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling postCommentsByIds(Async)"); + } + // verify the required parameter 'commentsByIdsParams' is set if (commentsByIdsParams == null) { throw new ApiException("Missing the required parameter 'commentsByIdsParams' when calling postCommentsByIds(Async)"); } - return postCommentsByIdsCall(commentsByIdsParams, sso, _callback); + return postCommentsByIdsCall(tenantId, commentsByIdsParams, sso, _callback); } - private ApiResponse postCommentsByIdsWithHttpInfo(@javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = postCommentsByIdsValidateBeforeCall(commentsByIdsParams, sso, null); + private ApiResponse postCommentsByIdsWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postCommentsByIdsValidateBeforeCall(tenantId, commentsByIdsParams, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call postCommentsByIdsAsync(@javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postCommentsByIdsAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postCommentsByIdsValidateBeforeCall(commentsByIdsParams, sso, _callback); + okhttp3.Call localVarCall = postCommentsByIdsValidateBeforeCall(tenantId, commentsByIdsParams, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpostCommentsByIdsRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final CommentsByIdsParams commentsByIdsParams; @javax.annotation.Nullable private String sso; - private APIpostCommentsByIdsRequest(@javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams) { + private APIpostCommentsByIdsRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams) { + this.tenantId = tenantId; this.commentsByIdsParams = commentsByIdsParams; } @@ -5925,7 +6333,7 @@ public APIpostCommentsByIdsRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return postCommentsByIdsCall(commentsByIdsParams, sso, _callback); + return postCommentsByIdsCall(tenantId, commentsByIdsParams, sso, _callback); } /** @@ -5941,7 +6349,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public ModerationAPIChildCommentsResponse execute() throws ApiException { - ApiResponse localVarResp = postCommentsByIdsWithHttpInfo(commentsByIdsParams, sso); + ApiResponse localVarResp = postCommentsByIdsWithHttpInfo(tenantId, commentsByIdsParams, sso); return localVarResp.getData(); } @@ -5958,7 +6366,7 @@ public ModerationAPIChildCommentsResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return postCommentsByIdsWithHttpInfo(commentsByIdsParams, sso); + return postCommentsByIdsWithHttpInfo(tenantId, commentsByIdsParams, sso); } /** @@ -5975,13 +6383,14 @@ public ApiResponse executeWithHttpInfo() thr */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return postCommentsByIdsAsync(commentsByIdsParams, sso, _callback); + return postCommentsByIdsAsync(tenantId, commentsByIdsParams, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentsByIdsParams (required) * @return APIpostCommentsByIdsRequest * @http.response.details @@ -5992,10 +6401,10 @@ public okhttp3.Call executeAsync(final ApiCallback 0 Error - */ - public APIpostCommentsByIdsRequest postCommentsByIds(@javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams) { - return new APIpostCommentsByIdsRequest(commentsByIdsParams); + public APIpostCommentsByIdsRequest postCommentsByIds(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull CommentsByIdsParams commentsByIdsParams) { + return new APIpostCommentsByIdsRequest(tenantId, commentsByIdsParams); } - private okhttp3.Call postFlagCommentCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postFlagCommentCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6012,7 +6421,7 @@ private okhttp3.Call postFlagCommentCall(@javax.annotation.Nonnull String commen Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/flag-comment/{commentId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/flag-comment/{commentId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); @@ -6021,6 +6430,14 @@ private okhttp3.Call postFlagCommentCall(@javax.annotation.Nonnull String commen Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + + if (broadcastId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -6045,41 +6462,61 @@ private okhttp3.Call postFlagCommentCall(@javax.annotation.Nonnull String commen } @SuppressWarnings("rawtypes") - private okhttp3.Call postFlagCommentValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postFlagCommentValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling postFlagComment(Async)"); + } + // verify the required parameter 'commentId' is set if (commentId == null) { throw new ApiException("Missing the required parameter 'commentId' when calling postFlagComment(Async)"); } - return postFlagCommentCall(commentId, sso, _callback); + return postFlagCommentCall(tenantId, commentId, broadcastId, sso, _callback); } - private ApiResponse postFlagCommentWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = postFlagCommentValidateBeforeCall(commentId, sso, null); + private ApiResponse postFlagCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postFlagCommentValidateBeforeCall(tenantId, commentId, broadcastId, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call postFlagCommentAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postFlagCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postFlagCommentValidateBeforeCall(commentId, sso, _callback); + okhttp3.Call localVarCall = postFlagCommentValidateBeforeCall(tenantId, commentId, broadcastId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpostFlagCommentRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable + private String broadcastId; + @javax.annotation.Nullable private String sso; - private APIpostFlagCommentRequest(@javax.annotation.Nonnull String commentId) { + private APIpostFlagCommentRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + this.tenantId = tenantId; this.commentId = commentId; } + /** + * Set broadcastId + * @param broadcastId (optional) + * @return APIpostFlagCommentRequest + */ + public APIpostFlagCommentRequest broadcastId(@javax.annotation.Nullable String broadcastId) { + this.broadcastId = broadcastId; + return this; + } + /** * Set sso * @param sso (optional) @@ -6104,7 +6541,7 @@ public APIpostFlagCommentRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return postFlagCommentCall(commentId, sso, _callback); + return postFlagCommentCall(tenantId, commentId, broadcastId, sso, _callback); } /** @@ -6120,7 +6557,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public APIEmptyResponse execute() throws ApiException { - ApiResponse localVarResp = postFlagCommentWithHttpInfo(commentId, sso); + ApiResponse localVarResp = postFlagCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); return localVarResp.getData(); } @@ -6137,7 +6574,7 @@ public APIEmptyResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return postFlagCommentWithHttpInfo(commentId, sso); + return postFlagCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); } /** @@ -6154,13 +6591,14 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return postFlagCommentAsync(commentId, sso, _callback); + return postFlagCommentAsync(tenantId, commentId, broadcastId, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @return APIpostFlagCommentRequest * @http.response.details @@ -6171,10 +6609,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 0 Error - */ - public APIpostFlagCommentRequest postFlagComment(@javax.annotation.Nonnull String commentId) { - return new APIpostFlagCommentRequest(commentId); + public APIpostFlagCommentRequest postFlagComment(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + return new APIpostFlagCommentRequest(tenantId, commentId); } - private okhttp3.Call postRemoveCommentCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postRemoveCommentCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6191,7 +6629,7 @@ private okhttp3.Call postRemoveCommentCall(@javax.annotation.Nonnull String comm Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/remove-comment/{commentId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/remove-comment/{commentId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); @@ -6200,6 +6638,14 @@ private okhttp3.Call postRemoveCommentCall(@javax.annotation.Nonnull String comm Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + + if (broadcastId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -6224,41 +6670,61 @@ private okhttp3.Call postRemoveCommentCall(@javax.annotation.Nonnull String comm } @SuppressWarnings("rawtypes") - private okhttp3.Call postRemoveCommentValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postRemoveCommentValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling postRemoveComment(Async)"); + } + // verify the required parameter 'commentId' is set if (commentId == null) { throw new ApiException("Missing the required parameter 'commentId' when calling postRemoveComment(Async)"); } - return postRemoveCommentCall(commentId, sso, _callback); + return postRemoveCommentCall(tenantId, commentId, broadcastId, sso, _callback); } - private ApiResponse postRemoveCommentWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = postRemoveCommentValidateBeforeCall(commentId, sso, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse postRemoveCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postRemoveCommentValidateBeforeCall(tenantId, commentId, broadcastId, sso, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call postRemoveCommentAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postRemoveCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postRemoveCommentValidateBeforeCall(commentId, sso, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = postRemoveCommentValidateBeforeCall(tenantId, commentId, broadcastId, sso, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpostRemoveCommentRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable + private String broadcastId; + @javax.annotation.Nullable private String sso; - private APIpostRemoveCommentRequest(@javax.annotation.Nonnull String commentId) { + private APIpostRemoveCommentRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + this.tenantId = tenantId; this.commentId = commentId; } + /** + * Set broadcastId + * @param broadcastId (optional) + * @return APIpostRemoveCommentRequest + */ + public APIpostRemoveCommentRequest broadcastId(@javax.annotation.Nullable String broadcastId) { + this.broadcastId = broadcastId; + return this; + } + /** * Set sso * @param sso (optional) @@ -6283,12 +6749,12 @@ public APIpostRemoveCommentRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return postRemoveCommentCall(commentId, sso, _callback); + return postRemoveCommentCall(tenantId, commentId, broadcastId, sso, _callback); } /** * Execute postRemoveComment request - * @return PostRemoveCommentResponse + * @return PostRemoveCommentApiResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -6298,14 +6764,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
0 Error -
*/ - public PostRemoveCommentResponse execute() throws ApiException { - ApiResponse localVarResp = postRemoveCommentWithHttpInfo(commentId, sso); + public PostRemoveCommentApiResponse execute() throws ApiException { + ApiResponse localVarResp = postRemoveCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); return localVarResp.getData(); } /** * Execute postRemoveComment request with HTTP info returned - * @return ApiResponse<PostRemoveCommentResponse> + * @return ApiResponse<PostRemoveCommentApiResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -6315,8 +6781,8 @@ public PostRemoveCommentResponse execute() throws ApiException {
0 Error -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return postRemoveCommentWithHttpInfo(commentId, sso); + public ApiResponse executeWithHttpInfo() throws ApiException { + return postRemoveCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); } /** @@ -6332,14 +6798,15 @@ public ApiResponse executeWithHttpInfo() throws ApiEx 0 Error - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return postRemoveCommentAsync(commentId, sso, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return postRemoveCommentAsync(tenantId, commentId, broadcastId, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @return APIpostRemoveCommentRequest * @http.response.details @@ -6350,10 +6817,10 @@ public okhttp3.Call executeAsync(final ApiCallback _c 0 Error - */ - public APIpostRemoveCommentRequest postRemoveComment(@javax.annotation.Nonnull String commentId) { - return new APIpostRemoveCommentRequest(commentId); + public APIpostRemoveCommentRequest postRemoveComment(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + return new APIpostRemoveCommentRequest(tenantId, commentId); } - private okhttp3.Call postRestoreDeletedCommentCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postRestoreDeletedCommentCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6370,7 +6837,7 @@ private okhttp3.Call postRestoreDeletedCommentCall(@javax.annotation.Nonnull Str Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/restore-deleted-comment/{commentId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); @@ -6379,6 +6846,14 @@ private okhttp3.Call postRestoreDeletedCommentCall(@javax.annotation.Nonnull Str Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + + if (broadcastId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -6403,41 +6878,61 @@ private okhttp3.Call postRestoreDeletedCommentCall(@javax.annotation.Nonnull Str } @SuppressWarnings("rawtypes") - private okhttp3.Call postRestoreDeletedCommentValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postRestoreDeletedCommentValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling postRestoreDeletedComment(Async)"); + } + // verify the required parameter 'commentId' is set if (commentId == null) { throw new ApiException("Missing the required parameter 'commentId' when calling postRestoreDeletedComment(Async)"); } - return postRestoreDeletedCommentCall(commentId, sso, _callback); + return postRestoreDeletedCommentCall(tenantId, commentId, broadcastId, sso, _callback); } - private ApiResponse postRestoreDeletedCommentWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = postRestoreDeletedCommentValidateBeforeCall(commentId, sso, null); + private ApiResponse postRestoreDeletedCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postRestoreDeletedCommentValidateBeforeCall(tenantId, commentId, broadcastId, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call postRestoreDeletedCommentAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postRestoreDeletedCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postRestoreDeletedCommentValidateBeforeCall(commentId, sso, _callback); + okhttp3.Call localVarCall = postRestoreDeletedCommentValidateBeforeCall(tenantId, commentId, broadcastId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpostRestoreDeletedCommentRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable + private String broadcastId; + @javax.annotation.Nullable private String sso; - private APIpostRestoreDeletedCommentRequest(@javax.annotation.Nonnull String commentId) { + private APIpostRestoreDeletedCommentRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + this.tenantId = tenantId; this.commentId = commentId; } + /** + * Set broadcastId + * @param broadcastId (optional) + * @return APIpostRestoreDeletedCommentRequest + */ + public APIpostRestoreDeletedCommentRequest broadcastId(@javax.annotation.Nullable String broadcastId) { + this.broadcastId = broadcastId; + return this; + } + /** * Set sso * @param sso (optional) @@ -6462,7 +6957,7 @@ public APIpostRestoreDeletedCommentRequest sso(@javax.annotation.Nullable String */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return postRestoreDeletedCommentCall(commentId, sso, _callback); + return postRestoreDeletedCommentCall(tenantId, commentId, broadcastId, sso, _callback); } /** @@ -6478,7 +6973,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public APIEmptyResponse execute() throws ApiException { - ApiResponse localVarResp = postRestoreDeletedCommentWithHttpInfo(commentId, sso); + ApiResponse localVarResp = postRestoreDeletedCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); return localVarResp.getData(); } @@ -6495,7 +6990,7 @@ public APIEmptyResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return postRestoreDeletedCommentWithHttpInfo(commentId, sso); + return postRestoreDeletedCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); } /** @@ -6512,13 +7007,14 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return postRestoreDeletedCommentAsync(commentId, sso, _callback); + return postRestoreDeletedCommentAsync(tenantId, commentId, broadcastId, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @return APIpostRestoreDeletedCommentRequest * @http.response.details @@ -6529,10 +7025,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 0 Error - */ - public APIpostRestoreDeletedCommentRequest postRestoreDeletedComment(@javax.annotation.Nonnull String commentId) { - return new APIpostRestoreDeletedCommentRequest(commentId); + public APIpostRestoreDeletedCommentRequest postRestoreDeletedComment(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + return new APIpostRestoreDeletedCommentRequest(tenantId, commentId); } - private okhttp3.Call postSetCommentApprovalStatusCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean approved, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postSetCommentApprovalStatusCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean approved, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6549,7 +7045,7 @@ private okhttp3.Call postSetCommentApprovalStatusCall(@javax.annotation.Nonnull Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/set-comment-approval-status/{commentId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); @@ -6558,10 +7054,18 @@ private okhttp3.Call postSetCommentApprovalStatusCall(@javax.annotation.Nonnull Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (approved != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("approved", approved)); } + if (broadcastId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -6586,40 +7090,50 @@ private okhttp3.Call postSetCommentApprovalStatusCall(@javax.annotation.Nonnull } @SuppressWarnings("rawtypes") - private okhttp3.Call postSetCommentApprovalStatusValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean approved, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postSetCommentApprovalStatusValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean approved, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling postSetCommentApprovalStatus(Async)"); + } + // verify the required parameter 'commentId' is set if (commentId == null) { throw new ApiException("Missing the required parameter 'commentId' when calling postSetCommentApprovalStatus(Async)"); } - return postSetCommentApprovalStatusCall(commentId, approved, sso, _callback); + return postSetCommentApprovalStatusCall(tenantId, commentId, approved, broadcastId, sso, _callback); } - private ApiResponse postSetCommentApprovalStatusWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean approved, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = postSetCommentApprovalStatusValidateBeforeCall(commentId, approved, sso, null); + private ApiResponse postSetCommentApprovalStatusWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean approved, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postSetCommentApprovalStatusValidateBeforeCall(tenantId, commentId, approved, broadcastId, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call postSetCommentApprovalStatusAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean approved, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postSetCommentApprovalStatusAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean approved, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postSetCommentApprovalStatusValidateBeforeCall(commentId, approved, sso, _callback); + okhttp3.Call localVarCall = postSetCommentApprovalStatusValidateBeforeCall(tenantId, commentId, approved, broadcastId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpostSetCommentApprovalStatusRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable private Boolean approved; @javax.annotation.Nullable + private String broadcastId; + @javax.annotation.Nullable private String sso; - private APIpostSetCommentApprovalStatusRequest(@javax.annotation.Nonnull String commentId) { + private APIpostSetCommentApprovalStatusRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + this.tenantId = tenantId; this.commentId = commentId; } @@ -6633,6 +7147,16 @@ public APIpostSetCommentApprovalStatusRequest approved(@javax.annotation.Nullabl return this; } + /** + * Set broadcastId + * @param broadcastId (optional) + * @return APIpostSetCommentApprovalStatusRequest + */ + public APIpostSetCommentApprovalStatusRequest broadcastId(@javax.annotation.Nullable String broadcastId) { + this.broadcastId = broadcastId; + return this; + } + /** * Set sso * @param sso (optional) @@ -6657,7 +7181,7 @@ public APIpostSetCommentApprovalStatusRequest sso(@javax.annotation.Nullable Str */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return postSetCommentApprovalStatusCall(commentId, approved, sso, _callback); + return postSetCommentApprovalStatusCall(tenantId, commentId, approved, broadcastId, sso, _callback); } /** @@ -6673,7 +7197,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public SetCommentApprovedResponse execute() throws ApiException { - ApiResponse localVarResp = postSetCommentApprovalStatusWithHttpInfo(commentId, approved, sso); + ApiResponse localVarResp = postSetCommentApprovalStatusWithHttpInfo(tenantId, commentId, approved, broadcastId, sso); return localVarResp.getData(); } @@ -6690,7 +7214,7 @@ public SetCommentApprovedResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return postSetCommentApprovalStatusWithHttpInfo(commentId, approved, sso); + return postSetCommentApprovalStatusWithHttpInfo(tenantId, commentId, approved, broadcastId, sso); } /** @@ -6707,13 +7231,14 @@ public ApiResponse executeWithHttpInfo() throws ApiE */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return postSetCommentApprovalStatusAsync(commentId, approved, sso, _callback); + return postSetCommentApprovalStatusAsync(tenantId, commentId, approved, broadcastId, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @return APIpostSetCommentApprovalStatusRequest * @http.response.details @@ -6724,10 +7249,10 @@ public okhttp3.Call executeAsync(final ApiCallback _ 0 Error - */ - public APIpostSetCommentApprovalStatusRequest postSetCommentApprovalStatus(@javax.annotation.Nonnull String commentId) { - return new APIpostSetCommentApprovalStatusRequest(commentId); + public APIpostSetCommentApprovalStatusRequest postSetCommentApprovalStatus(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + return new APIpostSetCommentApprovalStatusRequest(tenantId, commentId); } - private okhttp3.Call postSetCommentReviewStatusCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean reviewed, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postSetCommentReviewStatusCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean reviewed, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6744,7 +7269,7 @@ private okhttp3.Call postSetCommentReviewStatusCall(@javax.annotation.Nonnull St Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/set-comment-review-status/{commentId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); @@ -6753,10 +7278,18 @@ private okhttp3.Call postSetCommentReviewStatusCall(@javax.annotation.Nonnull St Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (reviewed != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("reviewed", reviewed)); } + if (broadcastId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -6781,40 +7314,50 @@ private okhttp3.Call postSetCommentReviewStatusCall(@javax.annotation.Nonnull St } @SuppressWarnings("rawtypes") - private okhttp3.Call postSetCommentReviewStatusValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean reviewed, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postSetCommentReviewStatusValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean reviewed, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling postSetCommentReviewStatus(Async)"); + } + // verify the required parameter 'commentId' is set if (commentId == null) { throw new ApiException("Missing the required parameter 'commentId' when calling postSetCommentReviewStatus(Async)"); } - return postSetCommentReviewStatusCall(commentId, reviewed, sso, _callback); + return postSetCommentReviewStatusCall(tenantId, commentId, reviewed, broadcastId, sso, _callback); } - private ApiResponse postSetCommentReviewStatusWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean reviewed, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = postSetCommentReviewStatusValidateBeforeCall(commentId, reviewed, sso, null); + private ApiResponse postSetCommentReviewStatusWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean reviewed, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postSetCommentReviewStatusValidateBeforeCall(tenantId, commentId, reviewed, broadcastId, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call postSetCommentReviewStatusAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean reviewed, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postSetCommentReviewStatusAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean reviewed, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postSetCommentReviewStatusValidateBeforeCall(commentId, reviewed, sso, _callback); + okhttp3.Call localVarCall = postSetCommentReviewStatusValidateBeforeCall(tenantId, commentId, reviewed, broadcastId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpostSetCommentReviewStatusRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable private Boolean reviewed; @javax.annotation.Nullable + private String broadcastId; + @javax.annotation.Nullable private String sso; - private APIpostSetCommentReviewStatusRequest(@javax.annotation.Nonnull String commentId) { + private APIpostSetCommentReviewStatusRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + this.tenantId = tenantId; this.commentId = commentId; } @@ -6828,6 +7371,16 @@ public APIpostSetCommentReviewStatusRequest reviewed(@javax.annotation.Nullable return this; } + /** + * Set broadcastId + * @param broadcastId (optional) + * @return APIpostSetCommentReviewStatusRequest + */ + public APIpostSetCommentReviewStatusRequest broadcastId(@javax.annotation.Nullable String broadcastId) { + this.broadcastId = broadcastId; + return this; + } + /** * Set sso * @param sso (optional) @@ -6852,7 +7405,7 @@ public APIpostSetCommentReviewStatusRequest sso(@javax.annotation.Nullable Strin */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return postSetCommentReviewStatusCall(commentId, reviewed, sso, _callback); + return postSetCommentReviewStatusCall(tenantId, commentId, reviewed, broadcastId, sso, _callback); } /** @@ -6868,7 +7421,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public APIEmptyResponse execute() throws ApiException { - ApiResponse localVarResp = postSetCommentReviewStatusWithHttpInfo(commentId, reviewed, sso); + ApiResponse localVarResp = postSetCommentReviewStatusWithHttpInfo(tenantId, commentId, reviewed, broadcastId, sso); return localVarResp.getData(); } @@ -6885,7 +7438,7 @@ public APIEmptyResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return postSetCommentReviewStatusWithHttpInfo(commentId, reviewed, sso); + return postSetCommentReviewStatusWithHttpInfo(tenantId, commentId, reviewed, broadcastId, sso); } /** @@ -6902,13 +7455,14 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return postSetCommentReviewStatusAsync(commentId, reviewed, sso, _callback); + return postSetCommentReviewStatusAsync(tenantId, commentId, reviewed, broadcastId, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @return APIpostSetCommentReviewStatusRequest * @http.response.details @@ -6919,10 +7473,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 0 Error - */ - public APIpostSetCommentReviewStatusRequest postSetCommentReviewStatus(@javax.annotation.Nonnull String commentId) { - return new APIpostSetCommentReviewStatusRequest(commentId); + public APIpostSetCommentReviewStatusRequest postSetCommentReviewStatus(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + return new APIpostSetCommentReviewStatusRequest(tenantId, commentId); } - private okhttp3.Call postSetCommentSpamStatusCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean spam, @javax.annotation.Nullable Boolean permNotSpam, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postSetCommentSpamStatusCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean spam, @javax.annotation.Nullable Boolean permNotSpam, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6939,7 +7493,7 @@ private okhttp3.Call postSetCommentSpamStatusCall(@javax.annotation.Nonnull Stri Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/set-comment-spam-status/{commentId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); @@ -6948,6 +7502,10 @@ private okhttp3.Call postSetCommentSpamStatusCall(@javax.annotation.Nonnull Stri Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (spam != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("spam", spam)); } @@ -6956,6 +7514,10 @@ private okhttp3.Call postSetCommentSpamStatusCall(@javax.annotation.Nonnull Stri localVarQueryParams.addAll(localVarApiClient.parameterToPair("permNotSpam", permNotSpam)); } + if (broadcastId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -6980,32 +7542,39 @@ private okhttp3.Call postSetCommentSpamStatusCall(@javax.annotation.Nonnull Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call postSetCommentSpamStatusValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean spam, @javax.annotation.Nullable Boolean permNotSpam, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postSetCommentSpamStatusValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean spam, @javax.annotation.Nullable Boolean permNotSpam, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling postSetCommentSpamStatus(Async)"); + } + // verify the required parameter 'commentId' is set if (commentId == null) { throw new ApiException("Missing the required parameter 'commentId' when calling postSetCommentSpamStatus(Async)"); } - return postSetCommentSpamStatusCall(commentId, spam, permNotSpam, sso, _callback); + return postSetCommentSpamStatusCall(tenantId, commentId, spam, permNotSpam, broadcastId, sso, _callback); } - private ApiResponse postSetCommentSpamStatusWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean spam, @javax.annotation.Nullable Boolean permNotSpam, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = postSetCommentSpamStatusValidateBeforeCall(commentId, spam, permNotSpam, sso, null); + private ApiResponse postSetCommentSpamStatusWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean spam, @javax.annotation.Nullable Boolean permNotSpam, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postSetCommentSpamStatusValidateBeforeCall(tenantId, commentId, spam, permNotSpam, broadcastId, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call postSetCommentSpamStatusAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean spam, @javax.annotation.Nullable Boolean permNotSpam, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postSetCommentSpamStatusAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable Boolean spam, @javax.annotation.Nullable Boolean permNotSpam, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postSetCommentSpamStatusValidateBeforeCall(commentId, spam, permNotSpam, sso, _callback); + okhttp3.Call localVarCall = postSetCommentSpamStatusValidateBeforeCall(tenantId, commentId, spam, permNotSpam, broadcastId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpostSetCommentSpamStatusRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable @@ -7013,9 +7582,12 @@ public class APIpostSetCommentSpamStatusRequest { @javax.annotation.Nullable private Boolean permNotSpam; @javax.annotation.Nullable + private String broadcastId; + @javax.annotation.Nullable private String sso; - private APIpostSetCommentSpamStatusRequest(@javax.annotation.Nonnull String commentId) { + private APIpostSetCommentSpamStatusRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + this.tenantId = tenantId; this.commentId = commentId; } @@ -7039,6 +7611,16 @@ public APIpostSetCommentSpamStatusRequest permNotSpam(@javax.annotation.Nullable return this; } + /** + * Set broadcastId + * @param broadcastId (optional) + * @return APIpostSetCommentSpamStatusRequest + */ + public APIpostSetCommentSpamStatusRequest broadcastId(@javax.annotation.Nullable String broadcastId) { + this.broadcastId = broadcastId; + return this; + } + /** * Set sso * @param sso (optional) @@ -7063,7 +7645,7 @@ public APIpostSetCommentSpamStatusRequest sso(@javax.annotation.Nullable String */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return postSetCommentSpamStatusCall(commentId, spam, permNotSpam, sso, _callback); + return postSetCommentSpamStatusCall(tenantId, commentId, spam, permNotSpam, broadcastId, sso, _callback); } /** @@ -7079,7 +7661,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public APIEmptyResponse execute() throws ApiException { - ApiResponse localVarResp = postSetCommentSpamStatusWithHttpInfo(commentId, spam, permNotSpam, sso); + ApiResponse localVarResp = postSetCommentSpamStatusWithHttpInfo(tenantId, commentId, spam, permNotSpam, broadcastId, sso); return localVarResp.getData(); } @@ -7096,7 +7678,7 @@ public APIEmptyResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return postSetCommentSpamStatusWithHttpInfo(commentId, spam, permNotSpam, sso); + return postSetCommentSpamStatusWithHttpInfo(tenantId, commentId, spam, permNotSpam, broadcastId, sso); } /** @@ -7113,13 +7695,14 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return postSetCommentSpamStatusAsync(commentId, spam, permNotSpam, sso, _callback); + return postSetCommentSpamStatusAsync(tenantId, commentId, spam, permNotSpam, broadcastId, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @return APIpostSetCommentSpamStatusRequest * @http.response.details @@ -7130,10 +7713,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 0 Error - */ - public APIpostSetCommentSpamStatusRequest postSetCommentSpamStatus(@javax.annotation.Nonnull String commentId) { - return new APIpostSetCommentSpamStatusRequest(commentId); + public APIpostSetCommentSpamStatusRequest postSetCommentSpamStatus(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + return new APIpostSetCommentSpamStatusRequest(tenantId, commentId); } - private okhttp3.Call postSetCommentTextCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postSetCommentTextCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7150,7 +7733,7 @@ private okhttp3.Call postSetCommentTextCall(@javax.annotation.Nonnull String com Object localVarPostBody = setCommentTextParams; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/set-comment-text/{commentId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); @@ -7159,6 +7742,14 @@ private okhttp3.Call postSetCommentTextCall(@javax.annotation.Nonnull String com Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + + if (broadcastId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -7184,7 +7775,12 @@ private okhttp3.Call postSetCommentTextCall(@javax.annotation.Nonnull String com } @SuppressWarnings("rawtypes") - private okhttp3.Call postSetCommentTextValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postSetCommentTextValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling postSetCommentText(Async)"); + } + // verify the required parameter 'commentId' is set if (commentId == null) { throw new ApiException("Missing the required parameter 'commentId' when calling postSetCommentText(Async)"); @@ -7195,38 +7791,53 @@ private okhttp3.Call postSetCommentTextValidateBeforeCall(@javax.annotation.Nonn throw new ApiException("Missing the required parameter 'setCommentTextParams' when calling postSetCommentText(Async)"); } - return postSetCommentTextCall(commentId, setCommentTextParams, sso, _callback); + return postSetCommentTextCall(tenantId, commentId, setCommentTextParams, broadcastId, sso, _callback); } - private ApiResponse postSetCommentTextWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = postSetCommentTextValidateBeforeCall(commentId, setCommentTextParams, sso, null); + private ApiResponse postSetCommentTextWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postSetCommentTextValidateBeforeCall(tenantId, commentId, setCommentTextParams, broadcastId, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call postSetCommentTextAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postSetCommentTextAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postSetCommentTextValidateBeforeCall(commentId, setCommentTextParams, sso, _callback); + okhttp3.Call localVarCall = postSetCommentTextValidateBeforeCall(tenantId, commentId, setCommentTextParams, broadcastId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpostSetCommentTextRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nonnull private final SetCommentTextParams setCommentTextParams; @javax.annotation.Nullable + private String broadcastId; + @javax.annotation.Nullable private String sso; - private APIpostSetCommentTextRequest(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams) { + private APIpostSetCommentTextRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams) { + this.tenantId = tenantId; this.commentId = commentId; this.setCommentTextParams = setCommentTextParams; } + /** + * Set broadcastId + * @param broadcastId (optional) + * @return APIpostSetCommentTextRequest + */ + public APIpostSetCommentTextRequest broadcastId(@javax.annotation.Nullable String broadcastId) { + this.broadcastId = broadcastId; + return this; + } + /** * Set sso * @param sso (optional) @@ -7251,7 +7862,7 @@ public APIpostSetCommentTextRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return postSetCommentTextCall(commentId, setCommentTextParams, sso, _callback); + return postSetCommentTextCall(tenantId, commentId, setCommentTextParams, broadcastId, sso, _callback); } /** @@ -7267,7 +7878,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public SetCommentTextResponse execute() throws ApiException { - ApiResponse localVarResp = postSetCommentTextWithHttpInfo(commentId, setCommentTextParams, sso); + ApiResponse localVarResp = postSetCommentTextWithHttpInfo(tenantId, commentId, setCommentTextParams, broadcastId, sso); return localVarResp.getData(); } @@ -7284,7 +7895,7 @@ public SetCommentTextResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return postSetCommentTextWithHttpInfo(commentId, setCommentTextParams, sso); + return postSetCommentTextWithHttpInfo(tenantId, commentId, setCommentTextParams, broadcastId, sso); } /** @@ -7301,13 +7912,14 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return postSetCommentTextAsync(commentId, setCommentTextParams, sso, _callback); + return postSetCommentTextAsync(tenantId, commentId, setCommentTextParams, broadcastId, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @param setCommentTextParams (required) * @return APIpostSetCommentTextRequest @@ -7319,10 +7931,10 @@ public okhttp3.Call executeAsync(final ApiCallback _call 0 Error - */ - public APIpostSetCommentTextRequest postSetCommentText(@javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams) { - return new APIpostSetCommentTextRequest(commentId, setCommentTextParams); + public APIpostSetCommentTextRequest postSetCommentText(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nonnull SetCommentTextParams setCommentTextParams) { + return new APIpostSetCommentTextRequest(tenantId, commentId, setCommentTextParams); } - private okhttp3.Call postUnFlagCommentCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postUnFlagCommentCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7339,7 +7951,7 @@ private okhttp3.Call postUnFlagCommentCall(@javax.annotation.Nonnull String comm Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/un-flag-comment/{commentId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); @@ -7348,6 +7960,14 @@ private okhttp3.Call postUnFlagCommentCall(@javax.annotation.Nonnull String comm Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + + if (broadcastId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -7372,41 +7992,61 @@ private okhttp3.Call postUnFlagCommentCall(@javax.annotation.Nonnull String comm } @SuppressWarnings("rawtypes") - private okhttp3.Call postUnFlagCommentValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postUnFlagCommentValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling postUnFlagComment(Async)"); + } + // verify the required parameter 'commentId' is set if (commentId == null) { throw new ApiException("Missing the required parameter 'commentId' when calling postUnFlagComment(Async)"); } - return postUnFlagCommentCall(commentId, sso, _callback); + return postUnFlagCommentCall(tenantId, commentId, broadcastId, sso, _callback); } - private ApiResponse postUnFlagCommentWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = postUnFlagCommentValidateBeforeCall(commentId, sso, null); + private ApiResponse postUnFlagCommentWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postUnFlagCommentValidateBeforeCall(tenantId, commentId, broadcastId, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call postUnFlagCommentAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postUnFlagCommentAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postUnFlagCommentValidateBeforeCall(commentId, sso, _callback); + okhttp3.Call localVarCall = postUnFlagCommentValidateBeforeCall(tenantId, commentId, broadcastId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpostUnFlagCommentRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable + private String broadcastId; + @javax.annotation.Nullable private String sso; - private APIpostUnFlagCommentRequest(@javax.annotation.Nonnull String commentId) { + private APIpostUnFlagCommentRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + this.tenantId = tenantId; this.commentId = commentId; } + /** + * Set broadcastId + * @param broadcastId (optional) + * @return APIpostUnFlagCommentRequest + */ + public APIpostUnFlagCommentRequest broadcastId(@javax.annotation.Nullable String broadcastId) { + this.broadcastId = broadcastId; + return this; + } + /** * Set sso * @param sso (optional) @@ -7431,7 +8071,7 @@ public APIpostUnFlagCommentRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return postUnFlagCommentCall(commentId, sso, _callback); + return postUnFlagCommentCall(tenantId, commentId, broadcastId, sso, _callback); } /** @@ -7447,7 +8087,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public APIEmptyResponse execute() throws ApiException { - ApiResponse localVarResp = postUnFlagCommentWithHttpInfo(commentId, sso); + ApiResponse localVarResp = postUnFlagCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); return localVarResp.getData(); } @@ -7464,7 +8104,7 @@ public APIEmptyResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return postUnFlagCommentWithHttpInfo(commentId, sso); + return postUnFlagCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); } /** @@ -7481,13 +8121,14 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return postUnFlagCommentAsync(commentId, sso, _callback); + return postUnFlagCommentAsync(tenantId, commentId, broadcastId, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @return APIpostUnFlagCommentRequest * @http.response.details @@ -7498,10 +8139,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 0 Error - */ - public APIpostUnFlagCommentRequest postUnFlagComment(@javax.annotation.Nonnull String commentId) { - return new APIpostUnFlagCommentRequest(commentId); + public APIpostUnFlagCommentRequest postUnFlagComment(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + return new APIpostUnFlagCommentRequest(tenantId, commentId); } - private okhttp3.Call postVoteCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String direction, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postVoteCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String direction, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7518,7 +8159,7 @@ private okhttp3.Call postVoteCall(@javax.annotation.Nonnull String commentId, @j Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/vote/{commentId}" + String localVarPath = "/auth/my-account/moderate-comments/mod_api/vote/{commentId}" .replace("{" + "commentId" + "}", localVarApiClient.escapeString(commentId.toString())); List localVarQueryParams = new ArrayList(); @@ -7527,10 +8168,18 @@ private okhttp3.Call postVoteCall(@javax.annotation.Nonnull String commentId, @j Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (direction != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("direction", direction)); } + if (broadcastId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("broadcastId", broadcastId)); + } + if (sso != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso)); } @@ -7555,40 +8204,50 @@ private okhttp3.Call postVoteCall(@javax.annotation.Nonnull String commentId, @j } @SuppressWarnings("rawtypes") - private okhttp3.Call postVoteValidateBeforeCall(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String direction, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postVoteValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String direction, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling postVote(Async)"); + } + // verify the required parameter 'commentId' is set if (commentId == null) { throw new ApiException("Missing the required parameter 'commentId' when calling postVote(Async)"); } - return postVoteCall(commentId, direction, sso, _callback); + return postVoteCall(tenantId, commentId, direction, broadcastId, sso, _callback); } - private ApiResponse postVoteWithHttpInfo(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String direction, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = postVoteValidateBeforeCall(commentId, direction, sso, null); + private ApiResponse postVoteWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String direction, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = postVoteValidateBeforeCall(tenantId, commentId, direction, broadcastId, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call postVoteAsync(@javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String direction, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postVoteAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId, @javax.annotation.Nullable String direction, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postVoteValidateBeforeCall(commentId, direction, sso, _callback); + okhttp3.Call localVarCall = postVoteValidateBeforeCall(tenantId, commentId, direction, broadcastId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIpostVoteRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String commentId; @javax.annotation.Nullable private String direction; @javax.annotation.Nullable + private String broadcastId; + @javax.annotation.Nullable private String sso; - private APIpostVoteRequest(@javax.annotation.Nonnull String commentId) { + private APIpostVoteRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + this.tenantId = tenantId; this.commentId = commentId; } @@ -7602,6 +8261,16 @@ public APIpostVoteRequest direction(@javax.annotation.Nullable String direction) return this; } + /** + * Set broadcastId + * @param broadcastId (optional) + * @return APIpostVoteRequest + */ + public APIpostVoteRequest broadcastId(@javax.annotation.Nullable String broadcastId) { + this.broadcastId = broadcastId; + return this; + } + /** * Set sso * @param sso (optional) @@ -7626,7 +8295,7 @@ public APIpostVoteRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return postVoteCall(commentId, direction, sso, _callback); + return postVoteCall(tenantId, commentId, direction, broadcastId, sso, _callback); } /** @@ -7642,7 +8311,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public VoteResponse execute() throws ApiException { - ApiResponse localVarResp = postVoteWithHttpInfo(commentId, direction, sso); + ApiResponse localVarResp = postVoteWithHttpInfo(tenantId, commentId, direction, broadcastId, sso); return localVarResp.getData(); } @@ -7659,7 +8328,7 @@ public VoteResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return postVoteWithHttpInfo(commentId, direction, sso); + return postVoteWithHttpInfo(tenantId, commentId, direction, broadcastId, sso); } /** @@ -7676,13 +8345,14 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return postVoteAsync(commentId, direction, sso, _callback); + return postVoteAsync(tenantId, commentId, direction, broadcastId, sso, _callback); } } /** * * + * @param tenantId (required) * @param commentId (required) * @return APIpostVoteRequest * @http.response.details @@ -7693,10 +8363,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro 0 Error - */ - public APIpostVoteRequest postVote(@javax.annotation.Nonnull String commentId) { - return new APIpostVoteRequest(commentId); + public APIpostVoteRequest postVote(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String commentId) { + return new APIpostVoteRequest(tenantId, commentId); } - private okhttp3.Call putAwardBadgeCall(@javax.annotation.Nonnull String badgeId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call putAwardBadgeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String badgeId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7713,7 +8383,7 @@ private okhttp3.Call putAwardBadgeCall(@javax.annotation.Nonnull String badgeId, Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/award-badge"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/award-badge"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -7721,6 +8391,10 @@ private okhttp3.Call putAwardBadgeCall(@javax.annotation.Nonnull String badgeId, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (badgeId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("badgeId", badgeId)); } @@ -7761,32 +8435,39 @@ private okhttp3.Call putAwardBadgeCall(@javax.annotation.Nonnull String badgeId, } @SuppressWarnings("rawtypes") - private okhttp3.Call putAwardBadgeValidateBeforeCall(@javax.annotation.Nonnull String badgeId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call putAwardBadgeValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String badgeId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling putAwardBadge(Async)"); + } + // verify the required parameter 'badgeId' is set if (badgeId == null) { throw new ApiException("Missing the required parameter 'badgeId' when calling putAwardBadge(Async)"); } - return putAwardBadgeCall(badgeId, userId, commentId, broadcastId, sso, _callback); + return putAwardBadgeCall(tenantId, badgeId, userId, commentId, broadcastId, sso, _callback); } - private ApiResponse putAwardBadgeWithHttpInfo(@javax.annotation.Nonnull String badgeId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = putAwardBadgeValidateBeforeCall(badgeId, userId, commentId, broadcastId, sso, null); + private ApiResponse putAwardBadgeWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String badgeId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = putAwardBadgeValidateBeforeCall(tenantId, badgeId, userId, commentId, broadcastId, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call putAwardBadgeAsync(@javax.annotation.Nonnull String badgeId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call putAwardBadgeAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String badgeId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = putAwardBadgeValidateBeforeCall(badgeId, userId, commentId, broadcastId, sso, _callback); + okhttp3.Call localVarCall = putAwardBadgeValidateBeforeCall(tenantId, badgeId, userId, commentId, broadcastId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIputAwardBadgeRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String badgeId; @javax.annotation.Nullable @@ -7798,7 +8479,8 @@ public class APIputAwardBadgeRequest { @javax.annotation.Nullable private String sso; - private APIputAwardBadgeRequest(@javax.annotation.Nonnull String badgeId) { + private APIputAwardBadgeRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String badgeId) { + this.tenantId = tenantId; this.badgeId = badgeId; } @@ -7856,7 +8538,7 @@ public APIputAwardBadgeRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return putAwardBadgeCall(badgeId, userId, commentId, broadcastId, sso, _callback); + return putAwardBadgeCall(tenantId, badgeId, userId, commentId, broadcastId, sso, _callback); } /** @@ -7872,7 +8554,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public AwardUserBadgeResponse execute() throws ApiException { - ApiResponse localVarResp = putAwardBadgeWithHttpInfo(badgeId, userId, commentId, broadcastId, sso); + ApiResponse localVarResp = putAwardBadgeWithHttpInfo(tenantId, badgeId, userId, commentId, broadcastId, sso); return localVarResp.getData(); } @@ -7889,7 +8571,7 @@ public AwardUserBadgeResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return putAwardBadgeWithHttpInfo(badgeId, userId, commentId, broadcastId, sso); + return putAwardBadgeWithHttpInfo(tenantId, badgeId, userId, commentId, broadcastId, sso); } /** @@ -7906,13 +8588,14 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return putAwardBadgeAsync(badgeId, userId, commentId, broadcastId, sso, _callback); + return putAwardBadgeAsync(tenantId, badgeId, userId, commentId, broadcastId, sso, _callback); } } /** * * + * @param tenantId (required) * @param badgeId (required) * @return APIputAwardBadgeRequest * @http.response.details @@ -7923,10 +8606,10 @@ public okhttp3.Call executeAsync(final ApiCallback _call 0 Error - */ - public APIputAwardBadgeRequest putAwardBadge(@javax.annotation.Nonnull String badgeId) { - return new APIputAwardBadgeRequest(badgeId); + public APIputAwardBadgeRequest putAwardBadge(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String badgeId) { + return new APIputAwardBadgeRequest(tenantId, badgeId); } - private okhttp3.Call putCloseThreadCall(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call putCloseThreadCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7943,7 +8626,7 @@ private okhttp3.Call putCloseThreadCall(@javax.annotation.Nonnull String urlId, Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/close-thread"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/close-thread"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -7951,6 +8634,10 @@ private okhttp3.Call putCloseThreadCall(@javax.annotation.Nonnull String urlId, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (urlId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("urlId", urlId)); } @@ -7979,38 +8666,46 @@ private okhttp3.Call putCloseThreadCall(@javax.annotation.Nonnull String urlId, } @SuppressWarnings("rawtypes") - private okhttp3.Call putCloseThreadValidateBeforeCall(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call putCloseThreadValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling putCloseThread(Async)"); + } + // verify the required parameter 'urlId' is set if (urlId == null) { throw new ApiException("Missing the required parameter 'urlId' when calling putCloseThread(Async)"); } - return putCloseThreadCall(urlId, sso, _callback); + return putCloseThreadCall(tenantId, urlId, sso, _callback); } - private ApiResponse putCloseThreadWithHttpInfo(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = putCloseThreadValidateBeforeCall(urlId, sso, null); + private ApiResponse putCloseThreadWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = putCloseThreadValidateBeforeCall(tenantId, urlId, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call putCloseThreadAsync(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call putCloseThreadAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = putCloseThreadValidateBeforeCall(urlId, sso, _callback); + okhttp3.Call localVarCall = putCloseThreadValidateBeforeCall(tenantId, urlId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIputCloseThreadRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String urlId; @javax.annotation.Nullable private String sso; - private APIputCloseThreadRequest(@javax.annotation.Nonnull String urlId) { + private APIputCloseThreadRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { + this.tenantId = tenantId; this.urlId = urlId; } @@ -8038,7 +8733,7 @@ public APIputCloseThreadRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return putCloseThreadCall(urlId, sso, _callback); + return putCloseThreadCall(tenantId, urlId, sso, _callback); } /** @@ -8054,7 +8749,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public APIEmptyResponse execute() throws ApiException { - ApiResponse localVarResp = putCloseThreadWithHttpInfo(urlId, sso); + ApiResponse localVarResp = putCloseThreadWithHttpInfo(tenantId, urlId, sso); return localVarResp.getData(); } @@ -8071,7 +8766,7 @@ public APIEmptyResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return putCloseThreadWithHttpInfo(urlId, sso); + return putCloseThreadWithHttpInfo(tenantId, urlId, sso); } /** @@ -8088,13 +8783,14 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return putCloseThreadAsync(urlId, sso, _callback); + return putCloseThreadAsync(tenantId, urlId, sso, _callback); } } /** * * + * @param tenantId (required) * @param urlId (required) * @return APIputCloseThreadRequest * @http.response.details @@ -8105,10 +8801,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 0 Error - */ - public APIputCloseThreadRequest putCloseThread(@javax.annotation.Nonnull String urlId) { - return new APIputCloseThreadRequest(urlId); + public APIputCloseThreadRequest putCloseThread(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { + return new APIputCloseThreadRequest(tenantId, urlId); } - private okhttp3.Call putRemoveBadgeCall(@javax.annotation.Nonnull String badgeId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call putRemoveBadgeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String badgeId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8125,7 +8821,7 @@ private okhttp3.Call putRemoveBadgeCall(@javax.annotation.Nonnull String badgeId Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/remove-badge"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/remove-badge"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -8133,6 +8829,10 @@ private okhttp3.Call putRemoveBadgeCall(@javax.annotation.Nonnull String badgeId Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (badgeId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("badgeId", badgeId)); } @@ -8173,32 +8873,39 @@ private okhttp3.Call putRemoveBadgeCall(@javax.annotation.Nonnull String badgeId } @SuppressWarnings("rawtypes") - private okhttp3.Call putRemoveBadgeValidateBeforeCall(@javax.annotation.Nonnull String badgeId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call putRemoveBadgeValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String badgeId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling putRemoveBadge(Async)"); + } + // verify the required parameter 'badgeId' is set if (badgeId == null) { throw new ApiException("Missing the required parameter 'badgeId' when calling putRemoveBadge(Async)"); } - return putRemoveBadgeCall(badgeId, userId, commentId, broadcastId, sso, _callback); + return putRemoveBadgeCall(tenantId, badgeId, userId, commentId, broadcastId, sso, _callback); } - private ApiResponse putRemoveBadgeWithHttpInfo(@javax.annotation.Nonnull String badgeId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = putRemoveBadgeValidateBeforeCall(badgeId, userId, commentId, broadcastId, sso, null); + private ApiResponse putRemoveBadgeWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String badgeId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = putRemoveBadgeValidateBeforeCall(tenantId, badgeId, userId, commentId, broadcastId, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call putRemoveBadgeAsync(@javax.annotation.Nonnull String badgeId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call putRemoveBadgeAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String badgeId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String commentId, @javax.annotation.Nullable String broadcastId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = putRemoveBadgeValidateBeforeCall(badgeId, userId, commentId, broadcastId, sso, _callback); + okhttp3.Call localVarCall = putRemoveBadgeValidateBeforeCall(tenantId, badgeId, userId, commentId, broadcastId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIputRemoveBadgeRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String badgeId; @javax.annotation.Nullable @@ -8210,7 +8917,8 @@ public class APIputRemoveBadgeRequest { @javax.annotation.Nullable private String sso; - private APIputRemoveBadgeRequest(@javax.annotation.Nonnull String badgeId) { + private APIputRemoveBadgeRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String badgeId) { + this.tenantId = tenantId; this.badgeId = badgeId; } @@ -8268,7 +8976,7 @@ public APIputRemoveBadgeRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return putRemoveBadgeCall(badgeId, userId, commentId, broadcastId, sso, _callback); + return putRemoveBadgeCall(tenantId, badgeId, userId, commentId, broadcastId, sso, _callback); } /** @@ -8284,7 +8992,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public RemoveUserBadgeResponse execute() throws ApiException { - ApiResponse localVarResp = putRemoveBadgeWithHttpInfo(badgeId, userId, commentId, broadcastId, sso); + ApiResponse localVarResp = putRemoveBadgeWithHttpInfo(tenantId, badgeId, userId, commentId, broadcastId, sso); return localVarResp.getData(); } @@ -8301,7 +9009,7 @@ public RemoveUserBadgeResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return putRemoveBadgeWithHttpInfo(badgeId, userId, commentId, broadcastId, sso); + return putRemoveBadgeWithHttpInfo(tenantId, badgeId, userId, commentId, broadcastId, sso); } /** @@ -8318,13 +9026,14 @@ public ApiResponse executeWithHttpInfo() throws ApiExce */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return putRemoveBadgeAsync(badgeId, userId, commentId, broadcastId, sso, _callback); + return putRemoveBadgeAsync(tenantId, badgeId, userId, commentId, broadcastId, sso, _callback); } } /** * * + * @param tenantId (required) * @param badgeId (required) * @return APIputRemoveBadgeRequest * @http.response.details @@ -8335,10 +9044,10 @@ public okhttp3.Call executeAsync(final ApiCallback _cal 0 Error - */ - public APIputRemoveBadgeRequest putRemoveBadge(@javax.annotation.Nonnull String badgeId) { - return new APIputRemoveBadgeRequest(badgeId); + public APIputRemoveBadgeRequest putRemoveBadge(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String badgeId) { + return new APIputRemoveBadgeRequest(tenantId, badgeId); } - private okhttp3.Call putReopenThreadCall(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call putReopenThreadCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8355,7 +9064,7 @@ private okhttp3.Call putReopenThreadCall(@javax.annotation.Nonnull String urlId, Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/reopen-thread"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/reopen-thread"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -8363,6 +9072,10 @@ private okhttp3.Call putReopenThreadCall(@javax.annotation.Nonnull String urlId, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (urlId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("urlId", urlId)); } @@ -8391,38 +9104,46 @@ private okhttp3.Call putReopenThreadCall(@javax.annotation.Nonnull String urlId, } @SuppressWarnings("rawtypes") - private okhttp3.Call putReopenThreadValidateBeforeCall(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call putReopenThreadValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling putReopenThread(Async)"); + } + // verify the required parameter 'urlId' is set if (urlId == null) { throw new ApiException("Missing the required parameter 'urlId' when calling putReopenThread(Async)"); } - return putReopenThreadCall(urlId, sso, _callback); + return putReopenThreadCall(tenantId, urlId, sso, _callback); } - private ApiResponse putReopenThreadWithHttpInfo(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = putReopenThreadValidateBeforeCall(urlId, sso, null); + private ApiResponse putReopenThreadWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = putReopenThreadValidateBeforeCall(tenantId, urlId, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call putReopenThreadAsync(@javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call putReopenThreadAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = putReopenThreadValidateBeforeCall(urlId, sso, _callback); + okhttp3.Call localVarCall = putReopenThreadValidateBeforeCall(tenantId, urlId, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIputReopenThreadRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nonnull private final String urlId; @javax.annotation.Nullable private String sso; - private APIputReopenThreadRequest(@javax.annotation.Nonnull String urlId) { + private APIputReopenThreadRequest(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { + this.tenantId = tenantId; this.urlId = urlId; } @@ -8450,7 +9171,7 @@ public APIputReopenThreadRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return putReopenThreadCall(urlId, sso, _callback); + return putReopenThreadCall(tenantId, urlId, sso, _callback); } /** @@ -8466,7 +9187,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public APIEmptyResponse execute() throws ApiException { - ApiResponse localVarResp = putReopenThreadWithHttpInfo(urlId, sso); + ApiResponse localVarResp = putReopenThreadWithHttpInfo(tenantId, urlId, sso); return localVarResp.getData(); } @@ -8483,7 +9204,7 @@ public APIEmptyResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return putReopenThreadWithHttpInfo(urlId, sso); + return putReopenThreadWithHttpInfo(tenantId, urlId, sso); } /** @@ -8500,13 +9221,14 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return putReopenThreadAsync(urlId, sso, _callback); + return putReopenThreadAsync(tenantId, urlId, sso, _callback); } } /** * * + * @param tenantId (required) * @param urlId (required) * @return APIputReopenThreadRequest * @http.response.details @@ -8517,10 +9239,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) 0 Error - */ - public APIputReopenThreadRequest putReopenThread(@javax.annotation.Nonnull String urlId) { - return new APIputReopenThreadRequest(urlId); + public APIputReopenThreadRequest putReopenThread(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nonnull String urlId) { + return new APIputReopenThreadRequest(tenantId, urlId); } - private okhttp3.Call setTrustFactorCall(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String trustFactor, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call setTrustFactorCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String trustFactor, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8537,7 +9259,7 @@ private okhttp3.Call setTrustFactorCall(@javax.annotation.Nullable String userId Object localVarPostBody = null; // create path and map variables - String localVarPath = "/auth/my-account/moderate-comments/set-trust-factor"; + String localVarPath = "/auth/my-account/moderate-comments/mod_api/set-trust-factor"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -8545,6 +9267,10 @@ private okhttp3.Call setTrustFactorCall(@javax.annotation.Nullable String userId Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (tenantId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tenantId", tenantId)); + } + if (userId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("userId", userId)); } @@ -8577,27 +9303,34 @@ private okhttp3.Call setTrustFactorCall(@javax.annotation.Nullable String userId } @SuppressWarnings("rawtypes") - private okhttp3.Call setTrustFactorValidateBeforeCall(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String trustFactor, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - return setTrustFactorCall(userId, trustFactor, sso, _callback); + private okhttp3.Call setTrustFactorValidateBeforeCall(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String trustFactor, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'tenantId' is set + if (tenantId == null) { + throw new ApiException("Missing the required parameter 'tenantId' when calling setTrustFactor(Async)"); + } + + return setTrustFactorCall(tenantId, userId, trustFactor, sso, _callback); } - private ApiResponse setTrustFactorWithHttpInfo(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String trustFactor, @javax.annotation.Nullable String sso) throws ApiException { - okhttp3.Call localVarCall = setTrustFactorValidateBeforeCall(userId, trustFactor, sso, null); + private ApiResponse setTrustFactorWithHttpInfo(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String trustFactor, @javax.annotation.Nullable String sso) throws ApiException { + okhttp3.Call localVarCall = setTrustFactorValidateBeforeCall(tenantId, userId, trustFactor, sso, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call setTrustFactorAsync(@javax.annotation.Nullable String userId, @javax.annotation.Nullable String trustFactor, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { + private okhttp3.Call setTrustFactorAsync(@javax.annotation.Nonnull String tenantId, @javax.annotation.Nullable String userId, @javax.annotation.Nullable String trustFactor, @javax.annotation.Nullable String sso, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = setTrustFactorValidateBeforeCall(userId, trustFactor, sso, _callback); + okhttp3.Call localVarCall = setTrustFactorValidateBeforeCall(tenantId, userId, trustFactor, sso, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIsetTrustFactorRequest { + @javax.annotation.Nonnull + private final String tenantId; @javax.annotation.Nullable private String userId; @javax.annotation.Nullable @@ -8605,7 +9338,8 @@ public class APIsetTrustFactorRequest { @javax.annotation.Nullable private String sso; - private APIsetTrustFactorRequest() { + private APIsetTrustFactorRequest(@javax.annotation.Nonnull String tenantId) { + this.tenantId = tenantId; } /** @@ -8652,7 +9386,7 @@ public APIsetTrustFactorRequest sso(@javax.annotation.Nullable String sso) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return setTrustFactorCall(userId, trustFactor, sso, _callback); + return setTrustFactorCall(tenantId, userId, trustFactor, sso, _callback); } /** @@ -8668,7 +9402,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public SetUserTrustFactorResponse execute() throws ApiException { - ApiResponse localVarResp = setTrustFactorWithHttpInfo(userId, trustFactor, sso); + ApiResponse localVarResp = setTrustFactorWithHttpInfo(tenantId, userId, trustFactor, sso); return localVarResp.getData(); } @@ -8685,7 +9419,7 @@ public SetUserTrustFactorResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return setTrustFactorWithHttpInfo(userId, trustFactor, sso); + return setTrustFactorWithHttpInfo(tenantId, userId, trustFactor, sso); } /** @@ -8702,13 +9436,14 @@ public ApiResponse executeWithHttpInfo() throws ApiE */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return setTrustFactorAsync(userId, trustFactor, sso, _callback); + return setTrustFactorAsync(tenantId, userId, trustFactor, sso, _callback); } } /** * * + * @param tenantId (required) * @return APIsetTrustFactorRequest * @http.response.details @@ -8718,7 +9453,7 @@ public okhttp3.Call executeAsync(final ApiCallback _
0 Error -
*/ - public APIsetTrustFactorRequest setTrustFactor() { - return new APIsetTrustFactorRequest(); + public APIsetTrustFactorRequest setTrustFactor(@javax.annotation.Nonnull String tenantId) { + return new APIsetTrustFactorRequest(tenantId); } } diff --git a/client/src/main/java/com/fastcomments/invoker/JSON.java b/client/src/main/java/com/fastcomments/invoker/JSON.java index efd3c5bf..95b2cf3e 100644 --- a/client/src/main/java/com/fastcomments/invoker/JSON.java +++ b/client/src/main/java/com/fastcomments/invoker/JSON.java @@ -334,7 +334,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PatchPageAPIResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PatchSSOUserAPIResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PendingCommentToSyncOutbound.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PostRemoveCommentResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PostRemoveCommentApiResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PreBanSummary.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PubSubComment.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.fastcomments.model.PubSubCommentBase.CustomTypeAdapterFactory()); diff --git a/client/src/main/java/com/fastcomments/model/PostRemoveCommentResponse.java b/client/src/main/java/com/fastcomments/model/PostRemoveCommentApiResponse.java similarity index 86% rename from client/src/main/java/com/fastcomments/model/PostRemoveCommentResponse.java rename to client/src/main/java/com/fastcomments/model/PostRemoveCommentApiResponse.java index 1cad6175..9babf148 100644 --- a/client/src/main/java/com/fastcomments/model/PostRemoveCommentResponse.java +++ b/client/src/main/java/com/fastcomments/model/PostRemoveCommentApiResponse.java @@ -60,23 +60,23 @@ import com.fastcomments.invoker.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0-SNAPSHOT") -public class PostRemoveCommentResponse extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(PostRemoveCommentResponse.class.getName()); +public class PostRemoveCommentApiResponse extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(PostRemoveCommentApiResponse.class.getName()); public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!PostRemoveCommentResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PostRemoveCommentResponse' and its subtypes + if (!PostRemoveCommentApiResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PostRemoveCommentApiResponse' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); final TypeAdapter adapterDeleteCommentResult = gson.getDelegateAdapter(this, TypeToken.get(DeleteCommentResult.class)); final TypeAdapter adapterRemoveCommentActionResponse = gson.getDelegateAdapter(this, TypeToken.get(RemoveCommentActionResponse.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, PostRemoveCommentResponse value) throws IOException { + public void write(JsonWriter out, PostRemoveCommentApiResponse value) throws IOException { if (value == null || value.getActualInstance() == null) { elementAdapter.write(out, null); return; @@ -98,7 +98,7 @@ public void write(JsonWriter out, PostRemoveCommentResponse value) throws IOExce } @Override - public PostRemoveCommentResponse read(JsonReader in) throws IOException { + public PostRemoveCommentApiResponse read(JsonReader in) throws IOException { Object deserialized = null; JsonElement jsonElement = elementAdapter.read(in); @@ -110,7 +110,7 @@ public PostRemoveCommentResponse read(JsonReader in) throws IOException { // validate the JSON object to see if any exception is thrown DeleteCommentResult.validateJsonElement(jsonElement); actualAdapter = adapterDeleteCommentResult; - PostRemoveCommentResponse ret = new PostRemoveCommentResponse(); + PostRemoveCommentApiResponse ret = new PostRemoveCommentApiResponse(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { @@ -123,7 +123,7 @@ public PostRemoveCommentResponse read(JsonReader in) throws IOException { // validate the JSON object to see if any exception is thrown RemoveCommentActionResponse.validateJsonElement(jsonElement); actualAdapter = adapterRemoveCommentActionResponse; - PostRemoveCommentResponse ret = new PostRemoveCommentResponse(); + PostRemoveCommentApiResponse ret = new PostRemoveCommentApiResponse(); ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); return ret; } catch (Exception e) { @@ -132,7 +132,7 @@ public PostRemoveCommentResponse read(JsonReader in) throws IOException { log.log(Level.FINER, "Input data does not match schema 'RemoveCommentActionResponse'", e); } - throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for PostRemoveCommentResponse: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for PostRemoveCommentApiResponse: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } }.nullSafe(); } @@ -141,11 +141,11 @@ public PostRemoveCommentResponse read(JsonReader in) throws IOException { // store a list of schema names defined in anyOf public static final Map> schemas = new HashMap>(); - public PostRemoveCommentResponse() { + public PostRemoveCommentApiResponse() { super("anyOf", Boolean.FALSE); } - public PostRemoveCommentResponse(Object o) { + public PostRemoveCommentApiResponse(Object o) { super("anyOf", Boolean.FALSE); setActualInstance(o); } @@ -157,7 +157,7 @@ public PostRemoveCommentResponse(Object o) { @Override public Map> getSchemas() { - return PostRemoveCommentResponse.schemas; + return PostRemoveCommentApiResponse.schemas; } /** @@ -220,7 +220,7 @@ public RemoveCommentActionResponse getRemoveCommentActionResponse() throws Class * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to PostRemoveCommentResponse + * @throws IOException if the JSON Element is invalid with respect to PostRemoveCommentApiResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { // validate anyOf schemas one by one @@ -241,22 +241,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti errorMessages.add(String.format(java.util.Locale.ROOT, "Deserialization for RemoveCommentActionResponse failed with `%s`.", e.getMessage())); // continue to the next one } - throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for PostRemoveCommentResponse with anyOf schemas: DeleteCommentResult, RemoveCommentActionResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); + throw new IOException(String.format(java.util.Locale.ROOT, "The JSON string is invalid for PostRemoveCommentApiResponse with anyOf schemas: DeleteCommentResult, RemoveCommentActionResponse. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString())); } /** - * Create an instance of PostRemoveCommentResponse given an JSON string + * Create an instance of PostRemoveCommentApiResponse given an JSON string * * @param jsonString JSON string - * @return An instance of PostRemoveCommentResponse - * @throws IOException if the JSON string is invalid with respect to PostRemoveCommentResponse + * @return An instance of PostRemoveCommentApiResponse + * @throws IOException if the JSON string is invalid with respect to PostRemoveCommentApiResponse */ - public static PostRemoveCommentResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, PostRemoveCommentResponse.class); + public static PostRemoveCommentApiResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PostRemoveCommentApiResponse.class); } /** - * Convert an instance of PostRemoveCommentResponse to an JSON string + * Convert an instance of PostRemoveCommentApiResponse to an JSON string * * @return JSON string */ diff --git a/client/src/test/java/com/fastcomments/api/DefaultApiTest.java b/client/src/test/java/com/fastcomments/api/DefaultApiTest.java index 1c90c411..faa35125 100644 --- a/client/src/test/java/com/fastcomments/api/DefaultApiTest.java +++ b/client/src/test/java/com/fastcomments/api/DefaultApiTest.java @@ -184,8 +184,7 @@ public void addDomainConfigTest() throws ApiException { public void addHashTagTest() throws ApiException { String tenantId = null; CreateHashTagBody createHashTagBody = null; - CreateHashTagResponse response = api.addHashTag() - .tenantId(tenantId) + CreateHashTagResponse response = api.addHashTag(tenantId) .createHashTagBody(createHashTagBody) .execute(); // TODO: test validations @@ -198,8 +197,7 @@ public void addHashTagTest() throws ApiException { public void addHashTagsBulkTest() throws ApiException { String tenantId = null; BulkCreateHashTagsBody bulkCreateHashTagsBody = null; - BulkCreateHashTagsResponse response = api.addHashTagsBulk() - .tenantId(tenantId) + BulkCreateHashTagsResponse response = api.addHashTagsBulk(tenantId) .bulkCreateHashTagsBody(bulkCreateHashTagsBody) .execute(); // TODO: test validations @@ -558,11 +556,10 @@ public void deleteEmailTemplateRenderErrorTest() throws ApiException { */ @Test public void deleteHashTagTest() throws ApiException { - String tag = null; String tenantId = null; + String tag = null; DeleteHashTagRequestBody deleteHashTagRequestBody = null; - APIEmptyResponse response = api.deleteHashTag(tag) - .tenantId(tenantId) + APIEmptyResponse response = api.deleteHashTag(tenantId, tag) .deleteHashTagRequestBody(deleteHashTagRequestBody) .execute(); // TODO: test validations @@ -1462,11 +1459,10 @@ public void patchDomainConfigTest() throws ApiException { */ @Test public void patchHashTagTest() throws ApiException { - String tag = null; String tenantId = null; + String tag = null; UpdateHashTagBody updateHashTagBody = null; - UpdateHashTagResponse response = api.patchHashTag(tag) - .tenantId(tenantId) + UpdateHashTagResponse response = api.patchHashTag(tenantId, tag) .updateHashTagBody(updateHashTagBody) .execute(); // TODO: test validations diff --git a/client/src/test/java/com/fastcomments/api/ModerationApiTest.java b/client/src/test/java/com/fastcomments/api/ModerationApiTest.java index 2ae109ff..2af8812e 100644 --- a/client/src/test/java/com/fastcomments/api/ModerationApiTest.java +++ b/client/src/test/java/com/fastcomments/api/ModerationApiTest.java @@ -46,7 +46,7 @@ import com.fastcomments.model.ModerationSiteSearchResponse; import com.fastcomments.model.ModerationSuggestResponse; import com.fastcomments.model.ModerationUserSearchResponse; -import com.fastcomments.model.PostRemoveCommentResponse; +import com.fastcomments.model.PostRemoveCommentApiResponse; import com.fastcomments.model.PreBanSummary; import com.fastcomments.model.RemoveUserBadgeResponse; import com.fastcomments.model.SetCommentApprovedResponse; @@ -76,10 +76,13 @@ public class ModerationApiTest { */ @Test public void deleteModerationVoteTest() throws ApiException { + String tenantId = null; String commentId = null; String voteId = null; + String broadcastId = null; String sso = null; - VoteDeleteResponse response = api.deleteModerationVote(commentId, voteId) + VoteDeleteResponse response = api.deleteModerationVote(tenantId, commentId, voteId) + .broadcastId(broadcastId) .sso(sso) .execute(); // TODO: test validations @@ -90,6 +93,7 @@ public void deleteModerationVoteTest() throws ApiException { */ @Test public void getApiCommentsTest() throws ApiException { + String tenantId = null; Double page = null; Double count = null; String textSearch = null; @@ -99,7 +103,7 @@ public void getApiCommentsTest() throws ApiException { String sorts = null; Boolean demo = null; String sso = null; - ModerationAPIGetCommentsResponse response = api.getApiComments() + ModerationAPIGetCommentsResponse response = api.getApiComments(tenantId) .page(page) .count(count) .textSearch(textSearch) @@ -118,9 +122,10 @@ public void getApiCommentsTest() throws ApiException { */ @Test public void getApiExportStatusTest() throws ApiException { + String tenantId = null; String batchJobId = null; String sso = null; - ModerationExportStatusResponse response = api.getApiExportStatus() + ModerationExportStatusResponse response = api.getApiExportStatus(tenantId) .batchJobId(batchJobId) .sso(sso) .execute(); @@ -132,6 +137,7 @@ public void getApiExportStatusTest() throws ApiException { */ @Test public void getApiIdsTest() throws ApiException { + String tenantId = null; String textSearch = null; String byIPFromComment = null; String filters = null; @@ -139,7 +145,7 @@ public void getApiIdsTest() throws ApiException { String afterId = null; Boolean demo = null; String sso = null; - ModerationAPIGetCommentIdsResponse response = api.getApiIds() + ModerationAPIGetCommentIdsResponse response = api.getApiIds(tenantId) .textSearch(textSearch) .byIPFromComment(byIPFromComment) .filters(filters) @@ -156,9 +162,10 @@ public void getApiIdsTest() throws ApiException { */ @Test public void getBanUsersFromCommentTest() throws ApiException { + String tenantId = null; String commentId = null; String sso = null; - GetBannedUsersFromCommentResponse response = api.getBanUsersFromComment(commentId) + GetBannedUsersFromCommentResponse response = api.getBanUsersFromComment(tenantId, commentId) .sso(sso) .execute(); // TODO: test validations @@ -169,9 +176,10 @@ public void getBanUsersFromCommentTest() throws ApiException { */ @Test public void getCommentBanStatusTest() throws ApiException { + String tenantId = null; String commentId = null; String sso = null; - GetCommentBanStatusResponse response = api.getCommentBanStatus(commentId) + GetCommentBanStatusResponse response = api.getCommentBanStatus(tenantId, commentId) .sso(sso) .execute(); // TODO: test validations @@ -182,9 +190,10 @@ public void getCommentBanStatusTest() throws ApiException { */ @Test public void getCommentChildrenTest() throws ApiException { + String tenantId = null; String commentId = null; String sso = null; - ModerationAPIChildCommentsResponse response = api.getCommentChildren(commentId) + ModerationAPIChildCommentsResponse response = api.getCommentChildren(tenantId, commentId) .sso(sso) .execute(); // TODO: test validations @@ -195,13 +204,14 @@ public void getCommentChildrenTest() throws ApiException { */ @Test public void getCountTest() throws ApiException { + String tenantId = null; String textSearch = null; String byIPFromComment = null; String filter = null; String searchFilters = null; Boolean demo = null; String sso = null; - ModerationAPICountCommentsResponse response = api.getCount() + ModerationAPICountCommentsResponse response = api.getCount(tenantId) .textSearch(textSearch) .byIPFromComment(byIPFromComment) .filter(filter) @@ -217,8 +227,9 @@ public void getCountTest() throws ApiException { */ @Test public void getCountsTest() throws ApiException { + String tenantId = null; String sso = null; - GetBannedUsersCountResponse response = api.getCounts() + GetBannedUsersCountResponse response = api.getCounts(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -229,9 +240,10 @@ public void getCountsTest() throws ApiException { */ @Test public void getLogsTest() throws ApiException { + String tenantId = null; String commentId = null; String sso = null; - ModerationAPIGetLogsResponse response = api.getLogs(commentId) + ModerationAPIGetLogsResponse response = api.getLogs(tenantId, commentId) .sso(sso) .execute(); // TODO: test validations @@ -242,8 +254,9 @@ public void getLogsTest() throws ApiException { */ @Test public void getManualBadgesTest() throws ApiException { + String tenantId = null; String sso = null; - GetTenantManualBadgesResponse response = api.getManualBadges() + GetTenantManualBadgesResponse response = api.getManualBadges(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -254,10 +267,11 @@ public void getManualBadgesTest() throws ApiException { */ @Test public void getManualBadgesForUserTest() throws ApiException { + String tenantId = null; String badgesUserId = null; String commentId = null; String sso = null; - GetUserManualBadgesResponse response = api.getManualBadgesForUser() + GetUserManualBadgesResponse response = api.getManualBadgesForUser(tenantId) .badgesUserId(badgesUserId) .commentId(commentId) .sso(sso) @@ -270,11 +284,12 @@ public void getManualBadgesForUserTest() throws ApiException { */ @Test public void getModerationCommentTest() throws ApiException { + String tenantId = null; String commentId = null; Boolean includeEmail = null; Boolean includeIP = null; String sso = null; - ModerationAPICommentResponse response = api.getModerationComment(commentId) + ModerationAPICommentResponse response = api.getModerationComment(tenantId, commentId) .includeEmail(includeEmail) .includeIP(includeIP) .sso(sso) @@ -287,9 +302,10 @@ public void getModerationCommentTest() throws ApiException { */ @Test public void getModerationCommentTextTest() throws ApiException { + String tenantId = null; String commentId = null; String sso = null; - GetCommentTextResponse response = api.getModerationCommentText(commentId) + GetCommentTextResponse response = api.getModerationCommentText(tenantId, commentId) .sso(sso) .execute(); // TODO: test validations @@ -300,12 +316,13 @@ public void getModerationCommentTextTest() throws ApiException { */ @Test public void getPreBanSummaryTest() throws ApiException { + String tenantId = null; String commentId = null; Boolean includeByUserIdAndEmail = null; Boolean includeByIP = null; Boolean includeByEmailDomain = null; String sso = null; - PreBanSummary response = api.getPreBanSummary(commentId) + PreBanSummary response = api.getPreBanSummary(tenantId, commentId) .includeByUserIdAndEmail(includeByUserIdAndEmail) .includeByIP(includeByIP) .includeByEmailDomain(includeByEmailDomain) @@ -319,11 +336,12 @@ public void getPreBanSummaryTest() throws ApiException { */ @Test public void getSearchCommentsSummaryTest() throws ApiException { + String tenantId = null; String value = null; String filters = null; String searchFilters = null; String sso = null; - ModerationCommentSearchResponse response = api.getSearchCommentsSummary() + ModerationCommentSearchResponse response = api.getSearchCommentsSummary(tenantId) .value(value) .filters(filters) .searchFilters(searchFilters) @@ -337,9 +355,10 @@ public void getSearchCommentsSummaryTest() throws ApiException { */ @Test public void getSearchPagesTest() throws ApiException { + String tenantId = null; String value = null; String sso = null; - ModerationPageSearchResponse response = api.getSearchPages() + ModerationPageSearchResponse response = api.getSearchPages(tenantId) .value(value) .sso(sso) .execute(); @@ -351,9 +370,10 @@ public void getSearchPagesTest() throws ApiException { */ @Test public void getSearchSitesTest() throws ApiException { + String tenantId = null; String value = null; String sso = null; - ModerationSiteSearchResponse response = api.getSearchSites() + ModerationSiteSearchResponse response = api.getSearchSites(tenantId) .value(value) .sso(sso) .execute(); @@ -365,9 +385,10 @@ public void getSearchSitesTest() throws ApiException { */ @Test public void getSearchSuggestTest() throws ApiException { + String tenantId = null; String textSearch = null; String sso = null; - ModerationSuggestResponse response = api.getSearchSuggest() + ModerationSuggestResponse response = api.getSearchSuggest(tenantId) .textSearch(textSearch) .sso(sso) .execute(); @@ -379,9 +400,10 @@ public void getSearchSuggestTest() throws ApiException { */ @Test public void getSearchUsersTest() throws ApiException { + String tenantId = null; String value = null; String sso = null; - ModerationUserSearchResponse response = api.getSearchUsers() + ModerationUserSearchResponse response = api.getSearchUsers(tenantId) .value(value) .sso(sso) .execute(); @@ -393,9 +415,10 @@ public void getSearchUsersTest() throws ApiException { */ @Test public void getTrustFactorTest() throws ApiException { + String tenantId = null; String userId = null; String sso = null; - GetUserTrustFactorResponse response = api.getTrustFactor() + GetUserTrustFactorResponse response = api.getTrustFactor(tenantId) .userId(userId) .sso(sso) .execute(); @@ -407,8 +430,9 @@ public void getTrustFactorTest() throws ApiException { */ @Test public void getUserBanPreferenceTest() throws ApiException { + String tenantId = null; String sso = null; - APIModerateGetUserBanPreferencesResponse response = api.getUserBanPreference() + APIModerateGetUserBanPreferencesResponse response = api.getUserBanPreference(tenantId) .sso(sso) .execute(); // TODO: test validations @@ -419,9 +443,10 @@ public void getUserBanPreferenceTest() throws ApiException { */ @Test public void getUserInternalProfileTest() throws ApiException { + String tenantId = null; String commentId = null; String sso = null; - GetUserInternalProfileResponse response = api.getUserInternalProfile() + GetUserInternalProfileResponse response = api.getUserInternalProfile(tenantId) .commentId(commentId) .sso(sso) .execute(); @@ -433,10 +458,13 @@ public void getUserInternalProfileTest() throws ApiException { */ @Test public void postAdjustCommentVotesTest() throws ApiException { + String tenantId = null; String commentId = null; AdjustCommentVotesParams adjustCommentVotesParams = null; + String broadcastId = null; String sso = null; - AdjustVotesResponse response = api.postAdjustCommentVotes(commentId, adjustCommentVotesParams) + AdjustVotesResponse response = api.postAdjustCommentVotes(tenantId, commentId, adjustCommentVotesParams) + .broadcastId(broadcastId) .sso(sso) .execute(); // TODO: test validations @@ -447,13 +475,14 @@ public void postAdjustCommentVotesTest() throws ApiException { */ @Test public void postApiExportTest() throws ApiException { + String tenantId = null; String textSearch = null; String byIPFromComment = null; String filters = null; String searchFilters = null; String sorts = null; String sso = null; - ModerationExportResponse response = api.postApiExport() + ModerationExportResponse response = api.postApiExport(tenantId) .textSearch(textSearch) .byIPFromComment(byIPFromComment) .filters(filters) @@ -469,6 +498,7 @@ public void postApiExportTest() throws ApiException { */ @Test public void postBanUserFromCommentTest() throws ApiException { + String tenantId = null; String commentId = null; Boolean banEmail = null; Boolean banEmailDomain = null; @@ -479,7 +509,7 @@ public void postBanUserFromCommentTest() throws ApiException { String updateId = null; String banReason = null; String sso = null; - BanUserFromCommentResult response = api.postBanUserFromComment(commentId) + BanUserFromCommentResult response = api.postBanUserFromComment(tenantId, commentId) .banEmail(banEmail) .banEmailDomain(banEmailDomain) .banIP(banIP) @@ -498,9 +528,10 @@ public void postBanUserFromCommentTest() throws ApiException { */ @Test public void postBanUserUndoTest() throws ApiException { + String tenantId = null; BanUserUndoParams banUserUndoParams = null; String sso = null; - APIEmptyResponse response = api.postBanUserUndo(banUserUndoParams) + APIEmptyResponse response = api.postBanUserUndo(tenantId, banUserUndoParams) .sso(sso) .execute(); // TODO: test validations @@ -511,12 +542,13 @@ public void postBanUserUndoTest() throws ApiException { */ @Test public void postBulkPreBanSummaryTest() throws ApiException { + String tenantId = null; BulkPreBanParams bulkPreBanParams = null; Boolean includeByUserIdAndEmail = null; Boolean includeByIP = null; Boolean includeByEmailDomain = null; String sso = null; - BulkPreBanSummary response = api.postBulkPreBanSummary(bulkPreBanParams) + BulkPreBanSummary response = api.postBulkPreBanSummary(tenantId, bulkPreBanParams) .includeByUserIdAndEmail(includeByUserIdAndEmail) .includeByIP(includeByIP) .includeByEmailDomain(includeByEmailDomain) @@ -530,9 +562,10 @@ public void postBulkPreBanSummaryTest() throws ApiException { */ @Test public void postCommentsByIdsTest() throws ApiException { + String tenantId = null; CommentsByIdsParams commentsByIdsParams = null; String sso = null; - ModerationAPIChildCommentsResponse response = api.postCommentsByIds(commentsByIdsParams) + ModerationAPIChildCommentsResponse response = api.postCommentsByIds(tenantId, commentsByIdsParams) .sso(sso) .execute(); // TODO: test validations @@ -543,9 +576,12 @@ public void postCommentsByIdsTest() throws ApiException { */ @Test public void postFlagCommentTest() throws ApiException { + String tenantId = null; String commentId = null; + String broadcastId = null; String sso = null; - APIEmptyResponse response = api.postFlagComment(commentId) + APIEmptyResponse response = api.postFlagComment(tenantId, commentId) + .broadcastId(broadcastId) .sso(sso) .execute(); // TODO: test validations @@ -556,9 +592,12 @@ public void postFlagCommentTest() throws ApiException { */ @Test public void postRemoveCommentTest() throws ApiException { + String tenantId = null; String commentId = null; + String broadcastId = null; String sso = null; - PostRemoveCommentResponse response = api.postRemoveComment(commentId) + PostRemoveCommentApiResponse response = api.postRemoveComment(tenantId, commentId) + .broadcastId(broadcastId) .sso(sso) .execute(); // TODO: test validations @@ -569,9 +608,12 @@ public void postRemoveCommentTest() throws ApiException { */ @Test public void postRestoreDeletedCommentTest() throws ApiException { + String tenantId = null; String commentId = null; + String broadcastId = null; String sso = null; - APIEmptyResponse response = api.postRestoreDeletedComment(commentId) + APIEmptyResponse response = api.postRestoreDeletedComment(tenantId, commentId) + .broadcastId(broadcastId) .sso(sso) .execute(); // TODO: test validations @@ -582,11 +624,14 @@ public void postRestoreDeletedCommentTest() throws ApiException { */ @Test public void postSetCommentApprovalStatusTest() throws ApiException { + String tenantId = null; String commentId = null; Boolean approved = null; + String broadcastId = null; String sso = null; - SetCommentApprovedResponse response = api.postSetCommentApprovalStatus(commentId) + SetCommentApprovedResponse response = api.postSetCommentApprovalStatus(tenantId, commentId) .approved(approved) + .broadcastId(broadcastId) .sso(sso) .execute(); // TODO: test validations @@ -597,11 +642,14 @@ public void postSetCommentApprovalStatusTest() throws ApiException { */ @Test public void postSetCommentReviewStatusTest() throws ApiException { + String tenantId = null; String commentId = null; Boolean reviewed = null; + String broadcastId = null; String sso = null; - APIEmptyResponse response = api.postSetCommentReviewStatus(commentId) + APIEmptyResponse response = api.postSetCommentReviewStatus(tenantId, commentId) .reviewed(reviewed) + .broadcastId(broadcastId) .sso(sso) .execute(); // TODO: test validations @@ -612,13 +660,16 @@ public void postSetCommentReviewStatusTest() throws ApiException { */ @Test public void postSetCommentSpamStatusTest() throws ApiException { + String tenantId = null; String commentId = null; Boolean spam = null; Boolean permNotSpam = null; + String broadcastId = null; String sso = null; - APIEmptyResponse response = api.postSetCommentSpamStatus(commentId) + APIEmptyResponse response = api.postSetCommentSpamStatus(tenantId, commentId) .spam(spam) .permNotSpam(permNotSpam) + .broadcastId(broadcastId) .sso(sso) .execute(); // TODO: test validations @@ -629,10 +680,13 @@ public void postSetCommentSpamStatusTest() throws ApiException { */ @Test public void postSetCommentTextTest() throws ApiException { + String tenantId = null; String commentId = null; SetCommentTextParams setCommentTextParams = null; + String broadcastId = null; String sso = null; - SetCommentTextResponse response = api.postSetCommentText(commentId, setCommentTextParams) + SetCommentTextResponse response = api.postSetCommentText(tenantId, commentId, setCommentTextParams) + .broadcastId(broadcastId) .sso(sso) .execute(); // TODO: test validations @@ -643,9 +697,12 @@ public void postSetCommentTextTest() throws ApiException { */ @Test public void postUnFlagCommentTest() throws ApiException { + String tenantId = null; String commentId = null; + String broadcastId = null; String sso = null; - APIEmptyResponse response = api.postUnFlagComment(commentId) + APIEmptyResponse response = api.postUnFlagComment(tenantId, commentId) + .broadcastId(broadcastId) .sso(sso) .execute(); // TODO: test validations @@ -656,11 +713,14 @@ public void postUnFlagCommentTest() throws ApiException { */ @Test public void postVoteTest() throws ApiException { + String tenantId = null; String commentId = null; String direction = null; + String broadcastId = null; String sso = null; - VoteResponse response = api.postVote(commentId) + VoteResponse response = api.postVote(tenantId, commentId) .direction(direction) + .broadcastId(broadcastId) .sso(sso) .execute(); // TODO: test validations @@ -671,12 +731,13 @@ public void postVoteTest() throws ApiException { */ @Test public void putAwardBadgeTest() throws ApiException { + String tenantId = null; String badgeId = null; String userId = null; String commentId = null; String broadcastId = null; String sso = null; - AwardUserBadgeResponse response = api.putAwardBadge(badgeId) + AwardUserBadgeResponse response = api.putAwardBadge(tenantId, badgeId) .userId(userId) .commentId(commentId) .broadcastId(broadcastId) @@ -690,9 +751,10 @@ public void putAwardBadgeTest() throws ApiException { */ @Test public void putCloseThreadTest() throws ApiException { + String tenantId = null; String urlId = null; String sso = null; - APIEmptyResponse response = api.putCloseThread(urlId) + APIEmptyResponse response = api.putCloseThread(tenantId, urlId) .sso(sso) .execute(); // TODO: test validations @@ -703,12 +765,13 @@ public void putCloseThreadTest() throws ApiException { */ @Test public void putRemoveBadgeTest() throws ApiException { + String tenantId = null; String badgeId = null; String userId = null; String commentId = null; String broadcastId = null; String sso = null; - RemoveUserBadgeResponse response = api.putRemoveBadge(badgeId) + RemoveUserBadgeResponse response = api.putRemoveBadge(tenantId, badgeId) .userId(userId) .commentId(commentId) .broadcastId(broadcastId) @@ -722,9 +785,10 @@ public void putRemoveBadgeTest() throws ApiException { */ @Test public void putReopenThreadTest() throws ApiException { + String tenantId = null; String urlId = null; String sso = null; - APIEmptyResponse response = api.putReopenThread(urlId) + APIEmptyResponse response = api.putReopenThread(tenantId, urlId) .sso(sso) .execute(); // TODO: test validations @@ -735,10 +799,11 @@ public void putReopenThreadTest() throws ApiException { */ @Test public void setTrustFactorTest() throws ApiException { + String tenantId = null; String userId = null; String trustFactor = null; String sso = null; - SetUserTrustFactorResponse response = api.setTrustFactor() + SetUserTrustFactorResponse response = api.setTrustFactor(tenantId) .userId(userId) .trustFactor(trustFactor) .sso(sso) diff --git a/client/src/test/java/com/fastcomments/model/PostRemoveCommentResponseTest.java b/client/src/test/java/com/fastcomments/model/PostRemoveCommentApiResponseTest.java similarity index 77% rename from client/src/test/java/com/fastcomments/model/PostRemoveCommentResponseTest.java rename to client/src/test/java/com/fastcomments/model/PostRemoveCommentApiResponseTest.java index dba61c87..3e61e84a 100644 --- a/client/src/test/java/com/fastcomments/model/PostRemoveCommentResponseTest.java +++ b/client/src/test/java/com/fastcomments/model/PostRemoveCommentApiResponseTest.java @@ -26,17 +26,17 @@ import org.junit.jupiter.api.Test; /** - * Model tests for PostRemoveCommentResponse + * Model tests for PostRemoveCommentApiResponse */ -public class PostRemoveCommentResponseTest { - private final PostRemoveCommentResponse model = new PostRemoveCommentResponse(); +public class PostRemoveCommentApiResponseTest { + private final PostRemoveCommentApiResponse model = new PostRemoveCommentApiResponse(); /** - * Model tests for PostRemoveCommentResponse + * Model tests for PostRemoveCommentApiResponse */ @Test - public void testPostRemoveCommentResponse() { - // TODO: test PostRemoveCommentResponse + public void testPostRemoveCommentApiResponse() { + // TODO: test PostRemoveCommentApiResponse } /** diff --git a/openapi.json b/openapi.json index ca0225c5..302747de 100644 --- a/openapi.json +++ b/openapi.json @@ -13107,9 +13107,9 @@ ] } }, - "/auth/my-account/moderate-comments/count": { + "/auth/my-account/moderate-comments/mod_api/count": { "get": { - "operationId": "GetCount", + "operationId": "getCount", "responses": { "200": { "description": "Ok", @@ -13137,6 +13137,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "text-search", @@ -13188,9 +13196,9 @@ ] } }, - "/auth/my-account/moderate-comments/api/ids": { + "/auth/my-account/moderate-comments/mod_api/api/ids": { "get": { - "operationId": "GetApiIds", + "operationId": "getApiIds", "responses": { "200": { "description": "Ok", @@ -13218,6 +13226,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "text-search", @@ -13277,9 +13293,9 @@ ] } }, - "/auth/my-account/moderate-comments/api/comments": { + "/auth/my-account/moderate-comments/mod_api/api/comments": { "get": { - "operationId": "GetApiComments", + "operationId": "getApiComments", "responses": { "200": { "description": "Ok", @@ -13307,6 +13323,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "page", @@ -13384,9 +13408,9 @@ ] } }, - "/auth/my-account/moderate-comments/api/export": { + "/auth/my-account/moderate-comments/mod_api/api/export": { "post": { - "operationId": "PostApiExport", + "operationId": "postApiExport", "responses": { "200": { "description": "Ok", @@ -13414,6 +13438,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "text-search", @@ -13465,9 +13497,9 @@ ] } }, - "/auth/my-account/moderate-comments/api/export/status": { + "/auth/my-account/moderate-comments/mod_api/api/export/status": { "get": { - "operationId": "GetApiExportStatus", + "operationId": "getApiExportStatus", "responses": { "200": { "description": "Ok", @@ -13495,6 +13527,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "batchJobId", @@ -13514,9 +13554,9 @@ ] } }, - "/auth/my-account/moderate-comments/search/users": { + "/auth/my-account/moderate-comments/mod_api/search/users": { "get": { - "operationId": "GetSearchUsers", + "operationId": "getSearchUsers", "responses": { "200": { "description": "Ok", @@ -13544,6 +13584,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "value", @@ -13563,9 +13611,9 @@ ] } }, - "/auth/my-account/moderate-comments/search/pages": { + "/auth/my-account/moderate-comments/mod_api/search/pages": { "get": { - "operationId": "GetSearchPages", + "operationId": "getSearchPages", "responses": { "200": { "description": "Ok", @@ -13593,6 +13641,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "value", @@ -13612,9 +13668,9 @@ ] } }, - "/auth/my-account/moderate-comments/search/sites": { + "/auth/my-account/moderate-comments/mod_api/search/sites": { "get": { - "operationId": "GetSearchSites", + "operationId": "getSearchSites", "responses": { "200": { "description": "Ok", @@ -13642,6 +13698,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "value", @@ -13661,9 +13725,9 @@ ] } }, - "/auth/my-account/moderate-comments/search/comments/summary": { + "/auth/my-account/moderate-comments/mod_api/search/comments/summary": { "get": { - "operationId": "GetSearchCommentsSummary", + "operationId": "getSearchCommentsSummary", "responses": { "200": { "description": "Ok", @@ -13691,6 +13755,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "value", @@ -13726,9 +13798,9 @@ ] } }, - "/auth/my-account/moderate-comments/search/suggest": { + "/auth/my-account/moderate-comments/mod_api/search/suggest": { "get": { - "operationId": "GetSearchSuggest", + "operationId": "getSearchSuggest", "responses": { "200": { "description": "Ok", @@ -13756,6 +13828,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "text-search", @@ -13775,9 +13855,9 @@ ] } }, - "/auth/my-account/moderate-comments/pre-ban-summary/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId}": { "get": { - "operationId": "GetPreBanSummary", + "operationId": "getPreBanSummary", "responses": { "200": { "description": "Ok", @@ -13805,6 +13885,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -13848,9 +13936,9 @@ ] } }, - "/auth/my-account/moderate-comments/bulk-pre-ban-summary": { + "/auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary": { "post": { - "operationId": "PostBulkPreBanSummary", + "operationId": "postBulkPreBanSummary", "responses": { "200": { "description": "Ok", @@ -13878,6 +13966,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "includeByUserIdAndEmail", @@ -13923,9 +14019,9 @@ } } }, - "/auth/my-account/moderate-comments/ban-user/from-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId}": { "post": { - "operationId": "PostBanUserFromComment", + "operationId": "postBanUserFromComment", "responses": { "200": { "description": "Ok", @@ -13953,6 +14049,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14036,9 +14140,9 @@ ] } }, - "/auth/my-account/moderate-comments/ban-users/from-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId}": { "get": { - "operationId": "GetBanUsersFromComment", + "operationId": "getBanUsersFromComment", "responses": { "200": { "description": "Ok", @@ -14066,6 +14170,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14085,9 +14197,9 @@ ] } }, - "/auth/my-account/moderate-comments/ban-user/undo": { + "/auth/my-account/moderate-comments/mod_api/ban-user/undo": { "post": { - "operationId": "PostBanUserUndo", + "operationId": "postBanUserUndo", "responses": { "200": { "description": "Ok", @@ -14115,6 +14227,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14136,16 +14256,16 @@ } } }, - "/auth/my-account/moderate-comments/remove-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/remove-comment/{commentId}": { "post": { - "operationId": "PostRemoveComment", + "operationId": "postRemoveComment", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "title": "PostRemoveCommentResponse", + "title": "PostRemoveCommentApiResponse", "anyOf": [ { "$ref": "#/components/schemas/DeleteCommentResult" @@ -14174,6 +14294,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14182,6 +14310,14 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14193,9 +14329,9 @@ ] } }, - "/auth/my-account/moderate-comments/restore-deleted-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId}": { "post": { - "operationId": "PostRestoreDeletedComment", + "operationId": "postRestoreDeletedComment", "responses": { "200": { "description": "Ok", @@ -14223,6 +14359,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14231,6 +14375,14 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14242,9 +14394,9 @@ ] } }, - "/auth/my-account/moderate-comments/flag-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/flag-comment/{commentId}": { "post": { - "operationId": "PostFlagComment", + "operationId": "postFlagComment", "responses": { "200": { "description": "Ok", @@ -14272,6 +14424,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14280,6 +14440,14 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14291,9 +14459,9 @@ ] } }, - "/auth/my-account/moderate-comments/un-flag-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId}": { "post": { - "operationId": "PostUnFlagComment", + "operationId": "postUnFlagComment", "responses": { "200": { "description": "Ok", @@ -14321,6 +14489,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14329,6 +14505,14 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14340,9 +14524,9 @@ ] } }, - "/auth/my-account/moderate-comments/set-comment-review-status/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId}": { "post": { - "operationId": "PostSetCommentReviewStatus", + "operationId": "postSetCommentReviewStatus", "responses": { "200": { "description": "Ok", @@ -14370,6 +14554,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14386,6 +14578,14 @@ "type": "boolean" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14397,9 +14597,9 @@ ] } }, - "/auth/my-account/moderate-comments/set-comment-spam-status/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId}": { "post": { - "operationId": "PostSetCommentSpamStatus", + "operationId": "postSetCommentSpamStatus", "responses": { "200": { "description": "Ok", @@ -14427,6 +14627,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14451,6 +14659,14 @@ "type": "boolean" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14462,9 +14678,9 @@ ] } }, - "/auth/my-account/moderate-comments/set-comment-approval-status/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId}": { "post": { - "operationId": "PostSetCommentApprovalStatus", + "operationId": "postSetCommentApprovalStatus", "responses": { "200": { "description": "Ok", @@ -14492,6 +14708,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14508,6 +14732,14 @@ "type": "boolean" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14519,9 +14751,9 @@ ] } }, - "/auth/my-account/moderate-comments/logs/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/logs/{commentId}": { "get": { - "operationId": "GetLogs", + "operationId": "getLogs", "responses": { "200": { "description": "Ok", @@ -14549,6 +14781,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14568,9 +14808,9 @@ ] } }, - "/auth/my-account/moderate-comments/comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/comment/{commentId}": { "get": { - "operationId": "GetModerationComment", + "operationId": "getModerationComment", "responses": { "200": { "description": "Ok", @@ -14598,6 +14838,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14633,9 +14881,9 @@ ] } }, - "/auth/my-account/moderate-comments/comments-by-ids": { + "/auth/my-account/moderate-comments/mod_api/comments-by-ids": { "post": { - "operationId": "PostCommentsByIds", + "operationId": "postCommentsByIds", "responses": { "200": { "description": "Ok", @@ -14663,6 +14911,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14684,9 +14940,9 @@ } } }, - "/auth/my-account/moderate-comments/comment-children/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/comment-children/{commentId}": { "get": { - "operationId": "GetCommentChildren", + "operationId": "getCommentChildren", "responses": { "200": { "description": "Ok", @@ -14714,6 +14970,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14733,9 +14997,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-comment-text/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId}": { "get": { - "operationId": "GetModerationCommentText", + "operationId": "getModerationCommentText", "responses": { "200": { "description": "Ok", @@ -14763,6 +15027,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14782,9 +15054,9 @@ ] } }, - "/auth/my-account/moderate-comments/set-comment-text/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId}": { "post": { - "operationId": "PostSetCommentText", + "operationId": "postSetCommentText", "responses": { "200": { "description": "Ok", @@ -14812,6 +15084,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14820,6 +15100,14 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14841,9 +15129,9 @@ } } }, - "/auth/my-account/moderate-comments/adjust-comment-votes/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId}": { "post": { - "operationId": "PostAdjustCommentVotes", + "operationId": "postAdjustCommentVotes", "responses": { "200": { "description": "Ok", @@ -14871,6 +15159,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14879,6 +15175,14 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14900,9 +15204,9 @@ } } }, - "/auth/my-account/moderate-comments/vote/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/vote/{commentId}": { "post": { - "operationId": "PostVote", + "operationId": "postVote", "responses": { "200": { "description": "Ok", @@ -14930,6 +15234,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14946,6 +15258,14 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14957,9 +15277,9 @@ ] } }, - "/auth/my-account/moderate-comments/vote/{commentId}/{voteId}": { + "/auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId}": { "delete": { - "operationId": "DeleteModerationVote", + "operationId": "deleteModerationVote", "responses": { "200": { "description": "Ok", @@ -14987,6 +15307,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -15003,6 +15331,14 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15014,9 +15350,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-comment-ban-status/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId}": { "get": { - "operationId": "GetCommentBanStatus", + "operationId": "getCommentBanStatus", "responses": { "200": { "description": "Ok", @@ -15044,6 +15380,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -15063,9 +15407,9 @@ ] } }, - "/auth/my-account/moderate-comments/user-ban-preference": { + "/auth/my-account/moderate-comments/mod_api/user-ban-preference": { "get": { - "operationId": "GetUserBanPreference", + "operationId": "getUserBanPreference", "responses": { "200": { "description": "Ok", @@ -15093,6 +15437,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15104,9 +15456,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-manual-badges": { + "/auth/my-account/moderate-comments/mod_api/get-manual-badges": { "get": { - "operationId": "GetManualBadges", + "operationId": "getManualBadges", "responses": { "200": { "description": "Ok", @@ -15134,6 +15486,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15145,9 +15505,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-manual-badges-for-user": { + "/auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user": { "get": { - "operationId": "GetManualBadgesForUser", + "operationId": "getManualBadgesForUser", "responses": { "200": { "description": "Ok", @@ -15175,6 +15535,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "badgesUserId", @@ -15202,9 +15570,9 @@ ] } }, - "/auth/my-account/moderate-comments/award-badge": { + "/auth/my-account/moderate-comments/mod_api/award-badge": { "put": { - "operationId": "PutAwardBadge", + "operationId": "putAwardBadge", "responses": { "200": { "description": "Ok", @@ -15232,6 +15600,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "badgeId", @@ -15275,9 +15651,9 @@ ] } }, - "/auth/my-account/moderate-comments/remove-badge": { + "/auth/my-account/moderate-comments/mod_api/remove-badge": { "put": { - "operationId": "PutRemoveBadge", + "operationId": "putRemoveBadge", "responses": { "200": { "description": "Ok", @@ -15305,6 +15681,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "badgeId", @@ -15348,9 +15732,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-trust-factor": { + "/auth/my-account/moderate-comments/mod_api/get-trust-factor": { "get": { - "operationId": "GetTrustFactor", + "operationId": "getTrustFactor", "responses": { "200": { "description": "Ok", @@ -15378,6 +15762,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "userId", @@ -15397,9 +15789,9 @@ ] } }, - "/auth/my-account/moderate-comments/set-trust-factor": { + "/auth/my-account/moderate-comments/mod_api/set-trust-factor": { "put": { - "operationId": "SetTrustFactor", + "operationId": "setTrustFactor", "responses": { "200": { "description": "Ok", @@ -15427,6 +15819,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "userId", @@ -15454,9 +15854,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-user-internal-profile": { + "/auth/my-account/moderate-comments/mod_api/get-user-internal-profile": { "get": { - "operationId": "GetUserInternalProfile", + "operationId": "getUserInternalProfile", "responses": { "200": { "description": "Ok", @@ -15484,6 +15884,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "commentId", @@ -15503,9 +15911,9 @@ ] } }, - "/auth/my-account/moderate-comments/reopen-thread": { + "/auth/my-account/moderate-comments/mod_api/reopen-thread": { "put": { - "operationId": "PutReopenThread", + "operationId": "putReopenThread", "responses": { "200": { "description": "Ok", @@ -15533,6 +15941,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "urlId", @@ -15552,9 +15968,9 @@ ] } }, - "/auth/my-account/moderate-comments/close-thread": { + "/auth/my-account/moderate-comments/mod_api/close-thread": { "put": { - "operationId": "PutCloseThread", + "operationId": "putCloseThread", "responses": { "200": { "description": "Ok", @@ -15582,6 +15998,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "urlId", @@ -15601,9 +16025,9 @@ ] } }, - "/auth/my-account/moderate-comments/banned-users/counts": { + "/auth/my-account/moderate-comments/banned-users/mod_api/counts": { "get": { - "operationId": "GetCounts", + "operationId": "getCounts", "responses": { "200": { "description": "Ok", @@ -15631,6 +16055,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -22595,7 +23027,7 @@ { "in": "query", "name": "tenantId", - "required": false, + "required": true, "schema": { "type": "string" } @@ -22647,7 +23079,7 @@ { "in": "query", "name": "tenantId", - "required": false, + "required": true, "schema": { "type": "string" } @@ -22697,17 +23129,17 @@ ], "parameters": [ { - "in": "path", - "name": "tag", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "tag", + "required": true, "schema": { "type": "string" } @@ -22755,17 +23187,17 @@ ], "parameters": [ { - "in": "path", - "name": "tag", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "tag", + "required": true, "schema": { "type": "string" } diff --git a/update.sh b/update.sh index 3fae7cd5..897fda29 100755 --- a/update.sh +++ b/update.sh @@ -4,7 +4,7 @@ set -e # FastComments openapi-generator build. Produces Gradle 9 / modern build.gradle # (java{} block, mainClass, spotless 8.4, junit-platform-launcher) natively, so # no post-generation patching is needed. Just a jar; downloaded on demand. -JAR_URL="https://github.com/winrid/openapi-generator/releases/download/fastcomments-build-20260619/openapi-generator-cli.jar" +JAR_URL="https://github.com/winrid/openapi-generator/releases/download/fastcomments-build-20260630/openapi-generator-cli.jar" JAR_FILE="./openapi-generator-cli.jar" [ -f "$JAR_FILE" ] || wget -q "$JAR_URL" -O "$JAR_FILE"