PersonGroups Interface
public interface PersonGroups
An instance of this class provides access to all the operations defined in PersonGroups.
Method Summary
Modifier and Type | Method and Description |
---|---|
PersonGroupsCreateDefinitionStages.WithPersonGroupId |
create()
Create a new person group with specified personGroupId, name and user-provided userData. |
void |
create(String personGroupId, CreatePersonGroupsOptionalParameter createOptionalParameter)
Create a new person group with specified personGroupId, name and user-provided userData. |
Observable<Void> |
createAsync(String personGroupId, CreatePersonGroupsOptionalParameter createOptionalParameter)
Create a new person group with specified personGroupId, name and user-provided userData. |
void |
delete(String personGroupId)
Delete an existing person group. Persisted face images of all people in the person group will also be deleted. |
Observable<Void> |
deleteAsync(String personGroupId)
Delete an existing person group. Persisted face images of all people in the person group will also be deleted. |
Person |
get(String personGroupId)
Retrieve the information of a person group, including its name and userData. |
Observable<Person |
getAsync(String personGroupId)
Retrieve the information of a person group, including its name and userData. |
Training |
getTrainingStatus(String personGroupId)
Retrieve the training status of a person group (completed or ongoing). |
Observable<Training |
getTrainingStatusAsync(String personGroupId)
Retrieve the training status of a person group (completed or ongoing). |
PersonGroupsListDefinitionStages.WithExecute |
list()
List person groups and their information. |
List<Person |
list(ListPersonGroupsOptionalParameter listOptionalParameter)
List person groups and their information. |
Observable<List<Person |
listAsync(ListPersonGroupsOptionalParameter listOptionalParameter)
List person groups and their information. |
void |
train(String personGroupId)
Queue a person group training task, the training task may not be started immediately. |
Observable<Void> |
trainAsync(String personGroupId)
Queue a person group training task, the training task may not be started immediately. |
PersonGroupsUpdateDefinitionStages.WithPersonGroupId |
update()
Update an existing person group's display name and userData. The properties which does not appear in request body will not be updated. |
void |
update(String personGroupId, UpdatePersonGroupsOptionalParameter updateOptionalParameter)
Update an existing person group's display name and userData. The properties which does not appear in request body will not be updated. |
Observable<Void> |
updateAsync(String personGroupId, UpdatePersonGroupsOptionalParameter updateOptionalParameter)
Update an existing person group's display name and userData. The properties which does not appear in request body will not be updated. |
Method Details
create
public PersonGroupsCreateDefinitionStages.WithPersonGroupId create()
Create a new person group with specified personGroupId, name and user-provided userData.
Returns:
create
public void create(String personGroupId, CreatePersonGroupsOptionalParameter createOptionalParameter)
Create a new person group with specified personGroupId, name and user-provided userData.
Parameters:
Throws:
createAsync
public Observable
Create a new person group with specified personGroupId, name and user-provided userData.
Parameters:
Returns:
Throws:
delete
public void delete(String personGroupId)
Delete an existing person group. Persisted face images of all people in the person group will also be deleted.
Parameters:
Throws:
deleteAsync
public Observable
Delete an existing person group. Persisted face images of all people in the person group will also be deleted.
Parameters:
Returns:
Throws:
get
public PersonGroup get(String personGroupId)
Retrieve the information of a person group, including its name and userData.
Parameters:
Returns:
Throws:
getAsync
public Observable
Retrieve the information of a person group, including its name and userData.
Parameters:
Returns:
Throws:
getTrainingStatus
public TrainingStatus getTrainingStatus(String personGroupId)
Retrieve the training status of a person group (completed or ongoing).
Parameters:
Returns:
Throws:
getTrainingStatusAsync
public Observable
Retrieve the training status of a person group (completed or ongoing).
Parameters:
Returns:
Throws:
list
public PersonGroupsListDefinitionStages.WithExecute list()
List person groups and their information.
Returns:
list
public List
List person groups and their information.
Parameters:
Returns:
Throws:
listAsync
public Observable> listAsync(ListPersonGroupsOptionalParameter listOptionalParameter)
List person groups and their information.
Parameters:
Returns:
Throws:
train
public void train(String personGroupId)
Queue a person group training task, the training task may not be started immediately.
Parameters:
Throws:
trainAsync
public Observable
Queue a person group training task, the training task may not be started immediately.
Parameters:
Returns:
Throws:
update
public PersonGroupsUpdateDefinitionStages.WithPersonGroupId update()
Update an existing person group's display name and userData. The properties which does not appear in request body will not be updated.
Returns:
update
public void update(String personGroupId, UpdatePersonGroupsOptionalParameter updateOptionalParameter)
Update an existing person group's display name and userData. The properties which does not appear in request body will not be updated.
Parameters:
Throws:
updateAsync
public Observable
Update an existing person group's display name and userData. The properties which does not appear in request body will not be updated.
Parameters:
Returns:
Throws:
Applies to
Azure SDK for Java