1
1
namespace Azure . AI . Translation . Document
2
2
{
3
+ public partial class BatchOptions : System . ClientModel . Primitives . IJsonModel < Azure . AI . Translation . Document . BatchOptions > , System . ClientModel . Primitives . IPersistableModel < Azure . AI . Translation . Document . BatchOptions >
4
+ {
5
+ public BatchOptions ( ) { }
6
+ public bool ? TranslateTextWithinImage { get { throw null ; } set { } }
7
+ protected virtual void JsonModelWriteCore ( System . Text . Json . Utf8JsonWriter writer , System . ClientModel . Primitives . ModelReaderWriterOptions options ) { }
8
+ 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 ; }
9
+ void System . ClientModel . Primitives . IJsonModel < Azure . AI . Translation . Document . BatchOptions > . Write ( System . Text . Json . Utf8JsonWriter writer , System . ClientModel . Primitives . ModelReaderWriterOptions options ) { }
10
+ 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 ; }
11
+ string System . ClientModel . Primitives . IPersistableModel < Azure . AI . Translation . Document . BatchOptions > . GetFormatFromOptions ( System . ClientModel . Primitives . ModelReaderWriterOptions options ) { throw null ; }
12
+ System . BinaryData System . ClientModel . Primitives . IPersistableModel < Azure . AI . Translation . Document . BatchOptions > . Write ( System . ClientModel . Primitives . ModelReaderWriterOptions options ) { throw null ; }
13
+ }
3
14
public partial class DocumentFilterOrder
4
15
{
5
16
public DocumentFilterOrder ( Azure . AI . Translation . Document . DocumentFilterProperty property , bool ascending = true ) { }
@@ -20,6 +31,8 @@ internal DocumentStatusResult() { }
20
31
public System . DateTimeOffset LastModified { get { throw null ; } }
21
32
public System . Uri SourceDocumentUri { get { throw null ; } }
22
33
public Azure . AI . Translation . Document . DocumentTranslationStatus Status { get { throw null ; } }
34
+ public int ? TotalImageScansFailed { get { throw null ; } }
35
+ public int ? TotalImageScansSucceeded { get { throw null ; } }
23
36
public System . Uri TranslatedDocumentUri { get { throw null ; } }
24
37
public string TranslatedToLanguageCode { get { throw null ; } }
25
38
public float TranslationProgressPercentage { get { throw null ; } }
@@ -115,11 +128,12 @@ public DocumentTranslationClient(System.Uri endpoint, Azure.Core.TokenCredential
115
128
}
116
129
public partial class DocumentTranslationClientOptions : Azure . Core . ClientOptions
117
130
{
118
- public DocumentTranslationClientOptions ( Azure . AI . Translation . Document . DocumentTranslationClientOptions . ServiceVersion version = Azure . AI . Translation . Document . DocumentTranslationClientOptions . ServiceVersion . V2024_05_01 ) { }
131
+ public DocumentTranslationClientOptions ( Azure . AI . Translation . Document . DocumentTranslationClientOptions . ServiceVersion version = Azure . AI . Translation . Document . DocumentTranslationClientOptions . ServiceVersion . V2024_11_01_Preview ) { }
119
132
public Azure . AI . Translation . Document . DocumentTranslationAudience ? Audience { get { throw null ; } set { } }
120
133
public enum ServiceVersion
121
134
{
122
135
V2024_05_01 = 1 ,
136
+ V2024_11_01_Preview = 2 ,
123
137
}
124
138
}
125
139
public partial class DocumentTranslationFileFormat : System . ClientModel . Primitives . IJsonModel < Azure . AI . Translation . Document . DocumentTranslationFileFormat > , System . ClientModel . Primitives . IPersistableModel < Azure . AI . Translation . Document . DocumentTranslationFileFormat >
@@ -275,10 +289,10 @@ public SingleDocumentTranslationClient(System.Uri endpoint, Azure.AzureKeyCreden
275
289
public SingleDocumentTranslationClient ( System . Uri endpoint , Azure . Core . TokenCredential credential ) { }
276
290
public SingleDocumentTranslationClient ( System . Uri endpoint , Azure . Core . TokenCredential credential , Azure . AI . Translation . Document . DocumentTranslationClientOptions options ) { }
277
291
public virtual Azure . Core . Pipeline . HttpPipeline Pipeline { get { throw null ; } }
278
- 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 ; }
279
- 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 ; }
280
- 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 ; }
281
- 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 ; }
292
+ 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 ; }
293
+ 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 ; }
294
+ 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 ; }
295
+ 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 ; }
282
296
}
283
297
public enum StorageInputUriKind
284
298
{
@@ -300,6 +314,7 @@ public partial class TranslationBatch : System.ClientModel.Primitives.IJsonModel
300
314
{
301
315
public TranslationBatch ( System . Collections . Generic . IEnumerable < Azure . AI . Translation . Document . DocumentTranslationInput > inputs ) { }
302
316
public System . Collections . Generic . IList < Azure . AI . Translation . Document . DocumentTranslationInput > Inputs { get { throw null ; } }
317
+ public Azure . AI . Translation . Document . BatchOptions Options { get { throw null ; } set { } }
303
318
protected virtual void JsonModelWriteCore ( System . Text . Json . Utf8JsonWriter writer , System . ClientModel . Primitives . ModelReaderWriterOptions options ) { }
304
319
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 ; }
305
320
void System . ClientModel . Primitives . IJsonModel < Azure . AI . Translation . Document . TranslationBatch > . Write ( System . Text . Json . Utf8JsonWriter writer , System . ClientModel . Primitives . ModelReaderWriterOptions options ) { }
0 commit comments