Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DI] Add python customizations #31645

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion specification/ai/DocumentIntelligence/client.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ import "./main.tsp";

using Azure.ClientGenerator.Core;
using DocumentIntelligence;
using Azure.Core;
using Azure.Core.Traits;
using TypeSpec.Rest;
using TypeSpec.Http;
using TypeSpec.Versioning;

@TypeSpec.Versioning.useDependency(Azure.Core.Versions.v1_0_Preview_2)
@TypeSpec.Versioning.useDependency(DocumentIntelligence.Versions.v2024_11_30)
Expand Down Expand Up @@ -46,7 +51,20 @@ interface DocumentIntelligenceAdministrationClient {
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops"
composeModel is DocumentModels.composeModel;
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops"
authorizeModelCopy is DocumentModels.authorizeModelCopy;
@doc("""
Generates authorization to copy a document model to this location with
specified modelId and optional description.
""")
@route("/documentModels:authorizeCopy")
@post
authorizeModelCopy is DocumentIntelligenceOperation<
{
@doc("Authorize copy request parameters.")
@bodyRoot
body: AuthorizeCopyRequest;
},
ModelCopyAuthorization
>;
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops"
copyModelTo is DocumentModels.copyModelTo;
getModel is DocumentModels.getModel;
Expand Down Expand Up @@ -181,3 +199,4 @@ interface DocumentIntelligenceAdministrationClient {

@@clientName(AnalyzeDocumentRequest.base64Source, "bytesSource", "python");
@@clientName(ClassifyDocumentRequest.base64Source, "bytesSource", "python");
@@clientName(DocumentFieldSchema.items, "itemsSchema", "python");