public class BranchesApi extends CrowdinApi
clientConfig, graphqlUrl, httpClient, url| Constructor and Description |
|---|
BranchesApi(Credentials credentials) |
BranchesApi(Credentials credentials,
ClientConfig clientConfig) |
| Modifier and Type | Method and Description |
|---|---|
ResponseObject<DeleteJobStatus> |
checkBranchDeletionStatus(java.lang.Long projectId,
java.lang.Long branchId,
java.lang.String jobIdentifier) |
ResponseObject<BranchCloneStatus> |
checkCloneBranchStatus(java.lang.Long projectId,
java.lang.Long branchId,
java.lang.String cloneId) |
ResponseObject<BranchMergeStatus> |
checkMergeBranchStatus(java.lang.Long projectId,
java.lang.Long branchId,
java.lang.String mergeId) |
ResponseObject<BranchCloneStatus> |
cloneBranch(java.lang.Long projectId,
java.lang.Long branchId,
CloneBranchRequest request) |
void |
deleteBranch(java.lang.Long projectId,
java.lang.Long branchId) |
ResponseObject<DeleteJobStatus> |
deleteBranch(java.lang.Long projectId,
java.lang.Long branchId,
java.lang.Boolean isAsync) |
ResponseObject<ClonedBranch> |
getClonedBranch(java.lang.Long projectId,
java.lang.Long branchId,
java.lang.String cloneId) |
ResponseObject<BranchMergeSummary> |
getMergeBranchSummary(java.lang.Long projectId,
java.lang.Long branchId,
java.lang.String mergeId) |
ResponseObject<BranchMergeStatus> |
mergeBranch(java.lang.Long projectId,
java.lang.Long branchId,
MergeBranchRequest request) |
graphql, graphqlpublic BranchesApi(Credentials credentials)
public BranchesApi(Credentials credentials, ClientConfig clientConfig)
public void deleteBranch(java.lang.Long projectId,
java.lang.Long branchId)
throws HttpException,
HttpBadRequestException
projectId - project identifierbranchId - branch identifierHttpExceptionHttpBadRequestExceptionpublic ResponseObject<DeleteJobStatus> deleteBranch(java.lang.Long projectId, java.lang.Long branchId, java.lang.Boolean isAsync) throws HttpException, HttpBadRequestException
projectId - project identifierbranchId - branch identifierisAsync - whether to delete the branch asynchronouslynull for a synchronous deletionHttpExceptionHttpBadRequestExceptionpublic ResponseObject<DeleteJobStatus> checkBranchDeletionStatus(java.lang.Long projectId, java.lang.Long branchId, java.lang.String jobIdentifier) throws HttpException, HttpBadRequestException
projectId - project identifierbranchId - branch identifierjobIdentifier - delete job identifierHttpExceptionHttpBadRequestExceptionpublic ResponseObject<BranchCloneStatus> cloneBranch(java.lang.Long projectId, java.lang.Long branchId, CloneBranchRequest request) throws HttpException, HttpBadRequestException
projectId - project identifierbranchId - branch identifierrequest - request objectHttpExceptionHttpBadRequestExceptionpublic ResponseObject<BranchCloneStatus> checkCloneBranchStatus(java.lang.Long projectId, java.lang.Long branchId, java.lang.String cloneId) throws HttpException, HttpBadRequestException
projectId - project identifierbranchId - branch identifiercloneId - clone identifierHttpExceptionHttpBadRequestExceptionpublic ResponseObject<ClonedBranch> getClonedBranch(java.lang.Long projectId, java.lang.Long branchId, java.lang.String cloneId) throws HttpException, HttpBadRequestException
projectId - project identifierbranchId - branch identifiercloneId - clone identifierHttpExceptionHttpBadRequestExceptionpublic ResponseObject<BranchMergeStatus> mergeBranch(java.lang.Long projectId, java.lang.Long branchId, MergeBranchRequest request) throws HttpException, HttpBadRequestException
projectId - project identifierbranchId - branch identifierrequest - request objectHttpExceptionHttpBadRequestExceptionpublic ResponseObject<BranchMergeStatus> checkMergeBranchStatus(java.lang.Long projectId, java.lang.Long branchId, java.lang.String mergeId) throws HttpException, HttpBadRequestException
projectId - project identifierbranchId - branch identifiermergeId - merge identifierHttpExceptionHttpBadRequestExceptionpublic ResponseObject<BranchMergeSummary> getMergeBranchSummary(java.lang.Long projectId, java.lang.Long branchId, java.lang.String mergeId) throws HttpException, HttpBadRequestException
projectId - project identifierbranchId - branch identifiermergeId - merge identifierHttpExceptionHttpBadRequestException