Skip to content

Commit 4270ff7

Browse files
author
SDKAuto
committed
CodeGen from PR 31861 in Azure/azure-rest-api-specs
Merge 03e39aaee83eb36af93e892a0f7beda050372fa0 into 85ed8fc06e19c902c95b531cbd8a643428d5f28d
1 parent 3019474 commit 4270ff7

File tree

3 files changed

+42
-13
lines changed

3 files changed

+42
-13
lines changed

sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/Docs/DocumentIntelligenceClient.xml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ Uri endpoint = new Uri("<endpoint>");
6969
AzureKeyCredential credential = new AzureKeyCredential("<key>");
7070
DocumentIntelligenceClient client = new DocumentIntelligenceClient(endpoint, credential);
7171
72-
Operation<AnalyzeResult> operation = await client.AnalyzeDocumentAsync(WaitUntil.Completed, "prebuilt-layout");
72+
AnalyzeDocumentOptions analyzeRequest = new AnalyzeDocumentOptions();
73+
Operation<AnalyzeResult> operation = await client.AnalyzeDocumentAsync(WaitUntil.Completed, "prebuilt-layout", analyzeRequest);
7374
AnalyzeResult responseData = operation.Value;
7475
]]></code>
7576
This sample shows how to call AnalyzeDocumentAsync.
@@ -78,7 +79,8 @@ Uri endpoint = new Uri("<endpoint>");
7879
AzureKeyCredential credential = new AzureKeyCredential("<key>");
7980
DocumentIntelligenceClient client = new DocumentIntelligenceClient(endpoint, credential);
8081
81-
Operation<AnalyzeResult> operation = await client.AnalyzeDocumentAsync(WaitUntil.Completed, "customModel");
82+
AnalyzeDocumentOptions analyzeRequest = new AnalyzeDocumentOptions();
83+
Operation<AnalyzeResult> operation = await client.AnalyzeDocumentAsync(WaitUntil.Completed, "customModel", analyzeRequest);
8284
AnalyzeResult responseData = operation.Value;
8385
]]></code></example>
8486
</member>
@@ -90,7 +92,8 @@ Uri endpoint = new Uri("<endpoint>");
9092
AzureKeyCredential credential = new AzureKeyCredential("<key>");
9193
DocumentIntelligenceClient client = new DocumentIntelligenceClient(endpoint, credential);
9294
93-
Operation<AnalyzeResult> operation = client.AnalyzeDocument(WaitUntil.Completed, "prebuilt-layout");
95+
AnalyzeDocumentOptions analyzeRequest = new AnalyzeDocumentOptions();
96+
Operation<AnalyzeResult> operation = client.AnalyzeDocument(WaitUntil.Completed, "prebuilt-layout", analyzeRequest);
9497
AnalyzeResult responseData = operation.Value;
9598
]]></code>
9699
This sample shows how to call AnalyzeDocument.
@@ -99,7 +102,8 @@ Uri endpoint = new Uri("<endpoint>");
99102
AzureKeyCredential credential = new AzureKeyCredential("<key>");
100103
DocumentIntelligenceClient client = new DocumentIntelligenceClient(endpoint, credential);
101104
102-
Operation<AnalyzeResult> operation = client.AnalyzeDocument(WaitUntil.Completed, "customModel");
105+
AnalyzeDocumentOptions analyzeRequest = new AnalyzeDocumentOptions();
106+
Operation<AnalyzeResult> operation = client.AnalyzeDocument(WaitUntil.Completed, "customModel", analyzeRequest);
103107
AnalyzeResult responseData = operation.Value;
104108
]]></code></example>
105109
</member>
@@ -205,7 +209,12 @@ Uri endpoint = new Uri("<endpoint>");
205209
AzureKeyCredential credential = new AzureKeyCredential("<key>");
206210
DocumentIntelligenceClient client = new DocumentIntelligenceClient(endpoint, credential);
207211
208-
Operation<AnalyzeBatchResult> operation = await client.AnalyzeBatchDocumentsAsync(WaitUntil.Completed, "customModel");
212+
AnalyzeBatchDocumentsOptions analyzeBatchRequest = new AnalyzeBatchDocumentsOptions(new Uri("https://myStorageAccount.blob.core.windows.net/myOutputContainer?mySasToken"))
213+
{
214+
ResultPrefix = "trainingDocsResult/",
215+
OverwriteExisting = true,
216+
};
217+
Operation<AnalyzeBatchResult> operation = await client.AnalyzeBatchDocumentsAsync(WaitUntil.Completed, "customModel", analyzeBatchRequest);
209218
AnalyzeBatchResult responseData = operation.Value;
210219
]]></code></example>
211220
</member>
@@ -217,7 +226,12 @@ Uri endpoint = new Uri("<endpoint>");
217226
AzureKeyCredential credential = new AzureKeyCredential("<key>");
218227
DocumentIntelligenceClient client = new DocumentIntelligenceClient(endpoint, credential);
219228
220-
Operation<AnalyzeBatchResult> operation = client.AnalyzeBatchDocuments(WaitUntil.Completed, "customModel");
229+
AnalyzeBatchDocumentsOptions analyzeBatchRequest = new AnalyzeBatchDocumentsOptions(new Uri("https://myStorageAccount.blob.core.windows.net/myOutputContainer?mySasToken"))
230+
{
231+
ResultPrefix = "trainingDocsResult/",
232+
OverwriteExisting = true,
233+
};
234+
Operation<AnalyzeBatchResult> operation = client.AnalyzeBatchDocuments(WaitUntil.Completed, "customModel", analyzeBatchRequest);
221235
AnalyzeBatchResult responseData = operation.Value;
222236
]]></code></example>
223237
</member>

sdk/documentintelligence/Azure.AI.DocumentIntelligence/tests/Generated/Samples/Samples_DocumentIntelligenceClient.cs

Lines changed: 20 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
directory: specification/ai/DocumentIntelligence
2-
commit: 1caf268a55260f68057065bd2c37a83d2c000db5
2+
commit: d1b33701d3d8bffd84d314913e26617896ec8606
33
repo: Azure/azure-rest-api-specs
4+
additionalDirectories:

0 commit comments

Comments
 (0)