Skip to content

Commit

Permalink
Document Intelligence - Python sdk fixes (#31811)
Browse files Browse the repository at this point in the history
* python fixes

* update package version

* clean up

---------

Co-authored-by: Catalina Peralta <caperal@microsoft.com>
  • Loading branch information
catalinaperalta and cperaltah authored Dec 16, 2024
1 parent ada2aba commit 17dbd6e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions specification/ai/DocumentIntelligence/client.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -264,3 +264,4 @@ interface DocumentIntelligenceAdministrationClient {
@@clientName(AnalyzeDocumentRequest.base64Source, "bytesSource", "python");
@@clientName(ClassifyDocumentRequest.base64Source, "bytesSource", "python");
@@clientName(DocumentFieldSchema.items, "itemsSchema", "python");
@@clientName(AnalyzeFromStreamRequestParams.input, "body", "python");
12 changes: 12 additions & 0 deletions specification/ai/DocumentIntelligence/routes.tsp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import "@azure-tools/typespec-azure-core";
import "@azure-tools/typespec-client-generator-core";
import "@typespec/rest";
import "@typespec/http";
import "./models.tsp";
Expand All @@ -8,6 +9,7 @@ using Azure.Core.Traits;
using TypeSpec.Rest;
using TypeSpec.Http;
using TypeSpec.Versioning;
using Azure.ClientGenerator.Core;

namespace DocumentIntelligence;

Expand Down Expand Up @@ -260,6 +262,7 @@ interface DocumentModels {

@doc("Analyze request parameters.")
@bodyRoot
@clientName("body", "python")
analyzeRequest: AnalyzeDocumentRequest;
},
AnalyzeOperation
Expand Down Expand Up @@ -299,6 +302,7 @@ interface DocumentModels {

@doc("Analyze batch request parameters.")
@body
@clientName("body", "python")
analyzeBatchRequest: AnalyzeBatchDocumentsRequest;
},
AnalyzeBatchOperation
Expand Down Expand Up @@ -350,6 +354,7 @@ interface DocumentModels {
{
@doc("Build request parameters.")
@bodyRoot
@clientName("body", "python")
buildRequest: BuildDocumentModelRequest;
},
DocumentModelBuildOperationDetails
Expand All @@ -364,6 +369,7 @@ interface DocumentModels {
{
@doc("Compose request parameters.")
@bodyRoot
@clientName("body", "python")
composeRequest: ComposeDocumentModelRequest;
},
DocumentModelComposeOperationDetails
Expand All @@ -380,6 +386,7 @@ interface DocumentModels {
{
@doc("Authorize copy request parameters.")
@bodyRoot
@clientName("body", "python")
authorizeCopyRequest: AuthorizeCopyRequest;
},
ModelCopyAuthorization
Expand All @@ -400,6 +407,7 @@ interface DocumentModels {

@doc("Copy to request parameters.")
@bodyRoot
@clientName("body", "python")
copyToRequest: ModelCopyAuthorization;
},
DocumentModelCopyToOperationDetails
Expand Down Expand Up @@ -461,6 +469,7 @@ interface DocumentClassifiers {
{
@doc("Build request parameters.")
@bodyRoot
@clientName("body", "python")
buildRequest: BuildDocumentClassifierRequest;
},
DocumentClassifierBuildOperationDetails
Expand Down Expand Up @@ -506,6 +515,7 @@ interface DocumentClassifiers {

@doc("Classify request parameters.")
@bodyRoot
@clientName("body", "python")
classifyRequest: ClassifyDocumentRequest;
},
AnalyzeOperation
Expand Down Expand Up @@ -541,6 +551,7 @@ interface DocumentClassifiers {
{
@doc("Authorize copy request parameters.")
@body
@clientName("body", "python")
authorizeCopyRequest: AuthorizeClassifierCopyRequest;
},
ClassifierCopyAuthorization
Expand All @@ -563,6 +574,7 @@ interface DocumentClassifiers {

@doc("Copy to request parameters.")
@body
@clientName("body", "python")
copyToRequest: ClassifierCopyAuthorization;
},
DocumentClassifierCopyToOperationDetails
Expand Down
2 changes: 1 addition & 1 deletion specification/ai/DocumentIntelligence/tspconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ options:
package-pprint-name: "Azure AI Document Intelligence"
package-dir: "azure-ai-documentintelligence"
package-name: "{package-dir}"
package-version: 1.0.0b2
package-version: 1.0.0
flavor: azure
generate-test: true
generate-sample: true
Expand Down

0 comments on commit 17dbd6e

Please sign in to comment.