Skip to content

Commit

Permalink
CodeGen from PR 29723 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge b8ec3841224e5a9a27c128e588b1c387baef6a99 into cbbe228fd422db02b65e2748f83df5f2bcad7581
  • Loading branch information
SDKAuto committed Jul 9, 2024
1 parent 698eb62 commit 4c9a761
Show file tree
Hide file tree
Showing 8 changed files with 974 additions and 58 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1483,8 +1483,8 @@
},
{
"$id": "198",
"Name": "NotificationContent",
"NameInRequest": "NotificationContent",
"Name": "notificationContent",
"NameInRequest": "body",
"Description": "Details of the message to send.",
"Type": {
"$ref": "38"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
commit: 44cbf51b9eee8a2dbf55ced61a61032aaed0148b
directory: specification/communication/Communication.Messages
additionalDirectories: []
repo: Azure/azure-rest-api-specs
commit: f655560b5ada9cf73566f2ad0e63e129c8e55892
repo: Azure/azure-rest-api-specs
additionalDirectories:

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@ Uri endpoint = new Uri("<https://my-service.azure.com>");
AzureKeyCredential credential = new AzureKeyCredential("<key>");
FaceSessionClient client = new FaceSessionClient(endpoint, credential);
CreateLivenessSessionContent createLivenessSessionContent = new CreateLivenessSessionContent(LivenessOperationMode.Passive);
Response<CreateLivenessSessionResult> response = await client.CreateLivenessSessionAsync(createLivenessSessionContent);
CreateLivenessSessionContent body = new CreateLivenessSessionContent(LivenessOperationMode.Passive);
Response<CreateLivenessSessionResult> response = await client.CreateLivenessSessionAsync(body);
]]></code>
This sample shows how to call CreateLivenessSessionAsync with all parameters.
<code><![CDATA[
Uri endpoint = new Uri("<https://my-service.azure.com>");
AzureKeyCredential credential = new AzureKeyCredential("<key>");
FaceSessionClient client = new FaceSessionClient(endpoint, credential);
CreateLivenessSessionContent createLivenessSessionContent = new CreateLivenessSessionContent(LivenessOperationMode.Passive)
CreateLivenessSessionContent body = new CreateLivenessSessionContent(LivenessOperationMode.Passive)
{
SendResultsToClient = true,
DeviceCorrelationIdSetInClient = true,
DeviceCorrelationId = "<deviceCorrelationId>",
AuthTokenTimeToLiveInSeconds = 1234,
};
Response<CreateLivenessSessionResult> response = await client.CreateLivenessSessionAsync(createLivenessSessionContent);
Response<CreateLivenessSessionResult> response = await client.CreateLivenessSessionAsync(body);
]]></code></example>
</member>
<member name="CreateLivenessSession(CreateLivenessSessionContent,CancellationToken)">
Expand All @@ -36,23 +36,23 @@ Uri endpoint = new Uri("<https://my-service.azure.com>");
AzureKeyCredential credential = new AzureKeyCredential("<key>");
FaceSessionClient client = new FaceSessionClient(endpoint, credential);
CreateLivenessSessionContent createLivenessSessionContent = new CreateLivenessSessionContent(LivenessOperationMode.Passive);
Response<CreateLivenessSessionResult> response = client.CreateLivenessSession(createLivenessSessionContent);
CreateLivenessSessionContent body = new CreateLivenessSessionContent(LivenessOperationMode.Passive);
Response<CreateLivenessSessionResult> response = client.CreateLivenessSession(body);
]]></code>
This sample shows how to call CreateLivenessSession with all parameters.
<code><![CDATA[
Uri endpoint = new Uri("<https://my-service.azure.com>");
AzureKeyCredential credential = new AzureKeyCredential("<key>");
FaceSessionClient client = new FaceSessionClient(endpoint, credential);
CreateLivenessSessionContent createLivenessSessionContent = new CreateLivenessSessionContent(LivenessOperationMode.Passive)
CreateLivenessSessionContent body = new CreateLivenessSessionContent(LivenessOperationMode.Passive)
{
SendResultsToClient = true,
DeviceCorrelationIdSetInClient = true,
DeviceCorrelationId = "<deviceCorrelationId>",
AuthTokenTimeToLiveInSeconds = 1234,
};
Response<CreateLivenessSessionResult> response = client.CreateLivenessSession(createLivenessSessionContent);
Response<CreateLivenessSessionResult> response = client.CreateLivenessSession(body);
]]></code></example>
</member>
<member name="CreateLivenessSessionAsync(RequestContent,RequestContext)">
Expand Down
8 changes: 4 additions & 4 deletions sdk/face/Azure.AI.Vision.Face/src/Generated/FaceClient.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4c9a761

Please sign in to comment.