Content-Length: 857364 | pFad | http://github.com/azure-sdk/azure-sdk-for-net/commit/8f7cd88ffb07b73770a32e07d583272793b13c58

14 CodeGen from PR 34547 in Azure/azure-rest-api-specs · azure-sdk/azure-sdk-for-net@8f7cd88 · GitHub
Skip to content

Commit 8f7cd88

Browse files
author
SDKAuto
committed
CodeGen from PR 34547 in Azure/azure-rest-api-specs
Merge f28c3d3f943a3efce8d96f00d1383186f072a8a4 into 9f69db7532b6706baedc004f2eda762196a3e1eb
1 parent f64182c commit 8f7cd88

File tree

55 files changed

+1837
-2662
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+1837
-2662
lines changed

sdk/translation/Azure.AI.Translation.Document/api/Azure.AI.Translation.Document.net8.0.cs

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ internal AzureAITranslationDocumentContext() { }
66
public static Azure.AI.Translation.Document.AzureAITranslationDocumentContext Default { get { throw null; } }
77
protected override bool TryGetTypeBuilderCore(System.Type type, out System.ClientModel.Primitives.ModelReaderWriterTypeBuilder builder) { throw null; }
88
}
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+
}
920
public partial class DocumentFilterOrder
1021
{
1122
public DocumentFilterOrder(Azure.AI.Translation.Document.DocumentFilterProperty property, bool ascending = true) { }
@@ -26,6 +37,8 @@ internal DocumentStatusResult() { }
2637
public System.DateTimeOffset LastModified { get { throw null; } }
2738
public System.Uri SourceDocumentUri { get { throw null; } }
2839
public Azure.AI.Translation.Document.DocumentTranslationStatus Status { get { throw null; } }
40+
public int? TotalImageScansFailed { get { throw null; } }
41+
public int? TotalImageScansSucceeded { get { throw null; } }
2942
public System.Uri TranslatedDocumentUri { get { throw null; } }
3043
public string TranslatedToLanguageCode { get { throw null; } }
3144
public float TranslationProgressPercentage { get { throw null; } }
@@ -121,11 +134,12 @@ public DocumentTranslationClient(System.Uri endpoint, Azure.Core.TokenCredential
121134
}
122135
public partial class DocumentTranslationClientOptions : Azure.Core.ClientOptions
123136
{
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) { }
125138
public Azure.AI.Translation.Document.DocumentTranslationAudience? Audience { get { throw null; } set { } }
126139
public enum ServiceVersion
127140
{
128141
V2024_05_01 = 1,
142+
V2024_11_01_Preview = 2,
129143
}
130144
}
131145
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
281295
public SingleDocumentTranslationClient(System.Uri endpoint, Azure.Core.TokenCredential credential) { }
282296
public SingleDocumentTranslationClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.AI.Translation.Document.DocumentTranslationClientOptions options) { }
283297
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; }
288302
}
289303
public enum StorageInputUriKind
290304
{
@@ -306,6 +320,7 @@ public partial class TranslationBatch : System.ClientModel.Primitives.IJsonModel
306320
{
307321
public TranslationBatch(System.Collections.Generic.IEnumerable<Azure.AI.Translation.Document.DocumentTranslationInput> inputs) { }
308322
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 { } }
309324
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
310325
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; }
311326
void System.ClientModel.Primitives.IJsonModel<Azure.AI.Translation.Document.TranslationBatch>.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }

sdk/translation/Azure.AI.Translation.Document/api/Azure.AI.Translation.Document.netstandard2.0.cs

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ internal AzureAITranslationDocumentContext() { }
66
public static Azure.AI.Translation.Document.AzureAITranslationDocumentContext Default { get { throw null; } }
77
protected override bool TryGetTypeBuilderCore(System.Type type, out System.ClientModel.Primitives.ModelReaderWriterTypeBuilder builder) { throw null; }
88
}
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+
}
920
public partial class DocumentFilterOrder
1021
{
1122
public DocumentFilterOrder(Azure.AI.Translation.Document.DocumentFilterProperty property, bool ascending = true) { }
@@ -26,6 +37,8 @@ internal DocumentStatusResult() { }
2637
public System.DateTimeOffset LastModified { get { throw null; } }
2738
public System.Uri SourceDocumentUri { get { throw null; } }
2839
public Azure.AI.Translation.Document.DocumentTranslationStatus Status { get { throw null; } }
40+
public int? TotalImageScansFailed { get { throw null; } }
41+
public int? TotalImageScansSucceeded { get { throw null; } }
2942
public System.Uri TranslatedDocumentUri { get { throw null; } }
3043
public string TranslatedToLanguageCode { get { throw null; } }
3144
public float TranslationProgressPercentage { get { throw null; } }
@@ -121,11 +134,12 @@ public DocumentTranslationClient(System.Uri endpoint, Azure.Core.TokenCredential
121134
}
122135
public partial class DocumentTranslationClientOptions : Azure.Core.ClientOptions
123136
{
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) { }
125138
public Azure.AI.Translation.Document.DocumentTranslationAudience? Audience { get { throw null; } set { } }
126139
public enum ServiceVersion
127140
{
128141
V2024_05_01 = 1,
142+
V2024_11_01_Preview = 2,
129143
}
130144
}
131145
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
281295
public SingleDocumentTranslationClient(System.Uri endpoint, Azure.Core.TokenCredential credential) { }
282296
public SingleDocumentTranslationClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.AI.Translation.Document.DocumentTranslationClientOptions options) { }
283297
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; }
288302
}
289303
public enum StorageInputUriKind
290304
{
@@ -306,6 +320,7 @@ public partial class TranslationBatch : System.ClientModel.Primitives.IJsonModel
306320
{
307321
public TranslationBatch(System.Collections.Generic.IEnumerable<Azure.AI.Translation.Document.DocumentTranslationInput> inputs) { }
308322
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 { } }
309324
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
310325
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; }
311326
void System.ClientModel.Primitives.IJsonModel<Azure.AI.Translation.Document.TranslationBatch>.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/azure-sdk/azure-sdk-for-net/commit/8f7cd88ffb07b73770a32e07d583272793b13c58

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy