Skip to content

Commit 17dbd6e

Browse files
Document Intelligence - Python sdk fixes (#31811)
* python fixes * update package version * clean up --------- Co-authored-by: Catalina Peralta <[email protected]>
1 parent ada2aba commit 17dbd6e

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

specification/ai/DocumentIntelligence/client.tsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,3 +264,4 @@ interface DocumentIntelligenceAdministrationClient {
264264
@@clientName(AnalyzeDocumentRequest.base64Source, "bytesSource", "python");
265265
@@clientName(ClassifyDocumentRequest.base64Source, "bytesSource", "python");
266266
@@clientName(DocumentFieldSchema.items, "itemsSchema", "python");
267+
@@clientName(AnalyzeFromStreamRequestParams.input, "body", "python");

specification/ai/DocumentIntelligence/routes.tsp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import "@azure-tools/typespec-azure-core";
2+
import "@azure-tools/typespec-client-generator-core";
23
import "@typespec/rest";
34
import "@typespec/http";
45
import "./models.tsp";
@@ -8,6 +9,7 @@ using Azure.Core.Traits;
89
using TypeSpec.Rest;
910
using TypeSpec.Http;
1011
using TypeSpec.Versioning;
12+
using Azure.ClientGenerator.Core;
1113

1214
namespace DocumentIntelligence;
1315

@@ -260,6 +262,7 @@ interface DocumentModels {
260262

261263
@doc("Analyze request parameters.")
262264
@bodyRoot
265+
@clientName("body", "python")
263266
analyzeRequest: AnalyzeDocumentRequest;
264267
},
265268
AnalyzeOperation
@@ -299,6 +302,7 @@ interface DocumentModels {
299302

300303
@doc("Analyze batch request parameters.")
301304
@body
305+
@clientName("body", "python")
302306
analyzeBatchRequest: AnalyzeBatchDocumentsRequest;
303307
},
304308
AnalyzeBatchOperation
@@ -350,6 +354,7 @@ interface DocumentModels {
350354
{
351355
@doc("Build request parameters.")
352356
@bodyRoot
357+
@clientName("body", "python")
353358
buildRequest: BuildDocumentModelRequest;
354359
},
355360
DocumentModelBuildOperationDetails
@@ -364,6 +369,7 @@ interface DocumentModels {
364369
{
365370
@doc("Compose request parameters.")
366371
@bodyRoot
372+
@clientName("body", "python")
367373
composeRequest: ComposeDocumentModelRequest;
368374
},
369375
DocumentModelComposeOperationDetails
@@ -380,6 +386,7 @@ interface DocumentModels {
380386
{
381387
@doc("Authorize copy request parameters.")
382388
@bodyRoot
389+
@clientName("body", "python")
383390
authorizeCopyRequest: AuthorizeCopyRequest;
384391
},
385392
ModelCopyAuthorization
@@ -400,6 +407,7 @@ interface DocumentModels {
400407

401408
@doc("Copy to request parameters.")
402409
@bodyRoot
410+
@clientName("body", "python")
403411
copyToRequest: ModelCopyAuthorization;
404412
},
405413
DocumentModelCopyToOperationDetails
@@ -461,6 +469,7 @@ interface DocumentClassifiers {
461469
{
462470
@doc("Build request parameters.")
463471
@bodyRoot
472+
@clientName("body", "python")
464473
buildRequest: BuildDocumentClassifierRequest;
465474
},
466475
DocumentClassifierBuildOperationDetails
@@ -506,6 +515,7 @@ interface DocumentClassifiers {
506515

507516
@doc("Classify request parameters.")
508517
@bodyRoot
518+
@clientName("body", "python")
509519
classifyRequest: ClassifyDocumentRequest;
510520
},
511521
AnalyzeOperation
@@ -541,6 +551,7 @@ interface DocumentClassifiers {
541551
{
542552
@doc("Authorize copy request parameters.")
543553
@body
554+
@clientName("body", "python")
544555
authorizeCopyRequest: AuthorizeClassifierCopyRequest;
545556
},
546557
ClassifierCopyAuthorization
@@ -563,6 +574,7 @@ interface DocumentClassifiers {
563574

564575
@doc("Copy to request parameters.")
565576
@body
577+
@clientName("body", "python")
566578
copyToRequest: ClassifierCopyAuthorization;
567579
},
568580
DocumentClassifierCopyToOperationDetails

specification/ai/DocumentIntelligence/tspconfig.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ options:
2121
package-pprint-name: "Azure AI Document Intelligence"
2222
package-dir: "azure-ai-documentintelligence"
2323
package-name: "{package-dir}"
24-
package-version: 1.0.0b2
24+
package-version: 1.0.0
2525
flavor: azure
2626
generate-test: true
2727
generate-sample: true

0 commit comments

Comments
 (0)