private void buildContext(String personGroupId, String name, String userData) { workingContext.addPayload("name", name).addPayload("userData", userData) .setPath("face/v1.0/persongroups/${personGroupId}/persons").addPathVariable("personGroupId", personGroupId) .httpMethod(HttpMethod.POST); }
private void buildContext() { workingContext.setPath("face/v1.0/facelists/${faceListId}/persistedFaces/${persistedFaceId}").addPathVariable("faceListId", faceListId) .addPathVariable("persistedFaceId", persistedFaceId) .httpMethod(HttpMethod.DELETE); }
public static void validateExclusive(List collection, String str, ParameterValidationException toThrow) { if ((Utils.isEmpty(collection) && Utils.isBlank(str)) || (Utils.isNotEmpty(collection) && Utils.isNotBlank(str))) throw toThrow; } }
private void buildContext() { workingContext.setPath("face/v1.0/identify") .httpMethod(HttpMethod.POST).addPayload("personGroupId", personGroupId).addPayload("faceIds", faceIds) .addPayload("maxNumOfCandidatesReturned", maxNumOfCandidatesReturned); }
private void buildContext() { workingContext.setPath("face/v1.0/facelists") .httpMethod(HttpMethod.GET); }
/** * Invoke the HTTP REST call. will not return a response */ public void withNoResult() { withResult(); }
/** * Invoke the HTTP REST call. * * @return The valid Result from the server */ public T withResult() { return ExponentialBackOff.execute(this::doWork); }
private void buildContext() { workingContext.addPayload("name", name).addPayload("userData", userData) .setPath("face/v1.0/persongroups/${personGroupId}").addPathVariable("personGroupId", personGroupId) .httpMethod(HttpMethod.PATCH); }
private void buildContext() { workingContext.setPath("face/v1.0/persongroups/${personGroupId}/persons/${personId}/persistedFaces/${persistedFaceId}").addPathVariable("personGroupId", personGroupId) .addPathVariable("personId", personId).addPathVariable("persistedFaceId", persistedFaceId) .httpMethod(HttpMethod.DELETE); }
private void buildContext() { workingContext.setPath("face/v1.0/verify") .httpMethod(HttpMethod.POST).addPayload("faceId1", faceId1).addPayload("faceId2", faceId2); }
private void buildContext() { workingContext.setPath("face/v1.0/persongroups") .httpMethod(HttpMethod.GET); }
private void buildContext() { workingContext.addPayload("name", name).addPayload("userData", userData) .setPath("face/v1.0/persongroups/${id}").addPathVariable("id", personGroupId) .httpMethod(HttpMethod.PUT); }
private void buildContext(String id) { workingContext.setPath("face/v1.0/persongroups/${personGroupId}/persons/${personId}") .addPathVariable("personGroupId", id).addPathVariable("personId", personId) .httpMethod(HttpMethod.DELETE); }
private void buildContext() { workingContext.addPayload("name", name).addPayload("userData", userData) .setPath("face/v1.0/facelists/${faceListId}").addPathVariable("faceListId", faceListId) .httpMethod(HttpMethod.PUT); }
private void buildContext(String id) { workingContext.setPath("face/v1.0/persongroups/${personGroupId}/persons/${personId}") .addPathVariable("personGroupId", id).addPathVariable("personId", personId) .httpMethod(HttpMethod.GET); }
private void buildContext() { workingContext.addPayload("name", name).addPayload("userData", userData) .setPath("face/v1.0/persongroups/${personGroupId}/persons/${personId}").addPathVariable("personGroupId", personGroupId) .addPathVariable("personId", personId).httpMethod(HttpMethod.PATCH); }
private void buildContext() { workingContext.setPath("face/v1.0/persongroups/${personGroupId}/persons/${personId}/persistedFaces/${persistedFaceId}").addPathVariable("personGroupId", personGroupId) .addPathVariable("personId", personId).addPathVariable("persistedFaceId", persistedFaceId) .httpMethod(HttpMethod.GET); }
private void buildContext() { workingContext.addPayload("name", name).addPayload("userData", userData) .setPath("face/v1.0/facelists/${faceListId}").addPathVariable("faceListId", faceListId) .httpMethod(HttpMethod.PATCH); }
private void buildContext(String faceListId) { workingContext.setPath("face/v1.0/facelists/${faceListId}").addPathVariable("faceListId", faceListId) .httpMethod(HttpMethod.GET); }
private void buildContext() { workingContext.addPayload("userData", userData) .setPath("face/v1.0/persongroups/${personGroupId}/persons/${personId}/persistedFaces/${persistedFaceId}") .addPathVariable("personGroupId", personGroupId) .addPathVariable("personId", personId) .addPathVariable("persistedFaceId", persistedFaceId) .httpMethod(HttpMethod.PATCH); }