1
1
import "@azure-tools/typespec-azure-core" ;
2
+ import "@azure-tools/typespec-client-generator-core" ;
2
3
import "@typespec/rest" ;
3
4
import "@typespec/http" ;
4
5
import "./models.tsp" ;
@@ -8,6 +9,7 @@ using Azure.Core.Traits;
8
9
using TypeSpec .Rest ;
9
10
using TypeSpec .Http ;
10
11
using TypeSpec .Versioning ;
12
+ using Azure .ClientGenerator .Core ;
11
13
12
14
namespace DocumentIntelligence ;
13
15
@@ -260,6 +262,7 @@ interface DocumentModels {
260
262
261
263
@ doc ("Analyze request parameters." )
262
264
@ bodyRoot
265
+ @ clientName ("body" , "python" )
263
266
analyzeRequest : AnalyzeDocumentRequest ;
264
267
},
265
268
AnalyzeOperation
@@ -299,6 +302,7 @@ interface DocumentModels {
299
302
300
303
@ doc ("Analyze batch request parameters." )
301
304
@ body
305
+ @ clientName ("body" , "python" )
302
306
analyzeBatchRequest : AnalyzeBatchDocumentsRequest ;
303
307
},
304
308
AnalyzeBatchOperation
@@ -350,6 +354,7 @@ interface DocumentModels {
350
354
{
351
355
@ doc ("Build request parameters." )
352
356
@ bodyRoot
357
+ @ clientName ("body" , "python" )
353
358
buildRequest : BuildDocumentModelRequest ;
354
359
},
355
360
DocumentModelBuildOperationDetails
@@ -364,6 +369,7 @@ interface DocumentModels {
364
369
{
365
370
@ doc ("Compose request parameters." )
366
371
@ bodyRoot
372
+ @ clientName ("body" , "python" )
367
373
composeRequest : ComposeDocumentModelRequest ;
368
374
},
369
375
DocumentModelComposeOperationDetails
@@ -380,6 +386,7 @@ interface DocumentModels {
380
386
{
381
387
@ doc ("Authorize copy request parameters." )
382
388
@ bodyRoot
389
+ @ clientName ("body" , "python" )
383
390
authorizeCopyRequest : AuthorizeCopyRequest ;
384
391
},
385
392
ModelCopyAuthorization
@@ -400,6 +407,7 @@ interface DocumentModels {
400
407
401
408
@ doc ("Copy to request parameters." )
402
409
@ bodyRoot
410
+ @ clientName ("body" , "python" )
403
411
copyToRequest : ModelCopyAuthorization ;
404
412
},
405
413
DocumentModelCopyToOperationDetails
@@ -461,6 +469,7 @@ interface DocumentClassifiers {
461
469
{
462
470
@ doc ("Build request parameters." )
463
471
@ bodyRoot
472
+ @ clientName ("body" , "python" )
464
473
buildRequest : BuildDocumentClassifierRequest ;
465
474
},
466
475
DocumentClassifierBuildOperationDetails
@@ -506,6 +515,7 @@ interface DocumentClassifiers {
506
515
507
516
@ doc ("Classify request parameters." )
508
517
@ bodyRoot
518
+ @ clientName ("body" , "python" )
509
519
classifyRequest : ClassifyDocumentRequest ;
510
520
},
511
521
AnalyzeOperation
@@ -541,6 +551,7 @@ interface DocumentClassifiers {
541
551
{
542
552
@ doc ("Authorize copy request parameters." )
543
553
@ body
554
+ @ clientName ("body" , "python" )
544
555
authorizeCopyRequest : AuthorizeClassifierCopyRequest ;
545
556
},
546
557
ClassifierCopyAuthorization
@@ -563,6 +574,7 @@ interface DocumentClassifiers {
563
574
564
575
@ doc ("Copy to request parameters." )
565
576
@ body
577
+ @ clientName ("body" , "python" )
566
578
copyToRequest : ClassifierCopyAuthorization ;
567
579
},
568
580
DocumentClassifierCopyToOperationDetails
0 commit comments