@atlassian-dc-mcp/bitbucket 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/bin/run.js +2 -0
- package/package.json +7 -4
- package/src/bitbucket-client/core/ApiError.ts +26 -0
- package/src/bitbucket-client/core/ApiRequestOptions.ts +17 -0
- package/src/bitbucket-client/core/ApiResult.ts +11 -0
- package/src/bitbucket-client/core/CancelablePromise.ts +131 -0
- package/src/bitbucket-client/core/OpenAPI.ts +33 -0
- package/src/bitbucket-client/core/request.ts +322 -0
- package/src/bitbucket-client/index.ts +303 -0
- package/src/bitbucket-client/models/AdminPasswordUpdate.ts +10 -0
- package/src/bitbucket-client/models/ApplicationId.ts +5 -0
- package/src/bitbucket-client/models/ApplicationUser.ts +7 -0
- package/src/bitbucket-client/models/AuthenticationEntity.ts +13 -0
- package/src/bitbucket-client/models/AuthenticationResponse.ts +7 -0
- package/src/bitbucket-client/models/BasicAuthConfigEntity.ts +7 -0
- package/src/bitbucket-client/models/CaptchaDataEntity.ts +7 -0
- package/src/bitbucket-client/models/Comment.ts +38 -0
- package/src/bitbucket-client/models/CommentOperations.ts +10 -0
- package/src/bitbucket-client/models/CommentThread.ts +22 -0
- package/src/bitbucket-client/models/CommentThreadDiffAnchor.ts +46 -0
- package/src/bitbucket-client/models/Commentable.ts +5 -0
- package/src/bitbucket-client/models/Context.ts +8 -0
- package/src/bitbucket-client/models/ConversationDTO.ts +8 -0
- package/src/bitbucket-client/models/Credentials.ts +10 -0
- package/src/bitbucket-client/models/CredentialsCheckFailedDTO.ts +7 -0
- package/src/bitbucket-client/models/DiffContentFilter.ts +5 -0
- package/src/bitbucket-client/models/ElevationMethodRestDTO.ts +7 -0
- package/src/bitbucket-client/models/EnrichedRepository.ts +7 -0
- package/src/bitbucket-client/models/ErrorEntity.ts +7 -0
- package/src/bitbucket-client/models/ExampleAvatarMultipartFormData.ts +11 -0
- package/src/bitbucket-client/models/ExampleCertificateMultipartFormData.ts +11 -0
- package/src/bitbucket-client/models/ExampleFiles.ts +7 -0
- package/src/bitbucket-client/models/ExampleJsonLastModifiedCallback.ts +7 -0
- package/src/bitbucket-client/models/ExampleMultipartFormData.ts +27 -0
- package/src/bitbucket-client/models/ExamplePostMultipartFormData.ts +23 -0
- package/src/bitbucket-client/models/ExamplePreviewMigration.ts +7 -0
- package/src/bitbucket-client/models/ExamplePutMultipartFormData.ts +19 -0
- package/src/bitbucket-client/models/ExampleRequirements.ts +7 -0
- package/src/bitbucket-client/models/ExampleSettings.ts +7 -0
- package/src/bitbucket-client/models/ExampleSettingsMap.ts +7 -0
- package/src/bitbucket-client/models/ExampleSocketAddress.ts +7 -0
- package/src/bitbucket-client/models/ExampleStatus.ts +7 -0
- package/src/bitbucket-client/models/FileListResource.ts +7 -0
- package/src/bitbucket-client/models/FilePart.ts +13 -0
- package/src/bitbucket-client/models/Group.ts +7 -0
- package/src/bitbucket-client/models/GroupAndUsers.ts +9 -0
- package/src/bitbucket-client/models/GroupPickerContext.ts +9 -0
- package/src/bitbucket-client/models/IdpConfigEntity.ts +7 -0
- package/src/bitbucket-client/models/JitConfigEntity.ts +7 -0
- package/src/bitbucket-client/models/JitUserEntity.ts +7 -0
- package/src/bitbucket-client/models/LineNumberRange.ts +10 -0
- package/src/bitbucket-client/models/LoginOptionEntity.ts +7 -0
- package/src/bitbucket-client/models/MethodStateDTO.ts +7 -0
- package/src/bitbucket-client/models/NextLoginStepDTO.ts +7 -0
- package/src/bitbucket-client/models/OptionalBodyBeanParam.ts +5 -0
- package/src/bitbucket-client/models/PageRequestImpl.ts +9 -0
- package/src/bitbucket-client/models/PasswordElevationRestDTO.ts +8 -0
- package/src/bitbucket-client/models/Project.ts +19 -0
- package/src/bitbucket-client/models/PropertyMap.ts +7 -0
- package/src/bitbucket-client/models/PullRequest.ts +36 -0
- package/src/bitbucket-client/models/PullRequestParticipant.ts +28 -0
- package/src/bitbucket-client/models/PullRequestRef.ts +15 -0
- package/src/bitbucket-client/models/RefType.ts +7 -0
- package/src/bitbucket-client/models/Repository.ts +36 -0
- package/src/bitbucket-client/models/RepositoryHookDetails.ts +7 -0
- package/src/bitbucket-client/models/RestAccessToken.ts +7 -0
- package/src/bitbucket-client/models/RestAccessTokenRequest.ts +10 -0
- package/src/bitbucket-client/models/RestAggregateRejectCounter.ts +7 -0
- package/src/bitbucket-client/models/RestAnalyticsSettings.ts +7 -0
- package/src/bitbucket-client/models/RestAnnouncementBanner.ts +7 -0
- package/src/bitbucket-client/models/RestApplicationProperties.ts +7 -0
- package/src/bitbucket-client/models/RestApplicationUser.ts +7 -0
- package/src/bitbucket-client/models/RestApplicationUserWithPermissions.ts +7 -0
- package/src/bitbucket-client/models/RestApplySuggestionRequest.ts +11 -0
- package/src/bitbucket-client/models/RestAttachmentMetadata.ts +7 -0
- package/src/bitbucket-client/models/RestAuthenticationRequest.ts +11 -0
- package/src/bitbucket-client/models/RestAutoDeclineSettings.ts +7 -0
- package/src/bitbucket-client/models/RestAutoDeclineSettingsRequest.ts +9 -0
- package/src/bitbucket-client/models/RestAutoMergeProcessingResult.ts +7 -0
- package/src/bitbucket-client/models/RestAutoMergeProjectSettingsRequest.ts +16 -0
- package/src/bitbucket-client/models/RestAutoMergeRequest.ts +7 -0
- package/src/bitbucket-client/models/RestAutoMergeRestrictedSettings.ts +7 -0
- package/src/bitbucket-client/models/RestAutoMergeSettingsRequest.ts +8 -0
- package/src/bitbucket-client/models/RestBearerTokenCredentials.ts +8 -0
- package/src/bitbucket-client/models/RestBitbucketLicense.ts +7 -0
- package/src/bitbucket-client/models/RestBranch.ts +7 -0
- package/src/bitbucket-client/models/RestBranchCreateRequest.ts +15 -0
- package/src/bitbucket-client/models/RestBranchDeleteRequest.ts +19 -0
- package/src/bitbucket-client/models/RestBuildCapabilities.ts +7 -0
- package/src/bitbucket-client/models/RestBuildStats.ts +7 -0
- package/src/bitbucket-client/models/RestBuildStatus.ts +7 -0
- package/src/bitbucket-client/models/RestBuildStatusSetRequest.ts +31 -0
- package/src/bitbucket-client/models/RestBulkAddInsightAnnotationRequest.ts +10 -0
- package/src/bitbucket-client/models/RestBulkUserRateLimitSettingsUpdateRequest.ts +13 -0
- package/src/bitbucket-client/models/RestChange.ts +7 -0
- package/src/bitbucket-client/models/RestChangeset.ts +7 -0
- package/src/bitbucket-client/models/RestClusterInformation.ts +7 -0
- package/src/bitbucket-client/models/RestClusterNode.ts +7 -0
- package/src/bitbucket-client/models/RestComment.ts +7 -0
- package/src/bitbucket-client/models/RestCommentJiraIssue.ts +7 -0
- package/src/bitbucket-client/models/RestCommentThreadDiffAnchor.ts +7 -0
- package/src/bitbucket-client/models/RestCommit.ts +7 -0
- package/src/bitbucket-client/models/RestCommitMessageSuggestion.ts +7 -0
- package/src/bitbucket-client/models/RestConflict.ts +7 -0
- package/src/bitbucket-client/models/RestConflictChange.ts +7 -0
- package/src/bitbucket-client/models/RestConnectivitySummary.ts +7 -0
- package/src/bitbucket-client/models/RestCreateBranchRequest.ts +10 -0
- package/src/bitbucket-client/models/RestCreateTagRequest.ts +10 -0
- package/src/bitbucket-client/models/RestDefaultBranch.ts +8 -0
- package/src/bitbucket-client/models/RestDefaultReviewersRequest.ts +38 -0
- package/src/bitbucket-client/models/RestDefaultTask.ts +7 -0
- package/src/bitbucket-client/models/RestDefaultTaskRequest.ts +33 -0
- package/src/bitbucket-client/models/RestDelayedSyncRepository.ts +10 -0
- package/src/bitbucket-client/models/RestDeployment.ts +7 -0
- package/src/bitbucket-client/models/RestDeploymentEnvironment.ts +7 -0
- package/src/bitbucket-client/models/RestDeploymentSetRequest.ts +28 -0
- package/src/bitbucket-client/models/RestDetailedGroup.ts +7 -0
- package/src/bitbucket-client/models/RestDetailedInvocation.ts +7 -0
- package/src/bitbucket-client/models/RestDetailedUser.ts +7 -0
- package/src/bitbucket-client/models/RestDiff.ts +7 -0
- package/src/bitbucket-client/models/RestDiffHunk.ts +7 -0
- package/src/bitbucket-client/models/RestDiffLine.ts +7 -0
- package/src/bitbucket-client/models/RestDiffSegment.ts +7 -0
- package/src/bitbucket-client/models/RestDiffStatsSummary.ts +7 -0
- package/src/bitbucket-client/models/RestEmoticon.ts +7 -0
- package/src/bitbucket-client/models/RestEnhancedEntityLink.ts +7 -0
- package/src/bitbucket-client/models/RestErasedUser.ts +7 -0
- package/src/bitbucket-client/models/RestErrorMessage.ts +7 -0
- package/src/bitbucket-client/models/RestErrors.ts +7 -0
- package/src/bitbucket-client/models/RestExportRequest.ts +13 -0
- package/src/bitbucket-client/models/RestFarmSynchronizationRequest.ts +17 -0
- package/src/bitbucket-client/models/RestGitTagCreateRequest.ts +18 -0
- package/src/bitbucket-client/models/RestGpgKey.ts +7 -0
- package/src/bitbucket-client/models/RestGpgSubKey.ts +7 -0
- package/src/bitbucket-client/models/RestHookScript.ts +7 -0
- package/src/bitbucket-client/models/RestHookScriptConfig.ts +7 -0
- package/src/bitbucket-client/models/RestHookScriptTriggers.ts +8 -0
- package/src/bitbucket-client/models/RestImportRequest.ts +8 -0
- package/src/bitbucket-client/models/RestInsightAnnotation.ts +7 -0
- package/src/bitbucket-client/models/RestInsightAnnotationsResponse.ts +7 -0
- package/src/bitbucket-client/models/RestInsightReport.ts +7 -0
- package/src/bitbucket-client/models/RestInsightReportData.ts +7 -0
- package/src/bitbucket-client/models/RestInvocationHistory.ts +7 -0
- package/src/bitbucket-client/models/RestInvocationRequest.ts +7 -0
- package/src/bitbucket-client/models/RestInvocationResult.ts +7 -0
- package/src/bitbucket-client/models/RestJiraIssue.ts +9 -0
- package/src/bitbucket-client/models/RestJob.ts +7 -0
- package/src/bitbucket-client/models/RestJobMessage.ts +7 -0
- package/src/bitbucket-client/models/RestLabel.ts +7 -0
- package/src/bitbucket-client/models/RestLabelable.ts +7 -0
- package/src/bitbucket-client/models/RestLogLevel.ts +7 -0
- package/src/bitbucket-client/models/RestLoggingSettings.ts +7 -0
- package/src/bitbucket-client/models/RestMailConfiguration.ts +7 -0
- package/src/bitbucket-client/models/RestMarkup.ts +7 -0
- package/src/bitbucket-client/models/RestMeshConnectivityReport.ts +7 -0
- package/src/bitbucket-client/models/RestMeshMigrationQueueStateCounts.ts +7 -0
- package/src/bitbucket-client/models/RestMeshMigrationRequest.ts +14 -0
- package/src/bitbucket-client/models/RestMeshMigrationSummary.ts +7 -0
- package/src/bitbucket-client/models/RestMeshNode.ts +7 -0
- package/src/bitbucket-client/models/RestMigrationRepository.ts +7 -0
- package/src/bitbucket-client/models/RestMinimalCommit.ts +7 -0
- package/src/bitbucket-client/models/RestMinimalRef.ts +7 -0
- package/src/bitbucket-client/models/RestMirrorHashes.ts +7 -0
- package/src/bitbucket-client/models/RestMirrorRepositorySynchronizationStatus.ts +7 -0
- package/src/bitbucket-client/models/RestMirrorServer.ts +7 -0
- package/src/bitbucket-client/models/RestMirrorUpgradeRequest.ts +9 -0
- package/src/bitbucket-client/models/RestMirroredRepository.ts +7 -0
- package/src/bitbucket-client/models/RestMirroredRepositoryDescriptor.ts +7 -0
- package/src/bitbucket-client/models/RestMirroringRequest.ts +7 -0
- package/src/bitbucket-client/models/RestMultilineCommentMarker.ts +7 -0
- package/src/bitbucket-client/models/RestMultilineCommentSpan.ts +7 -0
- package/src/bitbucket-client/models/RestMultipleBuildStats.ts +7 -0
- package/src/bitbucket-client/models/RestNamedLink.ts +7 -0
- package/src/bitbucket-client/models/RestNode.ts +7 -0
- package/src/bitbucket-client/models/RestNodeConnectivityReport.ts +7 -0
- package/src/bitbucket-client/models/RestNodeConnectivitySummary.ts +7 -0
- package/src/bitbucket-client/models/RestPageIdpConfigEntity.ts +14 -0
- package/src/bitbucket-client/models/RestPageLoginOptionEntity.ts +14 -0
- package/src/bitbucket-client/models/RestPageRestChange.ts +7 -0
- package/src/bitbucket-client/models/RestPath.ts +7 -0
- package/src/bitbucket-client/models/RestPermitted.ts +7 -0
- package/src/bitbucket-client/models/RestPermittedGroup.ts +7 -0
- package/src/bitbucket-client/models/RestPermittedUser.ts +7 -0
- package/src/bitbucket-client/models/RestPerson.ts +7 -0
- package/src/bitbucket-client/models/RestProgress.ts +7 -0
- package/src/bitbucket-client/models/RestProject.ts +7 -0
- package/src/bitbucket-client/models/RestProjectSettingsRestriction.ts +7 -0
- package/src/bitbucket-client/models/RestProjectSettingsRestrictionRequest.ts +10 -0
- package/src/bitbucket-client/models/RestProperties.ts +7 -0
- package/src/bitbucket-client/models/RestPullRequest.ts +7 -0
- package/src/bitbucket-client/models/RestPullRequestActivity.ts +7 -0
- package/src/bitbucket-client/models/RestPullRequestAssignParticipantRoleRequest.ts +30 -0
- package/src/bitbucket-client/models/RestPullRequestAssignStatusRequest.ts +16 -0
- package/src/bitbucket-client/models/RestPullRequestCommitMessageTemplate.ts +7 -0
- package/src/bitbucket-client/models/RestPullRequestCondition.ts +7 -0
- package/src/bitbucket-client/models/RestPullRequestDeclineRequest.ts +9 -0
- package/src/bitbucket-client/models/RestPullRequestDeleteRequest.ts +8 -0
- package/src/bitbucket-client/models/RestPullRequestFinishReviewRequest.ts +10 -0
- package/src/bitbucket-client/models/RestPullRequestMergeConfig.ts +7 -0
- package/src/bitbucket-client/models/RestPullRequestMergeRequest.ts +12 -0
- package/src/bitbucket-client/models/RestPullRequestMergeStrategy.ts +7 -0
- package/src/bitbucket-client/models/RestPullRequestMergeability.ts +7 -0
- package/src/bitbucket-client/models/RestPullRequestParticipant.ts +7 -0
- package/src/bitbucket-client/models/RestPullRequestRebaseRequest.ts +8 -0
- package/src/bitbucket-client/models/RestPullRequestRebaseResult.ts +7 -0
- package/src/bitbucket-client/models/RestPullRequestRebaseability.ts +7 -0
- package/src/bitbucket-client/models/RestPullRequestRef.ts +7 -0
- package/src/bitbucket-client/models/RestPullRequestReopenRequest.ts +8 -0
- package/src/bitbucket-client/models/RestPullRequestSettings.ts +7 -0
- package/src/bitbucket-client/models/RestPullRequestSuggestion.ts +7 -0
- package/src/bitbucket-client/models/RestPushRefChange.ts +7 -0
- package/src/bitbucket-client/models/RestRateLimitSettings.ts +7 -0
- package/src/bitbucket-client/models/RestRawAccessToken.ts +7 -0
- package/src/bitbucket-client/models/RestRefChange.ts +7 -0
- package/src/bitbucket-client/models/RestRefMatcher.ts +7 -0
- package/src/bitbucket-client/models/RestRefMatcherType.ts +7 -0
- package/src/bitbucket-client/models/RestRefRestriction.ts +7 -0
- package/src/bitbucket-client/models/RestRefSyncQueue.ts +10 -0
- package/src/bitbucket-client/models/RestRefSyncRequest.ts +19 -0
- package/src/bitbucket-client/models/RestRefSyncStatus.ts +7 -0
- package/src/bitbucket-client/models/RestRejectedRef.ts +7 -0
- package/src/bitbucket-client/models/RestRelatedLinks.ts +7 -0
- package/src/bitbucket-client/models/RestRepositoriesExportRequest.ts +10 -0
- package/src/bitbucket-client/models/RestRepository.ts +7 -0
- package/src/bitbucket-client/models/RestRepositoryHook.ts +7 -0
- package/src/bitbucket-client/models/RestRepositoryHookVeto.ts +7 -0
- package/src/bitbucket-client/models/RestRepositoryLockOwner.ts +7 -0
- package/src/bitbucket-client/models/RestRepositoryMirrorEvent.ts +16 -0
- package/src/bitbucket-client/models/RestRepositoryPolicy.ts +7 -0
- package/src/bitbucket-client/models/RestRepositoryPullRequestSettings.ts +7 -0
- package/src/bitbucket-client/models/RestRepositoryRefChangeActivity.ts +7 -0
- package/src/bitbucket-client/models/RestRepositorySelector.ts +9 -0
- package/src/bitbucket-client/models/RestRequiredBuildCondition.ts +7 -0
- package/src/bitbucket-client/models/RestRequiredBuildConditionSetRequest.ts +31 -0
- package/src/bitbucket-client/models/RestRestrictionRequest.ts +44 -0
- package/src/bitbucket-client/models/RestReviewerGroup.ts +7 -0
- package/src/bitbucket-client/models/RestRollingUpgradeState.ts +7 -0
- package/src/bitbucket-client/models/RestScope.ts +7 -0
- package/src/bitbucket-client/models/RestScopesExample.ts +7 -0
- package/src/bitbucket-client/models/RestSecretScanningAllowlistRule.ts +7 -0
- package/src/bitbucket-client/models/RestSecretScanningAllowlistRuleSetRequest.ts +19 -0
- package/src/bitbucket-client/models/RestSecretScanningRule.ts +7 -0
- package/src/bitbucket-client/models/RestSecretScanningRuleSetRequest.ts +19 -0
- package/src/bitbucket-client/models/RestSetInsightReportRequest.ts +18 -0
- package/src/bitbucket-client/models/RestSingleAddInsightAnnotationRequest.ts +14 -0
- package/src/bitbucket-client/models/RestSshAccessKey.ts +7 -0
- package/src/bitbucket-client/models/RestSshAccessKeyLocations.ts +12 -0
- package/src/bitbucket-client/models/RestSshCredentials.ts +16 -0
- package/src/bitbucket-client/models/RestSshKey.ts +7 -0
- package/src/bitbucket-client/models/RestSshKeySettings.ts +7 -0
- package/src/bitbucket-client/models/RestSshKeyTypeRestriction.ts +7 -0
- package/src/bitbucket-client/models/RestSshSettings.ts +7 -0
- package/src/bitbucket-client/models/RestSyncProgress.ts +7 -0
- package/src/bitbucket-client/models/RestSystemSigningConfiguration.ts +7 -0
- package/src/bitbucket-client/models/RestTag.ts +7 -0
- package/src/bitbucket-client/models/RestTestResults.ts +7 -0
- package/src/bitbucket-client/models/RestTokenBucketSettings.ts +7 -0
- package/src/bitbucket-client/models/RestUpstreamServer.ts +7 -0
- package/src/bitbucket-client/models/RestUpstreamSettings.ts +7 -0
- package/src/bitbucket-client/models/RestUserDirectory.ts +7 -0
- package/src/bitbucket-client/models/RestUserRateLimitSettings.ts +7 -0
- package/src/bitbucket-client/models/RestUserRateLimitSettingsUpdateRequest.ts +12 -0
- package/src/bitbucket-client/models/RestUserReaction.ts +7 -0
- package/src/bitbucket-client/models/RestUsernamePasswordCredentials.ts +9 -0
- package/src/bitbucket-client/models/RestWebhook.ts +7 -0
- package/src/bitbucket-client/models/RestWebhookCredentials.ts +7 -0
- package/src/bitbucket-client/models/RestWebhookRequestResponse.ts +7 -0
- package/src/bitbucket-client/models/RestWebhookScope.ts +7 -0
- package/src/bitbucket-client/models/RestX509Certificate.ts +7 -0
- package/src/bitbucket-client/models/Scope.ts +16 -0
- package/src/bitbucket-client/models/SimpleSshKeyFingerprint.ts +7 -0
- package/src/bitbucket-client/models/SsoConfigEntity.ts +7 -0
- package/src/bitbucket-client/models/SsoManagementStatusDTO.ts +7 -0
- package/src/bitbucket-client/models/StatusDTO.ts +7 -0
- package/src/bitbucket-client/models/TotpCodeVerificationDTO.ts +9 -0
- package/src/bitbucket-client/models/TotpElevationRestDTO.ts +8 -0
- package/src/bitbucket-client/models/TotpRecoveryCodeAuthenticationDTO.ts +9 -0
- package/src/bitbucket-client/models/TotpRecoveryCodeDTO.ts +7 -0
- package/src/bitbucket-client/models/TotpUserEnrollmentDTO.ts +7 -0
- package/src/bitbucket-client/models/UserAndGroups.ts +9 -0
- package/src/bitbucket-client/models/UserPasswordUpdate.ts +10 -0
- package/src/bitbucket-client/models/UserPickerContext.ts +9 -0
- package/src/bitbucket-client/models/UserRename.ts +9 -0
- package/src/bitbucket-client/models/UserUpdate.ts +10 -0
- package/src/bitbucket-client/models/UserUpdateWithCredentials.ts +14 -0
- package/src/bitbucket-client/services/AuthenticationService.ts +1652 -0
- package/src/bitbucket-client/services/BuildsAndDeploymentsService.ts +849 -0
- package/src/bitbucket-client/services/CapabilitiesService.ts +38 -0
- package/src/bitbucket-client/services/DashboardService.ts +96 -0
- package/src/bitbucket-client/services/DefaultService.ts +46 -0
- package/src/bitbucket-client/services/DeprecatedService.ts +396 -0
- package/src/bitbucket-client/services/JiraIntegrationService.ts +133 -0
- package/src/bitbucket-client/services/MarkupService.ts +48 -0
- package/src/bitbucket-client/services/MirroringMirrorService.ts +421 -0
- package/src/bitbucket-client/services/MirroringUpstreamService.ts +487 -0
- package/src/bitbucket-client/services/PermissionManagementService.ts +1484 -0
- package/src/bitbucket-client/services/ProjectService.ts +2502 -0
- package/src/bitbucket-client/services/PullRequestsService.ts +2997 -0
- package/src/bitbucket-client/services/RepositoryService.ts +3944 -0
- package/src/bitbucket-client/services/SecurityService.ts +1253 -0
- package/src/bitbucket-client/services/SystemMaintenanceService.ts +2279 -0
- package/src/bitbucket-service.ts +180 -0
- package/src/index.ts +78 -0
- package/tsconfig.json +12 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/.env +0 -2
|
@@ -0,0 +1,487 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { EnrichedRepository } from '../models/EnrichedRepository.js';
|
|
6
|
+
import type { RestAnalyticsSettings } from '../models/RestAnalyticsSettings.js';
|
|
7
|
+
import type { RestApplicationUserWithPermissions } from '../models/RestApplicationUserWithPermissions.js';
|
|
8
|
+
import type { RestAuthenticationRequest } from '../models/RestAuthenticationRequest.js';
|
|
9
|
+
import type { RestMirroredRepositoryDescriptor } from '../models/RestMirroredRepositoryDescriptor.js';
|
|
10
|
+
import type { RestMirroringRequest } from '../models/RestMirroringRequest.js';
|
|
11
|
+
import type { RestMirrorServer } from '../models/RestMirrorServer.js';
|
|
12
|
+
import type { RestMirrorUpgradeRequest } from '../models/RestMirrorUpgradeRequest.js';
|
|
13
|
+
import type { RestProject } from '../models/RestProject.js';
|
|
14
|
+
import type { RestRepositoryMirrorEvent } from '../models/RestRepositoryMirrorEvent.js';
|
|
15
|
+
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
16
|
+
import { OpenAPI } from '../core/OpenAPI.js';
|
|
17
|
+
import { request as __request } from '../core/request.js';
|
|
18
|
+
export class MirroringUpstreamService {
|
|
19
|
+
/**
|
|
20
|
+
* Remove preferred mirror
|
|
21
|
+
* Removes the current user's preferred mirror
|
|
22
|
+
* @returns void
|
|
23
|
+
* @throws ApiError
|
|
24
|
+
*/
|
|
25
|
+
public static deletePreferredMirrorId(): CancelablePromise<void> {
|
|
26
|
+
return __request(OpenAPI, {
|
|
27
|
+
method: 'DELETE',
|
|
28
|
+
url: '/mirroring/latest/account/settings/preferred-mirror',
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Get preferred mirror
|
|
33
|
+
* Retrieves the current user's preferred mirror server
|
|
34
|
+
* @returns RestMirrorServer the preferred mirror server
|
|
35
|
+
* @throws ApiError
|
|
36
|
+
*/
|
|
37
|
+
public static getPreferredMirrorId(): CancelablePromise<RestMirrorServer> {
|
|
38
|
+
return __request(OpenAPI, {
|
|
39
|
+
method: 'GET',
|
|
40
|
+
url: '/mirroring/latest/account/settings/preferred-mirror',
|
|
41
|
+
errors: {
|
|
42
|
+
404: `The user's preferred mirror server could not be found.`,
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Set preferred mirror
|
|
48
|
+
* Sets the mirror specified by a mirror ID as the current user's preferred mirror
|
|
49
|
+
* @param requestBody the mirror ID
|
|
50
|
+
* @returns void
|
|
51
|
+
* @throws ApiError
|
|
52
|
+
*/
|
|
53
|
+
public static setPreferredMirrorId(
|
|
54
|
+
requestBody?: string,
|
|
55
|
+
): CancelablePromise<void> {
|
|
56
|
+
return __request(OpenAPI, {
|
|
57
|
+
method: 'POST',
|
|
58
|
+
url: '/mirroring/latest/account/settings/preferred-mirror',
|
|
59
|
+
body: requestBody,
|
|
60
|
+
mediaType: 'application/json',
|
|
61
|
+
errors: {
|
|
62
|
+
404: `The mirror could not be found.`,
|
|
63
|
+
},
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Get analytics settings from upstream
|
|
68
|
+
* Gets the analytics settings from the mirroring upstream
|
|
69
|
+
* @returns RestAnalyticsSettings The analytics settings from upstream
|
|
70
|
+
* @throws ApiError
|
|
71
|
+
*/
|
|
72
|
+
public static analyticsSettings(): CancelablePromise<RestAnalyticsSettings> {
|
|
73
|
+
return __request(OpenAPI, {
|
|
74
|
+
method: 'GET',
|
|
75
|
+
url: '/mirroring/latest/analyticsSettings',
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Authenticate on behalf of a user
|
|
80
|
+
* Authenticates on behalf of a user. Used by mirrors to check the credentials supplied to them by users. If successful a user and their effective permissions are returned as follows -
|
|
81
|
+
*
|
|
82
|
+
* * For SSH credentials - all the effective user permissions are returned.
|
|
83
|
+
* * For all other credentials - the highest global permission is returned along with highest repository permission if repository ID is also provided in the request.
|
|
84
|
+
*
|
|
85
|
+
* Currently only username/password, bearer token and SSH credentials are supported.
|
|
86
|
+
* @param requestBody
|
|
87
|
+
* @returns RestApplicationUserWithPermissions The user for the supplied credentials and their effective permissions}.
|
|
88
|
+
* @throws ApiError
|
|
89
|
+
*/
|
|
90
|
+
public static authenticate(
|
|
91
|
+
requestBody?: RestAuthenticationRequest,
|
|
92
|
+
): CancelablePromise<RestApplicationUserWithPermissions> {
|
|
93
|
+
return __request(OpenAPI, {
|
|
94
|
+
method: 'POST',
|
|
95
|
+
url: '/mirroring/latest/authenticate',
|
|
96
|
+
body: requestBody,
|
|
97
|
+
mediaType: 'application/json',
|
|
98
|
+
errors: {
|
|
99
|
+
400: `If the supplied credentials are incomplete or not understood.`,
|
|
100
|
+
401: ` The currently authenticated user is not permitted to authenticate on behalf of users or authentication with the supplied user credentials failed for some reason`,
|
|
101
|
+
},
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Get all mirrors
|
|
106
|
+
* Returns a list of mirrors
|
|
107
|
+
* @param start Start number for the page (inclusive). If not passed, first page is assumed.
|
|
108
|
+
* @param limit Number of items to return. If not passed, a page size of 25 is used.
|
|
109
|
+
* @returns any a page of mirrors
|
|
110
|
+
* @throws ApiError
|
|
111
|
+
*/
|
|
112
|
+
public static listMirrors(
|
|
113
|
+
start?: number,
|
|
114
|
+
limit?: number,
|
|
115
|
+
): CancelablePromise<{
|
|
116
|
+
isLastPage?: boolean;
|
|
117
|
+
limit?: number;
|
|
118
|
+
nextPageStart?: number;
|
|
119
|
+
size?: number;
|
|
120
|
+
start?: number;
|
|
121
|
+
values?: Array<RestMirrorServer>;
|
|
122
|
+
}> {
|
|
123
|
+
return __request(OpenAPI, {
|
|
124
|
+
method: 'GET',
|
|
125
|
+
url: '/mirroring/latest/mirrorServers',
|
|
126
|
+
query: {
|
|
127
|
+
'start': start,
|
|
128
|
+
'limit': limit,
|
|
129
|
+
},
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Delete mirror by ID
|
|
134
|
+
* Removes a mirror, disabling all access and notifications for the mirror server in question
|
|
135
|
+
* @param mirrorId the ID of the mirror to remove
|
|
136
|
+
* @returns void
|
|
137
|
+
* @throws ApiError
|
|
138
|
+
*/
|
|
139
|
+
public static remove(
|
|
140
|
+
mirrorId: string,
|
|
141
|
+
): CancelablePromise<void> {
|
|
142
|
+
return __request(OpenAPI, {
|
|
143
|
+
method: 'DELETE',
|
|
144
|
+
url: '/mirroring/latest/mirrorServers/{mirrorId}',
|
|
145
|
+
path: {
|
|
146
|
+
'mirrorId': mirrorId,
|
|
147
|
+
},
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Get mirror by ID
|
|
152
|
+
* Returns the mirror specified by a mirror ID
|
|
153
|
+
* @param mirrorId the mirror ID
|
|
154
|
+
* @returns RestMirrorServer the mirror
|
|
155
|
+
* @throws ApiError
|
|
156
|
+
*/
|
|
157
|
+
public static getMirror(
|
|
158
|
+
mirrorId: string,
|
|
159
|
+
): CancelablePromise<RestMirrorServer> {
|
|
160
|
+
return __request(OpenAPI, {
|
|
161
|
+
method: 'GET',
|
|
162
|
+
url: '/mirroring/latest/mirrorServers/{mirrorId}',
|
|
163
|
+
path: {
|
|
164
|
+
'mirrorId': mirrorId,
|
|
165
|
+
},
|
|
166
|
+
errors: {
|
|
167
|
+
404: `The mirror could not be found.`,
|
|
168
|
+
},
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Upgrade mirror server
|
|
173
|
+
* Upgrades the mirror server in question with the provided details.This endpoint can only be called by the mirror instance or system administrators<br>Since 5.8
|
|
174
|
+
* @param mirrorId the ID of the mirror to upgrade
|
|
175
|
+
* @param requestBody
|
|
176
|
+
* @returns RestMirrorServer the mirror
|
|
177
|
+
* @throws ApiError
|
|
178
|
+
*/
|
|
179
|
+
public static upgrade(
|
|
180
|
+
mirrorId: string,
|
|
181
|
+
requestBody?: RestMirrorUpgradeRequest,
|
|
182
|
+
): CancelablePromise<RestMirrorServer> {
|
|
183
|
+
return __request(OpenAPI, {
|
|
184
|
+
method: 'PUT',
|
|
185
|
+
url: '/mirroring/latest/mirrorServers/{mirrorId}',
|
|
186
|
+
path: {
|
|
187
|
+
'mirrorId': mirrorId,
|
|
188
|
+
},
|
|
189
|
+
body: requestBody,
|
|
190
|
+
mediaType: 'application/json',
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Publish RepositoryMirrorEvent
|
|
195
|
+
* Publishes a RepositoryMirrorEvent on the event queue.
|
|
196
|
+
* @param mirrorId the server id of the mirror that raised this event
|
|
197
|
+
* @param requestBody
|
|
198
|
+
* @returns void
|
|
199
|
+
* @throws ApiError
|
|
200
|
+
*/
|
|
201
|
+
public static publishEvent(
|
|
202
|
+
mirrorId: string,
|
|
203
|
+
requestBody?: RestRepositoryMirrorEvent,
|
|
204
|
+
): CancelablePromise<void> {
|
|
205
|
+
return __request(OpenAPI, {
|
|
206
|
+
method: 'POST',
|
|
207
|
+
url: '/mirroring/latest/mirrorServers/{mirrorId}/events',
|
|
208
|
+
path: {
|
|
209
|
+
'mirrorId': mirrorId,
|
|
210
|
+
},
|
|
211
|
+
body: requestBody,
|
|
212
|
+
mediaType: 'application/json',
|
|
213
|
+
errors: {
|
|
214
|
+
404: `The specified repository does not exist.`,
|
|
215
|
+
},
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Get project
|
|
220
|
+
* Returns the requested project using its primary key ID.<br> Since 6.7
|
|
221
|
+
* @param projectId the ID of the requested project
|
|
222
|
+
* @returns RestProject The project with the specified ID
|
|
223
|
+
* @throws ApiError
|
|
224
|
+
*/
|
|
225
|
+
public static getProjectById(
|
|
226
|
+
projectId: string,
|
|
227
|
+
): CancelablePromise<RestProject> {
|
|
228
|
+
return __request(OpenAPI, {
|
|
229
|
+
method: 'GET',
|
|
230
|
+
url: '/mirroring/latest/projects/{projectId}',
|
|
231
|
+
path: {
|
|
232
|
+
'projectId': projectId,
|
|
233
|
+
},
|
|
234
|
+
errors: {
|
|
235
|
+
404: `Project not found`,
|
|
236
|
+
},
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Get hashes for repositories in project
|
|
241
|
+
* Returns a page of repositories for a given project, enriched with a content hash
|
|
242
|
+
* @param projectId the id of the requested project
|
|
243
|
+
* @param includeDefaultBranch includes defaultBranchId in the response, if <code>true</code>. Default value is <code>false</code>
|
|
244
|
+
* @param start Start number for the page (inclusive). If not passed, first page is assumed.
|
|
245
|
+
* @param limit Number of items to return. If not passed, a page size of 25 is used.
|
|
246
|
+
* @returns any A page of repositories with content hashes
|
|
247
|
+
* @throws ApiError
|
|
248
|
+
*/
|
|
249
|
+
public static getAllReposForProject(
|
|
250
|
+
projectId: string,
|
|
251
|
+
includeDefaultBranch: 'true' | 'false' = 'false',
|
|
252
|
+
start?: number,
|
|
253
|
+
limit?: number,
|
|
254
|
+
): CancelablePromise<{
|
|
255
|
+
isLastPage?: boolean;
|
|
256
|
+
limit?: number;
|
|
257
|
+
nextPageStart?: number;
|
|
258
|
+
size?: number;
|
|
259
|
+
start?: number;
|
|
260
|
+
values?: Array<EnrichedRepository>;
|
|
261
|
+
}> {
|
|
262
|
+
return __request(OpenAPI, {
|
|
263
|
+
method: 'GET',
|
|
264
|
+
url: '/mirroring/latest/projects/{projectId}/repos',
|
|
265
|
+
path: {
|
|
266
|
+
'projectId': projectId,
|
|
267
|
+
},
|
|
268
|
+
query: {
|
|
269
|
+
'includeDefaultBranch': includeDefaultBranch,
|
|
270
|
+
'start': start,
|
|
271
|
+
'limit': limit,
|
|
272
|
+
},
|
|
273
|
+
errors: {
|
|
274
|
+
409: `Mirroring is not available`,
|
|
275
|
+
},
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Get content hashes for repositories
|
|
280
|
+
* Returns a page of repositories enriched with a content hash and default branch
|
|
281
|
+
* @param includeDefaultBranch includes defaultBranchId for each repository in the response, if <code>true</code>. Default value is <code>false</code>.
|
|
282
|
+
* @returns EnrichedRepository A page of repositories with content hashes and default branch
|
|
283
|
+
* @throws ApiError
|
|
284
|
+
*/
|
|
285
|
+
public static getAllContentHashes(
|
|
286
|
+
includeDefaultBranch: 'true' | 'false' = 'false',
|
|
287
|
+
): CancelablePromise<EnrichedRepository> {
|
|
288
|
+
return __request(OpenAPI, {
|
|
289
|
+
method: 'GET',
|
|
290
|
+
url: '/mirroring/latest/repos',
|
|
291
|
+
query: {
|
|
292
|
+
'includeDefaultBranch': includeDefaultBranch,
|
|
293
|
+
},
|
|
294
|
+
errors: {
|
|
295
|
+
409: `Mirroring is not available`,
|
|
296
|
+
},
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* Get content hash for a repository
|
|
301
|
+
* Returns a repository enriched with a content hash and default branch
|
|
302
|
+
* @param repoId the ID of the requested repository
|
|
303
|
+
* @param includeDefaultBranch
|
|
304
|
+
* @returns EnrichedRepository The repository with the specified repoId
|
|
305
|
+
* @throws ApiError
|
|
306
|
+
*/
|
|
307
|
+
public static getContentHashById(
|
|
308
|
+
repoId: string,
|
|
309
|
+
includeDefaultBranch: boolean = false,
|
|
310
|
+
): CancelablePromise<EnrichedRepository> {
|
|
311
|
+
return __request(OpenAPI, {
|
|
312
|
+
method: 'GET',
|
|
313
|
+
url: '/mirroring/latest/repos/{repoId}',
|
|
314
|
+
path: {
|
|
315
|
+
'repoId': repoId,
|
|
316
|
+
},
|
|
317
|
+
query: {
|
|
318
|
+
'includeDefaultBranch': includeDefaultBranch,
|
|
319
|
+
},
|
|
320
|
+
errors: {
|
|
321
|
+
404: `Repository not found`,
|
|
322
|
+
},
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* Get mirrors for repository
|
|
327
|
+
* Returns a page of mirrors for a repository. This resource will return <strong>all mirrors</strong> along with authorized links to the mirror's repository REST resource. To determine if a repository is available on the mirror, the returned URL needs to be called.
|
|
328
|
+
* @param repoId the ID of the requested repository
|
|
329
|
+
* @param preAuthorized
|
|
330
|
+
* @returns RestMirroredRepositoryDescriptor The mirrored repository descriptor
|
|
331
|
+
* @throws ApiError
|
|
332
|
+
*/
|
|
333
|
+
public static getRepositoryMirrors(
|
|
334
|
+
repoId: string,
|
|
335
|
+
preAuthorized?: boolean,
|
|
336
|
+
): CancelablePromise<RestMirroredRepositoryDescriptor> {
|
|
337
|
+
return __request(OpenAPI, {
|
|
338
|
+
method: 'GET',
|
|
339
|
+
url: '/mirroring/latest/repos/{repoId}/mirrors',
|
|
340
|
+
path: {
|
|
341
|
+
'repoId': repoId,
|
|
342
|
+
},
|
|
343
|
+
query: {
|
|
344
|
+
'preAuthorized': preAuthorized,
|
|
345
|
+
},
|
|
346
|
+
errors: {
|
|
347
|
+
409: `Mirroring is not available`,
|
|
348
|
+
},
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* Get mirroring requests
|
|
353
|
+
* Retrieves a mirroring request
|
|
354
|
+
* @param state (optional) the request state to filter on
|
|
355
|
+
* @param start Start number for the page (inclusive). If not passed, first page is assumed.
|
|
356
|
+
* @param limit Number of items to return. If not passed, a page size of 25 is used.
|
|
357
|
+
* @returns any A page of mirroring requests
|
|
358
|
+
* @throws ApiError
|
|
359
|
+
*/
|
|
360
|
+
public static listRequests(
|
|
361
|
+
state?: 'PENDING' | 'ACCEPTED' | 'REJECTED',
|
|
362
|
+
start?: number,
|
|
363
|
+
limit?: number,
|
|
364
|
+
): CancelablePromise<{
|
|
365
|
+
isLastPage?: boolean;
|
|
366
|
+
limit?: number;
|
|
367
|
+
nextPageStart?: number;
|
|
368
|
+
size?: number;
|
|
369
|
+
start?: number;
|
|
370
|
+
values?: Array<RestMirroringRequest>;
|
|
371
|
+
}> {
|
|
372
|
+
return __request(OpenAPI, {
|
|
373
|
+
method: 'GET',
|
|
374
|
+
url: '/mirroring/latest/requests',
|
|
375
|
+
query: {
|
|
376
|
+
'state': state,
|
|
377
|
+
'start': start,
|
|
378
|
+
'limit': limit,
|
|
379
|
+
},
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* Create a mirroring request
|
|
384
|
+
* Creates a new mirroring request
|
|
385
|
+
* @param requestBody
|
|
386
|
+
* @returns RestMirroringRequest The created mirroring request
|
|
387
|
+
* @throws ApiError
|
|
388
|
+
*/
|
|
389
|
+
public static register(
|
|
390
|
+
requestBody?: RestMirroringRequest,
|
|
391
|
+
): CancelablePromise<RestMirroringRequest> {
|
|
392
|
+
return __request(OpenAPI, {
|
|
393
|
+
method: 'POST',
|
|
394
|
+
url: '/mirroring/latest/requests',
|
|
395
|
+
body: requestBody,
|
|
396
|
+
mediaType: 'application/json',
|
|
397
|
+
errors: {
|
|
398
|
+
409: `The request was invalid or missing`,
|
|
399
|
+
},
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* Delete a mirroring request
|
|
404
|
+
* Deletes a mirroring request
|
|
405
|
+
* @param mirroringRequestId the ID of the mirroring request to delete
|
|
406
|
+
* @returns void
|
|
407
|
+
* @throws ApiError
|
|
408
|
+
*/
|
|
409
|
+
public static deleteMirroringRequest(
|
|
410
|
+
mirroringRequestId: string,
|
|
411
|
+
): CancelablePromise<void> {
|
|
412
|
+
return __request(OpenAPI, {
|
|
413
|
+
method: 'DELETE',
|
|
414
|
+
url: '/mirroring/latest/requests/{mirroringRequestId}',
|
|
415
|
+
path: {
|
|
416
|
+
'mirroringRequestId': mirroringRequestId,
|
|
417
|
+
},
|
|
418
|
+
errors: {
|
|
419
|
+
409: `The request could not be found`,
|
|
420
|
+
},
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* Get a mirroring request
|
|
425
|
+
* Retrieves a mirroring request
|
|
426
|
+
* @param mirroringRequestId the ID of the mirroring request to retrieve
|
|
427
|
+
* @returns RestMirroringRequest The mirroring request
|
|
428
|
+
* @throws ApiError
|
|
429
|
+
*/
|
|
430
|
+
public static getMirroringRequest(
|
|
431
|
+
mirroringRequestId: string,
|
|
432
|
+
): CancelablePromise<RestMirroringRequest> {
|
|
433
|
+
return __request(OpenAPI, {
|
|
434
|
+
method: 'GET',
|
|
435
|
+
url: '/mirroring/latest/requests/{mirroringRequestId}',
|
|
436
|
+
path: {
|
|
437
|
+
'mirroringRequestId': mirroringRequestId,
|
|
438
|
+
},
|
|
439
|
+
errors: {
|
|
440
|
+
409: `The request could not be found`,
|
|
441
|
+
},
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* Accept a mirroring request
|
|
446
|
+
* Accepts a mirroring request
|
|
447
|
+
* @param mirroringRequestId the ID of the request to accept
|
|
448
|
+
* @returns RestMirrorServer The accepted mirror server
|
|
449
|
+
* @throws ApiError
|
|
450
|
+
*/
|
|
451
|
+
public static accept(
|
|
452
|
+
mirroringRequestId: string,
|
|
453
|
+
): CancelablePromise<RestMirrorServer> {
|
|
454
|
+
return __request(OpenAPI, {
|
|
455
|
+
method: 'POST',
|
|
456
|
+
url: '/mirroring/latest/requests/{mirroringRequestId}/accept',
|
|
457
|
+
path: {
|
|
458
|
+
'mirroringRequestId': mirroringRequestId,
|
|
459
|
+
},
|
|
460
|
+
errors: {
|
|
461
|
+
409: `The request could not be found`,
|
|
462
|
+
},
|
|
463
|
+
});
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
* Reject a mirroring request
|
|
467
|
+
* Rejects a mirroring request
|
|
468
|
+
* @param mirroringRequestId the ID of the request to reject
|
|
469
|
+
* @returns RestMirrorServer The rejected mirror server
|
|
470
|
+
* @throws ApiError
|
|
471
|
+
*/
|
|
472
|
+
public static reject(
|
|
473
|
+
mirroringRequestId: string,
|
|
474
|
+
): CancelablePromise<RestMirrorServer> {
|
|
475
|
+
return __request(OpenAPI, {
|
|
476
|
+
method: 'POST',
|
|
477
|
+
url: '/mirroring/latest/requests/{mirroringRequestId}/reject',
|
|
478
|
+
path: {
|
|
479
|
+
'mirroringRequestId': mirroringRequestId,
|
|
480
|
+
},
|
|
481
|
+
errors: {
|
|
482
|
+
409: `The request could not be found`,
|
|
483
|
+
},
|
|
484
|
+
});
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
|