11namespace Azure . AI . Translation . Document
22{
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+ }
314 public partial class DocumentFilterOrder
415 {
516 public DocumentFilterOrder ( Azure . AI . Translation . Document . DocumentFilterProperty property , bool ascending = true ) { }
@@ -20,6 +31,8 @@ internal DocumentStatusResult() { }
2031 public System . DateTimeOffset LastModified { get { throw null ; } }
2132 public System . Uri SourceDocumentUri { get { throw null ; } }
2233 public Azure . AI . Translation . Document . DocumentTranslationStatus Status { get { throw null ; } }
34+ public int ? TotalImageScansFailed { get { throw null ; } }
35+ public int ? TotalImageScansSucceeded { get { throw null ; } }
2336 public System . Uri TranslatedDocumentUri { get { throw null ; } }
2437 public string TranslatedToLanguageCode { get { throw null ; } }
2538 public float TranslationProgressPercentage { get { throw null ; } }
@@ -115,11 +128,12 @@ public DocumentTranslationClient(System.Uri endpoint, Azure.Core.TokenCredential
115128 }
116129 public partial class DocumentTranslationClientOptions : Azure . Core . ClientOptions
117130 {
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 ) { }
119132 public Azure . AI . Translation . Document . DocumentTranslationAudience ? Audience { get { throw null ; } set { } }
120133 public enum ServiceVersion
121134 {
122135 V2024_05_01 = 1 ,
136+ V2024_11_01_Preview = 2 ,
123137 }
124138 }
125139 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
275289 public SingleDocumentTranslationClient ( System . Uri endpoint , Azure . Core . TokenCredential credential ) { }
276290 public SingleDocumentTranslationClient ( System . Uri endpoint , Azure . Core . TokenCredential credential , Azure . AI . Translation . Document . DocumentTranslationClientOptions options ) { }
277291 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 ; }
282296 }
283297 public enum StorageInputUriKind
284298 {
@@ -300,6 +314,7 @@ public partial class TranslationBatch : System.ClientModel.Primitives.IJsonModel
300314 {
301315 public TranslationBatch ( System . Collections . Generic . IEnumerable < Azure . AI . Translation . Document . DocumentTranslationInput > inputs ) { }
302316 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 { } }
303318 protected virtual void JsonModelWriteCore ( System . Text . Json . Utf8JsonWriter writer , System . ClientModel . Primitives . ModelReaderWriterOptions options ) { }
304319 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 ; }
305320 void System . ClientModel . Primitives . IJsonModel < Azure . AI . Translation . Document . TranslationBatch > . Write ( System . Text . Json . Utf8JsonWriter writer , System . ClientModel . Primitives . ModelReaderWriterOptions options ) { }
0 commit comments