From fc0be97d34c2c047ded01a4b05d508a4aff94ee9 Mon Sep 17 00:00:00 2001 From: Han Chiang Date: Wed, 28 Aug 2024 07:08:12 +0000 Subject: [PATCH] Update sample snippet --- .../samples/Sample5_LargePersonGroup.md | 2 +- .../samples/Sample5_LargePersonGroupAsync.md | 2 +- .../Azure.AI.Vision.Face/samples/Sample6_LargeFaceList.md | 2 +- .../samples/Sample6_LargeFaceListAsync.md | 2 +- .../Azure.AI.Vision.Face/tests/samples/FaceSamplesBase.cs | 8 ++++---- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sdk/face/Azure.AI.Vision.Face/samples/Sample5_LargePersonGroup.md b/sdk/face/Azure.AI.Vision.Face/samples/Sample5_LargePersonGroup.md index 173312d1436ef..af5406b66c349 100644 --- a/sdk/face/Azure.AI.Vision.Face/samples/Sample5_LargePersonGroup.md +++ b/sdk/face/Azure.AI.Vision.Face/samples/Sample5_LargePersonGroup.md @@ -11,7 +11,7 @@ To create a large person group, you'll need `LargePersonGroupClient` object. ```C# Snippet:CreateLargePersonGroupClient Uri endpoint = new Uri(""); DefaultAzureCredential credential = new DefaultAzureCredential(); -var client = new LargePersonGroupClient(endpoint, credential); +var groupClient = new LargePersonGroupClient(endpoint, credential); ``` Call `Create` to create a large person group. You need to provide the ID of the large person group you want to create with a name and optional user data. diff --git a/sdk/face/Azure.AI.Vision.Face/samples/Sample5_LargePersonGroupAsync.md b/sdk/face/Azure.AI.Vision.Face/samples/Sample5_LargePersonGroupAsync.md index fa72fb56b5e57..9c46ff70fea22 100644 --- a/sdk/face/Azure.AI.Vision.Face/samples/Sample5_LargePersonGroupAsync.md +++ b/sdk/face/Azure.AI.Vision.Face/samples/Sample5_LargePersonGroupAsync.md @@ -11,7 +11,7 @@ To create a large person group, you'll need `LargePersonGroupClient` object. ```C# Snippet:CreateLargePersonGroupClient Uri endpoint = new Uri(""); DefaultAzureCredential credential = new DefaultAzureCredential(); -var client = new LargePersonGroupClient(endpoint, credential); +var groupClient = new LargePersonGroupClient(endpoint, credential); ``` Call `CreateAsync` to create a large person group. You need to provide the ID of the large person group you want to create with a name and optional user data. diff --git a/sdk/face/Azure.AI.Vision.Face/samples/Sample6_LargeFaceList.md b/sdk/face/Azure.AI.Vision.Face/samples/Sample6_LargeFaceList.md index f79630a3e11e9..c2179d73b7b3f 100644 --- a/sdk/face/Azure.AI.Vision.Face/samples/Sample6_LargeFaceList.md +++ b/sdk/face/Azure.AI.Vision.Face/samples/Sample6_LargeFaceList.md @@ -11,7 +11,7 @@ To create a large face list, you'll need `LargeFaceListClient` object. ```C# Snippet:CreateLargeFaceListClient Uri endpoint = new Uri(""); DefaultAzureCredential credential = new DefaultAzureCredential(); -var client = new LargeFaceListClient(endpoint, credential); +var listClient = new LargeFaceListClient(endpoint, credential); ``` Call `Create` to create a large face list. You can specify the `name` and `userData` for the large face list. diff --git a/sdk/face/Azure.AI.Vision.Face/samples/Sample6_LargeFaceListAsync.md b/sdk/face/Azure.AI.Vision.Face/samples/Sample6_LargeFaceListAsync.md index 82fa66403e2ec..39f2573d0de10 100644 --- a/sdk/face/Azure.AI.Vision.Face/samples/Sample6_LargeFaceListAsync.md +++ b/sdk/face/Azure.AI.Vision.Face/samples/Sample6_LargeFaceListAsync.md @@ -11,7 +11,7 @@ To create a large face list, you'll need `LargeFaceListClient` object. ```C# Snippet:CreateLargeFaceListClient Uri endpoint = new Uri(""); DefaultAzureCredential credential = new DefaultAzureCredential(); -var client = new LargeFaceListClient(endpoint, credential); +var listClient = new LargeFaceListClient(endpoint, credential); ``` Call `CreateAsync` to create a large face list. You can specify the `name` and `userData` for the large face list. diff --git a/sdk/face/Azure.AI.Vision.Face/tests/samples/FaceSamplesBase.cs b/sdk/face/Azure.AI.Vision.Face/tests/samples/FaceSamplesBase.cs index 3c6a8f138539d..aa4029312003d 100644 --- a/sdk/face/Azure.AI.Vision.Face/tests/samples/FaceSamplesBase.cs +++ b/sdk/face/Azure.AI.Vision.Face/tests/samples/FaceSamplesBase.cs @@ -49,9 +49,9 @@ public LargePersonGroupClient CreateLargePersonGroupClient() var endpoint = TestEnvironment.GetUrlVariable("FACE_ENDPOINT"); #endif DefaultAzureCredential credential = new DefaultAzureCredential(); - var client = new LargePersonGroupClient(endpoint, credential); + var groupClient = new LargePersonGroupClient(endpoint, credential); #endregion - return client; + return groupClient; } public LargeFaceListClient CreateLargeFaceListClient() @@ -63,9 +63,9 @@ public LargeFaceListClient CreateLargeFaceListClient() var endpoint = TestEnvironment.GetUrlVariable("FACE_ENDPOINT"); #endif DefaultAzureCredential credential = new DefaultAzureCredential(); - var client = new LargeFaceListClient(endpoint, credential); + var listClient = new LargeFaceListClient(endpoint, credential); #endregion - return client; + return listClient; } public FaceClient CreateClientWithKey()