-
Notifications
You must be signed in to change notification settings - Fork 2.1k
AI Face beta2 #42239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
AI Face beta2 #42239
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
c6f81d0
update commitId to spec
weidongxu-microsoft 3f5536a
empty customization java
weidongxu-microsoft dc2ad77
generate code
weidongxu-microsoft 86ab1ea
customization
weidongxu-microsoft a101737
Merge remote-tracking branch 'upstream/main' into hachiang/face-beta2
Han-msft c054c41
Regen
Han-msft 7399475
remove generated test and sample
Han-msft 0d51be0
Add face customization
Han-msft ece6d90
Add sample
Han-msft bdc4de1
Refine sample
Han-msft 18e4324
Disable test and sample generation
Han-msft d841d6d
Switch sample to token cred
Han-msft 5b1f949
Remove unused import
Han-msft 9617727
Refine administration client doc
Han-msft c220b64
Update tsp commit and changelog
Han-msft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
customization
- Loading branch information
commit 86ab1ea3fe7fe41f72f4ab0d4b7dba10ad0242be
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
.../src/main/java/com/azure/ai/vision/face/administration/FaceAdministrationAsyncClient.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
|
|
||
| package com.azure.ai.vision.face.administration; | ||
|
|
||
| import com.azure.ai.vision.face.FaceServiceVersion; | ||
| import com.azure.ai.vision.face.implementation.FaceAdministrationClientImpl; | ||
| import com.azure.core.annotation.ServiceClient; | ||
| import com.azure.core.http.HttpPipeline; | ||
| import com.azure.core.util.serializer.SerializerAdapter; | ||
|
|
||
| import java.util.Objects; | ||
|
|
||
| /** | ||
| * FaceAdministrationAsyncClient class. | ||
| */ | ||
| @ServiceClient(builder = FaceAdministrationClientBuilder.class, isAsync = true) | ||
| public final class FaceAdministrationAsyncClient { | ||
|
|
||
| private final HttpPipeline pipeline; | ||
| private final SerializerAdapter serializerAdapter; | ||
| private final String endpoint; | ||
| private final FaceServiceVersion serviceVersion; | ||
|
|
||
| FaceAdministrationAsyncClient(HttpPipeline pipeline, SerializerAdapter serializerAdapter, | ||
| String endpoint, FaceServiceVersion serviceVersion) { | ||
| this.pipeline = pipeline; | ||
| this.serializerAdapter = serializerAdapter; | ||
| this.endpoint = endpoint; | ||
| this.serviceVersion = serviceVersion; | ||
| } | ||
|
|
||
|
|
||
| /** | ||
| * Creates a new instance of LargeFaceListAsyncClient. | ||
| * | ||
| * @param largeFaceListId the ID of LargeFaceList. | ||
| * @return a new instance of LargeFaceListAsyncClient. | ||
| */ | ||
| public LargeFaceListAsyncClient getLargeFaceListAsyncClient(String largeFaceListId) { | ||
| Objects.requireNonNull(largeFaceListId, "'largeFaceListId' cannot be null."); | ||
|
|
||
| FaceAdministrationClientImpl client | ||
| = new FaceAdministrationClientImpl(this.pipeline, this.serializerAdapter, | ||
| this.endpoint, largeFaceListId, null, serviceVersion); | ||
| return new LargeFaceListAsyncClient(client.getLargeFaceLists()); | ||
| } | ||
|
|
||
| /** | ||
| * Creates a new instance of LargePersonGroupAsyncClient. | ||
| * | ||
| * @param largePersonGroupId the ID of LargePersonGroup. | ||
| * @return a new instance of LargePersonGroupAsyncClient. | ||
| */ | ||
| public LargePersonGroupAsyncClient getLargePersonGroupAsyncClient(String largePersonGroupId) { | ||
| Objects.requireNonNull(largePersonGroupId, "'largePersonGroupId' cannot be null."); | ||
|
|
||
| FaceAdministrationClientImpl client | ||
| = new FaceAdministrationClientImpl(this.pipeline, this.serializerAdapter, | ||
| this.endpoint, null, largePersonGroupId, serviceVersion); | ||
| return new LargePersonGroupAsyncClient(client.getLargePersonGroups()); | ||
| } | ||
| } |
62 changes: 62 additions & 0 deletions
62
...-face/src/main/java/com/azure/ai/vision/face/administration/FaceAdministrationClient.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
|
|
||
| package com.azure.ai.vision.face.administration; | ||
|
|
||
| import com.azure.ai.vision.face.FaceServiceVersion; | ||
| import com.azure.ai.vision.face.implementation.FaceAdministrationClientImpl; | ||
| import com.azure.core.annotation.ServiceClient; | ||
| import com.azure.core.http.HttpPipeline; | ||
| import com.azure.core.util.serializer.SerializerAdapter; | ||
|
|
||
| import java.util.Objects; | ||
|
|
||
| /** | ||
| * FaceAdministrationClient class. | ||
| */ | ||
| @ServiceClient(builder = FaceAdministrationClientBuilder.class) | ||
| public final class FaceAdministrationClient { | ||
|
|
||
| private final HttpPipeline pipeline; | ||
| private final SerializerAdapter serializerAdapter; | ||
| private final String endpoint; | ||
| private final FaceServiceVersion serviceVersion; | ||
|
|
||
| FaceAdministrationClient(HttpPipeline pipeline, SerializerAdapter serializerAdapter, | ||
| String endpoint, FaceServiceVersion serviceVersion) { | ||
| this.pipeline = pipeline; | ||
| this.serializerAdapter = serializerAdapter; | ||
| this.endpoint = endpoint; | ||
| this.serviceVersion = serviceVersion; | ||
| } | ||
|
|
||
| /** | ||
| * Creates a new instance of LargeFaceListClient. | ||
| * | ||
| * @param largeFaceListId the ID of LargeFaceList. | ||
| * @return a new instance of LargeFaceListClient. | ||
| */ | ||
| public LargeFaceListClient getLargeFaceListClient(String largeFaceListId) { | ||
| Objects.requireNonNull(largeFaceListId, "'largeFaceListId' cannot be null."); | ||
|
|
||
| FaceAdministrationClientImpl client | ||
| = new FaceAdministrationClientImpl(this.pipeline, this.serializerAdapter, | ||
| this.endpoint, largeFaceListId, null, serviceVersion); | ||
| return new LargeFaceListClient(client.getLargeFaceLists()); | ||
| } | ||
|
|
||
| /** | ||
| * Creates a new instance of LargePersonGroupClient. | ||
| * | ||
| * @param largePersonGroupId the ID of LargePersonGroup. | ||
| * @return a new instance of LargePersonGroupClient. | ||
| */ | ||
| public LargePersonGroupClient getLargePersonGroupClient(String largePersonGroupId) { | ||
| Objects.requireNonNull(largePersonGroupId, "'largePersonGroupId' cannot be null."); | ||
|
|
||
| FaceAdministrationClientImpl client | ||
| = new FaceAdministrationClientImpl(this.pipeline, this.serializerAdapter, | ||
| this.endpoint, null, largePersonGroupId, serviceVersion); | ||
| return new LargePersonGroupClient(client.getLargePersonGroups()); | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.