public class SourceFilesApi extends CrowdinApi
clientConfig, graphqlUrl, httpClient, url
Constructor and Description |
---|
SourceFilesApi(Credentials credentials) |
SourceFilesApi(Credentials credentials,
ClientConfig clientConfig) |
Modifier and Type | Method and Description |
---|---|
ResponseObject<Branch> |
addBranch(java.lang.Long projectId,
AddBranchRequest request) |
ResponseObject<Directory> |
addDirectory(java.lang.Long projectId,
AddDirectoryRequest request) |
ResponseObject<? extends FileInfo> |
addFile(java.lang.Long projectId,
AddFileRequest request) |
ResponseObject<ReviewedStringsBuild> |
buildReviewedSourceFiles(java.lang.Long projectId,
BuildReviewedSourceFilesRequest request) |
ResponseObject<ReviewedStringsBuild> |
checkReviewedSourceFilesBuildStatus(java.lang.Long projectId,
java.lang.Long buildId) |
void |
deleteBranch(java.lang.Long projectId,
java.lang.Long branchId) |
void |
deleteDirectory(java.lang.Long projectId,
java.lang.Long directoryId) |
void |
deleteFile(java.lang.Long projectId,
java.lang.Long fileId) |
ResponseObject<DownloadLink> |
downloadFile(java.lang.Long projectId,
java.lang.Long fileId) |
ResponseObject<DownloadLink> |
downloadFilePreview(java.lang.Long projectId,
java.lang.Long fileId) |
ResponseObject<DownloadLink> |
downloadReviewedSourceFiles(java.lang.Long projectId,
java.lang.Long buildId) |
ResponseObject<Branch> |
editBranch(java.lang.Long projectId,
java.lang.Long branchId,
java.util.List<PatchRequest> request) |
ResponseObject<Directory> |
editDirectory(java.lang.Long projectId,
java.lang.Long directoryId,
java.util.List<PatchRequest> request) |
ResponseObject<? extends FileInfo> |
editFile(java.lang.Long projectId,
java.lang.Long fileId,
java.util.List<PatchRequest> request) |
ResponseObject<Branch> |
getBranch(java.lang.Long projectId,
java.lang.Long branchId) |
ResponseObject<Directory> |
getDirectory(java.lang.Long projectId,
java.lang.Long directoryId) |
ResponseObject<? extends FileInfo> |
getFile(java.lang.Long projectId,
java.lang.Long fileId) |
ResponseObject<FileRevision> |
getFileRevision(java.lang.Long projectId,
java.lang.Long fileId,
java.lang.Long revisionId) |
ResponseList<Branch> |
listBranches(java.lang.Long projectId,
java.lang.String name,
java.lang.Integer limit,
java.lang.Integer offset) |
ResponseList<Directory> |
listDirectories(java.lang.Long projectId,
java.lang.Long branchId,
java.lang.Long directoryId,
java.lang.String filter,
java.lang.Object recursion,
java.lang.Integer limit,
java.lang.Integer offset) |
ResponseList<FileRevision> |
listFileRevisions(java.lang.Long projectId,
java.lang.Long fileId,
java.lang.Integer limit,
java.lang.Integer offset) |
ResponseList<? extends FileInfo> |
listFiles(java.lang.Long projectId,
java.lang.Long branchId,
java.lang.Long directoryId,
java.lang.String filter,
java.lang.Object recursion,
java.lang.Integer limit,
java.lang.Integer offset) |
ResponseList<ReviewedStringsBuild> |
listReviewedSourceFilesBuilds(java.lang.Long projectId,
java.lang.Long branchId,
java.lang.Integer limit,
java.lang.Integer offset) |
ResponseObject<? extends FileInfo> |
updateOrRestoreFile(java.lang.Long projectId,
java.lang.Long fileId,
UpdateOrRestoreFileRequest request) |
graphql, graphql
public SourceFilesApi(Credentials credentials)
public SourceFilesApi(Credentials credentials, ClientConfig clientConfig)
public ResponseList<Branch> listBranches(java.lang.Long projectId, java.lang.String name, java.lang.Integer limit, java.lang.Integer offset) throws HttpException, HttpBadRequestException
projectId
- project identifiername
- filter by branch namelimit
- maximum number of items to retrieve (default 25)offset
- starting offset in the collection (default 0)HttpException
HttpBadRequestException
public ResponseObject<Branch> addBranch(java.lang.Long projectId, AddBranchRequest request) throws HttpException, HttpBadRequestException
projectId
- project identifierrequest
- request objectHttpException
HttpBadRequestException
public ResponseObject<Branch> getBranch(java.lang.Long projectId, java.lang.Long branchId) throws HttpException, HttpBadRequestException
projectId
- project identifierbranchId
- branch identifierHttpException
HttpBadRequestException
public void deleteBranch(java.lang.Long projectId, java.lang.Long branchId) throws HttpException, HttpBadRequestException
projectId
- project identifierbranchId
- branch identifierHttpException
HttpBadRequestException
public ResponseObject<Branch> editBranch(java.lang.Long projectId, java.lang.Long branchId, java.util.List<PatchRequest> request) throws HttpException, HttpBadRequestException
projectId
- project identifierbranchId
- branch identifierrequest
- request objectHttpException
HttpBadRequestException
public ResponseList<Directory> listDirectories(java.lang.Long projectId, java.lang.Long branchId, java.lang.Long directoryId, java.lang.String filter, java.lang.Object recursion, java.lang.Integer limit, java.lang.Integer offset) throws HttpException, HttpBadRequestException
projectId
- project identifierbranchId
- filter by branch iddirectoryId
- filter by directory idfilter
- filter directories by namerecursion
- use to list directories recursivelylimit
- maximum number of items to retrieve (default 25)offset
- starting offset in the collection (default 0)HttpException
HttpBadRequestException
public ResponseObject<Directory> addDirectory(java.lang.Long projectId, AddDirectoryRequest request) throws HttpException, HttpBadRequestException
projectId
- project identifierrequest
- request objectHttpException
HttpBadRequestException
public ResponseObject<Directory> getDirectory(java.lang.Long projectId, java.lang.Long directoryId) throws HttpException, HttpBadRequestException
projectId
- project identifierdirectoryId
- directory identifierHttpException
HttpBadRequestException
public void deleteDirectory(java.lang.Long projectId, java.lang.Long directoryId) throws HttpException, HttpBadRequestException
projectId
- project identifierdirectoryId
- directory identifierHttpException
HttpBadRequestException
public ResponseObject<Directory> editDirectory(java.lang.Long projectId, java.lang.Long directoryId, java.util.List<PatchRequest> request) throws HttpException, HttpBadRequestException
projectId
- project identifierdirectoryId
- directory identifierrequest
- request objectHttpException
HttpBadRequestException
public ResponseList<? extends FileInfo> listFiles(java.lang.Long projectId, java.lang.Long branchId, java.lang.Long directoryId, java.lang.String filter, java.lang.Object recursion, java.lang.Integer limit, java.lang.Integer offset) throws HttpException, HttpBadRequestException
projectId
- project identifierbranchId
- filter by branch iddirectoryId
- filter by directory idfilter
- filter files by namerecursion
- use to list directories recursivelylimit
- maximum number of items to retrieve (default 25)offset
- starting offset in the collection (default 0)HttpException
HttpBadRequestException
public ResponseObject<? extends FileInfo> addFile(java.lang.Long projectId, AddFileRequest request) throws HttpException, HttpBadRequestException
projectId
- project identifierrequest
- request objectHttpException
HttpBadRequestException
public ResponseObject<? extends FileInfo> getFile(java.lang.Long projectId, java.lang.Long fileId) throws HttpException, HttpBadRequestException
projectId
- project identifierfileId
- file identifierHttpException
HttpBadRequestException
public ResponseObject<? extends FileInfo> updateOrRestoreFile(java.lang.Long projectId, java.lang.Long fileId, UpdateOrRestoreFileRequest request) throws HttpException, HttpBadRequestException
projectId
- project identifierfileId
- file identifierrequest
- request objectHttpException
HttpBadRequestException
public void deleteFile(java.lang.Long projectId, java.lang.Long fileId) throws HttpException, HttpBadRequestException
projectId
- project identifierfileId
- file identifierHttpException
HttpBadRequestException
public ResponseObject<? extends FileInfo> editFile(java.lang.Long projectId, java.lang.Long fileId, java.util.List<PatchRequest> request) throws HttpException, HttpBadRequestException
projectId
- project identifierfileId
- file identifierrequest
- request objectHttpException
HttpBadRequestException
public ResponseObject<DownloadLink> downloadFile(java.lang.Long projectId, java.lang.Long fileId) throws HttpException, HttpBadRequestException
projectId
- project identifierfileId
- file identifierHttpException
HttpBadRequestException
public ResponseList<FileRevision> listFileRevisions(java.lang.Long projectId, java.lang.Long fileId, java.lang.Integer limit, java.lang.Integer offset) throws HttpException, HttpBadRequestException
projectId
- project identifierfileId
- file identifierlimit
- maximum number of items to retrieve (default 25)offset
- starting offset in the collection (default 0)HttpException
HttpBadRequestException
public ResponseObject<FileRevision> getFileRevision(java.lang.Long projectId, java.lang.Long fileId, java.lang.Long revisionId) throws HttpException, HttpBadRequestException
projectId
- project identifierfileId
- file identifierrevisionId
- revision identifierHttpException
HttpBadRequestException
public ResponseList<ReviewedStringsBuild> listReviewedSourceFilesBuilds(java.lang.Long projectId, java.lang.Long branchId, java.lang.Integer limit, java.lang.Integer offset) throws HttpException, HttpBadRequestException
projectId
- project identifierbranchId
- branch identifierlimit
- maximum number of items to retrieve (default 25)offset
- starting offset in the collection (default 0)HttpException
HttpBadRequestException
public ResponseObject<ReviewedStringsBuild> buildReviewedSourceFiles(java.lang.Long projectId, BuildReviewedSourceFilesRequest request)
projectId
- project identifierrequest
- request objectpublic ResponseObject<ReviewedStringsBuild> checkReviewedSourceFilesBuildStatus(java.lang.Long projectId, java.lang.Long buildId)
projectId
- project identifierbuildId
- build identifierpublic ResponseObject<DownloadLink> downloadReviewedSourceFiles(java.lang.Long projectId, java.lang.Long buildId)
projectId
- project identifierbuildId
- build identifierpublic ResponseObject<DownloadLink> downloadFilePreview(java.lang.Long projectId, java.lang.Long fileId) throws HttpException, HttpBadRequestException
projectId
- project identifierfileId
- file identifierHttpException
HttpBadRequestException