public class LabelsApi extends CrowdinApi
clientConfig, graphqlUrl, httpClient, url| Constructor and Description |
|---|
LabelsApi(Credentials credentials) |
LabelsApi(Credentials credentials,
ClientConfig clientConfig) |
| Modifier and Type | Method and Description |
|---|---|
ResponseObject<Label> |
addLabel(java.lang.Long projectId,
AddLabelRequest request) |
ResponseList<Screenshot> |
assignLabelToScreenshots(java.lang.Long projectId,
java.lang.Long labelId,
LabelToScreenshotsRequest request) |
ResponseList<SourceString> |
assignLabelToStrings(java.lang.Long projectId,
java.lang.Long labelId,
LabelToStringsRequest request) |
void |
deleteLabel(java.lang.Long projectId,
java.lang.Long labelId) |
ResponseObject<Label> |
editLabel(java.lang.Long projectId,
java.lang.Long labelId,
java.util.List<PatchRequest> request) |
ResponseObject<Label> |
getLabel(java.lang.Long projectId,
java.lang.Long labelId) |
ResponseList<Label> |
listLabels(java.lang.Long projectId,
java.lang.Integer limit,
java.lang.Integer offset,
BooleanInt isSystem) |
ResponseList<Label> |
listLabels(java.lang.Long projectId,
java.lang.Integer limit,
java.lang.Integer offset,
BooleanInt isSystem,
java.util.List<OrderByField> orderBy) |
ResponseList<Screenshot> |
unassignLabelFromScreenshots(java.lang.Long projectId,
java.lang.Long labelId,
java.util.List<java.lang.Long> screenshotIds) |
ResponseList<SourceString> |
unassignLabelFromStrings(java.lang.Long projectId,
java.lang.Long labelId,
java.util.List<java.lang.Long> stringIds) |
graphql, graphqlpublic LabelsApi(Credentials credentials)
public LabelsApi(Credentials credentials, ClientConfig clientConfig)
public ResponseList<Label> listLabels(java.lang.Long projectId, java.lang.Integer limit, java.lang.Integer offset, BooleanInt isSystem) throws HttpException, HttpBadRequestException
projectId - Project Identifierlimit - A maximum number of items to retrieve. Default: 25offset - A starting offset in the collection. Default: 0isSystem - Filter collection by isSystem valueHttpExceptionHttpBadRequestExceptionpublic ResponseList<Label> listLabels(java.lang.Long projectId, java.lang.Integer limit, java.lang.Integer offset, BooleanInt isSystem, java.util.List<OrderByField> orderBy) throws HttpException, HttpBadRequestException
projectId - Project Identifierlimit - A maximum number of items to retrieve. Default: 25offset - A starting offset in the collection. Default: 0isSystem - Filter collection by isSystem valueorderBy - list of OrderByFieldHttpExceptionHttpBadRequestExceptionpublic ResponseObject<Label> addLabel(java.lang.Long projectId, AddLabelRequest request) throws HttpException, HttpBadRequestException
projectId - Project Identifierrequest - Request objectHttpExceptionHttpBadRequestExceptionpublic ResponseObject<Label> getLabel(java.lang.Long projectId, java.lang.Long labelId) throws HttpException, HttpBadRequestException
projectId - Project IdentifierlabelId - Label IdentifierHttpExceptionHttpBadRequestExceptionpublic void deleteLabel(java.lang.Long projectId,
java.lang.Long labelId)
throws HttpException,
HttpBadRequestException
projectId - Project IdentifierlabelId - Label IdentifierHttpExceptionHttpBadRequestExceptionpublic ResponseObject<Label> editLabel(java.lang.Long projectId, java.lang.Long labelId, java.util.List<PatchRequest> request) throws HttpException, HttpBadRequestException
projectId - Project IdentifierlabelId - Label Identifierrequest - Request objectHttpExceptionHttpBadRequestExceptionpublic ResponseList<SourceString> assignLabelToStrings(java.lang.Long projectId, java.lang.Long labelId, LabelToStringsRequest request) throws HttpException, HttpBadRequestException
projectId - Project IdentifierlabelId - Label Identifierrequest - Request objectHttpExceptionHttpBadRequestExceptionpublic ResponseList<SourceString> unassignLabelFromStrings(java.lang.Long projectId, java.lang.Long labelId, java.util.List<java.lang.Long> stringIds) throws HttpException, HttpBadRequestException
projectId - Project IdentifierlabelId - Label IdentifierstringIds - List of string IDsHttpExceptionHttpBadRequestExceptionpublic ResponseList<Screenshot> assignLabelToScreenshots(java.lang.Long projectId, java.lang.Long labelId, LabelToScreenshotsRequest request) throws HttpException, HttpBadRequestException
projectId - Project IdentifierlabelId - Label Identifierrequest - Request ObjectHttpExceptionHttpBadRequestExceptionpublic ResponseList<Screenshot> unassignLabelFromScreenshots(java.lang.Long projectId, java.lang.Long labelId, java.util.List<java.lang.Long> screenshotIds) throws HttpException, HttpBadRequestException
projectId - Project IdentifierlabelId - Label IdentifierHttpExceptionHttpBadRequestException