ATLAS-4785: Fix incorrect references in AtlasClientV2 label methods

This commit is contained in:
wforget 2023-08-18 12:00:31 +08:00
parent 2452b42a47
commit 949cebe70a
1 changed files with 2 additions and 2 deletions

View File

@ -588,7 +588,7 @@ public class AtlasClientV2 extends AtlasBaseClient {
public void addLabels(String typeName, Map<String, String> uniqAttributes, Set<String> labels) throws AtlasServiceException {
MultivaluedMap<String, String> queryParams = attributesToQueryParams(uniqAttributes);
callAPI(formatPathParameters(API_V2.SET_LABELS_BY_UNIQUE_ATTRIBUTE, typeName), (Class<?>) null, labels, queryParams);
callAPI(formatPathParameters(API_V2.ADD_LABELS_BY_UNIQUE_ATTRIBUTE, typeName), (Class<?>) null, labels, queryParams);
}
public void removeLabels(String entityGuid, Set<String> labels) throws AtlasServiceException {
@ -608,7 +608,7 @@ public class AtlasClientV2 extends AtlasBaseClient {
public void setLabels(String typeName, Map<String, String> uniqAttributes, Set<String> labels) throws AtlasServiceException {
MultivaluedMap<String, String> queryParams = attributesToQueryParams(uniqAttributes);
callAPI(formatPathParameters(API_V2.ADD_LABELS_BY_UNIQUE_ATTRIBUTE, typeName), (Class<?>) null, labels, queryParams);
callAPI(formatPathParameters(API_V2.SET_LABELS_BY_UNIQUE_ATTRIBUTE, typeName), (Class<?>) null, labels, queryParams);
}