@@ -6,6 +6,17 @@ internal AzureAITranslationDocumentContext() { }
6
6
public static Azure . AI . Translation . Document . AzureAITranslationDocumentContext Default { get { throw null ; } }
7
7
protected override bool TryGetTypeBuilderCore ( System . Type type , out System . ClientModel . Primitives . ModelReaderWriterTypeBuilder builder ) { throw null ; }
8
8
}
9
+ public partial class BatchOptions : System . ClientModel . Primitives . IJsonModel < Azure . AI . Translation . Document . BatchOptions > , System . ClientModel . Primitives . IPersistableModel < Azure . AI . Translation . Document . BatchOptions >
10
+ {
11
+ public BatchOptions ( ) { }
12
+ public bool ? TranslateTextWithinImage { get { throw null ; } set { } }
13
+ protected virtual void JsonModelWriteCore ( System . Text . Json . Utf8JsonWriter writer , System . ClientModel . Primitives . ModelReaderWriterOptions options ) { }
14
+ Azure . AI . Translation . Document . BatchOptions System . ClientModel . Primitives . IJsonModel < Azure . AI . Translation . Document . BatchOptions > . Create ( ref System . Text . Json . Utf8JsonReader reader , System . ClientModel . Primitives . ModelReaderWriterOptions options ) { throw null ; }
15
+ void System . ClientModel . Primitives . IJsonModel < Azure . AI . Translation . Document . BatchOptions > . Write ( System . Text . Json . Utf8JsonWriter writer , System . ClientModel . Primitives . ModelReaderWriterOptions options ) { }
16
+ Azure . AI . Translation . Document . BatchOptions System . ClientModel . Primitives . IPersistableModel < Azure . AI . Translation . Document . BatchOptions > . Create ( System . BinaryData data , System . ClientModel . Primitives . ModelReaderWriterOptions options ) { throw null ; }
17
+ string System . ClientModel . Primitives . IPersistableModel < Azure . AI . Translation . Document . BatchOptions > . GetFormatFromOptions ( System . ClientModel . Primitives . ModelReaderWriterOptions options ) { throw null ; }
18
+ System . BinaryData System . ClientModel . Primitives . IPersistableModel < Azure . AI . Translation . Document . BatchOptions > . Write ( System . ClientModel . Primitives . ModelReaderWriterOptions options ) { throw null ; }
19
+ }
9
20
public partial class DocumentFilterOrder
10
21
{
11
22
public DocumentFilterOrder ( Azure . AI . Translation . Document . DocumentFilterProperty property , bool ascending = true ) { }
@@ -26,6 +37,8 @@ internal DocumentStatusResult() { }
26
37
public System . DateTimeOffset LastModified { get { throw null ; } }
27
38
public System . Uri SourceDocumentUri { get { throw null ; } }
28
39
public Azure . AI . Translation . Document . DocumentTranslationStatus Status { get { throw null ; } }
40
+ public int ? TotalImageScansFailed { get { throw null ; } }
41
+ public int ? TotalImageScansSucceeded { get { throw null ; } }
29
42
public System . Uri TranslatedDocumentUri { get { throw null ; } }
30
43
public string TranslatedToLanguageCode { get { throw null ; } }
31
44
public float TranslationProgressPercentage { get { throw null ; } }
@@ -121,11 +134,12 @@ public DocumentTranslationClient(System.Uri endpoint, Azure.Core.TokenCredential
121
134
}
122
135
public partial class DocumentTranslationClientOptions : Azure . Core . ClientOptions
123
136
{
124
- public DocumentTranslationClientOptions ( Azure . AI . Translation . Document . DocumentTranslationClientOptions . ServiceVersion version = Azure . AI . Translation . Document . DocumentTranslationClientOptions . ServiceVersion . V2024_05_01 ) { }
137
+ public DocumentTranslationClientOptions ( Azure . AI . Translation . Document . DocumentTranslationClientOptions . ServiceVersion version = Azure . AI . Translation . Document . DocumentTranslationClientOptions . ServiceVersion . V2024_11_01_Preview ) { }
125
138
public Azure . AI . Translation . Document . DocumentTranslationAudience ? Audience { get { throw null ; } set { } }
126
139
public enum ServiceVersion
127
140
{
128
141
V2024_05_01 = 1 ,
142
+ V2024_11_01_Preview = 2 ,
129
143
}
130
144
}
131
145
public partial class DocumentTranslationFileFormat : System . ClientModel . Primitives . IJsonModel < Azure . AI . Translation . Document . DocumentTranslationFileFormat > , System . ClientModel . Primitives . IPersistableModel < Azure . AI . Translation . Document . DocumentTranslationFileFormat >
@@ -281,10 +295,10 @@ public SingleDocumentTranslationClient(System.Uri endpoint, Azure.AzureKeyCreden
281
295
public SingleDocumentTranslationClient ( System . Uri endpoint , Azure . Core . TokenCredential credential ) { }
282
296
public SingleDocumentTranslationClient ( System . Uri endpoint , Azure . Core . TokenCredential credential , Azure . AI . Translation . Document . DocumentTranslationClientOptions options ) { }
283
297
public virtual Azure . Core . Pipeline . HttpPipeline Pipeline { get { throw null ; } }
284
- public virtual Azure . Response < System . BinaryData > Translate ( string targetLanguage , Azure . AI . Translation . Document . DocumentTranslateContent documentTranslateContent , string sourceLanguage = null , string category = null , bool ? allowFallback = default ( bool ? ) , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
285
- public virtual Azure . Response Translate ( string targetLanguage , Azure . Core . RequestContent content , string contentType , string sourceLanguage = null , string category = null , bool ? allowFallback = default ( bool ? ) , Azure . RequestContext context = null ) { throw null ; }
286
- public virtual System . Threading . Tasks . Task < Azure . Response < System . BinaryData > > TranslateAsync ( string targetLanguage , Azure . AI . Translation . Document . DocumentTranslateContent documentTranslateContent , string sourceLanguage = null , string category = null , bool ? allowFallback = default ( bool ? ) , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
287
- public virtual System . Threading . Tasks . Task < Azure . Response > TranslateAsync ( string targetLanguage , Azure . Core . RequestContent content , string contentType , string sourceLanguage = null , string category = null , bool ? allowFallback = default ( bool ? ) , Azure . RequestContext context = null ) { throw null ; }
298
+ public virtual Azure . Response < System . BinaryData > Translate ( string targetLanguage , Azure . AI . Translation . Document . DocumentTranslateContent documentTranslateContent , string sourceLanguage = null , string category = null , bool ? allowFallback = default ( bool ? ) , bool ? translateTextWithinImage = default ( bool ? ) , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
299
+ public virtual Azure . Response Translate ( string targetLanguage , Azure . Core . RequestContent content , string contentType , string sourceLanguage = null , string category = null , bool ? allowFallback = default ( bool ? ) , bool ? translateTextWithinImage = default ( bool ? ) , Azure . RequestContext context = null ) { throw null ; }
300
+ public virtual System . Threading . Tasks . Task < Azure . Response < System . BinaryData > > TranslateAsync ( string targetLanguage , Azure . AI . Translation . Document . DocumentTranslateContent documentTranslateContent , string sourceLanguage = null , string category = null , bool ? allowFallback = default ( bool ? ) , bool ? translateTextWithinImage = default ( bool ? ) , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
301
+ public virtual System . Threading . Tasks . Task < Azure . Response > TranslateAsync ( string targetLanguage , Azure . Core . RequestContent content , string contentType , string sourceLanguage = null , string category = null , bool ? allowFallback = default ( bool ? ) , bool ? translateTextWithinImage = default ( bool ? ) , Azure . RequestContext context = null ) { throw null ; }
288
302
}
289
303
public enum StorageInputUriKind
290
304
{
@@ -306,6 +320,7 @@ public partial class TranslationBatch : System.ClientModel.Primitives.IJsonModel
306
320
{
307
321
public TranslationBatch ( System . Collections . Generic . IEnumerable < Azure . AI . Translation . Document . DocumentTranslationInput > inputs ) { }
308
322
public System . Collections . Generic . IList < Azure . AI . Translation . Document . DocumentTranslationInput > Inputs { get { throw null ; } }
323
+ public Azure . AI . Translation . Document . BatchOptions Options { get { throw null ; } set { } }
309
324
protected virtual void JsonModelWriteCore ( System . Text . Json . Utf8JsonWriter writer , System . ClientModel . Primitives . ModelReaderWriterOptions options ) { }
310
325
Azure . AI . Translation . Document . TranslationBatch System . ClientModel . Primitives . IJsonModel < Azure . AI . Translation . Document . TranslationBatch > . Create ( ref System . Text . Json . Utf8JsonReader reader , System . ClientModel . Primitives . ModelReaderWriterOptions options ) { throw null ; }
311
326
void System . ClientModel . Primitives . IJsonModel < Azure . AI . Translation . Document . TranslationBatch > . Write ( System . Text . Json . Utf8JsonWriter writer , System . ClientModel . Primitives . ModelReaderWriterOptions options ) { }
0 commit comments