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<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, graphql
public 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 valueHttpException
HttpBadRequestException
public ResponseObject<Label> addLabel(java.lang.Long projectId, AddLabelRequest request) throws HttpException, HttpBadRequestException
projectId
- Project Identifierrequest
- Request objectHttpException
HttpBadRequestException
public ResponseObject<Label> getLabel(java.lang.Long projectId, java.lang.Long labelId) throws HttpException, HttpBadRequestException
projectId
- Project IdentifierlabelId
- Label IdentifierHttpException
HttpBadRequestException
public void deleteLabel(java.lang.Long projectId, java.lang.Long labelId) throws HttpException, HttpBadRequestException
projectId
- Project IdentifierlabelId
- Label IdentifierHttpException
HttpBadRequestException
public 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 objectHttpException
HttpBadRequestException
public ResponseList<SourceString> assignLabelToStrings(java.lang.Long projectId, java.lang.Long labelId, LabelToStringsRequest request) throws HttpException, HttpBadRequestException
projectId
- Project IdentifierlabelId
- Label Identifierrequest
- Request objectHttpException
HttpBadRequestException
public 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 IDsHttpException
HttpBadRequestException
public ResponseList<Screenshot> assignLabelToScreenshots(java.lang.Long projectId, java.lang.Long labelId, LabelToScreenshotsRequest request) throws HttpException, HttpBadRequestException
projectId
- Project IdentifierlabelId
- Label Identifierrequest
- Request ObjectHttpException
HttpBadRequestException
public 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 IdentifierHttpException
HttpBadRequestException