Package org.azd.interfaces
Interface GitDetails
- All Known Implementing Classes:
GitApi
public interface GitDetails
-
Method Summary
Modifier and TypeMethodDescriptioncreateAnnotatedTag
(String repositoryName, String tagName, String objectId, String message) createForkRepository
(String repositoryName, String projectId, String parentProjectId, String parentRepositoryId) createForkRepository
(String repositoryName, String projectId, String parentProjectId, String parentRepositoryId, String sourceBranch) createForkRepositoryWithComplete
(String repositoryName, String projectId, String parentProjectId, String parentRepositoryId, String sourceBranch, int checkTimes) createForkSyncRequest
(String repositoryName, String sourceCollectionId, String sourceProjectId, String sourceRepositoryId, Boolean includeLinks) createForkSyncRequest
(String repositoryName, String collectionId, String projectId, String repositoryId, String sourceRef, String targetRef, Boolean includeLinks) createPullRequest
(String repositoryId, String sourceRefName, String targetRefName, String title, String description, boolean isDraft) createPullRequest
(String repositoryId, String sourceRefName, String targetRefName, String title, String description, String[] reviewers) createPullRequest
(GitPullRequest gitPullRequest) createPullRequestLabel
(String repositoryName, int pullRequestId, String labelName) createPullRequestReviewer
(int pullRequestId, String repositoryId, String reviewerId, int vote, boolean isRequired) createPullRequestStatus
(int pullRequestId, String repositoryId, GitStatus gitPullRequestStatus) createPush
(String repositoryId, GitPush gitPush) createRepository
(String repositoryName, String projectId) deletePullRequestLabel
(String repositoryName, int pullRequestId, String labelName) deletePullRequestReviewer
(int pullRequestId, String repositoryId, String reviewerId) deletePullRequestStatus
(int pullRequestId, String repositoryId, int statusId) deleteRepository
(String repositoryId) deleteRepositoryFromRecycleBin
(String repositoryId) getAnnotatedTag
(String repositoryName, String objectId) getBlobContent
(String repositoryId, String sha1, boolean download, String fileName, boolean resolveLfs) getBlobContentAsStream
(String repositoryId, String sha1, boolean download, String fileName, boolean resolveLfs) getBlobContentAsZip
(String repositoryId, String sha1, boolean download, String fileName, boolean resolveLfs) getBlobsZip
(String repositoryId, String fileName, List<String> sha1) getBlobsZip
(String repositoryId, List<String> sha1) getBranches
(String repositoryName) getChanges
(String repositoryName, String commitId) getChanges
(String repositoryName, String commitId, int top, int skip) getCommits
(String repositoryName) getCommits
(String repositoryName, int top) getCommits
(String repositoryName, int top, int skip, String author, String version, GitVersionOptions versionOptions, GitVersionType versionType, boolean excludeDeletes, String fromCommitId, String toCommitId, String fromDate, String toDate, GitHistoryMode historyMode, List<String> ids, boolean includeLinks, boolean includePushData, boolean includeUserImageUrl, boolean includeWorkItems, String itemPath, boolean showOldestCommitsFirst, String user, String itemVersion, GitVersionOptions itemVersionOptions, GitVersionType itemVersionType) getCommits
(String repositoryName, List<String> ids) getCommitsBatch
(String repositoryId, GitCommitsBatch gitCommitsBatch) getForkSyncRequest
(String repositoryName, int OperationId, boolean includeLinks) getForkSyncRequests
(String repositoryName, boolean includeLinks, boolean includeAbandoned) getItems
(String repositoryName, boolean includeContentMetadata, boolean includeLinks, boolean latestProcessedChange, VersionControlRecursionType recursionType, String scopePath) getItems
(String repositoryName, boolean includeContentMetadata, boolean includeLinks, boolean latestProcessedChange, VersionControlRecursionType recursionType, String scopePath, String version, GitVersionOptions versionOptions, GitVersionType versionType) getItems
(String repositoryName, VersionControlRecursionType recursionType) getPullRequest
(String repositoryName, int pullRequestId) getPullRequest
(String repositoryName, int pullRequestId, boolean includeCommits) getPullRequest
(String repositoryName, int pullRequestId, boolean includeCommits, boolean includeWorkItemRefs) getPullRequestById
(int pullRequestId) getPullRequestLabel
(String repositoryName, int pullRequestId, String labelName) getPullRequestLabels
(String repositoryName, int pullRequestId) getPullRequestReviewer
(int pullRequestId, String repositoryId, String reviewerId) getPullRequestReviewers
(int pullRequestId, String repositoryId) getPullRequests
(String repositoryName) getPullRequests
(String repositoryName, boolean includeLinks) getPullRequests
(String repositoryName, int top) getPullRequests
(String repositoryName, int top, int skip) getPullRequests
(String repositoryName, int top, int skip, String creatorId) getPullRequests
(String repositoryName, PullRequestStatus status) getPullRequests
(String repositoryName, GitPullRequestQueryParameters gitPullRequestQueryParameters) getPullRequestsByProject
(int top) getPullRequestsByProject
(int skip, int top, String creatorId, boolean includeLinks, String repositoryId, String reviewerId, String sourceRefName, String sourceRepositoryId, PullRequestStatus status, String targetRefName) getPullRequestStatus
(int pullRequestId, String repositoryId, int statusId) getPullRequestStatuses
(int pullRequestId, String repositoryId) getPullRequestWorkItems
(int pullRequestId, String repositoryName) getPushCommits
(String repositoryName, int pushId) getPushCommits
(String repositoryName, int pushId, boolean includeLinks, int top, int skip) getRepositories
(boolean includeHidden) getRepositories
(boolean includeLinks, boolean includeAllUrls) getRepositories
(boolean includeAllUrls, boolean includeLinks, boolean includeHidden) getRepository
(String repositoryName) restoreRepositoryFromRecycleBin
(String repositoryId, boolean deleted) updateBranchLock
(String repositoryName, String branchName, boolean isLocked) updatePullRequest
(String repositoryId, int pullRequestId, Object body) updatePullRequestReviewer
(int pullRequestId, String repositoryId, String reviewerId, boolean isFlagged, boolean hasDeclined) updatePullRequestStatuses
(int pullRequestId, String repositoryId, List<JsonPatchDocument> propertiesToUpdate) updateRepository
(String repositoryId, String repositoryName, String defaultBranchName)
-
Method Details
-
createRepository
- Throws:
AzDException
-
deleteRepository
- Throws:
AzDException
-
deleteRepositoryFromRecycleBin
- Throws:
AzDException
-
getDeletedRepositories
- Throws:
AzDException
-
getRecycleBinRepositories
- Throws:
AzDException
-
getRepository
- Throws:
AzDException
-
getRepositories
- Throws:
AzDException
-
getRepositories
- Throws:
AzDException
-
getRepositories
- Throws:
AzDException
-
getRepositories
Repositories getRepositories(boolean includeAllUrls, boolean includeLinks, boolean includeHidden) throws AzDException - Throws:
AzDException
-
restoreRepositoryFromRecycleBin
GitRepository restoreRepositoryFromRecycleBin(String repositoryId, boolean deleted) throws AzDException - Throws:
AzDException
-
updateRepository
GitRepository updateRepository(String repositoryId, String repositoryName, String defaultBranchName) throws AzDException - Throws:
AzDException
-
createPullRequest
GitPullRequest createPullRequest(String repositoryId, String sourceRefName, String targetRefName, String title, String description, String[] reviewers) throws AzDException - Throws:
AzDException
-
createPullRequest
GitPullRequest createPullRequest(String repositoryId, String sourceRefName, String targetRefName, String title, String description, boolean isDraft) throws AzDException - Throws:
AzDException
-
createPullRequest
- Throws:
AzDException
-
getPullRequest
- Throws:
AzDException
-
getPullRequest
GitPullRequest getPullRequest(String repositoryName, int pullRequestId, boolean includeCommits) throws AzDException - Throws:
AzDException
-
getPullRequest
GitPullRequest getPullRequest(String repositoryName, int pullRequestId, boolean includeCommits, boolean includeWorkItemRefs) throws AzDException - Throws:
AzDException
-
getPullRequestById
- Throws:
AzDException
-
getPullRequests
- Throws:
AzDException
-
getPullRequests
- Throws:
AzDException
-
getPullRequests
- Throws:
AzDException
-
getPullRequests
PullRequests getPullRequests(String repositoryName, int top, int skip, String creatorId) throws AzDException - Throws:
AzDException
-
getPullRequests
- Throws:
AzDException
-
getPullRequests
- Throws:
AzDException
-
getPullRequests
PullRequests getPullRequests(String repositoryName, GitPullRequestQueryParameters gitPullRequestQueryParameters) throws AzDException - Throws:
AzDException
-
getPullRequestsByProject
- Throws:
AzDException
-
getPullRequestsByProject
- Throws:
AzDException
-
getPullRequestsByProject
- Throws:
AzDException
-
updatePullRequest
GitPullRequest updatePullRequest(String repositoryId, int pullRequestId, Object body) throws AzDException - Throws:
AzDException
-
getPullRequestsByProject
PullRequests getPullRequestsByProject(int skip, int top, String creatorId, boolean includeLinks, String repositoryId, String reviewerId, String sourceRefName, String sourceRepositoryId, PullRequestStatus status, String targetRefName) throws AzDException - Throws:
AzDException
-
getBranch
- Throws:
AzDException
-
getBranches
- Throws:
AzDException
-
updateBranchLock
GitRef updateBranchLock(String repositoryName, String branchName, boolean isLocked) throws AzDException - Throws:
AzDException
-
getPullRequestWorkItems
- Throws:
AzDException
-
createPullRequestLabel
WebApiTagDefinition createPullRequestLabel(String repositoryName, int pullRequestId, String labelName) throws AzDException - Throws:
AzDException
-
deletePullRequestLabel
Void deletePullRequestLabel(String repositoryName, int pullRequestId, String labelName) throws AzDException - Throws:
AzDException
-
getPullRequestLabel
WebApiTagDefinition getPullRequestLabel(String repositoryName, int pullRequestId, String labelName) throws AzDException - Throws:
AzDException
-
getPullRequestLabels
WebApiTagDefinitions getPullRequestLabels(String repositoryName, int pullRequestId) throws AzDException - Throws:
AzDException
-
createPullRequestReviewer
IdentityRefWithVote createPullRequestReviewer(int pullRequestId, String repositoryId, String reviewerId, int vote, boolean isRequired) throws AzDException - Throws:
AzDException
-
deletePullRequestReviewer
Void deletePullRequestReviewer(int pullRequestId, String repositoryId, String reviewerId) throws AzDException - Throws:
AzDException
-
getPullRequestReviewer
IdentityRefWithVote getPullRequestReviewer(int pullRequestId, String repositoryId, String reviewerId) throws AzDException - Throws:
AzDException
-
getPullRequestReviewers
PullRequestReviewers getPullRequestReviewers(int pullRequestId, String repositoryId) throws AzDException - Throws:
AzDException
-
updatePullRequestReviewer
IdentityRefWithVote updatePullRequestReviewer(int pullRequestId, String repositoryId, String reviewerId, boolean isFlagged, boolean hasDeclined) throws AzDException - Throws:
AzDException
-
createAnnotatedTag
GitAnnotatedTag createAnnotatedTag(String repositoryName, String tagName, String objectId, String message) throws AzDException - Throws:
AzDException
-
getAnnotatedTag
- Throws:
AzDException
-
getCommit
- Throws:
AzDException
-
getCommit
- Throws:
AzDException
-
getChanges
- Throws:
AzDException
-
getChanges
GitCommitChanges getChanges(String repositoryName, String commitId, int top, int skip) throws AzDException - Throws:
AzDException
-
getCommits
- Throws:
AzDException
-
getCommits
- Throws:
AzDException
-
getCommits
- Throws:
AzDException
-
getCommits
GitCommits getCommits(String repositoryName, int top, int skip, String author, String version, GitVersionOptions versionOptions, GitVersionType versionType, boolean excludeDeletes, String fromCommitId, String toCommitId, String fromDate, String toDate, GitHistoryMode historyMode, List<String> ids, boolean includeLinks, boolean includePushData, boolean includeUserImageUrl, boolean includeWorkItems, String itemPath, boolean showOldestCommitsFirst, String user, String itemVersion, GitVersionOptions itemVersionOptions, GitVersionType itemVersionType) throws AzDException - Throws:
AzDException
-
getPushCommits
- Throws:
AzDException
-
getPushCommits
GitCommits getPushCommits(String repositoryName, int pushId, boolean includeLinks, int top, int skip) throws AzDException - Throws:
AzDException
-
getCommitsBatch
GitCommitRefs getCommitsBatch(String repositoryId, GitCommitsBatch gitCommitsBatch) throws AzDException - Throws:
AzDException
-
getRefs
- Throws:
AzDException
-
getRefs
- Throws:
AzDException
-
updateRef
GitRefUpdateResult updateRef(String repositoryName, String refName, String oldObjectId, String newObjectId) throws AzDException - Throws:
AzDException
-
createTag
- Throws:
AzDException
-
deleteTag
- Throws:
AzDException
-
getBlob
- Throws:
AzDException
-
getBlob
GitBlobRef getBlob(String repositoryId, String sha1, String fileName, boolean resolveLfs) throws AzDException - Throws:
AzDException
-
getBlobContent
String getBlobContent(String repositoryId, String sha1, boolean download, String fileName, boolean resolveLfs) throws AzDException - Throws:
AzDException
-
getBlobContentAsZip
InputStream getBlobContentAsZip(String repositoryId, String sha1, boolean download, String fileName, boolean resolveLfs) throws AzDException - Throws:
AzDException
-
getBlobContentAsStream
InputStream getBlobContentAsStream(String repositoryId, String sha1, boolean download, String fileName, boolean resolveLfs) throws AzDException - Throws:
AzDException
-
getBlobsZip
- Throws:
AzDException
-
getBlobsZip
InputStream getBlobsZip(String repositoryId, String fileName, List<String> sha1) throws AzDException - Throws:
AzDException
-
getItems
- Throws:
AzDException
-
getItems
GitItems getItems(String repositoryName, VersionControlRecursionType recursionType) throws AzDException - Throws:
AzDException
-
getItems
GitItems getItems(String repositoryName, boolean includeContentMetadata, boolean includeLinks, boolean latestProcessedChange, VersionControlRecursionType recursionType, String scopePath) throws AzDException - Throws:
AzDException
-
getItems
GitItems getItems(String repositoryName, boolean includeContentMetadata, boolean includeLinks, boolean latestProcessedChange, VersionControlRecursionType recursionType, String scopePath, String version, GitVersionOptions versionOptions, GitVersionType versionType) throws AzDException - Throws:
AzDException
-
createForkSyncRequest
GitForkSyncRequest createForkSyncRequest(String repositoryName, String sourceCollectionId, String sourceProjectId, String sourceRepositoryId, Boolean includeLinks) throws AzDException - Throws:
AzDException
-
createForkSyncRequest
GitForkSyncRequest createForkSyncRequest(String repositoryName, String collectionId, String projectId, String repositoryId, String sourceRef, String targetRef, Boolean includeLinks) throws AzDException - Throws:
AzDException
-
createForkRepository
GitRepository createForkRepository(String repositoryName, String projectId, String parentProjectId, String parentRepositoryId) throws AzDException - Throws:
AzDException
-
createForkRepository
GitRepository createForkRepository(String repositoryName, String projectId, String parentProjectId, String parentRepositoryId, String sourceBranch) throws AzDException - Throws:
AzDException
-
createForkRepositoryWithComplete
GitRepository createForkRepositoryWithComplete(String repositoryName, String projectId, String parentProjectId, String parentRepositoryId, String sourceBranch, int checkTimes) throws AzDException - Throws:
AzDException
-
getForkSyncRequest
GitForkSyncRequest getForkSyncRequest(String repositoryName, int OperationId, boolean includeLinks) throws AzDException - Throws:
AzDException
-
getForkSyncRequests
GitForkSyncRequests getForkSyncRequests(String repositoryName, boolean includeLinks, boolean includeAbandoned) throws AzDException - Throws:
AzDException
-
getForks
GitRepositoryRefs getForks(String repositoryName, String collectionId, boolean includeLinks) throws AzDException - Throws:
AzDException
-
createPush
- Throws:
AzDException
-
getPush
- Throws:
AzDException
-
getPush
- Throws:
AzDException
-
getPush
- Throws:
AzDException
-
getPush
GitPush getPush(String repositoryId, int pushId, int includeCommits, boolean includeRefUpdates) throws AzDException - Throws:
AzDException
-
getPushes
- Throws:
AzDException
-
createPullRequestStatus
GitStatus createPullRequestStatus(int pullRequestId, String repositoryId, GitStatus gitPullRequestStatus) throws AzDException - Throws:
AzDException
-
deletePullRequestStatus
Void deletePullRequestStatus(int pullRequestId, String repositoryId, int statusId) throws AzDException - Throws:
AzDException
-
getPullRequestStatus
GitStatus getPullRequestStatus(int pullRequestId, String repositoryId, int statusId) throws AzDException - Throws:
AzDException
-
getPullRequestStatuses
- Throws:
AzDException
-
updatePullRequestStatuses
Void updatePullRequestStatuses(int pullRequestId, String repositoryId, List<JsonPatchDocument> propertiesToUpdate) throws AzDException - Throws:
AzDException
-