From 4137d20d83f0e7e17a6ed3f2fdc5063a58c0ad1b Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 5 Nov 2024 09:18:17 +0000 Subject: [PATCH] CodeGen from PR 3557 in test-repo-billy/azure-rest-api-specs Merge d23b33134375b1e8160bbb6d59731ed929f0d66d into 7b5d4fa50d1365f0e981b995c60da3ac591c6bba --- .../api/Azure.AI.DocumentIntelligence.netstandard2.0.cs | 4 ++-- .../src/Generated/DocumentIntelligenceModelFactory.cs | 2 +- .../src/Generated/DocumentLanguage.Serialization.cs | 6 +++--- .../src/Generated/DocumentLanguage.cs | 9 ++++----- .../Azure.AI.DocumentIntelligence/tsp-location.yaml | 5 +++-- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/api/Azure.AI.DocumentIntelligence.netstandard2.0.cs b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/api/Azure.AI.DocumentIntelligence.netstandard2.0.cs index 1008f57a0580..5cab523880da 100644 --- a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/api/Azure.AI.DocumentIntelligence.netstandard2.0.cs +++ b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/api/Azure.AI.DocumentIntelligence.netstandard2.0.cs @@ -805,7 +805,7 @@ public static partial class DocumentIntelligenceModelFactory public static Azure.AI.DocumentIntelligence.DocumentIntelligenceWarning DocumentIntelligenceWarning(string code = null, string message = null, string target = null) { throw null; } public static Azure.AI.DocumentIntelligence.DocumentKeyValueElement DocumentKeyValueElement(string content = null, System.Collections.Generic.IEnumerable boundingRegions = null, System.Collections.Generic.IEnumerable spans = null) { throw null; } public static Azure.AI.DocumentIntelligence.DocumentKeyValuePair DocumentKeyValuePair(Azure.AI.DocumentIntelligence.DocumentKeyValueElement key = null, Azure.AI.DocumentIntelligence.DocumentKeyValueElement value = null, float confidence = 0f) { throw null; } - public static Azure.AI.DocumentIntelligence.DocumentLanguage DocumentLanguage(string locale = null, System.Collections.Generic.IEnumerable spans = null, float confidence = 0f) { throw null; } + public static Azure.AI.DocumentIntelligence.DocumentLanguage DocumentLanguage(long locale = (long)0, System.Collections.Generic.IEnumerable spans = null, float confidence = 0f) { throw null; } public static Azure.AI.DocumentIntelligence.DocumentLine DocumentLine(string content = null, System.Collections.Generic.IEnumerable polygon = null, System.Collections.Generic.IEnumerable spans = null) { throw null; } public static Azure.AI.DocumentIntelligence.DocumentModelBuildOperationDetails DocumentModelBuildOperationDetails(string operationId = null, Azure.AI.DocumentIntelligence.OperationStatus status = default(Azure.AI.DocumentIntelligence.OperationStatus), int? percentCompleted = default(int?), System.DateTimeOffset createdOn = default(System.DateTimeOffset), System.DateTimeOffset lastUpdatedOn = default(System.DateTimeOffset), System.Uri resourceLocation = null, string apiVersion = null, System.Collections.Generic.IReadOnlyDictionary tags = null, Azure.AI.DocumentIntelligence.DocumentIntelligenceError error = null, Azure.AI.DocumentIntelligence.DocumentModelDetails result = null) { throw null; } public static Azure.AI.DocumentIntelligence.DocumentModelComposeOperationDetails DocumentModelComposeOperationDetails(string operationId = null, Azure.AI.DocumentIntelligence.OperationStatus status = default(Azure.AI.DocumentIntelligence.OperationStatus), int? percentCompleted = default(int?), System.DateTimeOffset createdOn = default(System.DateTimeOffset), System.DateTimeOffset lastUpdatedOn = default(System.DateTimeOffset), System.Uri resourceLocation = null, string apiVersion = null, System.Collections.Generic.IReadOnlyDictionary tags = null, Azure.AI.DocumentIntelligence.DocumentIntelligenceError error = null, Azure.AI.DocumentIntelligence.DocumentModelDetails result = null) { throw null; } @@ -864,7 +864,7 @@ public partial class DocumentLanguage : System.ClientModel.Primitives.IJsonModel { internal DocumentLanguage() { } public float Confidence { get { throw null; } } - public string Locale { get { throw null; } } + public long Locale { get { throw null; } } public System.Collections.Generic.IReadOnlyList Spans { get { throw null; } } Azure.AI.DocumentIntelligence.DocumentLanguage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } diff --git a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentIntelligenceModelFactory.cs b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentIntelligenceModelFactory.cs index 65feb08f0058..6e5baa6c8485 100644 --- a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentIntelligenceModelFactory.cs +++ b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentIntelligenceModelFactory.cs @@ -472,7 +472,7 @@ public static DocumentStyle DocumentStyle(bool? isHandwritten = null, string sim /// /// Confidence of correctly identifying the language. /// A new instance for mocking. - public static DocumentLanguage DocumentLanguage(string locale = null, IEnumerable spans = null, float confidence = default) + public static DocumentLanguage DocumentLanguage(long locale = default, IEnumerable spans = null, float confidence = default) { spans ??= new List(); diff --git a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentLanguage.Serialization.cs b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentLanguage.Serialization.cs index 84a6c48b4424..b33ff53c9023 100644 --- a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentLanguage.Serialization.cs +++ b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentLanguage.Serialization.cs @@ -27,7 +27,7 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriter writer.WriteStartObject(); writer.WritePropertyName("locale"u8); - writer.WriteStringValue(Locale); + writer.WriteNumberValue(Locale); writer.WritePropertyName("spans"u8); writer.WriteStartArray(); foreach (var item in Spans) @@ -75,7 +75,7 @@ internal static DocumentLanguage DeserializeDocumentLanguage(JsonElement element { return null; } - string locale = default; + long locale = default; IReadOnlyList spans = default; float confidence = default; IDictionary serializedAdditionalRawData = default; @@ -84,7 +84,7 @@ internal static DocumentLanguage DeserializeDocumentLanguage(JsonElement element { if (property.NameEquals("locale"u8)) { - locale = property.Value.GetString(); + locale = property.Value.GetInt64(); continue; } if (property.NameEquals("spans"u8)) diff --git a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentLanguage.cs b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentLanguage.cs index 3ac97f3c360d..aacbb00b8e58 100644 --- a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentLanguage.cs +++ b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/Generated/DocumentLanguage.cs @@ -56,10 +56,9 @@ public partial class DocumentLanguage /// to. /// /// Confidence of correctly identifying the language. - /// or is null. - internal DocumentLanguage(string locale, IEnumerable spans, float confidence) + /// is null. + internal DocumentLanguage(long locale, IEnumerable spans, float confidence) { - Argument.AssertNotNull(locale, nameof(locale)); Argument.AssertNotNull(spans, nameof(spans)); Locale = locale; @@ -78,7 +77,7 @@ internal DocumentLanguage(string locale, IEnumerable spans, float /// /// Confidence of correctly identifying the language. /// Keeps track of any properties unknown to the library. - internal DocumentLanguage(string locale, IReadOnlyList spans, float confidence, IDictionary serializedAdditionalRawData) + internal DocumentLanguage(long locale, IReadOnlyList spans, float confidence, IDictionary serializedAdditionalRawData) { Locale = locale; Spans = spans; @@ -95,7 +94,7 @@ internal DocumentLanguage() /// Detected language. Value may an ISO 639-1 language code (ex. "en", "fr") /// or BCP 47 language tag (ex. "zh-Hans"). /// - public string Locale { get; } + public long Locale { get; } /// /// Location of the text elements in the concatenated content the language applies /// to. diff --git a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/tsp-location.yaml b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/tsp-location.yaml index 66ce35132bd2..0578fbf7460a 100644 --- a/sdk/documentintelligence/Azure.AI.DocumentIntelligence/tsp-location.yaml +++ b/sdk/documentintelligence/Azure.AI.DocumentIntelligence/tsp-location.yaml @@ -1,3 +1,4 @@ directory: specification/ai/DocumentIntelligence -commit: ec2a81edaecf3970e5938936e8256759905163e6 -repo: Azure/azure-rest-api-specs +commit: 5717310bdb2d80f770d83a143adb4a9725dadcb5 +repo: test-repo-billy/azure-rest-api-specs +additionalDirectories: