diff --git a/eng/Directory.Build.Common.targets b/eng/Directory.Build.Common.targets index e4e1d83c88c5..d3ce67bdcc42 100644 --- a/eng/Directory.Build.Common.targets +++ b/eng/Directory.Build.Common.targets @@ -81,7 +81,7 @@ - + diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations/Azure.AI.Language.Conversations.dgml b/sdk/cognitivelanguage/Azure.AI.Language.Conversations/Azure.AI.Language.Conversations.dgml new file mode 100644 index 000000000000..85ff99b30b5f --- /dev/null +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations/Azure.AI.Language.Conversations.dgml @@ -0,0 +1,604 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/Authoring/ConversationAuthoringClient.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/Authoring/ConversationAuthoringClient.cs index f2487d0de2c3..e94786103f5d 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/Authoring/ConversationAuthoringClient.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/Authoring/ConversationAuthoringClient.cs @@ -6,6 +6,9 @@ using System.Threading.Tasks; using Azure.Core; using Azure.Core.Pipeline; +using Azure.Core.Shared.Asserts; +using Azure.Core.Shared.AuthPolicies; +using Azure.Core.Shared.Pipeline.Diagnostics; namespace Azure.AI.Language.Conversations.Authoring { diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/Azure.AI.Language.Conversations.csproj b/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/Azure.AI.Language.Conversations.csproj index 37e077017305..4a8ca55ffc5e 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/Azure.AI.Language.Conversations.csproj +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/Azure.AI.Language.Conversations.csproj @@ -7,7 +7,6 @@ 1.1.0 Azure AI Language Conversations LUIS $(RequiredTargetFrameworks) - true @@ -17,9 +16,49 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/ConversationAnalysisClient.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/ConversationAnalysisClient.cs index aba484f092a8..38c3cce78198 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/ConversationAnalysisClient.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/ConversationAnalysisClient.cs @@ -5,6 +5,9 @@ using System.Threading.Tasks; using Azure.Core; using Azure.Core.Pipeline; +using Azure.Core.Shared.Asserts; +using Azure.Core.Shared.AuthPolicies; +using Azure.Core.Shared.Pipeline.Diagnostics; namespace Azure.AI.Language.Conversations { diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/ConversationsAudience.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/ConversationsAudience.cs index 4be9a6c41d19..d250bba8ce9a 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/ConversationsAudience.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/ConversationsAudience.cs @@ -4,6 +4,7 @@ using System; using System.ComponentModel; using Azure.Core; +using Azure.Core.Shared.Asserts; namespace Azure.AI.Language.Conversations { diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/Generated/ConversationAnalysisClient.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/Generated/ConversationAnalysisClient.cs index c9509d63db7f..e34b04f8d505 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/Generated/ConversationAnalysisClient.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/Generated/ConversationAnalysisClient.cs @@ -7,9 +7,13 @@ using System; using System.Threading.Tasks; -using Azure; using Azure.Core; using Azure.Core.Pipeline; +using Azure.Core.Shared.Asserts; +using Azure.Core.Shared.Operations; +using Azure.Core.Shared.Pipeline; +using Azure.Core.Shared.Pipeline.Diagnostics; +using Azure.Core.Shared.RequestUri; namespace Azure.AI.Language.Conversations { diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/Generated/ConversationAuthoringClient.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/Generated/ConversationAuthoringClient.cs index 52ee49763fef..64331a925f68 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/Generated/ConversationAuthoringClient.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/Generated/ConversationAuthoringClient.cs @@ -8,10 +8,13 @@ using System; using System.Threading.Tasks; using Autorest.CSharp.Core; -using Azure; -using Azure.AI.Language.Conversations; using Azure.Core; using Azure.Core.Pipeline; +using Azure.Core.Shared.Asserts; +using Azure.Core.Shared.Operations; +using Azure.Core.Shared.Pipeline; +using Azure.Core.Shared.Pipeline.Diagnostics; +using Azure.Core.Shared.RequestUri; namespace Azure.AI.Language.Conversations.Authoring { diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/Properties/AssemblyInfo.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/Properties/AssemblyInfo.cs index 760af14bd726..bff49707a2cc 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/Properties/AssemblyInfo.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/Properties/AssemblyInfo.cs @@ -1,4 +1,4 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -[assembly: Azure.Core.AzureResourceProviderNamespace("Microsoft.CognitiveServices")] +[assembly: Azure.Core.Shared.Attributes.AzureResourceProviderNamespace("Microsoft.CognitiveServices")] diff --git a/sdk/core/Azure.Core.Experimental/src/Azure.Core.Experimental.csproj b/sdk/core/Azure.Core.Experimental/src/Azure.Core.Experimental.csproj index e92f8a75118b..f3cb244c6df9 100644 --- a/sdk/core/Azure.Core.Experimental/src/Azure.Core.Experimental.csproj +++ b/sdk/core/Azure.Core.Experimental/src/Azure.Core.Experimental.csproj @@ -7,7 +7,6 @@ enable $(RequiredTargetFrameworks);net461;net6.0 $(NoWarn);AZC0001;AZC0012 - true @@ -16,6 +15,7 @@ + diff --git a/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactoryElementJsonConverter.cs b/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactoryElementJsonConverter.cs index b2a332c6aac2..2af022de41d1 100644 --- a/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactoryElementJsonConverter.cs +++ b/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactoryElementJsonConverter.cs @@ -7,6 +7,8 @@ using System.Reflection; using System.Text.Json; using System.Text.Json.Serialization; +using Azure.Core.Shared.Json; +using Azure.Core.Shared.JsonWriter; namespace Azure.Core.Expressions.DataFactory { diff --git a/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactoryElementKind.cs b/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactoryElementKind.cs index 64d1d0589140..5de75be310d7 100644 --- a/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactoryElementKind.cs +++ b/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactoryElementKind.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System; +using Azure.Core.Shared.Asserts; namespace Azure.Core.Expressions.DataFactory { @@ -79,4 +80,4 @@ public override int GetHashCode() /// public override string ToString() => _kind ?? ""; } -} \ No newline at end of file +} diff --git a/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactoryKeyVaultSecretReference.Serialization.cs b/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactoryKeyVaultSecretReference.Serialization.cs index c0264b1d6a63..c92c71f1ee83 100644 --- a/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactoryKeyVaultSecretReference.Serialization.cs +++ b/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactoryKeyVaultSecretReference.Serialization.cs @@ -4,6 +4,9 @@ using System; using System.Text.Json; using System.Text.Json.Serialization; +using Azure.Core.Shared.JsonWriter; +using Azure.Core.Shared.Models; +using Azure.Core.Shared.Serialization; namespace Azure.Core.Expressions.DataFactory { diff --git a/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactoryKeyVaultSecretReference.cs b/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactoryKeyVaultSecretReference.cs index 147eb3c0c9de..fac383c9b0f0 100644 --- a/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactoryKeyVaultSecretReference.cs +++ b/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactoryKeyVaultSecretReference.cs @@ -6,6 +6,8 @@ #nullable disable using System; +using Azure.Core.Shared; +using Azure.Core.Shared.Asserts; namespace Azure.Core.Expressions.DataFactory { diff --git a/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactoryLinkedServiceReference.Serialization.cs b/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactoryLinkedServiceReference.Serialization.cs index 2c2ba99b189b..4d3b2520f7da 100644 --- a/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactoryLinkedServiceReference.Serialization.cs +++ b/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactoryLinkedServiceReference.Serialization.cs @@ -5,6 +5,8 @@ using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; +using Azure.Core.Shared.Models; +using Azure.Core.Shared.Serialization; namespace Azure.Core.Expressions.DataFactory { diff --git a/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactoryLinkedServiceReference.cs b/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactoryLinkedServiceReference.cs index 953b5c08a0e6..1f3471ca4fb8 100644 --- a/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactoryLinkedServiceReference.cs +++ b/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactoryLinkedServiceReference.cs @@ -4,6 +4,9 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.Core.Shared; +using Azure.Core.Shared.Asserts; +using Azure.Core.Shared.Models; namespace Azure.Core.Expressions.DataFactory { diff --git a/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactorySecretBaseDefinition.Serialization.cs b/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactorySecretBaseDefinition.Serialization.cs index 160ca0557d7b..42e1470a233b 100644 --- a/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactorySecretBaseDefinition.Serialization.cs +++ b/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactorySecretBaseDefinition.Serialization.cs @@ -5,6 +5,7 @@ using System.Text.Json; using System.Text.Json.Serialization; using Azure.Core; +using Azure.Core.Shared.Serialization; namespace Azure.Core.Expressions.DataFactory { diff --git a/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactorySecretBaseDefinition.cs b/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactorySecretBaseDefinition.cs index c5dbf3be458e..c65423a47f45 100644 --- a/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactorySecretBaseDefinition.cs +++ b/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactorySecretBaseDefinition.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using Azure.Core.Shared; + namespace Azure.Core.Expressions.DataFactory { /// diff --git a/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactorySecretString.Serialization.cs b/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactorySecretString.Serialization.cs index 203749c15099..392379c1432c 100644 --- a/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactorySecretString.Serialization.cs +++ b/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactorySecretString.Serialization.cs @@ -4,6 +4,7 @@ using System; using System.Text.Json; using System.Text.Json.Serialization; +using Azure.Core.Shared.Serialization; namespace Azure.Core.Expressions.DataFactory { diff --git a/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactorySecretString.cs b/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactorySecretString.cs index 6b55f118c987..f652d1aa37be 100644 --- a/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactorySecretString.cs +++ b/sdk/core/Azure.Core.Expressions.DataFactory/src/DataFactorySecretString.cs @@ -2,6 +2,8 @@ // Licensed under the MIT License. using System; +using Azure.Core.Shared; +using Azure.Core.Shared.Asserts; namespace Azure.Core.Expressions.DataFactory { diff --git a/sdk/core/Azure.Core.Expressions.DataFactory/src/UnknownSecretBase.Serialization.cs b/sdk/core/Azure.Core.Expressions.DataFactory/src/UnknownSecretBase.Serialization.cs index 63e4cdae43f8..5d49d2d8fc16 100644 --- a/sdk/core/Azure.Core.Expressions.DataFactory/src/UnknownSecretBase.Serialization.cs +++ b/sdk/core/Azure.Core.Expressions.DataFactory/src/UnknownSecretBase.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Serialization; namespace Azure.Core.Expressions.DataFactory { diff --git a/sdk/core/Azure.Core.TestFramework/src/ApiVersionString.cs b/sdk/core/Azure.Core.TestFramework/src/ApiVersionString.cs index e0487b9be65c..fc4f4792dca9 100644 --- a/sdk/core/Azure.Core.TestFramework/src/ApiVersionString.cs +++ b/sdk/core/Azure.Core.TestFramework/src/ApiVersionString.cs @@ -3,6 +3,7 @@ using System; using System.Globalization; +using Azure.Core.Shared.Asserts; namespace Azure.Core { diff --git a/sdk/core/Azure.Core.TestFramework/src/Azure.Core.TestFramework.csproj b/sdk/core/Azure.Core.TestFramework/src/Azure.Core.TestFramework.csproj index c7b91ffe8e82..afc2adb03f9a 100644 --- a/sdk/core/Azure.Core.TestFramework/src/Azure.Core.TestFramework.csproj +++ b/sdk/core/Azure.Core.TestFramework/src/Azure.Core.TestFramework.csproj @@ -23,11 +23,32 @@ + + + + + diff --git a/sdk/core/Azure.Core.TestFramework/src/Core.TestFramework.dgml b/sdk/core/Azure.Core.TestFramework/src/Core.TestFramework.dgml new file mode 100644 index 000000000000..78922ef295a6 --- /dev/null +++ b/sdk/core/Azure.Core.TestFramework/src/Core.TestFramework.dgml @@ -0,0 +1,451 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/BodyKeySanitizer.Serialization.cs b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/BodyKeySanitizer.Serialization.cs index 703324ecefda..2628d0d00852 100644 --- a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/BodyKeySanitizer.Serialization.cs +++ b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/BodyKeySanitizer.Serialization.cs @@ -6,7 +6,8 @@ #nullable disable using System.Text.Json; -using Azure.Core; +using Azure.Core.Shared.Models; +using Azure.Core.Shared.Serialization; namespace Azure.Core.TestFramework.Models { diff --git a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/BodyKeySanitizer.cs b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/BodyKeySanitizer.cs index b5cd7d537f0a..1a6d559afd9b 100644 --- a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/BodyKeySanitizer.cs +++ b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/BodyKeySanitizer.cs @@ -6,7 +6,7 @@ #nullable disable using System; -using Azure.Core; +using Azure.Core.Shared.Asserts; namespace Azure.Core.TestFramework.Models { diff --git a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/BodyRegexSanitizer.Serialization.cs b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/BodyRegexSanitizer.Serialization.cs index d2f8ad69dc79..4bb14309e895 100644 --- a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/BodyRegexSanitizer.Serialization.cs +++ b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/BodyRegexSanitizer.Serialization.cs @@ -7,6 +7,10 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared; +using Azure.Core.Shared.JsonWriter; +using Azure.Core.Shared.Models; +using Azure.Core.Shared.Serialization; namespace Azure.Core.TestFramework.Models { diff --git a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/BodyRegexSanitizer.cs b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/BodyRegexSanitizer.cs index dc40026ce935..14fa119a2b71 100644 --- a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/BodyRegexSanitizer.cs +++ b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/BodyRegexSanitizer.cs @@ -7,6 +7,7 @@ using System; using Azure.Core; +using Azure.Core.Shared.Asserts; namespace Azure.Core.TestFramework.Models { diff --git a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/Condition.Serialization.cs b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/Condition.Serialization.cs index c215e83a0144..c9464822ba36 100644 --- a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/Condition.Serialization.cs +++ b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/Condition.Serialization.cs @@ -7,6 +7,9 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.JsonWriter; +using Azure.Core.Shared.Models; +using Azure.Core.Shared.Serialization; namespace Azure.Core.TestFramework.Models { diff --git a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/CustomDefaultMatcher.Serialization.cs b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/CustomDefaultMatcher.Serialization.cs index 6349e423f010..667fad71f2d4 100644 --- a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/CustomDefaultMatcher.Serialization.cs +++ b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/CustomDefaultMatcher.Serialization.cs @@ -7,6 +7,8 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; +using Azure.Core.Shared.Serialization; namespace Azure.Core.TestFramework.Models { diff --git a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/HeaderCondition.Serialization.cs b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/HeaderCondition.Serialization.cs index 306fe919a2bb..abba59691201 100644 --- a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/HeaderCondition.Serialization.cs +++ b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/HeaderCondition.Serialization.cs @@ -7,6 +7,8 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; +using Azure.Core.Shared.Serialization; namespace Azure.Core.TestFramework.Models { diff --git a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/HeaderRegexSanitizer.Serialization.cs b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/HeaderRegexSanitizer.Serialization.cs index 4be8f40c2461..7900534d9441 100644 --- a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/HeaderRegexSanitizer.Serialization.cs +++ b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/HeaderRegexSanitizer.Serialization.cs @@ -7,6 +7,8 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; +using Azure.Core.Shared.Serialization; namespace Azure.Core.TestFramework.Models { diff --git a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/HeaderRegexSanitizer.cs b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/HeaderRegexSanitizer.cs index 292c844b8861..127ed4be385f 100644 --- a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/HeaderRegexSanitizer.cs +++ b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/HeaderRegexSanitizer.cs @@ -6,7 +6,7 @@ #nullable disable using System; -using Azure.Core; +using Azure.Core.Shared.Asserts; namespace Azure.Core.TestFramework.Models { diff --git a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/HeaderTransform.Serialization.cs b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/HeaderTransform.Serialization.cs index 104b78a727d9..3700da693ad3 100644 --- a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/HeaderTransform.Serialization.cs +++ b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/HeaderTransform.Serialization.cs @@ -6,7 +6,10 @@ #nullable disable using System.Text.Json; -using Azure.Core; +using Azure.Core.Shared; +using Azure.Core.Shared.JsonWriter; +using Azure.Core.Shared.Models; +using Azure.Core.Shared.Serialization; namespace Azure.Core.TestFramework.Models { diff --git a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/HeaderTransform.cs b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/HeaderTransform.cs index eccaa0526381..b8b5fde7ff2f 100644 --- a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/HeaderTransform.cs +++ b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/HeaderTransform.cs @@ -7,6 +7,7 @@ using System; using Azure.Core; +using Azure.Core.Shared.Asserts; namespace Azure.Core.TestFramework.Models { diff --git a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/ProxyOptions.Serialization.cs b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/ProxyOptions.Serialization.cs index 6f02cc948260..ea7af7a496df 100644 --- a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/ProxyOptions.Serialization.cs +++ b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/ProxyOptions.Serialization.cs @@ -6,7 +6,9 @@ #nullable disable using System.Text.Json; -using Azure.Core; +using Azure.Core.Shared.JsonWriter; +using Azure.Core.Shared.Models; +using Azure.Core.Shared.Serialization; namespace Azure.Core.TestFramework.Models { diff --git a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/ProxyOptionsTransport.Serialization.cs b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/ProxyOptionsTransport.Serialization.cs index bbad44366498..6d63833574d4 100644 --- a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/ProxyOptionsTransport.Serialization.cs +++ b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/ProxyOptionsTransport.Serialization.cs @@ -7,6 +7,9 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.JsonWriter; +using Azure.Core.Shared.Models; +using Azure.Core.Shared.Serialization; namespace Azure.Core.TestFramework.Models { diff --git a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/ProxyOptionsTransport.cs b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/ProxyOptionsTransport.cs index 2b95e5933473..42808d37a13e 100644 --- a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/ProxyOptionsTransport.cs +++ b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/ProxyOptionsTransport.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Core.TestFramework.Models { diff --git a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/ProxyOptionsTransportCertificatesItem.Serialization.cs b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/ProxyOptionsTransportCertificatesItem.Serialization.cs index c6ce9e21edf8..026d9feb5683 100644 --- a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/ProxyOptionsTransportCertificatesItem.Serialization.cs +++ b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/ProxyOptionsTransportCertificatesItem.Serialization.cs @@ -6,7 +6,8 @@ #nullable disable using System.Text.Json; -using Azure.Core; +using Azure.Core.Shared.Models; +using Azure.Core.Shared.Serialization; namespace Azure.Core.TestFramework.Models { diff --git a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/StartInformation.Serialization.cs b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/StartInformation.Serialization.cs index 29fa19bc8c49..cac06e1d34c2 100644 --- a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/StartInformation.Serialization.cs +++ b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/StartInformation.Serialization.cs @@ -7,6 +7,8 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; +using Azure.Core.Shared.Serialization; namespace Azure.Core.TestFramework.Models { diff --git a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/StartInformation.cs b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/StartInformation.cs index b19e997eda5e..e00f9afba33a 100644 --- a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/StartInformation.cs +++ b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/StartInformation.cs @@ -7,6 +7,7 @@ using System; using Azure.Core; +using Azure.Core.Shared.Asserts; namespace Azure.Core.TestFramework.Models { diff --git a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/UriRegexSanitizer.Serialization.cs b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/UriRegexSanitizer.Serialization.cs index 149f8fcfaff3..4364ee986b49 100644 --- a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/UriRegexSanitizer.Serialization.cs +++ b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/UriRegexSanitizer.Serialization.cs @@ -7,6 +7,8 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; +using Azure.Core.Shared.Serialization; namespace Azure.Core.TestFramework.Models { diff --git a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/UriRegexSanitizer.cs b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/UriRegexSanitizer.cs index d66de6445e74..29279ef4bad1 100644 --- a/sdk/core/Azure.Core.TestFramework/src/Generated/Models/UriRegexSanitizer.cs +++ b/sdk/core/Azure.Core.TestFramework/src/Generated/Models/UriRegexSanitizer.cs @@ -7,6 +7,7 @@ using System; using Azure.Core; +using Azure.Core.Shared.Asserts; namespace Azure.Core.TestFramework.Models { diff --git a/sdk/core/Azure.Core.TestFramework/src/Generated/TestProxyRestClient.cs b/sdk/core/Azure.Core.TestFramework/src/Generated/TestProxyRestClient.cs index 3c48e865db9f..8583216bda0b 100644 --- a/sdk/core/Azure.Core.TestFramework/src/Generated/TestProxyRestClient.cs +++ b/sdk/core/Azure.Core.TestFramework/src/Generated/TestProxyRestClient.cs @@ -10,9 +10,13 @@ using System.Text.Json; using System.Threading; using System.Threading.Tasks; -using Azure; -using Azure.Core; using Azure.Core.Pipeline; +using Azure.Core.Shared; +using Azure.Core.Shared.Content; +using Azure.Core.Shared.JsonWriter; +using Azure.Core.Shared.Message; +using Azure.Core.Shared.Pipeline.Diagnostics; +using Azure.Core.Shared.RequestUri; using Azure.Core.TestFramework.Models; namespace Azure.Core.TestFramework diff --git a/sdk/core/Azure.Core.TestFramework/src/IgnoreServiceErrorAttribute.cs b/sdk/core/Azure.Core.TestFramework/src/IgnoreServiceErrorAttribute.cs index 326f9c9d0f5d..7f88bf4428ee 100644 --- a/sdk/core/Azure.Core.TestFramework/src/IgnoreServiceErrorAttribute.cs +++ b/sdk/core/Azure.Core.TestFramework/src/IgnoreServiceErrorAttribute.cs @@ -3,6 +3,7 @@ using System; using System.Globalization; +using Azure.Core.Shared.Asserts; namespace Azure.Core.TestFramework { diff --git a/sdk/core/Azure.Core.TestFramework/src/Instrumentation/OperationInterceptor.cs b/sdk/core/Azure.Core.TestFramework/src/Instrumentation/OperationInterceptor.cs index e1b186288bd0..4a771b866bb2 100644 --- a/sdk/core/Azure.Core.TestFramework/src/Instrumentation/OperationInterceptor.cs +++ b/sdk/core/Azure.Core.TestFramework/src/Instrumentation/OperationInterceptor.cs @@ -5,6 +5,7 @@ using System.Linq; using System.Reflection; using System.Threading; +using Azure.Core.Shared.Operations; using Castle.DynamicProxy; namespace Azure.Core.TestFramework diff --git a/sdk/core/Azure.Core.TestFramework/src/MockRequest.cs b/sdk/core/Azure.Core.TestFramework/src/MockRequest.cs index aec0a12839c1..973a48a6728e 100644 --- a/sdk/core/Azure.Core.TestFramework/src/MockRequest.cs +++ b/sdk/core/Azure.Core.TestFramework/src/MockRequest.cs @@ -3,6 +3,8 @@ using System; using System.Collections.Generic; +using Azure.Core.Shared; +using Azure.Core.Shared.Headers; namespace Azure.Core.TestFramework { diff --git a/sdk/core/Azure.Core.TestFramework/src/ProxyTransport.cs b/sdk/core/Azure.Core.TestFramework/src/ProxyTransport.cs index 5b7099fb2723..a7d6f5c6cd67 100644 --- a/sdk/core/Azure.Core.TestFramework/src/ProxyTransport.cs +++ b/sdk/core/Azure.Core.TestFramework/src/ProxyTransport.cs @@ -9,6 +9,10 @@ using System.Text.Json; using System.Threading.Tasks; using Azure.Core.Pipeline; +using Azure.Core.Shared; +using Azure.Core.Shared.App; +using Azure.Core.Shared.Pipeline; +using Azure.Core.Shared.Pipeline.Tasks; namespace Azure.Core.TestFramework { diff --git a/sdk/core/Azure.Core.TestFramework/src/RecordEntryMessage.cs b/sdk/core/Azure.Core.TestFramework/src/RecordEntryMessage.cs index 573d285aee6f..ac4bc907e070 100644 --- a/sdk/core/Azure.Core.TestFramework/src/RecordEntryMessage.cs +++ b/sdk/core/Azure.Core.TestFramework/src/RecordEntryMessage.cs @@ -5,6 +5,8 @@ using System.Collections.Generic; using System.Text; using Azure.Core.Pipeline; +using Azure.Core.Shared.Pipeline; +using Azure.Core.Shared.Pipeline.Content; namespace Azure.Core.TestFramework { diff --git a/sdk/core/Azure.Core.TestFramework/src/RecordedVariableOptions.cs b/sdk/core/Azure.Core.TestFramework/src/RecordedVariableOptions.cs index 5665fe4bf589..c06b3f03c07e 100644 --- a/sdk/core/Azure.Core.TestFramework/src/RecordedVariableOptions.cs +++ b/sdk/core/Azure.Core.TestFramework/src/RecordedVariableOptions.cs @@ -3,6 +3,8 @@ using System.Collections.Generic; using System.Linq; +using Azure.Core.Shared; +using Azure.Core.Shared.Auth; namespace Azure.Core.TestFramework { @@ -66,4 +68,4 @@ public string Apply(string value) return value; } } -} \ No newline at end of file +} diff --git a/sdk/core/Azure.Core.TestFramework/src/Shared/TestClient.cs b/sdk/core/Azure.Core.TestFramework/src/Shared/TestClient.cs index 4d29b1715fd1..14b33ff1ea21 100644 --- a/sdk/core/Azure.Core.TestFramework/src/Shared/TestClient.cs +++ b/sdk/core/Azure.Core.TestFramework/src/Shared/TestClient.cs @@ -5,6 +5,7 @@ using System.Threading; using System.Threading.Tasks; using Azure.Core.Pipeline; +using Azure.Core.Shared.Pipeline.Diagnostics; namespace Azure.Core.TestFramework { diff --git a/sdk/core/Azure.Core.TestFramework/src/TestEnvironment.cs b/sdk/core/Azure.Core.TestFramework/src/TestEnvironment.cs index 791d52a6eb23..d50198042e55 100644 --- a/sdk/core/Azure.Core.TestFramework/src/TestEnvironment.cs +++ b/sdk/core/Azure.Core.TestFramework/src/TestEnvironment.cs @@ -3,18 +3,19 @@ using System; using System.Collections.Generic; -using System.Security.Cryptography; -using System.IO; -using System.Reflection; -using System.Text.Json; -using System.Threading.Tasks; -using Azure.Identity; using System.ComponentModel; using System.Diagnostics; +using System.IO; using System.Linq; +using System.Reflection; using System.Runtime.InteropServices; +using System.Security.Cryptography; +using System.Text.Json; using System.Threading; +using System.Threading.Tasks; using Azure.Core.Pipeline; +using Azure.Core.Shared.Pipeline.Diagnostics; +using Azure.Identity; using NUnit.Framework; namespace Azure.Core.TestFramework diff --git a/sdk/core/Azure.Core.TestFramework/src/TestProxy.cs b/sdk/core/Azure.Core.TestFramework/src/TestProxy.cs index ee2fcb10a2f7..81c0cdad19db 100644 --- a/sdk/core/Azure.Core.TestFramework/src/TestProxy.cs +++ b/sdk/core/Azure.Core.TestFramework/src/TestProxy.cs @@ -12,6 +12,7 @@ using System.Threading; using System.Threading.Tasks; using Azure.Core.Pipeline; +using Azure.Core.Shared.Pipeline.Diagnostics; using NUnit.Framework; namespace Azure.Core.TestFramework diff --git a/sdk/core/Azure.Core.TestFramework/src/TestRecording.cs b/sdk/core/Azure.Core.TestFramework/src/TestRecording.cs index 25aec74da98a..4e0d76926eb8 100644 --- a/sdk/core/Azure.Core.TestFramework/src/TestRecording.cs +++ b/sdk/core/Azure.Core.TestFramework/src/TestRecording.cs @@ -8,6 +8,7 @@ using System.Threading; using System.Threading.Tasks; using Azure.Core.Pipeline; +using Azure.Core.Shared.Message; using Azure.Core.TestFramework.Models; using Azure.Core.Tests.TestFramework; diff --git a/sdk/core/Azure.Core.TestFramework/tests/ClientTestBaseDiagnosticScopeTests.cs b/sdk/core/Azure.Core.TestFramework/tests/ClientTestBaseDiagnosticScopeTests.cs index 0b3914eb0b40..120cc84acfb1 100644 --- a/sdk/core/Azure.Core.TestFramework/tests/ClientTestBaseDiagnosticScopeTests.cs +++ b/sdk/core/Azure.Core.TestFramework/tests/ClientTestBaseDiagnosticScopeTests.cs @@ -5,6 +5,10 @@ using System.Diagnostics; using System.Threading.Tasks; using Azure.Core.Pipeline; +using Azure.Core.Shared; +using Azure.Core.Shared.Attributes; +using Azure.Core.Shared.Pipeline; +using Azure.Core.Shared.Pipeline.Diagnostics; using Azure.Core.TestFramework; using NUnit.Framework; diff --git a/sdk/core/Azure.Core.TestFramework/tests/Properties/AssemblyInfo.cs b/sdk/core/Azure.Core.TestFramework/tests/Properties/AssemblyInfo.cs index bdd86d0c0bd2..065fd2a9be6d 100644 --- a/sdk/core/Azure.Core.TestFramework/tests/Properties/AssemblyInfo.cs +++ b/sdk/core/Azure.Core.TestFramework/tests/Properties/AssemblyInfo.cs @@ -3,6 +3,7 @@ using System.Runtime.CompilerServices; using Azure.Core; +using Azure.Core.Shared.Attributes; [assembly: AzureResourceProviderNamespace("Microsoft.Azure.Core.Cool.Tests")] [assembly: InternalsVisibleTo("DynamicProxyGenAssembly2, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7")] diff --git a/sdk/core/Azure.Core.TestFramework/tests/TestClients/MockClient.cs b/sdk/core/Azure.Core.TestFramework/tests/TestClients/MockClient.cs index 6488ffcd768d..e6a55188df0c 100644 --- a/sdk/core/Azure.Core.TestFramework/tests/TestClients/MockClient.cs +++ b/sdk/core/Azure.Core.TestFramework/tests/TestClients/MockClient.cs @@ -5,6 +5,8 @@ using System.Threading; using System.Threading.Tasks; using Azure.Core.Pipeline; +using Azure.Core.Shared.Asserts; +using Azure.Core.Shared.Pipeline.Diagnostics; namespace Azure.Core.TestFramework.Tests { diff --git a/sdk/core/Azure.Core/src/AccessToken.cs b/sdk/core/Azure.Core/src/AccessToken.cs index c33beee6aba7..e36fa309663a 100644 --- a/sdk/core/Azure.Core/src/AccessToken.cs +++ b/sdk/core/Azure.Core/src/AccessToken.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System; +using Azure.Core.Shared; namespace Azure.Core { diff --git a/sdk/core/Azure.Core/src/Azure.Core.dgml b/sdk/core/Azure.Core/src/Azure.Core.dgml new file mode 100644 index 000000000000..f518eb93943c --- /dev/null +++ b/sdk/core/Azure.Core/src/Azure.Core.dgml @@ -0,0 +1,523 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sdk/core/Azure.Core/src/AzureKeyCredential.cs b/sdk/core/Azure.Core/src/AzureKeyCredential.cs index 75c68ffd2eab..ae00e81eceb1 100644 --- a/sdk/core/Azure.Core/src/AzureKeyCredential.cs +++ b/sdk/core/Azure.Core/src/AzureKeyCredential.cs @@ -4,6 +4,7 @@ using System.ComponentModel; using System.Threading; using Azure.Core; +using Azure.Core.Shared.Asserts; namespace Azure { diff --git a/sdk/core/Azure.Core/src/AzureNamedKeyCredential.cs b/sdk/core/Azure.Core/src/AzureNamedKeyCredential.cs index 621486f1a480..6d4e253863c9 100644 --- a/sdk/core/Azure.Core/src/AzureNamedKeyCredential.cs +++ b/sdk/core/Azure.Core/src/AzureNamedKeyCredential.cs @@ -5,6 +5,7 @@ using System.ComponentModel; using System.Threading; using Azure.Core; +using Azure.Core.Shared.Asserts; namespace Azure { diff --git a/sdk/core/Azure.Core/src/AzureSasCredential.cs b/sdk/core/Azure.Core/src/AzureSasCredential.cs index 0e1dec7b5166..860356f123c3 100644 --- a/sdk/core/Azure.Core/src/AzureSasCredential.cs +++ b/sdk/core/Azure.Core/src/AzureSasCredential.cs @@ -7,6 +7,7 @@ using System.ComponentModel; using System.Threading; using Azure.Core; +using Azure.Core.Shared.Asserts; namespace Azure { diff --git a/sdk/core/Azure.Core/src/ContentType.cs b/sdk/core/Azure.Core/src/ContentType.cs index c52268d9da5a..dd23479f21c7 100644 --- a/sdk/core/Azure.Core/src/ContentType.cs +++ b/sdk/core/Azure.Core/src/ContentType.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System; +using Azure.Core.Shared.Asserts; namespace Azure.Core { diff --git a/sdk/core/Azure.Core/src/Diagnostics/AzureCoreEventSource.cs b/sdk/core/Azure.Core/src/Diagnostics/AzureCoreEventSource.cs index d9e5c2846e54..29267761d5e0 100644 --- a/sdk/core/Azure.Core/src/Diagnostics/AzureCoreEventSource.cs +++ b/sdk/core/Azure.Core/src/Diagnostics/AzureCoreEventSource.cs @@ -5,6 +5,8 @@ using System.Collections.Generic; using System.Diagnostics.Tracing; using System.Text; +using Azure.Core.Shared.Diagnostics; +using Azure.Core.Shared.Pipeline.Diagnostics; namespace Azure.Core.Diagnostics { diff --git a/sdk/core/Azure.Core/src/DynamicData/DynamicData.cs b/sdk/core/Azure.Core/src/DynamicData/DynamicData.cs index 1a978bcf7a0f..88d1e1f35a6f 100644 --- a/sdk/core/Azure.Core/src/DynamicData/DynamicData.cs +++ b/sdk/core/Azure.Core/src/DynamicData/DynamicData.cs @@ -11,6 +11,7 @@ using System.Text.Json; using System.Text.Json.Serialization; using Azure.Core.Json; +using Azure.Core.Shared.Asserts; namespace Azure.Core.Serialization { diff --git a/sdk/core/Azure.Core/src/DynamicData/MutableJsonDocument.cs b/sdk/core/Azure.Core/src/DynamicData/MutableJsonDocument.cs index a9795c8e0de6..174e678c1075 100644 --- a/sdk/core/Azure.Core/src/DynamicData/MutableJsonDocument.cs +++ b/sdk/core/Azure.Core/src/DynamicData/MutableJsonDocument.cs @@ -7,6 +7,8 @@ using System.Text; using System.Text.Json; using System.Text.Json.Serialization; +using Azure.Core.Shared; +using Azure.Core.Shared.Asserts; #nullable enable diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoBoundingBox.cs b/sdk/core/Azure.Core/src/GeoJson/GeoBoundingBox.cs index 9656e00d6cb3..cf032414b93b 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoBoundingBox.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoBoundingBox.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System; +using Azure.Core.Shared; namespace Azure.Core.GeoJson { diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoCollection.cs b/sdk/core/Azure.Core/src/GeoJson/GeoCollection.cs index ed0ddec623a3..f4cf4aba9963 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoCollection.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoCollection.cs @@ -5,6 +5,8 @@ using System.Collections.Generic; using System.Linq; using System.Text.Json.Serialization; +using Azure.Core.Shared; +using Azure.Core.Shared.Asserts; namespace Azure.Core.GeoJson { @@ -60,4 +62,4 @@ IEnumerator IEnumerable.GetEnumerator() /// public override GeoObjectType Type { get; } = GeoObjectType.GeometryCollection; } -} \ No newline at end of file +} diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoLineStringCollection.cs b/sdk/core/Azure.Core/src/GeoJson/GeoLineStringCollection.cs index f21db9638f3d..498a584efc4e 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoLineStringCollection.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoLineStringCollection.cs @@ -5,6 +5,8 @@ using System.Collections.Generic; using System.Linq; using System.Text.Json.Serialization; +using Azure.Core.Shared; +using Azure.Core.Shared.Asserts; namespace Azure.Core.GeoJson { @@ -62,4 +64,4 @@ IEnumerator IEnumerable.GetEnumerator() /// public override GeoObjectType Type { get; } = GeoObjectType.MultiLineString; } -} \ No newline at end of file +} diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoLinearRing.cs b/sdk/core/Azure.Core/src/GeoJson/GeoLinearRing.cs index ed6d0bd27311..8600b1bfcbd2 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoLinearRing.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoLinearRing.cs @@ -4,6 +4,8 @@ using System; using System.Collections.Generic; using System.Linq; +using Azure.Core.Shared; +using Azure.Core.Shared.Asserts; namespace Azure.Core.GeoJson { @@ -38,4 +40,4 @@ public GeoLinearRing(IEnumerable coordinates) /// public GeoArray Coordinates { get; } } -} \ No newline at end of file +} diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoObject.cs b/sdk/core/Azure.Core/src/GeoJson/GeoObject.cs index 024e7d8e06c3..1716b90ef9c0 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoObject.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoObject.cs @@ -7,6 +7,8 @@ using System.Text; using System.Text.Json; using System.Text.Json.Serialization; +using Azure.Core.Shared; +using Azure.Core.Shared.Asserts; namespace Azure.Core.GeoJson { @@ -71,4 +73,4 @@ public static GeoObject Parse(string json) return GeoJsonConverter.Read(jsonDocument.RootElement); } } -} \ No newline at end of file +} diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoPointCollection.cs b/sdk/core/Azure.Core/src/GeoJson/GeoPointCollection.cs index 6e5274e74ec9..c2991249a84e 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoPointCollection.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoPointCollection.cs @@ -5,6 +5,8 @@ using System.Collections.Generic; using System.Linq; using System.Text.Json.Serialization; +using Azure.Core.Shared; +using Azure.Core.Shared.Asserts; namespace Azure.Core.GeoJson { @@ -63,4 +65,4 @@ IEnumerator IEnumerable.GetEnumerator() /// public override GeoObjectType Type { get; } = GeoObjectType.MultiPoint; } -} \ No newline at end of file +} diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoPolygon.cs b/sdk/core/Azure.Core/src/GeoJson/GeoPolygon.cs index 6a979b13a5b5..60d8c647dc38 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoPolygon.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoPolygon.cs @@ -4,6 +4,7 @@ using System.Collections.Generic; using System.Linq; using System.Text.Json.Serialization; +using Azure.Core.Shared.Asserts; namespace Azure.Core.GeoJson { @@ -99,4 +100,4 @@ public GeoPolygon(IEnumerable rings, GeoBoundingBox? boundingBox, /// public override GeoObjectType Type { get; } = GeoObjectType.Polygon; } -} \ No newline at end of file +} diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoPolygonCollection.cs b/sdk/core/Azure.Core/src/GeoJson/GeoPolygonCollection.cs index a4faba82e37f..b3e6ce71eb79 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoPolygonCollection.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoPolygonCollection.cs @@ -5,6 +5,7 @@ using System.Collections.Generic; using System.Linq; using System.Text.Json.Serialization; +using Azure.Core.Shared.Asserts; namespace Azure.Core.GeoJson { @@ -63,4 +64,4 @@ IEnumerator IEnumerable.GetEnumerator() /// public override GeoObjectType Type { get; } = GeoObjectType.MultiPolygon; } -} \ No newline at end of file +} diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoPosition.cs b/sdk/core/Azure.Core/src/GeoJson/GeoPosition.cs index 1d8884335220..853f42e57a02 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoPosition.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoPosition.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System; +using Azure.Core.Shared; namespace Azure.Core.GeoJson { diff --git a/sdk/core/Azure.Core/src/HttpAuthorization.cs b/sdk/core/Azure.Core/src/HttpAuthorization.cs index 3aed86f8f0fb..377443298fd1 100644 --- a/sdk/core/Azure.Core/src/HttpAuthorization.cs +++ b/sdk/core/Azure.Core/src/HttpAuthorization.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using Azure.Core; +using Azure.Core.Shared.Asserts; namespace Azure { diff --git a/sdk/core/Azure.Core/src/HttpHeader.cs b/sdk/core/Azure.Core/src/HttpHeader.cs index dc93f316ee7f..14017e007747 100644 --- a/sdk/core/Azure.Core/src/HttpHeader.cs +++ b/sdk/core/Azure.Core/src/HttpHeader.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System; +using Azure.Core.Shared; namespace Azure.Core { diff --git a/sdk/core/Azure.Core/src/HttpMessage.cs b/sdk/core/Azure.Core/src/HttpMessage.cs index 06e0fa598077..792bd38357cd 100644 --- a/sdk/core/Azure.Core/src/HttpMessage.cs +++ b/sdk/core/Azure.Core/src/HttpMessage.cs @@ -6,6 +6,7 @@ using System.IO; using System.Threading; using Azure.Core.Pipeline; +using Azure.Core.Shared.Asserts; namespace Azure.Core { diff --git a/sdk/core/Azure.Core/src/HttpRange.cs b/sdk/core/Azure.Core/src/HttpRange.cs index d7d06d861e6c..d3cec8bfc8d5 100644 --- a/sdk/core/Azure.Core/src/HttpRange.cs +++ b/sdk/core/Azure.Core/src/HttpRange.cs @@ -6,6 +6,7 @@ using System.Globalization; using System.Runtime.CompilerServices; using Azure.Core; +using Azure.Core.Shared; namespace Azure { diff --git a/sdk/core/Azure.Core/src/Internal/AzureBaseBuffersExtensions.cs b/sdk/core/Azure.Core/src/Internal/AzureBaseBuffersExtensions.cs index 50087757232c..8f2e6f9102a8 100644 --- a/sdk/core/Azure.Core/src/Internal/AzureBaseBuffersExtensions.cs +++ b/sdk/core/Azure.Core/src/Internal/AzureBaseBuffersExtensions.cs @@ -8,6 +8,8 @@ using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; +using Azure.Core.Shared; +using Azure.Core.Shared.Asserts; namespace Azure.Core.Buffers { diff --git a/sdk/core/Azure.Core/src/Messaging/CloudEvent.cs b/sdk/core/Azure.Core/src/Messaging/CloudEvent.cs index 138b7b8f9b77..32b49fb92f76 100644 --- a/sdk/core/Azure.Core/src/Messaging/CloudEvent.cs +++ b/sdk/core/Azure.Core/src/Messaging/CloudEvent.cs @@ -6,6 +6,8 @@ using System.Text.Json; using System.Text.Json.Serialization; using Azure.Core; +using Azure.Core.Shared; +using Azure.Core.Shared.Asserts; namespace Azure.Messaging { diff --git a/sdk/core/Azure.Core/src/Messaging/CloudEventExtensionAttributes.cs b/sdk/core/Azure.Core/src/Messaging/CloudEventExtensionAttributes.cs index 6c58f734743b..86d5d337821c 100644 --- a/sdk/core/Azure.Core/src/Messaging/CloudEventExtensionAttributes.cs +++ b/sdk/core/Azure.Core/src/Messaging/CloudEventExtensionAttributes.cs @@ -6,6 +6,8 @@ using System.Collections.Generic; using System.Diagnostics; using Azure.Core; +using Azure.Core.Shared; +using Azure.Core.Shared.Asserts; namespace Azure.Messaging { diff --git a/sdk/core/Azure.Core/src/Operation.cs b/sdk/core/Azure.Core/src/Operation.cs index 0f12ae9f90ca..e49c17a4981e 100644 --- a/sdk/core/Azure.Core/src/Operation.cs +++ b/sdk/core/Azure.Core/src/Operation.cs @@ -6,6 +6,7 @@ using System.Threading; using System.Threading.Tasks; using Azure.Core; +using Azure.Core.Shared.Operations; namespace Azure { diff --git a/sdk/core/Azure.Core/src/OperationOfT.cs b/sdk/core/Azure.Core/src/OperationOfT.cs index 53c7a3144cf4..bce891a844d6 100644 --- a/sdk/core/Azure.Core/src/OperationOfT.cs +++ b/sdk/core/Azure.Core/src/OperationOfT.cs @@ -6,6 +6,8 @@ using System.Threading; using System.Threading.Tasks; using Azure.Core; +using Azure.Core.Shared; +using Azure.Core.Shared.Operations; #nullable enable diff --git a/sdk/core/Azure.Core/src/Pipeline/BearerTokenAuthenticationPolicy.cs b/sdk/core/Azure.Core/src/Pipeline/BearerTokenAuthenticationPolicy.cs index 871022f3626d..a3d9aa236223 100644 --- a/sdk/core/Azure.Core/src/Pipeline/BearerTokenAuthenticationPolicy.cs +++ b/sdk/core/Azure.Core/src/Pipeline/BearerTokenAuthenticationPolicy.cs @@ -8,6 +8,10 @@ using System.Threading; using System.Threading.Tasks; using Azure.Core.Diagnostics; +using Azure.Core.Shared; +using Azure.Core.Shared.Asserts; +using Azure.Core.Shared.Pipeline; +using Azure.Core.Shared.Pipeline.Tasks; namespace Azure.Core.Pipeline { diff --git a/sdk/core/Azure.Core/src/Pipeline/HttpClientTransport.cs b/sdk/core/Azure.Core/src/Pipeline/HttpClientTransport.cs index 9a8dd8b8c2df..849a2847c3ea 100644 --- a/sdk/core/Azure.Core/src/Pipeline/HttpClientTransport.cs +++ b/sdk/core/Azure.Core/src/Pipeline/HttpClientTransport.cs @@ -2,7 +2,6 @@ // Licensed under the MIT License. using System; -using System.Buffers; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; @@ -15,6 +14,11 @@ using System.Security.Cryptography.X509Certificates; using System.Threading; using System.Threading.Tasks; +using Azure.Core.Shared; +using Azure.Core.Shared.App; +using Azure.Core.Shared.Asserts; +using Azure.Core.Shared.Pipeline; +using Azure.Core.Shared.Pipeline.Tasks; namespace Azure.Core.Pipeline { diff --git a/sdk/core/Azure.Core/src/Pipeline/HttpPipeline.cs b/sdk/core/Azure.Core/src/Pipeline/HttpPipeline.cs index 68c04b46499a..0a88c4899c81 100644 --- a/sdk/core/Azure.Core/src/Pipeline/HttpPipeline.cs +++ b/sdk/core/Azure.Core/src/Pipeline/HttpPipeline.cs @@ -7,6 +7,10 @@ using System.Diagnostics; using System.Threading; using System.Threading.Tasks; +using Azure.Core.Shared; +using Azure.Core.Shared.Asserts; +using Azure.Core.Shared.Pipeline; +using Azure.Core.Shared.Pipeline.Diagnostics; namespace Azure.Core.Pipeline { diff --git a/sdk/core/Azure.Core/src/Pipeline/HttpPipelineBuilder.cs b/sdk/core/Azure.Core/src/Pipeline/HttpPipelineBuilder.cs index f8b187141b07..9db70dd9cdbc 100644 --- a/sdk/core/Azure.Core/src/Pipeline/HttpPipelineBuilder.cs +++ b/sdk/core/Azure.Core/src/Pipeline/HttpPipelineBuilder.cs @@ -5,6 +5,10 @@ using System.Collections.Generic; using System.Linq; using Azure.Core.Diagnostics; +using Azure.Core.Shared; +using Azure.Core.Shared.Asserts; +using Azure.Core.Shared.Pipeline; +using Azure.Core.Shared.Pipeline.Diagnostics; namespace Azure.Core.Pipeline { diff --git a/sdk/core/Azure.Core/src/Pipeline/HttpPipelineOptions.cs b/sdk/core/Azure.Core/src/Pipeline/HttpPipelineOptions.cs index 2b6874c2070e..c62667abede3 100644 --- a/sdk/core/Azure.Core/src/Pipeline/HttpPipelineOptions.cs +++ b/sdk/core/Azure.Core/src/Pipeline/HttpPipelineOptions.cs @@ -3,6 +3,8 @@ using System; using System.Collections.Generic; +using Azure.Core.Shared; +using Azure.Core.Shared.Asserts; namespace Azure.Core.Pipeline { diff --git a/sdk/core/Azure.Core/src/Pipeline/HttpPipelineTransport.cs b/sdk/core/Azure.Core/src/Pipeline/HttpPipelineTransport.cs index a9daa7f45007..dabeda346ab0 100644 --- a/sdk/core/Azure.Core/src/Pipeline/HttpPipelineTransport.cs +++ b/sdk/core/Azure.Core/src/Pipeline/HttpPipelineTransport.cs @@ -3,6 +3,7 @@ using System.Threading; using System.Threading.Tasks; +using Azure.Core.Shared.App; namespace Azure.Core.Pipeline { diff --git a/sdk/core/Azure.Core/src/Pipeline/HttpWebRequestTransport.cs b/sdk/core/Azure.Core/src/Pipeline/HttpWebRequestTransport.cs index 9a222f88e37a..4b767f0ca123 100644 --- a/sdk/core/Azure.Core/src/Pipeline/HttpWebRequestTransport.cs +++ b/sdk/core/Azure.Core/src/Pipeline/HttpWebRequestTransport.cs @@ -6,14 +6,16 @@ using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.IO; -using System.Linq; using System.Net; -using System.Net.Http; using System.Net.Http.Headers; -using System.Runtime.InteropServices; using System.Security.Cryptography.X509Certificates; using System.Threading; using System.Threading.Tasks; +using Azure.Core.Shared; +using Azure.Core.Shared.Asserts; +using Azure.Core.Shared.Headers; +using Azure.Core.Shared.Pipeline; +using Azure.Core.Shared.Pipeline.Tasks; namespace Azure.Core.Pipeline { diff --git a/sdk/core/Azure.Core/src/Pipeline/Internal/HttpPipelineTransportPolicy.cs b/sdk/core/Azure.Core/src/Pipeline/Internal/HttpPipelineTransportPolicy.cs index fd4ae71e2d2e..4114771f211c 100644 --- a/sdk/core/Azure.Core/src/Pipeline/Internal/HttpPipelineTransportPolicy.cs +++ b/sdk/core/Azure.Core/src/Pipeline/Internal/HttpPipelineTransportPolicy.cs @@ -4,6 +4,7 @@ using System; using System.Diagnostics; using System.Threading.Tasks; +using Azure.Core.Shared.Pipeline.Diagnostics; namespace Azure.Core.Pipeline { diff --git a/sdk/core/Azure.Core/src/Pipeline/Internal/LoggingPolicy.cs b/sdk/core/Azure.Core/src/Pipeline/Internal/LoggingPolicy.cs index 3a82890c483d..242fcd59f255 100644 --- a/sdk/core/Azure.Core/src/Pipeline/Internal/LoggingPolicy.cs +++ b/sdk/core/Azure.Core/src/Pipeline/Internal/LoggingPolicy.cs @@ -2,7 +2,6 @@ // Licensed under the MIT License. using System; -using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.Tracing; using System.IO; @@ -10,6 +9,9 @@ using System.Threading; using System.Threading.Tasks; using Azure.Core.Diagnostics; +using Azure.Core.Shared.Pipeline.Content; +using Azure.Core.Shared.Pipeline.Diagnostics; +using Azure.Core.Shared.Pipeline.Tasks; namespace Azure.Core.Pipeline { diff --git a/sdk/core/Azure.Core/src/Pipeline/Internal/RequestActivityPolicy.cs b/sdk/core/Azure.Core/src/Pipeline/Internal/RequestActivityPolicy.cs index dc036f01faf6..526234923fa1 100644 --- a/sdk/core/Azure.Core/src/Pipeline/Internal/RequestActivityPolicy.cs +++ b/sdk/core/Azure.Core/src/Pipeline/Internal/RequestActivityPolicy.cs @@ -5,6 +5,8 @@ using System.Diagnostics; using System.Globalization; using System.Threading.Tasks; +using Azure.Core.Shared.Pipeline.Diagnostics; +using Azure.Core.Shared.Pipeline.Tasks; namespace Azure.Core.Pipeline { diff --git a/sdk/core/Azure.Core/src/Pipeline/Internal/ResponseBodyPolicy.cs b/sdk/core/Azure.Core/src/Pipeline/Internal/ResponseBodyPolicy.cs index bad733158501..917e405708b5 100644 --- a/sdk/core/Azure.Core/src/Pipeline/Internal/ResponseBodyPolicy.cs +++ b/sdk/core/Azure.Core/src/Pipeline/Internal/ResponseBodyPolicy.cs @@ -7,6 +7,9 @@ using System.Threading; using System.Threading.Tasks; using Azure.Core.Buffers; +using Azure.Core.Shared; +using Azure.Core.Shared.Pipeline; +using Azure.Core.Shared.Pipeline.Tasks; namespace Azure.Core.Pipeline { diff --git a/sdk/core/Azure.Core/src/Pipeline/MultipartResponse.cs b/sdk/core/Azure.Core/src/Pipeline/MultipartResponse.cs index d5e1029f86df..77b8c8d3953d 100644 --- a/sdk/core/Azure.Core/src/Pipeline/MultipartResponse.cs +++ b/sdk/core/Azure.Core/src/Pipeline/MultipartResponse.cs @@ -8,6 +8,9 @@ using System.Threading; using System.Threading.Tasks; using Azure.Core.Pipeline; +using Azure.Core.Shared; +using Azure.Core.Shared.Pipeline; +using Azure.Core.Shared.Pipeline.Tasks; #nullable disable diff --git a/sdk/core/Azure.Core/src/Pipeline/RedirectPolicy.cs b/sdk/core/Azure.Core/src/Pipeline/RedirectPolicy.cs index f62e324ac792..ac40c0f561c4 100644 --- a/sdk/core/Azure.Core/src/Pipeline/RedirectPolicy.cs +++ b/sdk/core/Azure.Core/src/Pipeline/RedirectPolicy.cs @@ -5,6 +5,8 @@ using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; using Azure.Core.Diagnostics; +using Azure.Core.Shared.Pipeline; +using Azure.Core.Shared.Pipeline.Tasks; namespace Azure.Core.Pipeline { diff --git a/sdk/core/Azure.Core/src/Pipeline/RetryPolicy.cs b/sdk/core/Azure.Core/src/Pipeline/RetryPolicy.cs index cbe567b7ba34..b4fad966d9fa 100644 --- a/sdk/core/Azure.Core/src/Pipeline/RetryPolicy.cs +++ b/sdk/core/Azure.Core/src/Pipeline/RetryPolicy.cs @@ -8,6 +8,8 @@ using System.Threading; using System.Threading.Tasks; using Azure.Core.Diagnostics; +using Azure.Core.Shared.Pipeline; +using Azure.Core.Shared.Pipeline.Tasks; namespace Azure.Core.Pipeline { diff --git a/sdk/core/Azure.Core/src/Request.cs b/sdk/core/Azure.Core/src/Request.cs index 011af269df7b..185a60ecd805 100644 --- a/sdk/core/Azure.Core/src/Request.cs +++ b/sdk/core/Azure.Core/src/Request.cs @@ -6,6 +6,8 @@ using System.Diagnostics.CodeAnalysis; using System.Net.Http; using Azure.Core.Pipeline; +using Azure.Core.Shared; +using Azure.Core.Shared.Asserts; namespace Azure.Core { diff --git a/sdk/core/Azure.Core/src/RequestContent.cs b/sdk/core/Azure.Core/src/RequestContent.cs index fe19517dd70c..98dab7f554b2 100644 --- a/sdk/core/Azure.Core/src/RequestContent.cs +++ b/sdk/core/Azure.Core/src/RequestContent.cs @@ -10,6 +10,7 @@ using System.Threading.Tasks; using Azure.Core.Buffers; using Azure.Core.Serialization; +using Azure.Core.Shared; namespace Azure.Core { diff --git a/sdk/core/Azure.Core/src/RequestContext.cs b/sdk/core/Azure.Core/src/RequestContext.cs index 45b1b4c53d7a..42ef55eee83b 100644 --- a/sdk/core/Azure.Core/src/RequestContext.cs +++ b/sdk/core/Azure.Core/src/RequestContext.cs @@ -6,6 +6,8 @@ using System.Threading; using Azure.Core; using Azure.Core.Pipeline; +using Azure.Core.Shared; +using Azure.Core.Shared.Asserts; namespace Azure { diff --git a/sdk/core/Azure.Core/src/RequestFailedException.cs b/sdk/core/Azure.Core/src/RequestFailedException.cs index ff079242e782..2515da643f94 100644 --- a/sdk/core/Azure.Core/src/RequestFailedException.cs +++ b/sdk/core/Azure.Core/src/RequestFailedException.cs @@ -10,6 +10,10 @@ using System.Text; using Azure.Core; using Azure.Core.Pipeline; +using Azure.Core.Shared; +using Azure.Core.Shared.Asserts; +using Azure.Core.Shared.Pipeline; +using Azure.Core.Shared.Pipeline.Content; namespace Azure { diff --git a/sdk/core/Azure.Core/src/RequestMethod.cs b/sdk/core/Azure.Core/src/RequestMethod.cs index cdd297c14b18..bfc7a3d31945 100644 --- a/sdk/core/Azure.Core/src/RequestMethod.cs +++ b/sdk/core/Azure.Core/src/RequestMethod.cs @@ -2,6 +2,8 @@ // Licensed under the MIT License. using System; +using Azure.Core.Shared; +using Azure.Core.Shared.Asserts; namespace Azure.Core { diff --git a/sdk/core/Azure.Core/src/ResourceIdentifier.cs b/sdk/core/Azure.Core/src/ResourceIdentifier.cs index 03e1694dab93..2d035a2092af 100644 --- a/sdk/core/Azure.Core/src/ResourceIdentifier.cs +++ b/sdk/core/Azure.Core/src/ResourceIdentifier.cs @@ -5,6 +5,8 @@ using System.ComponentModel; using System.Linq; using System.Text; +using Azure.Core.Shared; +using Azure.Core.Shared.Asserts; namespace Azure.Core { diff --git a/sdk/core/Azure.Core/src/ResourceType.cs b/sdk/core/Azure.Core/src/ResourceType.cs index 29d7d7f7efb7..e1a472e3dcdd 100644 --- a/sdk/core/Azure.Core/src/ResourceType.cs +++ b/sdk/core/Azure.Core/src/ResourceType.cs @@ -3,6 +3,8 @@ using System; using System.ComponentModel; +using Azure.Core.Shared; +using Azure.Core.Shared.Asserts; namespace Azure.Core { diff --git a/sdk/core/Azure.Core/src/Response.cs b/sdk/core/Azure.Core/src/Response.cs index b602db8621c6..10063bc49eda 100644 --- a/sdk/core/Azure.Core/src/Response.cs +++ b/sdk/core/Azure.Core/src/Response.cs @@ -6,6 +6,8 @@ using System.Diagnostics.CodeAnalysis; using System.IO; using Azure.Core; +using Azure.Core.Shared.Diagnostics; +using Azure.Core.Shared.Pipeline.Diagnostics; namespace Azure { diff --git a/sdk/core/Azure.Core/src/ResponseError.cs b/sdk/core/Azure.Core/src/ResponseError.cs index e000ca641fc9..8f632641177d 100644 --- a/sdk/core/Azure.Core/src/ResponseError.cs +++ b/sdk/core/Azure.Core/src/ResponseError.cs @@ -8,6 +8,7 @@ using System.Text.Json; using System.Text.Json.Serialization; using Azure.Core; +using Azure.Core.Shared; namespace Azure { diff --git a/sdk/core/Azure.Core/src/Serialization/JsonObjectSerializer.cs b/sdk/core/Azure.Core/src/Serialization/JsonObjectSerializer.cs index b1c71f26409d..f4368cd5afe8 100644 --- a/sdk/core/Azure.Core/src/Serialization/JsonObjectSerializer.cs +++ b/sdk/core/Azure.Core/src/Serialization/JsonObjectSerializer.cs @@ -9,6 +9,7 @@ using System.Text.Json.Serialization; using System.Threading; using System.Threading.Tasks; +using Azure.Core.Shared.Asserts; namespace Azure.Core.Serialization { diff --git a/sdk/core/Azure.Core/src/Serialization/ObjectSerializer.cs b/sdk/core/Azure.Core/src/Serialization/ObjectSerializer.cs index d9b259339e37..85f1918aad5e 100644 --- a/sdk/core/Azure.Core/src/Serialization/ObjectSerializer.cs +++ b/sdk/core/Azure.Core/src/Serialization/ObjectSerializer.cs @@ -6,6 +6,8 @@ using System.Threading; using System.Threading.Tasks; using Azure.Core.Pipeline; +using Azure.Core.Shared.Pipeline; +using Azure.Core.Shared.Pipeline.Tasks; namespace Azure.Core.Serialization { diff --git a/sdk/core/Azure.Core/src/Shared/AppContextSwitchHelper.cs b/sdk/core/Azure.Core/src/Shared/AppContextSwitchHelper.cs index 6b511aae6c7f..5e9d0a798877 100644 --- a/sdk/core/Azure.Core/src/Shared/AppContextSwitchHelper.cs +++ b/sdk/core/Azure.Core/src/Shared/AppContextSwitchHelper.cs @@ -5,7 +5,7 @@ #nullable enable -namespace Azure.Core +namespace Azure.Core.Shared.App { /// /// Helper for interacting with AppConfig settings and their related Environment variable settings. diff --git a/sdk/core/Azure.Core/src/Shared/Argument.cs b/sdk/core/Azure.Core/src/Shared/Argument.cs index c343a853605e..f7a87c966fde 100644 --- a/sdk/core/Azure.Core/src/Shared/Argument.cs +++ b/sdk/core/Azure.Core/src/Shared/Argument.cs @@ -10,7 +10,7 @@ using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; -namespace Azure.Core +namespace Azure.Core.Shared.Asserts { /// /// Argument validation. diff --git a/sdk/core/Azure.Core/src/Shared/ArrayBufferWriter.cs b/sdk/core/Azure.Core/src/Shared/ArrayBufferWriter.cs index 9fea9d2c34b0..4f4b97cfb31b 100644 --- a/sdk/core/Azure.Core/src/Shared/ArrayBufferWriter.cs +++ b/sdk/core/Azure.Core/src/Shared/ArrayBufferWriter.cs @@ -5,7 +5,7 @@ using System.Buffers; using System.Diagnostics; -namespace Azure.Core +namespace Azure.Core.Shared { /// /// Represents a heap-based, array-backed output sink into which data can be written. diff --git a/sdk/core/Azure.Core/src/Shared/AsyncLockWithValue.cs b/sdk/core/Azure.Core/src/Shared/AsyncLockWithValue.cs index 96aa1a559c44..66a748b259a1 100644 --- a/sdk/core/Azure.Core/src/Shared/AsyncLockWithValue.cs +++ b/sdk/core/Azure.Core/src/Shared/AsyncLockWithValue.cs @@ -9,8 +9,10 @@ using System.Threading; using System.Threading.Tasks; using Azure.Core.Pipeline; +using Azure.Core.Shared.Pipeline; +using Azure.Core.Shared.Pipeline.Tasks; -namespace Azure.Core +namespace Azure.Core.Shared { /// /// Primitive that combines async lock and value cache diff --git a/sdk/core/Azure.Core/src/Shared/AuthorizationChallengeParser.cs b/sdk/core/Azure.Core/src/Shared/AuthorizationChallengeParser.cs index 601361295836..02cae9a95088 100644 --- a/sdk/core/Azure.Core/src/Shared/AuthorizationChallengeParser.cs +++ b/sdk/core/Azure.Core/src/Shared/AuthorizationChallengeParser.cs @@ -6,7 +6,7 @@ #nullable enable -namespace Azure.Core +namespace Azure.Core.Shared { /// /// A helper class for parsing Authorization challenge headers. diff --git a/sdk/core/Azure.Core/src/Shared/AzureEventSource.cs b/sdk/core/Azure.Core/src/Shared/AzureEventSource.cs index 8fcd6be7d86e..81f5ce455445 100644 --- a/sdk/core/Azure.Core/src/Shared/AzureEventSource.cs +++ b/sdk/core/Azure.Core/src/Shared/AzureEventSource.cs @@ -5,10 +5,10 @@ using System; using System.Collections.Generic; -using System.Diagnostics; using System.Diagnostics.Tracing; +using Azure.Core.Diagnostics; -namespace Azure.Core.Diagnostics +namespace Azure.Core.Shared.Diagnostics { internal abstract class AzureEventSource: EventSource { @@ -86,4 +86,4 @@ private static string DeduplicateName(string eventSourceName) return eventSourceName; } } -} \ No newline at end of file +} diff --git a/sdk/core/Azure.Core/src/Shared/AzureKeyCredentialPolicy.cs b/sdk/core/Azure.Core/src/Shared/AzureKeyCredentialPolicy.cs index f7ccddcbd68f..38e275459f29 100644 --- a/sdk/core/Azure.Core/src/Shared/AzureKeyCredentialPolicy.cs +++ b/sdk/core/Azure.Core/src/Shared/AzureKeyCredentialPolicy.cs @@ -2,10 +2,11 @@ // Licensed under the MIT License. using Azure.Core.Pipeline; +using Azure.Core.Shared.Asserts; #nullable enable -namespace Azure.Core +namespace Azure.Core.Shared.AuthPolicies { internal class AzureKeyCredentialPolicy : HttpPipelineSynchronousPolicy { diff --git a/sdk/core/Azure.Core/src/Shared/AzureResourceProviderNamespaceAttribute.cs b/sdk/core/Azure.Core/src/Shared/AzureResourceProviderNamespaceAttribute.cs index e9ac665a94a0..34b4255b7448 100644 --- a/sdk/core/Azure.Core/src/Shared/AzureResourceProviderNamespaceAttribute.cs +++ b/sdk/core/Azure.Core/src/Shared/AzureResourceProviderNamespaceAttribute.cs @@ -3,7 +3,7 @@ using System; -namespace Azure.Core +namespace Azure.Core.Shared.Attributes { /// /// This attribute should be set on all client assemblies with value of one of the resource providers diff --git a/sdk/core/Azure.Core/src/Shared/AzureSasCredentialSynchronousPolicy.cs b/sdk/core/Azure.Core/src/Shared/AzureSasCredentialSynchronousPolicy.cs index dd43d2a75489..37f6475bb6c9 100644 --- a/sdk/core/Azure.Core/src/Shared/AzureSasCredentialSynchronousPolicy.cs +++ b/sdk/core/Azure.Core/src/Shared/AzureSasCredentialSynchronousPolicy.cs @@ -3,10 +3,11 @@ using System; using Azure.Core.Pipeline; +using Azure.Core.Shared.Asserts; #nullable enable -namespace Azure.Core +namespace Azure.Core.Shared { internal class AzureSasCredentialSynchronousPolicy : HttpPipelineSynchronousPolicy { diff --git a/sdk/core/Azure.Core/src/Shared/Base64Url.cs b/sdk/core/Azure.Core/src/Shared/Base64Url.cs index 9d53d00f22fc..64ae285cc503 100644 --- a/sdk/core/Azure.Core/src/Shared/Base64Url.cs +++ b/sdk/core/Azure.Core/src/Shared/Base64Url.cs @@ -4,7 +4,7 @@ using System; using System.Text; -namespace Azure.Core +namespace Azure.Core.Shared { internal static class Base64Url { diff --git a/sdk/core/Azure.Core/src/Shared/CancellationHelper.cs b/sdk/core/Azure.Core/src/Shared/CancellationHelper.cs index 73773b9a3fcd..3b5cb7f2de9a 100644 --- a/sdk/core/Azure.Core/src/Shared/CancellationHelper.cs +++ b/sdk/core/Azure.Core/src/Shared/CancellationHelper.cs @@ -9,7 +9,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Azure.Core +namespace Azure.Core.Shared { // Copy of https://github.com/dotnet/runtime/blob/b6dda7b719eab464d417904a4f4501b42cc10cdb/src/libraries/System.Net.Http/src/System/Net/Http/CancellationHelper.cs#L10 internal static class CancellationHelper @@ -54,4 +54,4 @@ internal static void ThrowIfCancellationRequested(CancellationToken cancellation } } } -} \ No newline at end of file +} diff --git a/sdk/core/Azure.Core/src/Shared/ChangeTrackingDictionary.cs b/sdk/core/Azure.Core/src/Shared/ChangeTrackingDictionary.cs index e08339f311ed..f7c100a104ad 100644 --- a/sdk/core/Azure.Core/src/Shared/ChangeTrackingDictionary.cs +++ b/sdk/core/Azure.Core/src/Shared/ChangeTrackingDictionary.cs @@ -7,7 +7,7 @@ #nullable enable -namespace Azure.Core +namespace Azure.Core.Shared.Models { internal class ChangeTrackingDictionary : IDictionary, IReadOnlyDictionary where TKey: notnull { diff --git a/sdk/core/Azure.Core/src/Shared/ChangeTrackingList.cs b/sdk/core/Azure.Core/src/Shared/ChangeTrackingList.cs index 49e97efd18a4..644e50fe686c 100644 --- a/sdk/core/Azure.Core/src/Shared/ChangeTrackingList.cs +++ b/sdk/core/Azure.Core/src/Shared/ChangeTrackingList.cs @@ -8,7 +8,7 @@ #nullable enable -namespace Azure.Core +namespace Azure.Core.Shared.Models { internal class ChangeTrackingList: IList, IReadOnlyList { diff --git a/sdk/core/Azure.Core/src/Shared/ClientDiagnostics.cs b/sdk/core/Azure.Core/src/Shared/ClientDiagnostics.cs index 81a1859b1b97..253e91412c4a 100644 --- a/sdk/core/Azure.Core/src/Shared/ClientDiagnostics.cs +++ b/sdk/core/Azure.Core/src/Shared/ClientDiagnostics.cs @@ -1,20 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System; -using System.Collections.Generic; -using System.Globalization; -using System.IO; using System.Linq; using System.Reflection; -using System.Text; -using System.Text.Json; -using System.Text.Json.Serialization; -using System.Threading.Tasks; #nullable enable -namespace Azure.Core.Pipeline +namespace Azure.Core.Shared.Pipeline.Diagnostics { internal class ClientDiagnostics : DiagnosticScopeFactory { diff --git a/sdk/core/Azure.Core/src/Shared/CodeGenClientAttribute.cs b/sdk/core/Azure.Core/src/Shared/CodeGenClientAttribute.cs new file mode 100644 index 000000000000..aac3f686ddde --- /dev/null +++ b/sdk/core/Azure.Core/src/Shared/CodeGenClientAttribute.cs @@ -0,0 +1,19 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable enable + +using System; + +namespace Azure.Core +{ + [AttributeUsage(AttributeTargets.Class)] + internal class CodeGenClientAttribute : CodeGenTypeAttribute + { + public Type? ParentClient { get; set; } + + public CodeGenClientAttribute(string originalName) : base(originalName) + { + } + } +} diff --git a/sdk/core/Azure.Core/src/Shared/CodeGenMemberAttribute.cs b/sdk/core/Azure.Core/src/Shared/CodeGenMemberAttribute.cs new file mode 100644 index 000000000000..27c9a0797221 --- /dev/null +++ b/sdk/core/Azure.Core/src/Shared/CodeGenMemberAttribute.cs @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable enable + +using System; + +namespace Azure.Core +{ + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)] + internal class CodeGenMemberAttribute : CodeGenTypeAttribute + { + public CodeGenMemberAttribute() : base(null) + { + } + + public CodeGenMemberAttribute(string originalName) : base(originalName) + { + } + } +} diff --git a/sdk/core/Azure.Core/src/Shared/CodeGenMemberSerializationAttribute.cs b/sdk/core/Azure.Core/src/Shared/CodeGenMemberSerializationAttribute.cs new file mode 100644 index 000000000000..6df85f4383fd --- /dev/null +++ b/sdk/core/Azure.Core/src/Shared/CodeGenMemberSerializationAttribute.cs @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable enable + +using System; + +namespace Azure.Core +{ + [AttributeUsage(AttributeTargets.Property)] + internal class CodeGenMemberSerializationAttribute : Attribute + { + public string[] SerializationPath { get; } + + public CodeGenMemberSerializationAttribute(params string[] serializationPath) + { + SerializationPath = serializationPath; + } + } +} diff --git a/sdk/core/Azure.Core/src/Shared/CodeGenMemberSerializationHooksAttribute.cs b/sdk/core/Azure.Core/src/Shared/CodeGenMemberSerializationHooksAttribute.cs new file mode 100644 index 000000000000..2ce76bd6ac8a --- /dev/null +++ b/sdk/core/Azure.Core/src/Shared/CodeGenMemberSerializationHooksAttribute.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable enable + +using System; + +namespace Azure.Core +{ + [AttributeUsage(AttributeTargets.Property)] + internal class CodeGenMemberSerializationHooksAttribute : Attribute + { + /// + /// Gets or sets the method name to use when serializing the property value (property name excluded) + /// The signature of the serialization hook method must be or compatible with when invoking: + /// private void SerializeHook(Utf8JsonWriter writer); + /// + public string? SerializationValueHook { get; set; } + /// + /// Gets or sets the method name to use when deserializing the property value from the JSON + /// private static void DeserializationHook(JsonProperty property, ref TypeOfTheProperty propertyValue); // if the property is required + /// private static void DeserializationHook(JsonProperty property, ref Optional<TypeOfTheProperty> propertyValue); // if the property is optional + /// + public string? DeserializationValueHook { get; set; } + + public CodeGenMemberSerializationHooksAttribute() + { + } + } +} diff --git a/sdk/core/Azure.Core/src/Shared/CodeGenModelAttribute.cs b/sdk/core/Azure.Core/src/Shared/CodeGenModelAttribute.cs new file mode 100644 index 000000000000..4b04d68bb8a8 --- /dev/null +++ b/sdk/core/Azure.Core/src/Shared/CodeGenModelAttribute.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable enable + +using System; + +namespace Azure.Core +{ + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Enum | AttributeTargets.Struct)] + internal class CodeGenModelAttribute : CodeGenTypeAttribute + { + /// + /// Gets or sets a coma separated list of additional model usage modes. Allowed values: model, error, intput, output. + /// + public string[]? Usage { get; set; } + + /// + /// Gets or sets a coma separated list of additional model serialization formats. + /// + public string[]? Formats { get; set; } + + public CodeGenModelAttribute() : base(null) + { + } + + public CodeGenModelAttribute(string originalName): base(originalName) + { + } + } +} diff --git a/sdk/core/Azure.Core/src/Shared/CodeGenOverrideServiceVersionsAttribute.cs b/sdk/core/Azure.Core/src/Shared/CodeGenOverrideServiceVersionsAttribute.cs new file mode 100644 index 000000000000..62912a1ca6ad --- /dev/null +++ b/sdk/core/Azure.Core/src/Shared/CodeGenOverrideServiceVersionsAttribute.cs @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable enable + +using System; + +namespace Azure.Core +{ + [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] + internal class CodeGenOverrideServiceVersionsAttribute : Attribute + { + public string[] Versions { get; } + + public CodeGenOverrideServiceVersionsAttribute(params string[] versions) + { + Versions = versions; + } + } +} diff --git a/sdk/core/Azure.Core/src/Shared/CodeGenSuppressAttribute.cs b/sdk/core/Azure.Core/src/Shared/CodeGenSuppressAttribute.cs new file mode 100644 index 000000000000..afd412857ede --- /dev/null +++ b/sdk/core/Azure.Core/src/Shared/CodeGenSuppressAttribute.cs @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; + +namespace Azure.Core +{ + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Enum | AttributeTargets.Struct, AllowMultiple = true)] + internal class CodeGenSuppressAttribute : Attribute + { + public string Member { get; } + public Type[] Parameters { get; } + + public CodeGenSuppressAttribute(string member, params Type[] parameters) + { + Member = member; + Parameters = parameters; + } + } +} diff --git a/sdk/core/Azure.Core/src/Shared/CodeGenSuppressTypeAttribute.cs b/sdk/core/Azure.Core/src/Shared/CodeGenSuppressTypeAttribute.cs new file mode 100644 index 000000000000..4470836b7efa --- /dev/null +++ b/sdk/core/Azure.Core/src/Shared/CodeGenSuppressTypeAttribute.cs @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable enable + +using System; + +namespace Azure.Core +{ + [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] + internal class CodeGenSuppressTypeAttribute : Attribute + { + public string Typename { get; } + + public CodeGenSuppressTypeAttribute(string typename) + { + Typename = typename; + } + } +} diff --git a/sdk/core/Azure.Core/src/Shared/CodeGenTypeAttribute.cs b/sdk/core/Azure.Core/src/Shared/CodeGenTypeAttribute.cs new file mode 100644 index 000000000000..e982c776ece6 --- /dev/null +++ b/sdk/core/Azure.Core/src/Shared/CodeGenTypeAttribute.cs @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable enable + +using System; + +namespace Azure.Core +{ + [AttributeUsage(AttributeTargets.Class)] + internal class CodeGenTypeAttribute : Attribute + { + public string? OriginalName { get; } + + public CodeGenTypeAttribute(string? originalName) + { + OriginalName = originalName; + } + } +} diff --git a/sdk/core/Azure.Core/src/Shared/ConnectionString.cs b/sdk/core/Azure.Core/src/Shared/ConnectionString.cs index 23537d2e89d4..f9eeb5a6a38a 100644 --- a/sdk/core/Azure.Core/src/Shared/ConnectionString.cs +++ b/sdk/core/Azure.Core/src/Shared/ConnectionString.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Text; -namespace Azure.Core +namespace Azure.Core.Shared.Auth { internal sealed class ConnectionString { diff --git a/sdk/core/Azure.Core/src/Shared/ContentTypeUtilities.cs b/sdk/core/Azure.Core/src/Shared/ContentTypeUtilities.cs index a757e9560039..699cb76809de 100644 --- a/sdk/core/Azure.Core/src/Shared/ContentTypeUtilities.cs +++ b/sdk/core/Azure.Core/src/Shared/ContentTypeUtilities.cs @@ -6,7 +6,7 @@ using System; using System.Text; -namespace Azure.Core.Pipeline +namespace Azure.Core.Shared.Pipeline.Content { internal static class ContentTypeUtilities { diff --git a/sdk/core/Azure.Core/src/Shared/DiagnosticScope.cs b/sdk/core/Azure.Core/src/Shared/DiagnosticScope.cs index f88aec79d956..11d5654c2d4e 100644 --- a/sdk/core/Azure.Core/src/Shared/DiagnosticScope.cs +++ b/sdk/core/Azure.Core/src/Shared/DiagnosticScope.cs @@ -11,8 +11,9 @@ using System.Globalization; using System.Linq.Expressions; using System.Reflection; +using Azure.Core.Shared.App; -namespace Azure.Core.Pipeline +namespace Azure.Core.Shared.Pipeline.Diagnostics { internal readonly struct DiagnosticScope : IDisposable { diff --git a/sdk/core/Azure.Core/src/Shared/DiagnosticScopeFactory.cs b/sdk/core/Azure.Core/src/Shared/DiagnosticScopeFactory.cs index f41d0d555fa2..23667743db08 100644 --- a/sdk/core/Azure.Core/src/Shared/DiagnosticScopeFactory.cs +++ b/sdk/core/Azure.Core/src/Shared/DiagnosticScopeFactory.cs @@ -9,7 +9,7 @@ #nullable enable -namespace Azure.Core.Pipeline +namespace Azure.Core.Shared.Pipeline.Diagnostics { #pragma warning disable CA1001 // Types that own disposable fields should be disposable internal class DiagnosticScopeFactory diff --git a/sdk/core/Azure.Core/src/Shared/DictionaryHeaders.cs b/sdk/core/Azure.Core/src/Shared/DictionaryHeaders.cs index 778f72631e6a..32ae057a1e59 100644 --- a/sdk/core/Azure.Core/src/Shared/DictionaryHeaders.cs +++ b/sdk/core/Azure.Core/src/Shared/DictionaryHeaders.cs @@ -7,7 +7,7 @@ #nullable disable -namespace Azure.Core +namespace Azure.Core.Shared.Headers { /// /// An implementation for manipulating headers on . diff --git a/sdk/core/Azure.Core/src/Shared/FixedDelayWithNoJitterStrategy.cs b/sdk/core/Azure.Core/src/Shared/FixedDelayWithNoJitterStrategy.cs index 1051e56b3ff9..7cad70687a4b 100644 --- a/sdk/core/Azure.Core/src/Shared/FixedDelayWithNoJitterStrategy.cs +++ b/sdk/core/Azure.Core/src/Shared/FixedDelayWithNoJitterStrategy.cs @@ -5,7 +5,7 @@ #nullable enable -namespace Azure.Core +namespace Azure.Core.Shared.Delay { /// /// A delay strategy that uses a fixed delay with no jitter applied. This is used by data plane LROs. diff --git a/sdk/core/Azure.Core/src/Shared/FormUrlEncodedContent.cs b/sdk/core/Azure.Core/src/Shared/FormUrlEncodedContent.cs index 91490f81a119..2a8572502946 100644 --- a/sdk/core/Azure.Core/src/Shared/FormUrlEncodedContent.cs +++ b/sdk/core/Azure.Core/src/Shared/FormUrlEncodedContent.cs @@ -7,9 +7,8 @@ using System.Text; using System.Threading; using System.Threading.Tasks; -using Azure.Core; -namespace Azure.Core +namespace Azure.Core.Shared.Content { internal class FormUrlEncodedContent : RequestContent { diff --git a/sdk/core/Azure.Core/src/Shared/ForwardsClientCallsAttribute.cs b/sdk/core/Azure.Core/src/Shared/ForwardsClientCallsAttribute.cs index e9e933541b8f..a4c964f85137 100644 --- a/sdk/core/Azure.Core/src/Shared/ForwardsClientCallsAttribute.cs +++ b/sdk/core/Azure.Core/src/Shared/ForwardsClientCallsAttribute.cs @@ -3,7 +3,7 @@ using System; -namespace Azure.Core +namespace Azure.Core.Shared.Attributes { /// /// Marks methods that call methods on other client and don't need their diagnostics verified. diff --git a/sdk/core/Azure.Core/src/Shared/GeneratorPageableHelpers.cs b/sdk/core/Azure.Core/src/Shared/GeneratorPageableHelpers.cs new file mode 100644 index 000000000000..baa07c363698 --- /dev/null +++ b/sdk/core/Azure.Core/src/Shared/GeneratorPageableHelpers.cs @@ -0,0 +1,173 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable enable + +using System; +using System.Collections.Generic; +using System.Text; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Core.Shared.Paging; +using Azure.Core.Shared.Pipeline.Diagnostics; + +namespace Autorest.CSharp.Core +{ + internal static class GeneratorPageableHelpers + { + private static readonly byte[] DefaultItemPropertyName = Encoding.UTF8.GetBytes("value"); + private static readonly byte[] DefaultNextLinkPropertyName = Encoding.UTF8.GetBytes("nextLink"); + + public static AsyncPageable CreateAsyncPageable( + Func? createFirstPageRequest, + Func? createNextPageRequest, + Func? Values, string? NextLink)> responseParser, + ClientDiagnostics clientDiagnostics, + HttpPipeline pipeline, + string scopeName, + RequestContext? requestContext = null) where T : notnull + { + return new PageableHelpers.AsyncPageableWrapper(new PageableHelpers.PageableImplementation(createFirstPageRequest, createNextPageRequest, responseParser, pipeline, clientDiagnostics, scopeName, null, requestContext)); + } + + public static AsyncPageable CreateAsyncPageable( + Func? createFirstPageRequest, + Func? createNextPageRequest, + Func valueFactory, + ClientDiagnostics clientDiagnostics, + HttpPipeline pipeline, + string scopeName, + string? itemPropertyName, + string? nextLinkPropertyName, + CancellationToken cancellationToken) where T : notnull + { + return new PageableHelpers.AsyncPageableWrapper(new PageableHelpers.PageableImplementation(null, createFirstPageRequest, createNextPageRequest, valueFactory, pipeline, clientDiagnostics, scopeName, itemPropertyName, nextLinkPropertyName, null, cancellationToken, null)); + } + + public static AsyncPageable CreateAsyncPageable( + Func? createFirstPageRequest, + Func? createNextPageRequest, + Func valueFactory, + ClientDiagnostics clientDiagnostics, + HttpPipeline pipeline, + string scopeName, + string? itemPropertyName, + string? nextLinkPropertyName, + RequestContext? requestContext = null) where T : notnull + { + return new PageableHelpers.AsyncPageableWrapper(new PageableHelpers.PageableImplementation(null, createFirstPageRequest, createNextPageRequest, valueFactory, pipeline, clientDiagnostics, scopeName, itemPropertyName, nextLinkPropertyName, null, requestContext?.CancellationToken, requestContext?.ErrorOptions)); + } + + public static AsyncPageable CreateAsyncPageable( + Response initialResponse, + Func? createNextPageRequest, + Func valueFactory, + ClientDiagnostics clientDiagnostics, + HttpPipeline pipeline, + string scopeName, + string? itemPropertyName, + string? nextLinkPropertyName, + CancellationToken cancellationToken) where T : notnull + { + return new PageableHelpers.AsyncPageableWrapper(new PageableHelpers.PageableImplementation(initialResponse, null, createNextPageRequest, valueFactory, pipeline, clientDiagnostics, scopeName, itemPropertyName, nextLinkPropertyName, null, cancellationToken, null)); + } + + public static Pageable CreatePageable( + Func? createFirstPageRequest, + Func? createNextPageRequest, + Func? Values, string? NextLink)> responseParser, + ClientDiagnostics clientDiagnostics, + HttpPipeline pipeline, + string scopeName, + RequestContext? requestContext = null) where T : notnull + { + return new PageableHelpers.PageableWrapper(new PageableHelpers.PageableImplementation(createFirstPageRequest, createNextPageRequest, responseParser, pipeline, clientDiagnostics, scopeName, null, requestContext)); + } + + public static Pageable CreatePageable( + Func? createFirstPageRequest, + Func? createNextPageRequest, + Func valueFactory, + ClientDiagnostics clientDiagnostics, + HttpPipeline pipeline, + string scopeName, + string? itemPropertyName, + string? nextLinkPropertyName, + CancellationToken cancellationToken) where T : notnull + { + return new PageableHelpers.PageableWrapper(new PageableHelpers.PageableImplementation(null, createFirstPageRequest, createNextPageRequest, valueFactory, pipeline, clientDiagnostics, scopeName, itemPropertyName, nextLinkPropertyName, null, cancellationToken, null)); + } + + public static Pageable CreatePageable( + Func? createFirstPageRequest, + Func? createNextPageRequest, + Func valueFactory, + ClientDiagnostics clientDiagnostics, + HttpPipeline pipeline, + string scopeName, + string? itemPropertyName, + string? nextLinkPropertyName, + RequestContext? requestContext = null) where T : notnull + { + return new PageableHelpers.PageableWrapper(new PageableHelpers.PageableImplementation(null, createFirstPageRequest, createNextPageRequest, valueFactory, pipeline, clientDiagnostics, scopeName, itemPropertyName, nextLinkPropertyName, null, requestContext?.CancellationToken, requestContext?.ErrorOptions)); + } + + public static Pageable CreatePageable( + Response initialResponse, + Func? createNextPageRequest, + Func valueFactory, + ClientDiagnostics clientDiagnostics, + HttpPipeline pipeline, + string scopeName, + string? itemPropertyName, + string? nextLinkPropertyName, + CancellationToken cancellationToken) where T : notnull + { + return new PageableHelpers.PageableWrapper(new PageableHelpers.PageableImplementation(initialResponse, null, createNextPageRequest, valueFactory, pipeline, clientDiagnostics, scopeName, itemPropertyName, nextLinkPropertyName, null, cancellationToken, null)); + } + + //public static async ValueTask>> CreateAsyncPageable( + // WaitUntil waitUntil, + // HttpMessage message, + // Func? createNextPageMethod, + // Func valueFactory, + // ClientDiagnostics clientDiagnostics, + // HttpPipeline pipeline, + // OperationFinalStateVia finalStateVia, + // string scopeName, + // string? itemPropertyName, + // string? nextLinkPropertyName, + // RequestContext? requestContext = null) where T : notnull + // => await PageableHelpers.CreateAsyncPageable(waitUntil, message, createNextPageMethod, valueFactory, clientDiagnostics, pipeline, finalStateVia, scopeName, itemPropertyName, nextLinkPropertyName, requestContext).ConfigureAwait(false); + + //public static Operation> CreatePageable( + // WaitUntil waitUntil, + // HttpMessage message, + // Func? createNextPageMethod, + // Func valueFactory, + // ClientDiagnostics clientDiagnostics, + // HttpPipeline pipeline, + // OperationFinalStateVia finalStateVia, + // string scopeName, + // string? itemPropertyName, + // string? nextLinkPropertyName, + // RequestContext? requestContext = null) where T : notnull + // => PageableHelpers.CreatePageable(waitUntil, message, createNextPageMethod, valueFactory, clientDiagnostics, pipeline, finalStateVia, scopeName, itemPropertyName, nextLinkPropertyName, requestContext); + + public static Pageable CreateEnumerable( + Func> firstPageFunc, + Func>? nextPageFunc, + int? pageSize = default) where T : notnull + => PageableHelpers.CreateEnumerable(firstPageFunc, nextPageFunc, pageSize); + + public static AsyncPageable CreateAsyncEnumerable( + Func>> firstPageFunc, + Func>>? nextPageFunc, + int? pageSize = default) where T : notnull + => PageableHelpers.CreateAsyncEnumerable(firstPageFunc, nextPageFunc, pageSize); + } +} diff --git a/sdk/core/Azure.Core/src/Shared/HashCodeBuilder.cs b/sdk/core/Azure.Core/src/Shared/HashCodeBuilder.cs index a6a76f93f83f..91345e68ceb8 100644 --- a/sdk/core/Azure.Core/src/Shared/HashCodeBuilder.cs +++ b/sdk/core/Azure.Core/src/Shared/HashCodeBuilder.cs @@ -8,7 +8,7 @@ #nullable enable -namespace Azure.Core +namespace Azure.Core.Shared { /// /// Copied from https://github.com/dotnet/corefx/blob/master/src/Common/src/CoreLib/System/HashCode.cs. diff --git a/sdk/core/Azure.Core/src/Shared/HttpMessageSanitizer.cs b/sdk/core/Azure.Core/src/Shared/HttpMessageSanitizer.cs index 23162660e41a..0ff3d3eda342 100644 --- a/sdk/core/Azure.Core/src/Shared/HttpMessageSanitizer.cs +++ b/sdk/core/Azure.Core/src/Shared/HttpMessageSanitizer.cs @@ -6,7 +6,7 @@ using System.Text; using System.Linq; -namespace Azure.Core +namespace Azure.Core.Shared.Pipeline.Diagnostics { internal class HttpMessageSanitizer { diff --git a/sdk/core/Azure.Core/src/Shared/HttpPipelineExtensions.cs b/sdk/core/Azure.Core/src/Shared/HttpPipelineExtensions.cs index 231f13cf537e..a16f783b9da9 100644 --- a/sdk/core/Azure.Core/src/Shared/HttpPipelineExtensions.cs +++ b/sdk/core/Azure.Core/src/Shared/HttpPipelineExtensions.cs @@ -6,8 +6,9 @@ using System.Threading; using System.Threading.Tasks; using Azure.Core.Pipeline; +using Azure.Core.Shared.Pipeline.Diagnostics; -namespace Azure.Core +namespace Azure.Core.Shared.Pipeline { internal static class HttpPipelineExtensions { diff --git a/sdk/core/Azure.Core/src/Shared/IOperationSource.cs b/sdk/core/Azure.Core/src/Shared/IOperationSource.cs index 1be2f9b733d0..cc8e1b6dbf08 100644 --- a/sdk/core/Azure.Core/src/Shared/IOperationSource.cs +++ b/sdk/core/Azure.Core/src/Shared/IOperationSource.cs @@ -4,7 +4,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Azure.Core +namespace Azure.Core.Shared.Operations { internal interface IOperationSource { diff --git a/sdk/core/Azure.Core/src/Shared/IUtf8JsonSerializable.cs b/sdk/core/Azure.Core/src/Shared/IUtf8JsonSerializable.cs index 5653e4609313..b35409849150 100644 --- a/sdk/core/Azure.Core/src/Shared/IUtf8JsonSerializable.cs +++ b/sdk/core/Azure.Core/src/Shared/IUtf8JsonSerializable.cs @@ -5,7 +5,7 @@ using System.Text.Json; -namespace Azure.Core +namespace Azure.Core.Shared.Serialization { internal interface IUtf8JsonSerializable { diff --git a/sdk/core/Azure.Core/src/Shared/IXmlSerializable.cs b/sdk/core/Azure.Core/src/Shared/IXmlSerializable.cs index 343b127384d2..02ad62599cf8 100644 --- a/sdk/core/Azure.Core/src/Shared/IXmlSerializable.cs +++ b/sdk/core/Azure.Core/src/Shared/IXmlSerializable.cs @@ -5,7 +5,7 @@ using System.Xml; -namespace Azure.Core +namespace Azure.Core.Shared.Xml { internal interface IXmlSerializable { diff --git a/sdk/core/Azure.Core/src/Shared/InitializationConstructorAttribute.cs b/sdk/core/Azure.Core/src/Shared/InitializationConstructorAttribute.cs index d087b58c2a0e..583f6d63c213 100644 --- a/sdk/core/Azure.Core/src/Shared/InitializationConstructorAttribute.cs +++ b/sdk/core/Azure.Core/src/Shared/InitializationConstructorAttribute.cs @@ -3,7 +3,7 @@ using System; -namespace Azure.Core +namespace Azure.Core.Shared { /// /// An attribute class indicating to AutoRest which constructor to use for initialization. diff --git a/sdk/core/Azure.Core/src/Shared/JsonElementExtensions.cs b/sdk/core/Azure.Core/src/Shared/JsonElementExtensions.cs index fea6b2560c4f..ac3c35820110 100644 --- a/sdk/core/Azure.Core/src/Shared/JsonElementExtensions.cs +++ b/sdk/core/Azure.Core/src/Shared/JsonElementExtensions.cs @@ -6,11 +6,10 @@ using System; using System.Collections.Generic; using System.Diagnostics; -using System.Globalization; using System.Text.Json; -using System.Xml; +using Azure.Core.Shared.Formatters; -namespace Azure.Core +namespace Azure.Core.Shared.Json { internal static class JsonElementExtensions { diff --git a/sdk/core/Azure.Core/src/Shared/LightweightPkcs8Decoder.cs b/sdk/core/Azure.Core/src/Shared/LightweightPkcs8Decoder.cs index 1f9fb2806265..c6bf70b5f6df 100644 --- a/sdk/core/Azure.Core/src/Shared/LightweightPkcs8Decoder.cs +++ b/sdk/core/Azure.Core/src/Shared/LightweightPkcs8Decoder.cs @@ -7,7 +7,7 @@ using System.Security.Cryptography; using System.Text; -namespace Azure.Core +namespace Azure.Core.Shared { /// /// This is a very targeted PKCS#8 decoder for use when reading a PKCS# encoded RSA private key from an diff --git a/sdk/core/Azure.Core/src/Shared/Multipart/MemoryRequest.cs b/sdk/core/Azure.Core/src/Shared/Multipart/MemoryRequest.cs index efca2a366b4b..3640ff7ed9ee 100644 --- a/sdk/core/Azure.Core/src/Shared/Multipart/MemoryRequest.cs +++ b/sdk/core/Azure.Core/src/Shared/Multipart/MemoryRequest.cs @@ -5,7 +5,7 @@ using System.Collections.Generic; using System.Linq; -namespace Azure.Core +namespace Azure.Core.Shared { internal class MemoryRequest : Request { diff --git a/sdk/core/Azure.Core/src/Shared/Multipart/MemoryResponse.cs b/sdk/core/Azure.Core/src/Shared/Multipart/MemoryResponse.cs index 7179356a4ead..401f96ef0719 100644 --- a/sdk/core/Azure.Core/src/Shared/Multipart/MemoryResponse.cs +++ b/sdk/core/Azure.Core/src/Shared/Multipart/MemoryResponse.cs @@ -9,7 +9,7 @@ #nullable disable -namespace Azure.Core +namespace Azure.Core.Shared { /// /// A Response that can be constructed in memory without being tied to a diff --git a/sdk/core/Azure.Core/src/Shared/Multipart/MemoryTransport.cs b/sdk/core/Azure.Core/src/Shared/Multipart/MemoryTransport.cs index ea59b69aaca7..b0c3436b5223 100644 --- a/sdk/core/Azure.Core/src/Shared/Multipart/MemoryTransport.cs +++ b/sdk/core/Azure.Core/src/Shared/Multipart/MemoryTransport.cs @@ -4,7 +4,7 @@ using System.Threading.Tasks; using Azure.Core.Pipeline; -namespace Azure.Core +namespace Azure.Core.Shared { /// /// An empty transport protocol that never sends anything over the wire. diff --git a/sdk/core/Azure.Core/src/Shared/Multipart/MultipartContent.cs b/sdk/core/Azure.Core/src/Shared/Multipart/MultipartContent.cs index dbc7298ea723..a6970bbf827c 100644 --- a/sdk/core/Azure.Core/src/Shared/Multipart/MultipartContent.cs +++ b/sdk/core/Azure.Core/src/Shared/Multipart/MultipartContent.cs @@ -10,7 +10,7 @@ #nullable disable -namespace Azure.Core +namespace Azure.Core.Shared { /// /// Provides a container for content encoded using multipart/form-data MIME type. diff --git a/sdk/core/Azure.Core/src/Shared/Multipart/MultipartFormDataContent.cs b/sdk/core/Azure.Core/src/Shared/Multipart/MultipartFormDataContent.cs index 363ff33ca1a5..367b8f734001 100644 --- a/sdk/core/Azure.Core/src/Shared/Multipart/MultipartFormDataContent.cs +++ b/sdk/core/Azure.Core/src/Shared/Multipart/MultipartFormDataContent.cs @@ -5,7 +5,7 @@ #nullable disable -namespace Azure.Core +namespace Azure.Core.Shared { /// /// Provides a container for content encoded using multipart/form-data MIME type. diff --git a/sdk/core/Azure.Core/src/Shared/NextLinkOperationImplementation.cs b/sdk/core/Azure.Core/src/Shared/NextLinkOperationImplementation.cs index 120c2d63a7d3..cb6b2238632a 100644 --- a/sdk/core/Azure.Core/src/Shared/NextLinkOperationImplementation.cs +++ b/sdk/core/Azure.Core/src/Shared/NextLinkOperationImplementation.cs @@ -5,13 +5,13 @@ using System; using System.Linq; -using System.IO; using System.Text.Json; using System.Threading; using System.Threading.Tasks; using Azure.Core.Pipeline; +using Azure.Core.Shared.Json; -namespace Azure.Core +namespace Azure.Core.Shared.Operations { internal class NextLinkOperationImplementation : IOperation { diff --git a/sdk/core/Azure.Core/src/Shared/NoBodyResponseOfT.cs b/sdk/core/Azure.Core/src/Shared/NoBodyResponseOfT.cs index b07c9f815bd5..11aea23cd92d 100644 --- a/sdk/core/Azure.Core/src/Shared/NoBodyResponseOfT.cs +++ b/sdk/core/Azure.Core/src/Shared/NoBodyResponseOfT.cs @@ -3,7 +3,7 @@ using System; -namespace Azure +namespace Azure.Core.Shared { /// /// NOTE: This type should not be used going forward. Use NoValueResponse{T} instead. diff --git a/sdk/core/Azure.Core/src/Shared/OperationFinalStateVia.cs b/sdk/core/Azure.Core/src/Shared/OperationFinalStateVia.cs index 8ad2396db952..1bcd85fa0c30 100644 --- a/sdk/core/Azure.Core/src/Shared/OperationFinalStateVia.cs +++ b/sdk/core/Azure.Core/src/Shared/OperationFinalStateVia.cs @@ -3,7 +3,7 @@ #nullable enable -namespace Azure.Core +namespace Azure.Core.Shared.Operations { internal enum OperationFinalStateVia { diff --git a/sdk/core/Azure.Core/src/Shared/OperationHelpers.cs b/sdk/core/Azure.Core/src/Shared/OperationHelpers.cs index 050fd554bbe1..08055be6bf04 100644 --- a/sdk/core/Azure.Core/src/Shared/OperationHelpers.cs +++ b/sdk/core/Azure.Core/src/Shared/OperationHelpers.cs @@ -7,7 +7,7 @@ #nullable enable -namespace Azure.Core +namespace Azure.Core.Shared.Operations { internal static class OperationHelpers { diff --git a/sdk/core/Azure.Core/src/Shared/OperationInternal.cs b/sdk/core/Azure.Core/src/Shared/OperationInternal.cs index f9f03777223a..05da85a76b69 100644 --- a/sdk/core/Azure.Core/src/Shared/OperationInternal.cs +++ b/sdk/core/Azure.Core/src/Shared/OperationInternal.cs @@ -5,11 +5,13 @@ using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; -using Azure.Core.Pipeline; +using Azure.Core.Shared.Asserts; +using Azure.Core.Shared.Delay; +using Azure.Core.Shared.Pipeline.Diagnostics; #nullable enable -namespace Azure.Core +namespace Azure.Core.Shared.Operations { /// /// A helper class used to build long-running operation instances. In order to use this helper: diff --git a/sdk/core/Azure.Core/src/Shared/OperationInternalBase.cs b/sdk/core/Azure.Core/src/Shared/OperationInternalBase.cs index dad6480c22ce..b7e154da07ec 100644 --- a/sdk/core/Azure.Core/src/Shared/OperationInternalBase.cs +++ b/sdk/core/Azure.Core/src/Shared/OperationInternalBase.cs @@ -9,8 +9,11 @@ using System.Threading; using System.Threading.Tasks; using Azure.Core.Pipeline; +using Azure.Core.Shared.Pipeline; +using Azure.Core.Shared.Pipeline.Diagnostics; +using Azure.Core.Shared.Pipeline.Tasks; -namespace Azure.Core +namespace Azure.Core.Shared.Operations { internal abstract class OperationInternalBase { diff --git a/sdk/core/Azure.Core/src/Shared/OperationInternalOfT.cs b/sdk/core/Azure.Core/src/Shared/OperationInternalOfT.cs index cf4a902a6939..6c79c18ace37 100644 --- a/sdk/core/Azure.Core/src/Shared/OperationInternalOfT.cs +++ b/sdk/core/Azure.Core/src/Shared/OperationInternalOfT.cs @@ -7,9 +7,12 @@ using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; -using Azure.Core.Pipeline; +using Azure.Core.Shared.Asserts; +using Azure.Core.Shared.Delay; +using Azure.Core.Shared.Pipeline.Diagnostics; +using Azure.Core.Shared.Pipeline.Tasks; -namespace Azure.Core +namespace Azure.Core.Shared.Operations { /// /// A helper class used to build long-running operation instances. In order to use this helper: diff --git a/sdk/core/Azure.Core/src/Shared/OperationPoller.cs b/sdk/core/Azure.Core/src/Shared/OperationPoller.cs index 4d472f8c3bf9..6fe39eee10d8 100644 --- a/sdk/core/Azure.Core/src/Shared/OperationPoller.cs +++ b/sdk/core/Azure.Core/src/Shared/OperationPoller.cs @@ -4,13 +4,13 @@ #nullable enable using System; -using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Azure.Core.Pipeline; -using Azure.Core.Shared; +using Azure.Core.Shared.Delay; +using Azure.Core.Shared.Pipeline.Tasks; -namespace Azure.Core +namespace Azure.Core.Shared.Operations { /// /// Implementation of LRO polling logic. diff --git a/sdk/core/Azure.Core/src/Shared/Optional.cs b/sdk/core/Azure.Core/src/Shared/Optional.cs index 4e1dade9d9e0..7870c4c5c82f 100644 --- a/sdk/core/Azure.Core/src/Shared/Optional.cs +++ b/sdk/core/Azure.Core/src/Shared/Optional.cs @@ -4,10 +4,9 @@ #nullable disable using System.Collections.Generic; -using System.Linq; using System.Text.Json; -namespace Azure.Core +namespace Azure.Core.Shared.Models { internal static class Optional { diff --git a/sdk/core/Azure.Core/src/Shared/Page.cs b/sdk/core/Azure.Core/src/Shared/Page.cs index 1438fdfd5f04..90d6878ecead 100644 --- a/sdk/core/Azure.Core/src/Shared/Page.cs +++ b/sdk/core/Azure.Core/src/Shared/Page.cs @@ -6,7 +6,7 @@ using System.Collections.Generic; using System.Linq; -namespace Azure.Core +namespace Azure.Core.Shared.Paging { internal static class Page { diff --git a/sdk/core/Azure.Core/src/Shared/PageResponseEnumerator.cs b/sdk/core/Azure.Core/src/Shared/PageResponseEnumerator.cs index b0a0d7a3c3f9..2fae93cfbb61 100644 --- a/sdk/core/Azure.Core/src/Shared/PageResponseEnumerator.cs +++ b/sdk/core/Azure.Core/src/Shared/PageResponseEnumerator.cs @@ -7,7 +7,7 @@ using System.Collections.Generic; using System.Threading.Tasks; -namespace Azure.Core +namespace Azure.Core.Shared.Paging { internal static class PageResponseEnumerator { diff --git a/sdk/core/Azure.Core/src/Shared/PageableHelpers.cs b/sdk/core/Azure.Core/src/Shared/PageableHelpers.cs index 4d15951fef15..256154008acf 100644 --- a/sdk/core/Azure.Core/src/Shared/PageableHelpers.cs +++ b/sdk/core/Azure.Core/src/Shared/PageableHelpers.cs @@ -11,8 +11,9 @@ using System.Threading; using System.Threading.Tasks; using Azure.Core.Pipeline; +using Azure.Core.Shared.Pipeline.Diagnostics; -namespace Azure.Core +namespace Azure.Core.Shared.Paging { internal static class PageableHelpers { @@ -59,31 +60,31 @@ public static Pageable CreatePageable(Response initialResponse, Func(new PageableImplementation(initialResponse, null, createNextPageRequest, valueFactory, pipeline, clientDiagnostics, scopeName, itemPropertyName, nextLinkPropertyName, null, cancellationToken, null)); } - public static async ValueTask>> CreateAsyncPageable(WaitUntil waitUntil, HttpMessage message, Func? createNextPageMethod, Func valueFactory, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, OperationFinalStateVia finalStateVia, string scopeName, string? itemPropertyName, string? nextLinkPropertyName, RequestContext? requestContext = null) where T : notnull - { - AsyncPageable ResultSelector(Response r) => new AsyncPageableWrapper(new PageableImplementation(r, null, createNextPageMethod, valueFactory, pipeline, clientDiagnostics, scopeName, itemPropertyName, nextLinkPropertyName, null, requestContext?.CancellationToken, requestContext?.ErrorOptions)); - - var response = await pipeline.ProcessMessageAsync(message, requestContext).ConfigureAwait(false); - var operation = new ProtocolOperation>(clientDiagnostics, pipeline, message.Request, response, finalStateVia, scopeName, ResultSelector); - if (waitUntil == WaitUntil.Completed) - { - await operation.WaitForCompletionAsync(requestContext?.CancellationToken ?? default).ConfigureAwait(false); - } - return operation; - } - - public static Operation> CreatePageable(WaitUntil waitUntil, HttpMessage message, Func? createNextPageMethod, Func valueFactory, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, OperationFinalStateVia finalStateVia, string scopeName, string? itemPropertyName, string? nextLinkPropertyName, RequestContext? requestContext = null) where T : notnull - { - Pageable ResultSelector(Response r) => new PageableWrapper(new PageableImplementation(r, null, createNextPageMethod, valueFactory, pipeline, clientDiagnostics, scopeName, itemPropertyName, nextLinkPropertyName, null, requestContext?.CancellationToken, requestContext?.ErrorOptions)); - - var response = pipeline.ProcessMessage(message, requestContext); - var operation = new ProtocolOperation>(clientDiagnostics, pipeline, message.Request, response, finalStateVia, scopeName, ResultSelector); - if (waitUntil == WaitUntil.Completed) - { - operation.WaitForCompletion(requestContext?.CancellationToken ?? default); - } - return operation; - } + //public static async ValueTask>> CreateAsyncPageable(WaitUntil waitUntil, HttpMessage message, Func? createNextPageMethod, Func valueFactory, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, OperationFinalStateVia finalStateVia, string scopeName, string? itemPropertyName, string? nextLinkPropertyName, RequestContext? requestContext = null) where T : notnull + //{ + // AsyncPageable ResultSelector(Response r) => new AsyncPageableWrapper(new PageableImplementation(r, null, createNextPageMethod, valueFactory, pipeline, clientDiagnostics, scopeName, itemPropertyName, nextLinkPropertyName, null, requestContext?.CancellationToken, requestContext?.ErrorOptions)); + + // var response = await pipeline.ProcessMessageAsync(message, requestContext).ConfigureAwait(false); + // var operation = new ProtocolOperation>(clientDiagnostics, pipeline, message.Request, response, finalStateVia, scopeName, ResultSelector); + // if (waitUntil == WaitUntil.Completed) + // { + // await operation.WaitForCompletionAsync(requestContext?.CancellationToken ?? default).ConfigureAwait(false); + // } + // return operation; + //} + + //public static Operation> CreatePageable(WaitUntil waitUntil, HttpMessage message, Func? createNextPageMethod, Func valueFactory, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, OperationFinalStateVia finalStateVia, string scopeName, string? itemPropertyName, string? nextLinkPropertyName, RequestContext? requestContext = null) where T : notnull + //{ + // Pageable ResultSelector(Response r) => new PageableWrapper(new PageableImplementation(r, null, createNextPageMethod, valueFactory, pipeline, clientDiagnostics, scopeName, itemPropertyName, nextLinkPropertyName, null, requestContext?.CancellationToken, requestContext?.ErrorOptions)); + + // var response = pipeline.ProcessMessage(message, requestContext); + // var operation = new ProtocolOperation>(clientDiagnostics, pipeline, message.Request, response, finalStateVia, scopeName, ResultSelector); + // if (waitUntil == WaitUntil.Completed) + // { + // operation.WaitForCompletion(requestContext?.CancellationToken ?? default); + // } + // return operation; + //} public static Pageable CreateEnumerable(Func> firstPageFunc, Func>? nextPageFunc, int? pageSize = default) where T : notnull { diff --git a/sdk/core/Azure.Core/src/Shared/PemReader.cs b/sdk/core/Azure.Core/src/Shared/PemReader.cs index 9ef4dd0b97ae..be309991fcc8 100644 --- a/sdk/core/Azure.Core/src/Shared/PemReader.cs +++ b/sdk/core/Azure.Core/src/Shared/PemReader.cs @@ -7,7 +7,7 @@ using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; -namespace Azure.Core +namespace Azure.Core.Shared { /// /// Reads PEM streams to parse PEM fields or load certificates. diff --git a/sdk/core/Azure.Core/src/Shared/PropertyReferenceTypeAttribute.cs b/sdk/core/Azure.Core/src/Shared/PropertyReferenceTypeAttribute.cs index 141b350a5eae..f37f29974c4f 100644 --- a/sdk/core/Azure.Core/src/Shared/PropertyReferenceTypeAttribute.cs +++ b/sdk/core/Azure.Core/src/Shared/PropertyReferenceTypeAttribute.cs @@ -3,7 +3,7 @@ using System; -namespace Azure.Core +namespace Azure.Core.Shared { /// /// An attribute class indicating to Autorest a reference type for code generation. diff --git a/sdk/core/Azure.Core/src/Shared/ProtocolOperation.cs b/sdk/core/Azure.Core/src/Shared/ProtocolOperation.cs index 5673b36fa4cc..36967cf3c865 100644 --- a/sdk/core/Azure.Core/src/Shared/ProtocolOperation.cs +++ b/sdk/core/Azure.Core/src/Shared/ProtocolOperation.cs @@ -7,8 +7,9 @@ using System.Threading; using System.Threading.Tasks; using Azure.Core.Pipeline; +using Azure.Core.Shared.Pipeline.Diagnostics; -namespace Azure.Core +namespace Azure.Core.Shared.Operations { internal class ProtocolOperation : Operation, IOperation where T : notnull { diff --git a/sdk/core/Azure.Core/src/Shared/ProtocolOperationHelpers.cs b/sdk/core/Azure.Core/src/Shared/ProtocolOperationHelpers.cs index 8e19fa6a25b6..6d67d9916c39 100644 --- a/sdk/core/Azure.Core/src/Shared/ProtocolOperationHelpers.cs +++ b/sdk/core/Azure.Core/src/Shared/ProtocolOperationHelpers.cs @@ -7,8 +7,10 @@ using System.Threading; using System.Threading.Tasks; using Azure.Core.Pipeline; +using Azure.Core.Shared.Pipeline; +using Azure.Core.Shared.Pipeline.Diagnostics; -namespace Azure.Core +namespace Azure.Core.Shared.Operations { internal static class ProtocolOperationHelpers { diff --git a/sdk/core/Azure.Core/src/Shared/RawRequestUriBuilder.cs b/sdk/core/Azure.Core/src/Shared/RawRequestUriBuilder.cs index d9478175a728..38c6d8d81d65 100644 --- a/sdk/core/Azure.Core/src/Shared/RawRequestUriBuilder.cs +++ b/sdk/core/Azure.Core/src/Shared/RawRequestUriBuilder.cs @@ -7,7 +7,7 @@ using System.Globalization; using System.IO; -namespace Azure.Core +namespace Azure.Core.Shared.RequestUri { internal class RawRequestUriBuilder: RequestUriBuilder { diff --git a/sdk/core/Azure.Core/src/Shared/ReferenceTypeAttribute.cs b/sdk/core/Azure.Core/src/Shared/ReferenceTypeAttribute.cs index 04e86cc394d9..05c3cd3301c7 100644 --- a/sdk/core/Azure.Core/src/Shared/ReferenceTypeAttribute.cs +++ b/sdk/core/Azure.Core/src/Shared/ReferenceTypeAttribute.cs @@ -3,7 +3,7 @@ using System; -namespace Azure.Core +namespace Azure.Core.Shared { /// /// An attribute class indicating to Autorest a reference type for code generation. diff --git a/sdk/core/Azure.Core/src/Shared/RequestContentHelper.cs b/sdk/core/Azure.Core/src/Shared/RequestContentHelper.cs index 2c4eb7961783..4c3f4c038bb4 100644 --- a/sdk/core/Azure.Core/src/Shared/RequestContentHelper.cs +++ b/sdk/core/Azure.Core/src/Shared/RequestContentHelper.cs @@ -6,8 +6,9 @@ using System; using System.Collections.Generic; using System.Text.Json; +using Azure.Core.Shared.JsonWriter; -namespace Azure.Core +namespace Azure.Core.Shared.Content { internal static class RequestContentHelper { diff --git a/sdk/core/Azure.Core/src/Shared/RequestHeaderExtensions.cs b/sdk/core/Azure.Core/src/Shared/RequestHeaderExtensions.cs index 012156c93687..2d3b0a4948f4 100644 --- a/sdk/core/Azure.Core/src/Shared/RequestHeaderExtensions.cs +++ b/sdk/core/Azure.Core/src/Shared/RequestHeaderExtensions.cs @@ -7,9 +7,9 @@ using System.Collections.Generic; using System.Globalization; using System.Linq; -using System.Xml; +using Azure.Core.Shared.Formatters; -namespace Azure.Core +namespace Azure.Core.Shared.Headers { internal static class RequestHeaderExtensions { diff --git a/sdk/core/Azure.Core/src/Shared/RequestRequestContent.cs b/sdk/core/Azure.Core/src/Shared/RequestRequestContent.cs index bdff96d4c9b1..f7f59f64e47c 100644 --- a/sdk/core/Azure.Core/src/Shared/RequestRequestContent.cs +++ b/sdk/core/Azure.Core/src/Shared/RequestRequestContent.cs @@ -9,7 +9,7 @@ #nullable disable -namespace Azure.Core +namespace Azure.Core.Shared { /// /// Provides a container for content encoded using multipart/form-data MIME type. diff --git a/sdk/core/Azure.Core/src/Shared/RequestUriBuilderExtensions.cs b/sdk/core/Azure.Core/src/Shared/RequestUriBuilderExtensions.cs index 2c85e815ea90..487d5ebedcab 100644 --- a/sdk/core/Azure.Core/src/Shared/RequestUriBuilderExtensions.cs +++ b/sdk/core/Azure.Core/src/Shared/RequestUriBuilderExtensions.cs @@ -5,11 +5,10 @@ using System; using System.Collections.Generic; -using System.Globalization; using System.Linq; -using System.Xml; +using Azure.Core.Shared.Formatters; -namespace Azure.Core +namespace Azure.Core.Shared.RequestUri { internal static class RequestUriBuilderExtensions { diff --git a/sdk/core/Azure.Core/src/Shared/ResponseHeadersExtensions.cs b/sdk/core/Azure.Core/src/Shared/ResponseHeadersExtensions.cs index 106a668961a8..109917da6b4c 100644 --- a/sdk/core/Azure.Core/src/Shared/ResponseHeadersExtensions.cs +++ b/sdk/core/Azure.Core/src/Shared/ResponseHeadersExtensions.cs @@ -7,8 +7,9 @@ using System.Collections.Generic; using System.Globalization; using System.Xml; +using Azure.Core.Shared.Formatters; -namespace Azure.Core +namespace Azure.Core.Shared.Headers { internal static class ResponseHeadersExtensions { diff --git a/sdk/core/Azure.Core/src/Shared/ResponseWithHeaders.cs b/sdk/core/Azure.Core/src/Shared/ResponseWithHeaders.cs index 2a48fb0ebbfb..552b2045f410 100644 --- a/sdk/core/Azure.Core/src/Shared/ResponseWithHeaders.cs +++ b/sdk/core/Azure.Core/src/Shared/ResponseWithHeaders.cs @@ -3,7 +3,7 @@ #nullable enable -namespace Azure.Core +namespace Azure.Core.Shared.Message { internal static class ResponseWithHeaders { diff --git a/sdk/core/Azure.Core/src/Shared/ResponseWithHeadersOfTHeaders.cs b/sdk/core/Azure.Core/src/Shared/ResponseWithHeadersOfTHeaders.cs index 9ca15f42d695..1ae9a3e0acc0 100644 --- a/sdk/core/Azure.Core/src/Shared/ResponseWithHeadersOfTHeaders.cs +++ b/sdk/core/Azure.Core/src/Shared/ResponseWithHeadersOfTHeaders.cs @@ -3,7 +3,7 @@ #nullable enable -namespace Azure.Core +namespace Azure.Core.Shared.Message { #pragma warning disable SA1649 // File name should match first type name internal class ResponseWithHeaders diff --git a/sdk/core/Azure.Core/src/Shared/ResponseWithHeadersOfTOfTHeaders.cs b/sdk/core/Azure.Core/src/Shared/ResponseWithHeadersOfTOfTHeaders.cs index c150be52b524..d8da47c8dee6 100644 --- a/sdk/core/Azure.Core/src/Shared/ResponseWithHeadersOfTOfTHeaders.cs +++ b/sdk/core/Azure.Core/src/Shared/ResponseWithHeadersOfTOfTHeaders.cs @@ -3,7 +3,7 @@ #nullable enable -namespace Azure.Core +namespace Azure.Core.Shared.Message { #pragma warning disable SA1649 // File name should match first type name internal class ResponseWithHeaders : Response diff --git a/sdk/core/Azure.Core/src/Shared/RetriableStream.cs b/sdk/core/Azure.Core/src/Shared/RetriableStream.cs index 962194d344ae..810390c2f025 100644 --- a/sdk/core/Azure.Core/src/Shared/RetriableStream.cs +++ b/sdk/core/Azure.Core/src/Shared/RetriableStream.cs @@ -11,7 +11,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Azure.Core.Pipeline +namespace Azure.Core.Shared.Pipeline { internal static class RetriableStream { diff --git a/sdk/core/Azure.Core/src/Shared/SequentialDelayStrategy.cs b/sdk/core/Azure.Core/src/Shared/SequentialDelayStrategy.cs index 5185fa1201cc..79a0b50a8142 100644 --- a/sdk/core/Azure.Core/src/Shared/SequentialDelayStrategy.cs +++ b/sdk/core/Azure.Core/src/Shared/SequentialDelayStrategy.cs @@ -5,7 +5,7 @@ #nullable enable -namespace Azure.Core +namespace Azure.Core.Shared.Delay { /// /// A delay strategy that uses a fixed sequence of delays with no jitter applied. This is used by management LROs. diff --git a/sdk/core/Azure.Core/src/Shared/SerializationConstructorAttribute.cs b/sdk/core/Azure.Core/src/Shared/SerializationConstructorAttribute.cs index fbe9465541ea..95cbbe5e3953 100644 --- a/sdk/core/Azure.Core/src/Shared/SerializationConstructorAttribute.cs +++ b/sdk/core/Azure.Core/src/Shared/SerializationConstructorAttribute.cs @@ -3,7 +3,7 @@ using System; -namespace Azure.Core +namespace Azure.Core.Shared { /// /// An attribute class indicating to AutoRest which constructor to use for serialization. diff --git a/sdk/core/Azure.Core/src/Shared/StringRequestContent.cs b/sdk/core/Azure.Core/src/Shared/StringRequestContent.cs index 58a40c466612..0a850cfce225 100644 --- a/sdk/core/Azure.Core/src/Shared/StringRequestContent.cs +++ b/sdk/core/Azure.Core/src/Shared/StringRequestContent.cs @@ -7,7 +7,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Azure.Core +namespace Azure.Core.Shared.Content { internal class StringRequestContent : RequestContent { diff --git a/sdk/core/Azure.Core/src/Shared/SyncAsyncEventHandlerExtensions.cs b/sdk/core/Azure.Core/src/Shared/SyncAsyncEventHandlerExtensions.cs index c2d908730ffc..7171f4aaa10b 100644 --- a/sdk/core/Azure.Core/src/Shared/SyncAsyncEventHandlerExtensions.cs +++ b/sdk/core/Azure.Core/src/Shared/SyncAsyncEventHandlerExtensions.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; using Azure.Core.Pipeline; -namespace Azure.Core +namespace Azure.Core.Shared { /// /// Extensions for raising diff --git a/sdk/core/Azure.Core/src/Shared/TaskExtensions.cs b/sdk/core/Azure.Core/src/Shared/TaskExtensions.cs index 974865378222..0a5a03657811 100644 --- a/sdk/core/Azure.Core/src/Shared/TaskExtensions.cs +++ b/sdk/core/Azure.Core/src/Shared/TaskExtensions.cs @@ -11,7 +11,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Azure.Core.Pipeline +namespace Azure.Core.Shared.Pipeline.Tasks { internal static class TaskExtensions { diff --git a/sdk/core/Azure.Core/src/Shared/TypeBinder.cs b/sdk/core/Azure.Core/src/Shared/TypeBinder.cs index 7dd6f39eb2fe..1dda5292e995 100644 --- a/sdk/core/Azure.Core/src/Shared/TypeBinder.cs +++ b/sdk/core/Azure.Core/src/Shared/TypeBinder.cs @@ -9,7 +9,7 @@ using System.Reflection; using System.Runtime.Serialization; -namespace Azure.Core +namespace Azure.Core.Shared { internal abstract class TypeBinder { diff --git a/sdk/core/Azure.Core/src/Shared/TypeFormatters.cs b/sdk/core/Azure.Core/src/Shared/TypeFormatters.cs index 6bb51d611c1d..2dd2f1d08855 100644 --- a/sdk/core/Azure.Core/src/Shared/TypeFormatters.cs +++ b/sdk/core/Azure.Core/src/Shared/TypeFormatters.cs @@ -8,7 +8,7 @@ using System.Globalization; using System.Xml; -namespace Azure.Core +namespace Azure.Core.Shared.Formatters { internal class TypeFormatters { diff --git a/sdk/core/Azure.Core/src/Shared/TypeReferenceTypeAttribute.cs b/sdk/core/Azure.Core/src/Shared/TypeReferenceTypeAttribute.cs index dce5c4f331dc..101fbe369876 100644 --- a/sdk/core/Azure.Core/src/Shared/TypeReferenceTypeAttribute.cs +++ b/sdk/core/Azure.Core/src/Shared/TypeReferenceTypeAttribute.cs @@ -3,7 +3,7 @@ using System; -namespace Azure.Core +namespace Azure.Core.Shared { /// /// An attribute class indicating to Autorest a reference type which can replace a type in target SDKs. diff --git a/sdk/core/Azure.Core/src/Shared/Utf8JsonRequestContent.cs b/sdk/core/Azure.Core/src/Shared/Utf8JsonRequestContent.cs index 401393083af4..b55027ec994a 100644 --- a/sdk/core/Azure.Core/src/Shared/Utf8JsonRequestContent.cs +++ b/sdk/core/Azure.Core/src/Shared/Utf8JsonRequestContent.cs @@ -8,7 +8,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Azure.Core +namespace Azure.Core.Shared.Content { internal class Utf8JsonRequestContent: RequestContent { diff --git a/sdk/core/Azure.Core/src/Shared/Utf8JsonWriterExtensions.cs b/sdk/core/Azure.Core/src/Shared/Utf8JsonWriterExtensions.cs index 2ed696535efa..6813dfa393a7 100644 --- a/sdk/core/Azure.Core/src/Shared/Utf8JsonWriterExtensions.cs +++ b/sdk/core/Azure.Core/src/Shared/Utf8JsonWriterExtensions.cs @@ -7,10 +7,11 @@ using System.Collections.Generic; using System.Globalization; using System.Linq; -using System.Runtime.InteropServices; using System.Text.Json; +using Azure.Core.Shared.Formatters; +using Azure.Core.Shared.Serialization; -namespace Azure.Core +namespace Azure.Core.Shared.JsonWriter { internal static class Utf8JsonWriterExtensions { diff --git a/sdk/core/Azure.Core/src/Shared/ValueStopwatch.cs b/sdk/core/Azure.Core/src/Shared/ValueStopwatch.cs index 27703dd84619..fb6b76546ab6 100644 --- a/sdk/core/Azure.Core/src/Shared/ValueStopwatch.cs +++ b/sdk/core/Azure.Core/src/Shared/ValueStopwatch.cs @@ -6,7 +6,7 @@ using System; using System.Diagnostics; -namespace Azure.Core.Diagnostics +namespace Azure.Core.Shared.Diagnostics { // https://github.com/dotnet/aspnetcore/blob/master/src/Shared/ValueStopwatch/ValueStopwatch.cs internal struct ValueStopwatch diff --git a/sdk/core/Azure.Core/src/Shared/VoidValue.cs b/sdk/core/Azure.Core/src/Shared/VoidValue.cs index cb52e0eafb60..86c6d3c21b7c 100644 --- a/sdk/core/Azure.Core/src/Shared/VoidValue.cs +++ b/sdk/core/Azure.Core/src/Shared/VoidValue.cs @@ -1,10 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System; -using System.Text.Json; - -namespace Azure.Core +namespace Azure.Core.Shared.Operations { internal readonly struct VoidValue { } } diff --git a/sdk/core/Azure.Core/src/Shared/XElementExtensions.cs b/sdk/core/Azure.Core/src/Shared/XElementExtensions.cs index 20feb9db64f7..ca22de47fece 100644 --- a/sdk/core/Azure.Core/src/Shared/XElementExtensions.cs +++ b/sdk/core/Azure.Core/src/Shared/XElementExtensions.cs @@ -5,8 +5,9 @@ using System; using System.Xml.Linq; +using Azure.Core.Shared.Formatters; -namespace Azure.Core +namespace Azure.Core.Shared.Xml { internal static class XElementExtensions { diff --git a/sdk/core/Azure.Core/src/Shared/XmlWriterContent.cs b/sdk/core/Azure.Core/src/Shared/XmlWriterContent.cs index 145b557f336d..4e67cc362a42 100644 --- a/sdk/core/Azure.Core/src/Shared/XmlWriterContent.cs +++ b/sdk/core/Azure.Core/src/Shared/XmlWriterContent.cs @@ -9,7 +9,7 @@ using System.Threading.Tasks; using System.Xml; -namespace Azure.Core +namespace Azure.Core.Shared.Xml { internal class XmlWriterContent : RequestContent { diff --git a/sdk/core/Azure.Core/src/Shared/XmlWriterExtensions.cs b/sdk/core/Azure.Core/src/Shared/XmlWriterExtensions.cs index 31f5996e608f..26fc9743cecc 100644 --- a/sdk/core/Azure.Core/src/Shared/XmlWriterExtensions.cs +++ b/sdk/core/Azure.Core/src/Shared/XmlWriterExtensions.cs @@ -5,8 +5,9 @@ using System; using System.Xml; +using Azure.Core.Shared.Formatters; -namespace Azure.Core +namespace Azure.Core.Shared.Xml { internal static class XmlWriterExtensions { diff --git a/sdk/core/Azure.Core/src/StatusCodeClassifier.cs b/sdk/core/Azure.Core/src/StatusCodeClassifier.cs index 64869985d8d4..d5b1cbb3c6c9 100644 --- a/sdk/core/Azure.Core/src/StatusCodeClassifier.cs +++ b/sdk/core/Azure.Core/src/StatusCodeClassifier.cs @@ -3,6 +3,8 @@ using System; using System.Diagnostics; +using Azure.Core.Shared; +using Azure.Core.Shared.Asserts; #nullable enable diff --git a/sdk/core/Azure.Core/src/TelemetryDetails.cs b/sdk/core/Azure.Core/src/TelemetryDetails.cs index 84860e38b954..d15f1bff51b2 100644 --- a/sdk/core/Azure.Core/src/TelemetryDetails.cs +++ b/sdk/core/Azure.Core/src/TelemetryDetails.cs @@ -9,6 +9,8 @@ using System.Runtime.InteropServices; using System.Text; using Azure.Core.Pipeline; +using Azure.Core.Shared; +using Azure.Core.Shared.Asserts; namespace Azure.Core { diff --git a/sdk/core/Azure.Core/tests/DataPlaneGeneratedClientTests.cs b/sdk/core/Azure.Core/tests/DataPlaneGeneratedClientTests.cs deleted file mode 100644 index 4c04089e9ef0..000000000000 --- a/sdk/core/Azure.Core/tests/DataPlaneGeneratedClientTests.cs +++ /dev/null @@ -1,253 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using System; -using System.Text.Json; -using System.Threading.Tasks; -using Azure.Core.Experimental.Tests; -using Azure.Core.Experimental.Tests.Models; -using Azure.Core.Pipeline; -using Azure.Core.TestFramework; -using NUnit.Framework; - -namespace Azure.Core.Tests -{ - public class DataPlaneGeneratedClientTests : ClientTestBase - { - public DataPlaneGeneratedClientTests(bool isAsync) : base(isAsync) - { - } - - private readonly Uri _url = new Uri("https://example.azurepetstore.com"); - - public PetStoreClient CreateClient(HttpPipelineTransport transport) - { - var options = new PetStoreClientOptions() - { - Transport = transport - }; - - return new PetStoreClient(_url, new MockCredential(), options); - } - - [Test] - public async Task CanGetResponseFromLlcGetMethodAsync() - { - var mockResponse = new MockResponse(200); - - Pet pet = new Pet("snoopy", "beagle"); - mockResponse.SetContent(SerializationHelpers.Serialize(pet, SerializePet)); - - var mockTransport = new MockTransport(mockResponse); - PetStoreClient client = CreateClient(mockTransport); - - #region Snippet:GetPetAsync - Response response = await client.GetPetAsync("snoopy", new RequestContext()); - - var doc = JsonDocument.Parse(response.Content.ToMemory()); - var name = doc.RootElement.GetProperty("name").GetString(); - #endregion - - Assert.AreEqual(200, response.Status); - Assert.AreEqual("snoopy", name); - Assert.AreEqual("beagle", doc.RootElement.GetProperty("species").GetString()); - } - - [Test] - public async Task CanGetOutputModelOnSuccessCodeAsync() - { - var mockResponse = new MockResponse(200); - - Pet petResponse = new Pet("snoopy", "beagle"); - mockResponse.SetContent(SerializationHelpers.Serialize(petResponse, SerializePet)); - - var mockTransport = new MockTransport(mockResponse); - PetStoreClient client = CreateClient(mockTransport); - - Pet pet = await client.GetPetAsync("pet1"); - - Assert.AreEqual("snoopy", pet.Name); - Assert.AreEqual("beagle", pet.Species); - } - - [Test] - public async Task ModelCastThrowsOnErrorCodeAsync() - { - var mockResponse = new MockResponse(404); - - // Send the response through the pipeline so IsError is set. - var mockTransport = new MockTransport(mockResponse); - PetStoreClient client = CreateClient(mockTransport); - - Response response = await client.GetPetAsync("pet1", ErrorOptions.NoThrow); - - Assert.Throws(() => { Pet pet = response; }); - } - - [Test] - public void CannotGetOutputModelOnFailureCodeAsync() - { - var mockResponse = new MockResponse(404); - - var mockTransport = new MockTransport(mockResponse); - PetStoreClient client = CreateClient(mockTransport); - - Assert.ThrowsAsync(async () => await client.GetPetAsync("pet1")); - } - - // Note: these two tests *currently* test different code paths: - // 1) In the ResponseStatusOptions.Default case, we're going through code paths in - // ClientDiagnostics that we'll later migrate to ResponseClassifier (see https://github.com/azure/azure-sdk-for-net/issues/24031) - // - // Because this one is thrown from client's `GetPetAsync()` method, where it calls - // _clientDiagnostics.CreateRFException() -- this happens via different constructors (Note: does it have to? Could we refactor this?) - // - // 2) In the ResponseStatusOptions.NoThrow case, we're going through code paths in - // ResponseClassifier, which will become the only path after resolution of #24031 - // - // Importantly, having these two tests validates our premise: - // ** The Grow-Up Story/(Gen 1) Convenience Client Helper approach has the same semantics - - [Test] - public async Task GetRequestFailedException_StatusOptionDefault() - { - var mockResponse = new MockResponse(404); - mockResponse.SetContent("{\"error\": { \"code\": \"MockStatusCode\" }}"); - mockResponse.AddHeader(HttpHeader.Names.ContentType, "application/json"); - - var mockTransport = new MockTransport(mockResponse); - PetStoreClient client = CreateClient(mockTransport); - - try - { - Pet pet = await client.GetPetAsync("pet1"); - } - catch (RequestFailedException e) - { - Assert.AreEqual(404, e.Status); - Assert.That(() => e.Message.StartsWith("Service request failed.")); - Assert.That(() => e.ErrorCode.StartsWith("MockStatusCode")); - } - } - - [Test] - public async Task GetRequestFailedException_StatusOptionNoThrow() - { - var mockResponse = new MockResponse(404); - mockResponse.SetContent("{\"error\": { \"code\": \"MockStatusCode\" }}"); - mockResponse.AddHeader(HttpHeader.Names.ContentType, "application/json"); - - var mockTransport = new MockTransport(mockResponse); - PetStoreClient client = CreateClient(mockTransport); - - try - { - // NOTE: is it weird that we're saying NoThrow here and it throws? - // This looks confusing to me as someone reading this code. - Pet pet = await client.GetPetAsync("pet1", ErrorOptions.NoThrow); - } - catch (RequestFailedException e) - { - Assert.AreEqual(404, e.Status); - Assert.That(() => e.Message.StartsWith("Service request failed.")); - Assert.That(() => e.ErrorCode.StartsWith("MockStatusCode")); - } - } - - [Test] - public void CanSuppressExceptions() - { - var mockResponse = new MockResponse(404); - - var mockTransport = new MockTransport(mockResponse); - PetStoreClient client = CreateClient(mockTransport); - - RequestContext context = new RequestContext() - { - ErrorOptions = ErrorOptions.NoThrow - }; - - Response response = default; - Assert.DoesNotThrowAsync(async () => - { - response = await client.GetPetAsync("snoopy", context); - }); - - Assert.AreEqual(404, response.Status); - } - - [Test] - public async Task ThrowOnErrorDoesntThrowOnSuccess() - { - var mockResponse = new MockResponse(200); - - Pet pet = new Pet("snoopy", "beagle"); - mockResponse.SetContent(SerializationHelpers.Serialize(pet, SerializePet)); - - var mockTransport = new MockTransport(mockResponse); - PetStoreClient client = CreateClient(mockTransport); - - Response response = await client.GetPetAsync("snoopy", - new RequestContext() - { - ErrorOptions = ErrorOptions.Default - }); - var doc = JsonDocument.Parse(response.Content.ToMemory()); - - Assert.AreEqual(200, response.Status); - Assert.AreEqual("snoopy", doc.RootElement.GetProperty("name").GetString()); - Assert.AreEqual("beagle", doc.RootElement.GetProperty("species").GetString()); - } - - [Test] - public void ThrowOnErrorThrowsOnError() - { - var mockResponse = new MockResponse(404); - - var mockTransport = new MockTransport(mockResponse); - PetStoreClient client = CreateClient(mockTransport); - - Assert.ThrowsAsync(async () => - { - await client.GetPetAsync("snoopy", new RequestContext() - { - ErrorOptions = ErrorOptions.Default - }); - }); - } - - [Test] - public async Task Change404Category() - { - var mockResponse = new MockResponse(404); - - // Send the response through the pipeline so IsError is set. - var mockTransport = new MockTransport(mockResponse); - PetStoreClient client = CreateClient(mockTransport); - - #region Snippet:SetRequestContext - var context = new RequestContext(); - context.AddClassifier(404, isError: false); - - Response response = await client.GetPetAsync("pet1", context); - #endregion - - Assert.AreEqual(404, response.Status); - } - - #region Helpers - private void SerializePet(ref Utf8JsonWriter writer, Pet pet) - { - writer.WriteStartObject(); - - writer.WritePropertyName("name"); - writer.WriteStringValue(pet.Name); - - writer.WritePropertyName("species"); - writer.WriteStringValue(pet.Species); - - writer.WriteEndObject(); - } - #endregion - } -} diff --git a/sdk/core/Azure.Core/tests/IgnoreServiceErrorAttributeTests.cs b/sdk/core/Azure.Core/tests/IgnoreServiceErrorAttributeTests.cs deleted file mode 100644 index 124ab7431085..000000000000 --- a/sdk/core/Azure.Core/tests/IgnoreServiceErrorAttributeTests.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using System; -using System.Threading.Tasks; -using Azure.Core.Experimental.Tests; -using Azure.Core.TestFramework; -using NUnit.Framework; - -namespace Azure.Core.Tests -{ - [IgnoreServiceError(403, "Forbidden", Message = "Target environment attestation statement cannot be verified.")] - public class IgnoreServiceErrorAttributeTests : RecordedTestBase - { - public IgnoreServiceErrorAttributeTests(bool isAsync) - : base(isAsync, null /* RecordedTestMode.Record /* to re-record */) - { - } - - [RecordedTest] - public async Task ReleaseKeyAttestationErrorThrowsInconclusive() - { - MockResponse resp = new(403); - resp.AddHeader(HttpHeader.Names.ContentType, "application/json"); - resp.SetContent(@"{""error"":{""code"":""Forbidden"",""message"":""Target environment attestation statement cannot be verified."",""innererror"":{""code"":""AccessDenied""}}}"); - - PetStoreClientOptions options = new() - { - Transport = new MockTransport(resp), - }; - - PetStoreClient client = new(new Uri("https://example.azurepetstore.com"), new MockCredential(), options); - await client.GetPetAsync("pet1"); - - Assert.Fail("Client method did not throw expected HTTP 403"); - } - - [RecordedTest] - [IgnoreServiceError(400, "BadParameter")] - public async Task ExportableNotSupportedThrowsInconclusive() - { - MockResponse resp = new(400); - resp.AddHeader(HttpHeader.Names.ContentType, "application/json"); - resp.SetContent(@"{""error"":{""code"":""BadParameter"",""message"":""AKV.SKR.1001: The exportable attribute is only supported with premium vaults and API version >= '7.3-preview'.""}}"); - - PetStoreClientOptions options = new() - { - Transport = new MockTransport(resp), - }; - - PetStoreClient client = new(new Uri("https://example.azurepetstore.com"), new MockCredential(), options); - await client.GetPetAsync("pet1"); - - Assert.Fail("Client method did not throw expected HTTP 400"); - } - } -} diff --git a/sdk/core/Azure.Core/tests/common/Azure.Core.Tests.Common.csproj b/sdk/core/Azure.Core/tests/common/Azure.Core.Tests.Common.csproj index 3157f0c06a88..c87b8af27292 100644 --- a/sdk/core/Azure.Core/tests/common/Azure.Core.Tests.Common.csproj +++ b/sdk/core/Azure.Core/tests/common/Azure.Core.Tests.Common.csproj @@ -1,7 +1,6 @@  $(RequiredTargetFrameworks) - true true diff --git a/sdk/core/Azure.Core/tests/common/TestClients/LowLevelClient/LowLevelClientModels/Pet.Serialization.cs b/sdk/core/Azure.Core/tests/common/TestClients/LowLevelClient/LowLevelClientModels/Pet.Serialization.cs deleted file mode 100644 index 628110e52d1a..000000000000 --- a/sdk/core/Azure.Core/tests/common/TestClients/LowLevelClient/LowLevelClientModels/Pet.Serialization.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -#nullable disable - -using System.Text.Json; - -namespace Azure.Core.Experimental.Tests.Models -{ - public partial class Pet : IUtf8JsonSerializable - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - - writer.WritePropertyName("name"); - writer.WriteStringValue(Name); - - writer.WritePropertyName("species"); - writer.WriteStringValue(Species); - - writer.WriteEndObject(); - } - - internal static Pet DeserializePet(JsonElement element) - { - Optional name = default; - Optional species = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("name")) - { - name = property.Value.GetString(); - continue; - } - if (property.NameEquals("species")) - { - species = property.Value.GetString(); - continue; - } - } - return new Pet(name.Value, species.Value); - } - } -} diff --git a/sdk/core/Azure.Core/tests/common/TestClients/LowLevelClient/LowLevelClientModels/Pet.cs b/sdk/core/Azure.Core/tests/common/TestClients/LowLevelClient/LowLevelClientModels/Pet.cs deleted file mode 100644 index f15a3f2a0a20..000000000000 --- a/sdk/core/Azure.Core/tests/common/TestClients/LowLevelClient/LowLevelClientModels/Pet.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -#nullable disable - -using System.Text.Json; - -namespace Azure.Core.Experimental.Tests.Models -{ - /// The Pet output model. - public partial class Pet - { - /// Initializes a new instance of Pet. - public Pet() - { - } - - /// Initializes a new instance of Pet. - /// - /// - public Pet(string name, string species) - { - Name = name; - Species = species; - } - - public string Name { get; } - public string Species { get; } - - // Cast from Response to Pet - public static implicit operator Pet(Response response) - { - // [X] TODO: Add in (Gen 1) convenience client error semantics - // [X] TODO: Use response.IsError - // [X] TODO: Use throw new ResponseFailedException(response); - - if (response.IsError) - { - throw new RequestFailedException(response); - } - - return DeserializePet(JsonDocument.Parse(response.Content.ToMemory())); - } - - private static Pet DeserializePet(JsonDocument document) - { - return new Pet( - document.RootElement.GetProperty("name").GetString(), - document.RootElement.GetProperty("species").GetString()); - } - } -} diff --git a/sdk/core/Azure.Core/tests/common/TestClients/LowLevelClient/LowLevelClientModels/SerializationHelpers.cs b/sdk/core/Azure.Core/tests/common/TestClients/LowLevelClient/LowLevelClientModels/SerializationHelpers.cs deleted file mode 100644 index 7a0d5720a2b1..000000000000 --- a/sdk/core/Azure.Core/tests/common/TestClients/LowLevelClient/LowLevelClientModels/SerializationHelpers.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using System.Text.Json; - -namespace Azure.Core.Experimental.Tests.Models -{ - public class SerializationHelpers - { - public delegate void SerializerFunc(ref Utf8JsonWriter writer, T t); - - public static byte[] Serialize(T t, SerializerFunc serializerFunc) - { - var writer = new ArrayBufferWriter(); - var json = new Utf8JsonWriter(writer); - serializerFunc(ref json, t); - json.Flush(); - return writer.WrittenMemory.ToArray(); - } - } -} diff --git a/sdk/core/Azure.Core/tests/common/TestClients/LowLevelClient/PetStoreClient.cs b/sdk/core/Azure.Core/tests/common/TestClients/LowLevelClient/PetStoreClient.cs deleted file mode 100644 index ef866f57a822..000000000000 --- a/sdk/core/Azure.Core/tests/common/TestClients/LowLevelClient/PetStoreClient.cs +++ /dev/null @@ -1,149 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure.Core.Pipeline; - -namespace Azure.Core.Experimental.Tests -{ - /// The PetStore service client. - public partial class PetStoreClient - { - /// The HTTP pipeline for sending and receiving REST requests and responses. - public virtual HttpPipeline Pipeline { get; } - private readonly string[] AuthorizationScopes = { "https://example.azurepetshop.com/.default" }; - private readonly TokenCredential _tokenCredential; - private Uri endpoint; - private readonly string apiVersion; - private readonly ClientDiagnostics _clientDiagnostics; - private ResponseClassifier _classifier200; - - /// Initializes a new instance of PetStoreClient for mocking. - protected PetStoreClient() - { - } - - private ResponseClassifier Classifier200 => _classifier200 ??= new StatusCodeClassifier(stackalloc ushort[] { 200 }); - - /// Initializes a new instance of PetStoreClient. - /// The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net. - /// A credential used to authenticate to an Azure Service. - /// The options for configuring the client. - public PetStoreClient(Uri endpoint, TokenCredential credential, PetStoreClientOptions options = null) - { - if (endpoint == null) - { - throw new ArgumentNullException(nameof(endpoint)); - } - if (credential == null) - { - throw new ArgumentNullException(nameof(credential)); - } - - options ??= new PetStoreClientOptions(); - _clientDiagnostics = new ClientDiagnostics(options); - _tokenCredential = credential; - var authPolicy = new BearerTokenAuthenticationPolicy(_tokenCredential, AuthorizationScopes); - - Pipeline = HttpPipelineBuilder.Build(options, Array.Empty(), new HttpPipelinePolicy[] { authPolicy }, null); - this.endpoint = endpoint; - apiVersion = options.Version; - } - - /// Get a pet by its Id. - /// Id of pet to return. - /// The request context. - public virtual async Task GetPetAsync(string id, RequestContext context = null) - { - using var scope = _clientDiagnostics.CreateScope("PetStoreClient.GetPet"); - scope.Start(); - try - { - using HttpMessage message = CreateGetPetRequest(id, context); - return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Get a pet by its Id. - /// Id of pet to return. - /// The request context. - public virtual Response GetPet(string id, RequestContext context = null) - { - using var scope = _clientDiagnostics.CreateScope("PetStoreClient.GetPet"); - scope.Start(); - try - { - using HttpMessage message = CreateGetPetRequest(id, context); - return Pipeline.ProcessMessage(message, context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Get a pet by its Id. - /// Id of pet to return. - /// The request context. - public virtual async Task CreatePetAsync(string id, RequestContent content, RequestContext context = null) - { - using var scope = _clientDiagnostics.CreateScope("PetStoreClient.GetPet"); - scope.Start(); - try - { - using HttpMessage message = CreateGetPetRequest(id, context); - return await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Get a pet by its Id. - /// Id of pet to return. - /// The request context. - public virtual Response CreatePet(string id, RequestContent content, RequestContext context = null) - { - using var scope = _clientDiagnostics.CreateScope("PetStoreClient.GetPet"); - scope.Start(); - try - { - using HttpMessage message = CreateGetPetRequest(id, context); - return Pipeline.ProcessMessage(message, context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Create Request for and operations. - /// Id of pet to return. - /// The request context. - private HttpMessage CreateGetPetRequest(string id, RequestContext context = null) - { - var message = Pipeline.CreateMessage(context, Classifier200); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(endpoint); - uri.AppendPath("/pets/", false); - uri.AppendPath(id, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json, text/json"); - return message; - } - } -} diff --git a/sdk/core/Azure.Core/tests/common/TestClients/LowLevelClient/PetStoreClientOptions.cs b/sdk/core/Azure.Core/tests/common/TestClients/LowLevelClient/PetStoreClientOptions.cs deleted file mode 100644 index 8e83c9c437f9..000000000000 --- a/sdk/core/Azure.Core/tests/common/TestClients/LowLevelClient/PetStoreClientOptions.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -#nullable disable - -using System; - -namespace Azure.Core.Experimental.Tests -{ - /// Client options for PetStoreClient. - public partial class PetStoreClientOptions : ClientOptions - { - private const ServiceVersion LatestVersion = ServiceVersion.V2020_12_01; - - /// The version of the service to use. - public enum ServiceVersion - { - /// Service version "2020-12-01". - V2020_12_01 = 1, - } - - internal string Version { get; } - - /// Initializes new instance of PetStoreClientOptions. - public PetStoreClientOptions(ServiceVersion version = LatestVersion) - { - Version = version switch - { - ServiceVersion.V2020_12_01 => "2020-12-01", - _ => throw new NotSupportedException() - }; - } - } -} diff --git a/sdk/core/Azure.Core/tests/public/Azure.Core.Tests.Public.csproj b/sdk/core/Azure.Core/tests/public/Azure.Core.Tests.Public.csproj index 12fa5a7a43f6..b62366217539 100644 --- a/sdk/core/Azure.Core/tests/public/Azure.Core.Tests.Public.csproj +++ b/sdk/core/Azure.Core/tests/public/Azure.Core.Tests.Public.csproj @@ -1,7 +1,6 @@  $(RequiredTargetFrameworks) - true true false @@ -18,10 +17,4 @@ - - - - - - diff --git a/sdk/maps/Azure.Maps.Common/src/MapsSasCredentialPolicy.cs b/sdk/maps/Azure.Maps.Common/src/MapsSasCredentialPolicy.cs index e87929285bfb..06164634e018 100644 --- a/sdk/maps/Azure.Maps.Common/src/MapsSasCredentialPolicy.cs +++ b/sdk/maps/Azure.Maps.Common/src/MapsSasCredentialPolicy.cs @@ -3,6 +3,7 @@ using Azure.Core; using Azure.Core.Pipeline; +using Azure.Core.Shared.Asserts; namespace Azure.Maps { diff --git a/sdk/maps/Azure.Maps.Rendering/Azure.Maps.Rendering.dgml b/sdk/maps/Azure.Maps.Rendering/Azure.Maps.Rendering.dgml new file mode 100644 index 000000000000..27b5e8d45ab8 --- /dev/null +++ b/sdk/maps/Azure.Maps.Rendering/Azure.Maps.Rendering.dgml @@ -0,0 +1,446 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sdk/maps/Azure.Maps.Rendering/Azure.Maps.Rendering.sln b/sdk/maps/Azure.Maps.Rendering/Azure.Maps.Rendering.sln index 870b6ca5ce06..83589b4f4c84 100644 --- a/sdk/maps/Azure.Maps.Rendering/Azure.Maps.Rendering.sln +++ b/sdk/maps/Azure.Maps.Rendering/Azure.Maps.Rendering.sln @@ -7,6 +7,12 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Maps.Rendering", "src EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Maps.Rendering.Tests", "tests\Azure.Maps.Rendering.Tests.csproj", "{47DEA0AC-0636-45D6-98A1-2D1A3EE6A821}" EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Maps.Common", "..\Azure.Maps.Common\src\Azure.Maps.Common.csproj", "{9118E715-CE14-4330-9570-15F1729A5E99}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.ResourceManager.Maps", "..\Azure.ResourceManager.Maps\src\Azure.ResourceManager.Maps.csproj", "{8F2E310D-18CB-44F0-8183-ACD05F5D4676}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Core.TestFramework", "..\..\core\Azure.Core.TestFramework\src\Azure.Core.TestFramework.csproj", "{35C44D72-59A1-4907-91FC-A377F1633948}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -21,6 +27,18 @@ Global {47DEA0AC-0636-45D6-98A1-2D1A3EE6A821}.Debug|Any CPU.Build.0 = Debug|Any CPU {47DEA0AC-0636-45D6-98A1-2D1A3EE6A821}.Release|Any CPU.ActiveCfg = Release|Any CPU {47DEA0AC-0636-45D6-98A1-2D1A3EE6A821}.Release|Any CPU.Build.0 = Release|Any CPU + {9118E715-CE14-4330-9570-15F1729A5E99}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9118E715-CE14-4330-9570-15F1729A5E99}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9118E715-CE14-4330-9570-15F1729A5E99}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9118E715-CE14-4330-9570-15F1729A5E99}.Release|Any CPU.Build.0 = Release|Any CPU + {8F2E310D-18CB-44F0-8183-ACD05F5D4676}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8F2E310D-18CB-44F0-8183-ACD05F5D4676}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8F2E310D-18CB-44F0-8183-ACD05F5D4676}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8F2E310D-18CB-44F0-8183-ACD05F5D4676}.Release|Any CPU.Build.0 = Release|Any CPU + {35C44D72-59A1-4907-91FC-A377F1633948}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {35C44D72-59A1-4907-91FC-A377F1633948}.Debug|Any CPU.Build.0 = Debug|Any CPU + {35C44D72-59A1-4907-91FC-A377F1633948}.Release|Any CPU.ActiveCfg = Release|Any CPU + {35C44D72-59A1-4907-91FC-A377F1633948}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/sdk/maps/Azure.Maps.Rendering/src/Azure.Maps.Rendering.csproj b/sdk/maps/Azure.Maps.Rendering/src/Azure.Maps.Rendering.csproj index 622f39be2027..e407c9e5bf67 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/Azure.Maps.Rendering.csproj +++ b/sdk/maps/Azure.Maps.Rendering/src/Azure.Maps.Rendering.csproj @@ -7,7 +7,6 @@ $(RequiredTargetFrameworks) $(NoWarn);AZC0001;AZC0012 $(RepoRoot)/sdk/maps/Azure.Maps.Common/src/ - true @@ -19,6 +18,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/BoundingBox.cs b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/BoundingBox.cs index 1b16353b4858..2db948cbfbc0 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/BoundingBox.cs +++ b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/BoundingBox.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Linq; using Azure.Core; +using Azure.Core.Shared.Asserts; namespace Azure.Maps.Rendering { diff --git a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/CopyrightCaption.Serialization.cs b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/CopyrightCaption.Serialization.cs index cb705eb9672e..a827fa9f04d1 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/CopyrightCaption.Serialization.cs +++ b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/CopyrightCaption.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Rendering { diff --git a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs index ffb5d25cf84b..283fbf38cf31 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs +++ b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs @@ -7,6 +7,8 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Json; +using Azure.Core.Shared.Models; namespace Azure.Maps.Rendering { diff --git a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/ErrorDetail.Serialization.cs b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/ErrorDetail.Serialization.cs index e23f5a7addc9..0c845815e66d 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/ErrorDetail.Serialization.cs +++ b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/ErrorDetail.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Rendering { diff --git a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/ErrorDetail.cs b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/ErrorDetail.cs index 206ce37bebb2..d324e54f989e 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/ErrorDetail.cs +++ b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/ErrorDetail.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Rendering { diff --git a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/ErrorResponse.Serialization.cs b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/ErrorResponse.Serialization.cs index 147b111ae342..50bbf43f3f32 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/ErrorResponse.Serialization.cs +++ b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/ErrorResponse.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Rendering { diff --git a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/MapAttribution.Serialization.cs b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/MapAttribution.Serialization.cs index 6b69fb85d1d4..76115808cc6e 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/MapAttribution.Serialization.cs +++ b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/MapAttribution.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Rendering { diff --git a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/MapAttribution.cs b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/MapAttribution.cs index 325f291c69a3..179e70462797 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/MapAttribution.cs +++ b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/MapAttribution.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Rendering { diff --git a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/MapTileSet.Serialization.cs b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/MapTileSet.Serialization.cs index 3aa1355f0275..62e5a87adfe8 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/MapTileSet.Serialization.cs +++ b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/MapTileSet.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Rendering { diff --git a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/MapTileSet.cs b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/MapTileSet.cs index edbbdaae898b..deafd8c73f9f 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/MapTileSet.cs +++ b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/MapTileSet.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Rendering { diff --git a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/RegionalCopyright.Serialization.cs b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/RegionalCopyright.Serialization.cs index 7b58e3e6da4a..287bb02983d4 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/RegionalCopyright.Serialization.cs +++ b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/RegionalCopyright.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Rendering { diff --git a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/RegionalCopyrightCountry.Serialization.cs b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/RegionalCopyrightCountry.Serialization.cs index 792071d3bda3..8c53f54d1da5 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/RegionalCopyrightCountry.Serialization.cs +++ b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/RegionalCopyrightCountry.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Rendering { diff --git a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/RenderCopyright.Serialization.cs b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/RenderCopyright.Serialization.cs index f74a0c8d3dc5..3c693837f253 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/RenderCopyright.Serialization.cs +++ b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/RenderCopyright.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Rendering { diff --git a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/RenderCopyright.cs b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/RenderCopyright.cs index 4f94c2990b99..3346bf681eaf 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/RenderCopyright.cs +++ b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/RenderCopyright.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Rendering { diff --git a/sdk/maps/Azure.Maps.Rendering/src/Generated/RenderRestClient.cs b/sdk/maps/Azure.Maps.Rendering/src/Generated/RenderRestClient.cs index 2a07fbb2a302..ab1e01796a51 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/Generated/RenderRestClient.cs +++ b/sdk/maps/Azure.Maps.Rendering/src/Generated/RenderRestClient.cs @@ -11,9 +11,12 @@ using System.Text.Json; using System.Threading; using System.Threading.Tasks; -using Azure; using Azure.Core; using Azure.Core.Pipeline; +using Azure.Core.Shared.Message; +using Azure.Core.Shared.Models; +using Azure.Core.Shared.Pipeline.Diagnostics; +using Azure.Core.Shared.RequestUri; namespace Azure.Maps.Rendering { diff --git a/sdk/maps/Azure.Maps.Rendering/src/MapsRenderingClient.cs b/sdk/maps/Azure.Maps.Rendering/src/MapsRenderingClient.cs index 7c0ef70d8500..b789de0d7448 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/MapsRenderingClient.cs +++ b/sdk/maps/Azure.Maps.Rendering/src/MapsRenderingClient.cs @@ -11,6 +11,10 @@ using Azure.Core; using Azure.Core.GeoJson; using Azure.Core.Pipeline; +using Azure.Core.Shared; +using Azure.Core.Shared.Asserts; +using Azure.Core.Shared.AuthPolicies; +using Azure.Core.Shared.Pipeline.Diagnostics; namespace Azure.Maps.Rendering { diff --git a/sdk/maps/Azure.Maps.Rendering/src/Models/ImagePathStyle.cs b/sdk/maps/Azure.Maps.Rendering/src/Models/ImagePathStyle.cs index a434a7ca300d..0f2116fa4cce 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/Models/ImagePathStyle.cs +++ b/sdk/maps/Azure.Maps.Rendering/src/Models/ImagePathStyle.cs @@ -10,6 +10,7 @@ using System.Text; using Azure.Core; using Azure.Core.GeoJson; +using Azure.Core.Shared.Asserts; namespace Azure.Maps.Rendering { diff --git a/sdk/maps/Azure.Maps.Rendering/src/Models/ImagePushpinStyle.cs b/sdk/maps/Azure.Maps.Rendering/src/Models/ImagePushpinStyle.cs index 3912dd9c28ff..0648ad897c59 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/Models/ImagePushpinStyle.cs +++ b/sdk/maps/Azure.Maps.Rendering/src/Models/ImagePushpinStyle.cs @@ -9,6 +9,7 @@ using System.Globalization; using System.Text; using Azure.Core; +using Azure.Core.Shared.Asserts; namespace Azure.Maps.Rendering { diff --git a/sdk/maps/Azure.Maps.Rendering/src/Models/Options/GetMapTileOptions.cs b/sdk/maps/Azure.Maps.Rendering/src/Models/Options/GetMapTileOptions.cs index 0779ac8f0ebf..d3320cdf3158 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/Models/Options/GetMapTileOptions.cs +++ b/sdk/maps/Azure.Maps.Rendering/src/Models/Options/GetMapTileOptions.cs @@ -5,6 +5,7 @@ using System; using Azure.Core; +using Azure.Core.Shared.Asserts; namespace Azure.Maps.Rendering { diff --git a/sdk/maps/Azure.Maps.Rendering/src/Models/RegionalCopyright.cs b/sdk/maps/Azure.Maps.Rendering/src/Models/RegionalCopyright.cs index 6931c692d3d1..ef646ab403d2 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/Models/RegionalCopyright.cs +++ b/sdk/maps/Azure.Maps.Rendering/src/Models/RegionalCopyright.cs @@ -5,6 +5,7 @@ using System.Collections.Generic; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Rendering { diff --git a/sdk/maps/Azure.Maps.Rendering/src/properties/AssemblyInfo.cs b/sdk/maps/Azure.Maps.Rendering/src/properties/AssemblyInfo.cs index ec801d863f1b..682b952b8f9b 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/properties/AssemblyInfo.cs +++ b/sdk/maps/Azure.Maps.Rendering/src/properties/AssemblyInfo.cs @@ -3,5 +3,5 @@ using System.Runtime.CompilerServices; -[assembly: Azure.Core.AzureResourceProviderNamespace("Azure.Maps.Rendering")] +[assembly: Azure.Core.Shared.Attributes.AzureResourceProviderNamespace("Azure.Maps.Rendering")] [assembly: InternalsVisibleTo("Azure.Maps.Rendering.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100d15ddcb29688295338af4b7686603fe614abd555e09efba8fb88ee09e1f7b1ccaeed2e8f823fa9eef3fdd60217fc012ea67d2479751a0b8c087a4185541b851bd8b16f8d91b840e51b1cb0ba6fe647997e57429265e85ef62d565db50a69ae1647d54d7bd855e4db3d8a91510e5bcbd0edfbbecaa20a7bd9ae74593daa7b11b4")] diff --git a/sdk/maps/Azure.Maps.Rendering/tests/Azure.Maps.Rendering.Tests.csproj b/sdk/maps/Azure.Maps.Rendering/tests/Azure.Maps.Rendering.Tests.csproj index 0672c74c5042..65bb2f3b1738 100644 --- a/sdk/maps/Azure.Maps.Rendering/tests/Azure.Maps.Rendering.Tests.csproj +++ b/sdk/maps/Azure.Maps.Rendering/tests/Azure.Maps.Rendering.Tests.csproj @@ -5,6 +5,11 @@ $(NoWarn);CS1591 + + + + + @@ -20,8 +25,4 @@ - - - - diff --git a/sdk/maps/Azure.Maps.Routing/Azure.Maps.Routing.dgml b/sdk/maps/Azure.Maps.Routing/Azure.Maps.Routing.dgml new file mode 100644 index 000000000000..f825e9fb91c2 --- /dev/null +++ b/sdk/maps/Azure.Maps.Routing/Azure.Maps.Routing.dgml @@ -0,0 +1,370 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sdk/maps/Azure.Maps.Routing/src/Azure.Maps.Routing.csproj b/sdk/maps/Azure.Maps.Routing/src/Azure.Maps.Routing.csproj index 0066c46c9b02..e9660301ab8a 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Azure.Maps.Routing.csproj +++ b/sdk/maps/Azure.Maps.Routing/src/Azure.Maps.Routing.csproj @@ -1,4 +1,4 @@ - + Azure Maps Azure.Maps.Routing Azure Maps Azure.Maps.Routing @@ -6,7 +6,6 @@ Azure;Azure Maps;Maps Azure.Maps.Routing $(RequiredTargetFrameworks) $(NoWarn);AZC0001;AZC0012 - true @@ -18,6 +17,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchRequest.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchRequest.Serialization.cs index 09f4d5c1427f..e5dd2aa41fd7 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchRequest.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchRequest.Serialization.cs @@ -7,6 +7,9 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.JsonWriter; +using Azure.Core.Shared.Models; +using Azure.Core.Shared.Serialization; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchRequest.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchRequest.cs index f18035ad402f..45c2e8059573 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchRequest.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchRequest.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchRequestItem.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchRequestItem.Serialization.cs index 6a719ae03120..86839328a5a4 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchRequestItem.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchRequestItem.Serialization.cs @@ -7,6 +7,8 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; +using Azure.Core.Shared.Serialization; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchResult.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchResult.Serialization.cs index 3e798541a7da..5847bd188c2a 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchResult.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchResult.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchResultItem.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchResultItem.Serialization.cs index b8f81d0cbc77..e467cae4804a 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchResultItem.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchResultItem.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchResultSummary.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchResultSummary.Serialization.cs index 625ef35b023b..0ff051176dee 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchResultSummary.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchResultSummary.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/EffectiveSetting.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/EffectiveSetting.Serialization.cs index a9a6665ffd48..80dd06f82193 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/EffectiveSetting.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/EffectiveSetting.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs index abd56d6508d1..c833a28bf689 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs @@ -7,6 +7,8 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Json; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/ErrorDetail.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/ErrorDetail.Serialization.cs index 57c3129d6a0f..f76c68f3f20b 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/ErrorDetail.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/ErrorDetail.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/ErrorDetail.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/ErrorDetail.cs index 965586c59e0f..69355678bce8 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/ErrorDetail.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/ErrorDetail.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/ErrorResponse.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/ErrorResponse.Serialization.cs index bce9ec160c46..98fb5e6001b8 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/ErrorResponse.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/ErrorResponse.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeature.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeature.Serialization.cs index a26e4cbe10c9..3dfb51ba32ef 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeature.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeature.Serialization.cs @@ -7,6 +7,9 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.JsonWriter; +using Azure.Core.Shared.Models; +using Azure.Core.Shared.Serialization; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeature.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeature.cs index 31553e0fe637..32b70d5f38b3 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeature.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeature.cs @@ -7,6 +7,7 @@ using System; using Azure.Core; +using Azure.Core.Shared.Asserts; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeatureCollection.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeatureCollection.Serialization.cs index 0fbf67c85e86..b6fbc151fa02 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeatureCollection.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeatureCollection.Serialization.cs @@ -7,6 +7,8 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.JsonWriter; +using Azure.Core.Shared.Serialization; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeatureCollection.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeatureCollection.cs index 4b30e1daec4d..cb5ab914eaee 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeatureCollection.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeatureCollection.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Linq; using Azure.Core; +using Azure.Core.Shared.Asserts; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeatureCollectionData.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeatureCollectionData.Serialization.cs index d2712ee9820d..fcdf97566801 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeatureCollectionData.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeatureCollectionData.Serialization.cs @@ -7,6 +7,8 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.JsonWriter; +using Azure.Core.Shared.Serialization; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeatureCollectionData.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeatureCollectionData.cs index 5f1b77786216..667725f085ba 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeatureCollectionData.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeatureCollectionData.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Linq; using Azure.Core; +using Azure.Core.Shared.Asserts; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeatureData.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeatureData.Serialization.cs index 0db286c06d8f..f57c233b567b 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeatureData.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeatureData.Serialization.cs @@ -7,6 +7,9 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.JsonWriter; +using Azure.Core.Shared.Models; +using Azure.Core.Shared.Serialization; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeatureData.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeatureData.cs index 5e5087cb0080..c068306dc4bb 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeatureData.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeatureData.cs @@ -7,6 +7,7 @@ using System; using Azure.Core; +using Azure.Core.Shared.Asserts; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonGeometry.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonGeometry.Serialization.cs index dc464e39af5c..c1710148267f 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonGeometry.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonGeometry.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Serialization; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonGeometryCollection.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonGeometryCollection.Serialization.cs index d7f67b39ef98..e862d2cf70f8 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonGeometryCollection.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonGeometryCollection.Serialization.cs @@ -7,6 +7,8 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.JsonWriter; +using Azure.Core.Shared.Serialization; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonGeometryCollection.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonGeometryCollection.cs index 50c67f8276d3..1a40670f5619 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonGeometryCollection.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonGeometryCollection.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Linq; using Azure.Core; +using Azure.Core.Shared.Asserts; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonGeometryCollectionData.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonGeometryCollectionData.Serialization.cs index 1456fee14e6c..f20b1ee559d0 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonGeometryCollectionData.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonGeometryCollectionData.Serialization.cs @@ -7,6 +7,8 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.JsonWriter; +using Azure.Core.Shared.Serialization; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonGeometryCollectionData.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonGeometryCollectionData.cs index 90bc7c88e602..f4f3d2109ef2 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonGeometryCollectionData.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonGeometryCollectionData.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Linq; using Azure.Core; +using Azure.Core.Shared.Asserts; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonLineString.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonLineString.Serialization.cs index d051f435ef5e..817a815e1e66 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonLineString.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonLineString.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Serialization; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonLineString.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonLineString.cs index 835d12a5e4a9..c28cac0eb299 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonLineString.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonLineString.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Linq; using Azure.Core; +using Azure.Core.Shared.Asserts; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonLineStringData.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonLineStringData.Serialization.cs index 99f7d79d5f2e..0591362091d2 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonLineStringData.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonLineStringData.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Serialization; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonLineStringData.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonLineStringData.cs index cc0aa4b08d50..7f1d92941387 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonLineStringData.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonLineStringData.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Linq; using Azure.Core; +using Azure.Core.Shared.Asserts; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiLineString.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiLineString.Serialization.cs index 81703477dd41..abb0c7b3913d 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiLineString.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiLineString.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Serialization; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiLineString.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiLineString.cs index b5a2202fa92f..6e15eccc1cb4 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiLineString.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiLineString.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Linq; using Azure.Core; +using Azure.Core.Shared.Asserts; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiLineStringData.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiLineStringData.Serialization.cs index 22cbc605e087..c29839c356c0 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiLineStringData.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiLineStringData.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Serialization; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiLineStringData.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiLineStringData.cs index b24cf444470b..9f252d17d360 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiLineStringData.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiLineStringData.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Linq; using Azure.Core; +using Azure.Core.Shared.Asserts; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPoint.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPoint.Serialization.cs index 67b7bc0d62e2..c37585ba0655 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPoint.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPoint.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Serialization; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPoint.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPoint.cs index c7f95987230f..a4e9f5d289f0 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPoint.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPoint.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Linq; using Azure.Core; +using Azure.Core.Shared.Asserts; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPointData.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPointData.Serialization.cs index 8d5c91c53d3e..52cdd1954a6d 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPointData.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPointData.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Serialization; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPointData.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPointData.cs index 1198e526c3c0..0bb9a8b0d5e4 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPointData.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPointData.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Linq; using Azure.Core; +using Azure.Core.Shared.Asserts; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPolygon.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPolygon.Serialization.cs index fbb8f5a760c3..e58c2642f70b 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPolygon.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPolygon.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Serialization; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPolygon.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPolygon.cs index 657d4fc4a898..044592e3a302 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPolygon.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPolygon.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Linq; using Azure.Core; +using Azure.Core.Shared.Asserts; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPolygonData.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPolygonData.Serialization.cs index 85673237b1d3..dbafad788bba 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPolygonData.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPolygonData.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Serialization; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPolygonData.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPolygonData.cs index c6cc20494153..e2ed74afcf52 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPolygonData.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPolygonData.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Linq; using Azure.Core; +using Azure.Core.Shared.Asserts; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonObject.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonObject.Serialization.cs index 4d375300d43e..19877bce0a53 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonObject.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonObject.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Serialization; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPoint.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPoint.Serialization.cs index 5835fe0d07dd..db2fd81b0ce9 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPoint.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPoint.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Serialization; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPoint.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPoint.cs index eb1f7edd1d02..51daa309f07e 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPoint.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPoint.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Linq; using Azure.Core; +using Azure.Core.Shared.Asserts; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPointData.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPointData.Serialization.cs index 88b8f4f47367..428c361f5c0a 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPointData.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPointData.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Serialization; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPointData.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPointData.cs index eeff6224d8b6..48b33e5512e6 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPointData.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPointData.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Linq; using Azure.Core; +using Azure.Core.Shared.Asserts; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPolygon.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPolygon.Serialization.cs index 8bb0c445cebd..f62633e29f06 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPolygon.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPolygon.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Serialization; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPolygon.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPolygon.cs index f000135d9fc1..38a2e6784635 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPolygon.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPolygon.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Linq; using Azure.Core; +using Azure.Core.Shared.Asserts; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPolygonData.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPolygonData.Serialization.cs index 27dbc1ed218b..51bc90e48d16 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPolygonData.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPolygonData.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Serialization; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPolygonData.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPolygonData.cs index 959dccde61d5..79452f4e8710 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPolygonData.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPolygonData.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Linq; using Azure.Core; +using Azure.Core.Shared.Asserts; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/LatLongPair.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/LatLongPair.Serialization.cs index 19976960e376..09af0c73ec07 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/LatLongPair.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/LatLongPair.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteData.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteData.Serialization.cs index 400571c783dc..a1446d098a60 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteData.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteData.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteData.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteData.cs index 59bb00502a06..3c15635bf9db 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteData.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteData.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionParameters.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionParameters.Serialization.cs index 3165060d25c4..e940fcc7a1d5 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionParameters.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionParameters.Serialization.cs @@ -7,6 +7,9 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.JsonWriter; +using Azure.Core.Shared.Models; +using Azure.Core.Shared.Serialization; namespace Azure.Maps.Routing { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirections.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirections.Serialization.cs index 350f3698101f..a3bdbe4f1493 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirections.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirections.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirections.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirections.cs index 1ca41521e09c..8797a175aac9 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirections.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirections.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionsBatchItem.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionsBatchItem.Serialization.cs index ce38fd0e9966..b1f6d16844bb 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionsBatchItem.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionsBatchItem.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionsBatchItemResponse.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionsBatchItemResponse.Serialization.cs index 6b6e6734cd63..248f4255b6ac 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionsBatchItemResponse.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionsBatchItemResponse.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionsBatchResult.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionsBatchResult.Serialization.cs index 4d1371e58066..221536d3d9cc 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionsBatchResult.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionsBatchResult.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionsBatchResult.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionsBatchResult.cs index eb6b403fca8b..e71c3b74e4a5 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionsBatchResult.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionsBatchResult.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteGuidance.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteGuidance.Serialization.cs index 48d45d3edd2e..999d3f2e047f 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteGuidance.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteGuidance.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteGuidance.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteGuidance.cs index 706456b8a9eb..a3ea49ad4d39 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteGuidance.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteGuidance.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteInstruction.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteInstruction.Serialization.cs index d436180118c9..1e7f9276a891 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteInstruction.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteInstruction.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteInstruction.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteInstruction.cs index 06850d5df2c1..afc95eb7c205 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteInstruction.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteInstruction.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteInstructionGroup.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteInstructionGroup.Serialization.cs index c39675b3b5f1..e43e6605b7a7 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteInstructionGroup.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteInstructionGroup.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteLeg.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteLeg.Serialization.cs index 9d4e94f82610..dfa43f68d5a8 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteLeg.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteLeg.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteLegSummary.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteLegSummary.Serialization.cs index 38d11c5570ca..5bd7176d8e3e 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteLegSummary.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteLegSummary.Serialization.cs @@ -8,6 +8,8 @@ using System; using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Json; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrix.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrix.Serialization.cs index f5ca515b1b51..1c49d8cd3c85 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrix.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrix.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixQuery.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixQuery.Serialization.cs index 663bbdde6301..946bf673a25b 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixQuery.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixQuery.Serialization.cs @@ -7,6 +7,9 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.JsonWriter; +using Azure.Core.Shared.Models; +using Azure.Core.Shared.Serialization; namespace Azure.Maps.Routing { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixResult.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixResult.Serialization.cs index 71659d716214..15875db80a4f 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixResult.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixResult.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixResult.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixResult.cs index 56e46c84c5a0..b7923ebe05c2 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixResult.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixResult.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixResultResponse.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixResultResponse.Serialization.cs index 3f490a26a085..e897e3868de0 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixResultResponse.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixResultResponse.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixSummary.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixSummary.Serialization.cs index 6f686798bd8f..3c7ec127b12c 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixSummary.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixSummary.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteOptimizedWaypoint.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteOptimizedWaypoint.Serialization.cs index 272f807a2a7a..5f2c58c1463a 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteOptimizedWaypoint.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteOptimizedWaypoint.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteRange.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteRange.Serialization.cs index 7c7d3f70670c..a29c6bb2f2a9 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteRange.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteRange.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteRange.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteRange.cs index 6383ccbfb9fc..4f337795e6dd 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteRange.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteRange.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteRangeResult.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteRangeResult.Serialization.cs index 12ccb7018fe8..7cbfb19b65d8 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteRangeResult.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteRangeResult.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteReport.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteReport.Serialization.cs index 272bfa78ae13..eb05b06eed65 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteReport.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteReport.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteReport.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteReport.cs index 0a844261ae9f..7f86c5a90c21 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteReport.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteReport.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSection.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSection.Serialization.cs index c992abe11b13..70a734e9a202 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSection.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSection.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSectionTec.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSectionTec.Serialization.cs index d53574753130..1ab82412a16a 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSectionTec.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSectionTec.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSectionTec.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSectionTec.cs index 7cb85fc6a9c8..a6005d00be59 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSectionTec.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSectionTec.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSectionTecCause.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSectionTecCause.Serialization.cs index e1af4a91fe02..9c92f22b35a4 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSectionTecCause.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSectionTecCause.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSummary.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSummary.Serialization.cs index e0b40f7f35a9..fd5d90d36101 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSummary.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSummary.Serialization.cs @@ -8,6 +8,8 @@ using System; using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Json; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/RouteRestClient.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/RouteRestClient.cs index 80d393ec3a4d..ff57278fd058 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/RouteRestClient.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/RouteRestClient.cs @@ -13,6 +13,12 @@ using Azure; using Azure.Core; using Azure.Core.Pipeline; +using Azure.Core.Shared.Content; +using Azure.Core.Shared.JsonWriter; +using Azure.Core.Shared.Message; +using Azure.Core.Shared.Models; +using Azure.Core.Shared.Pipeline.Diagnostics; +using Azure.Core.Shared.RequestUri; using Azure.Maps.Routing.Models; namespace Azure.Maps.Routing diff --git a/sdk/maps/Azure.Maps.Routing/src/MapsRoutingClient.cs b/sdk/maps/Azure.Maps.Routing/src/MapsRoutingClient.cs index 7a63a121e290..12a1fd576973 100644 --- a/sdk/maps/Azure.Maps.Routing/src/MapsRoutingClient.cs +++ b/sdk/maps/Azure.Maps.Routing/src/MapsRoutingClient.cs @@ -12,6 +12,10 @@ using Azure.Core; using Azure.Core.GeoJson; using Azure.Core.Pipeline; +using Azure.Core.Shared.Asserts; +using Azure.Core.Shared.AuthPolicies; +using Azure.Core.Shared.Pipeline.Diagnostics; +using Azure.Core.Shared.RequestUri; using Azure.Maps.Routing.Models; namespace Azure.Maps.Routing diff --git a/sdk/maps/Azure.Maps.Routing/src/Models/Operation/GetDirectionsOperation.cs b/sdk/maps/Azure.Maps.Routing/src/Models/Operation/GetDirectionsOperation.cs index 0567a1bb4239..69e8a7b07669 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Models/Operation/GetDirectionsOperation.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Models/Operation/GetDirectionsOperation.cs @@ -7,6 +7,9 @@ using System.Threading.Tasks; using Azure.Core; using Azure.Core.Pipeline; +using Azure.Core.Shared.Asserts; +using Azure.Core.Shared.Message; +using Azure.Core.Shared.Pipeline.Tasks; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Models/Operation/GetRouteMatrixOperation.cs b/sdk/maps/Azure.Maps.Routing/src/Models/Operation/GetRouteMatrixOperation.cs index 1298cce455df..2d0803e3d431 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Models/Operation/GetRouteMatrixOperation.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Models/Operation/GetRouteMatrixOperation.cs @@ -7,6 +7,9 @@ using System.Threading.Tasks; using Azure.Core; using Azure.Core.Pipeline; +using Azure.Core.Shared.Asserts; +using Azure.Core.Shared.Message; +using Azure.Core.Shared.Pipeline.Tasks; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Models/Options/RouteDirectionQuery.cs b/sdk/maps/Azure.Maps.Routing/src/Models/Options/RouteDirectionQuery.cs index 7b00d06ff895..f64470cb88f2 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Models/Options/RouteDirectionQuery.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Models/Options/RouteDirectionQuery.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.Core.GeoJson; +using Azure.Core.Shared.Asserts; namespace Azure.Maps.Routing { diff --git a/sdk/maps/Azure.Maps.Routing/src/Models/Options/RouteMatrixOptions.cs b/sdk/maps/Azure.Maps.Routing/src/Models/Options/RouteMatrixOptions.cs index 57f91999126b..716eac361ce2 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Models/Options/RouteMatrixOptions.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Models/Options/RouteMatrixOptions.cs @@ -6,6 +6,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.Core.Shared.Asserts; namespace Azure.Maps.Routing { diff --git a/sdk/maps/Azure.Maps.Routing/src/Models/Options/RouteRangeOptions.cs b/sdk/maps/Azure.Maps.Routing/src/Models/Options/RouteRangeOptions.cs index e6e775b1ad68..9a6f2f3732f4 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Models/Options/RouteRangeOptions.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Models/Options/RouteRangeOptions.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.Core.GeoJson; +using Azure.Core.Shared.Asserts; namespace Azure.Maps.Routing { diff --git a/sdk/maps/Azure.Maps.Routing/src/Models/RouteDirectionParameters.cs b/sdk/maps/Azure.Maps.Routing/src/Models/RouteDirectionParameters.cs index 16aa4beb4599..aaae1dfbfa63 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Models/RouteDirectionParameters.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Models/RouteDirectionParameters.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.Core.GeoJson; +using Azure.Core.Shared.Models; using Azure.Maps.Routing.Models; namespace Azure.Maps.Routing diff --git a/sdk/maps/Azure.Maps.Routing/src/Models/RouteLeg.cs b/sdk/maps/Azure.Maps.Routing/src/Models/RouteLeg.cs index 9d913986b009..4854bb94e581 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Models/RouteLeg.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Models/RouteLeg.cs @@ -6,6 +6,7 @@ using System.Collections.Generic; using Azure.Core; using Azure.Core.GeoJson; +using Azure.Core.Shared.Models; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/Models/RouteMatrixQuery.cs b/sdk/maps/Azure.Maps.Routing/src/Models/RouteMatrixQuery.cs index 3d0bdc4d5260..acb7a42dea7c 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Models/RouteMatrixQuery.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Models/RouteMatrixQuery.cs @@ -7,6 +7,7 @@ using Azure.Core; using Azure.Core.GeoJson; using Azure.Maps.Routing.Models; +using Azure.Core.Shared.Attributes; namespace Azure.Maps.Routing { diff --git a/sdk/maps/Azure.Maps.Routing/src/Models/TrafficIncidentCategory.cs b/sdk/maps/Azure.Maps.Routing/src/Models/TrafficIncidentCategory.cs index 95f66b3642cc..9f8453beb1c7 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Models/TrafficIncidentCategory.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Models/TrafficIncidentCategory.cs @@ -5,6 +5,7 @@ using System; using Azure.Core; +using Azure.Core.Shared.Attributes; namespace Azure.Maps.Routing.Models { diff --git a/sdk/maps/Azure.Maps.Routing/src/properties/AssemblyInfo.cs b/sdk/maps/Azure.Maps.Routing/src/properties/AssemblyInfo.cs index d1bbbd009d64..31c222c188d8 100644 --- a/sdk/maps/Azure.Maps.Routing/src/properties/AssemblyInfo.cs +++ b/sdk/maps/Azure.Maps.Routing/src/properties/AssemblyInfo.cs @@ -3,4 +3,4 @@ using System.Runtime.CompilerServices; -[assembly: Azure.Core.AzureResourceProviderNamespace("Azure.Maps.Render")] +[assembly: Azure.Core.Shared.Attributes.AzureResourceProviderNamespace("Azure.Maps.Render")] diff --git a/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Extensions/MapsExtensions.cs b/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Extensions/MapsExtensions.cs index 4a488bdbecb2..7dfcad0b5084 100644 --- a/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Extensions/MapsExtensions.cs +++ b/sdk/maps/Azure.ResourceManager.Maps/src/Generated/Extensions/MapsExtensions.cs @@ -10,6 +10,7 @@ using System.Threading.Tasks; using Azure; using Azure.Core; +using Azure.Core.Shared.Attributes; using Azure.ResourceManager; using Azure.ResourceManager.Resources; diff --git a/sdk/monitor/Azure.Monitor.Query/src/Azure.Monitor.Query.csproj b/sdk/monitor/Azure.Monitor.Query/src/Azure.Monitor.Query.csproj index b5e758a274c1..f19ddde05d88 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Azure.Monitor.Query.csproj +++ b/sdk/monitor/Azure.Monitor.Query/src/Azure.Monitor.Query.csproj @@ -8,7 +8,6 @@ Azure Monitor Query $(RequiredTargetFrameworks) $(NoWarn);AZC0001 - true @@ -18,11 +17,39 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/MetricDefinitionsRestClient.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/MetricDefinitionsRestClient.cs index e51aa846d5b4..966899a1a927 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/MetricDefinitionsRestClient.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/MetricDefinitionsRestClient.cs @@ -12,6 +12,7 @@ using Azure; using Azure.Core; using Azure.Core.Pipeline; +using Azure.Core.Shared.Pipeline.Diagnostics; using Azure.Monitor.Query.Models; namespace Azure.Monitor.Query diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/MetricNamespacesRestClient.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/MetricNamespacesRestClient.cs index dfce62ca8d9b..1b87f78cfb3e 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/MetricNamespacesRestClient.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/MetricNamespacesRestClient.cs @@ -12,6 +12,8 @@ using Azure; using Azure.Core; using Azure.Core.Pipeline; +using Azure.Core.Shared.Pipeline.Diagnostics; +using Azure.Core.Shared.RequestUri; using Azure.Monitor.Query.Models; namespace Azure.Monitor.Query diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/MetricsRestClient.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/MetricsRestClient.cs index 966d03a17212..7e9bcc928f8b 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/MetricsRestClient.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/MetricsRestClient.cs @@ -12,6 +12,8 @@ using Azure; using Azure.Core; using Azure.Core.Pipeline; +using Azure.Core.Shared.Pipeline.Diagnostics; +using Azure.Core.Shared.RequestUri; using Azure.Monitor.Query.Models; namespace Azure.Monitor.Query diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchQueryRequest.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchQueryRequest.Serialization.cs index 51afbaa528a3..8f89a0168d2c 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchQueryRequest.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchQueryRequest.Serialization.cs @@ -7,6 +7,9 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.JsonWriter; +using Azure.Core.Shared.Models; +using Azure.Core.Shared.Serialization; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchQueryRequest.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchQueryRequest.cs index ae00ddd426dd..7d486352c942 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchQueryRequest.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchQueryRequest.cs @@ -8,6 +8,8 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.Core.Shared.Asserts; +using Azure.Core.Shared.Models; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchQueryResponse.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchQueryResponse.Serialization.cs index 92859e35e921..31b7d225e1fc 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchQueryResponse.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchQueryResponse.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchRequest.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchRequest.Serialization.cs index 1fe40d0c1281..a9e54ae80cdc 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchRequest.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchRequest.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Serialization; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchResponse.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchResponse.Serialization.cs index 93a50e45c1a4..1142b9e9dc37 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchResponse.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchResponse.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorInfo.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorInfo.cs index bd18ec4aa962..99f4f7fa1210 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorInfo.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorInfo.cs @@ -8,6 +8,8 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.Core.Shared.Asserts; +using Azure.Core.Shared.Models; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/LocalizableString.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/LocalizableString.Serialization.cs index aa244cc37464..ba55254294e6 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/LocalizableString.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/LocalizableString.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataQueryRelated.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataQueryRelated.cs index cb11ec74ad13..467e66a2a665 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataQueryRelated.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataQueryRelated.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataResourceType.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataResourceType.cs index e4c6322f75bc..f5954d1ba746 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataResourceType.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataResourceType.cs @@ -8,6 +8,8 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.Core.Shared.Asserts; +using Azure.Core.Shared.Models; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataResourceTypeRelated.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataResourceTypeRelated.cs index d7ffac1ae4c3..2546370ddbc4 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataResourceTypeRelated.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataResourceTypeRelated.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricDefinition.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricDefinition.Serialization.cs index 32a41b6cd676..db6fe51e465d 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricDefinition.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricDefinition.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/QueryBody.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/QueryBody.Serialization.cs index 0c7b9b7837e2..d049f389ebdf 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/QueryBody.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/QueryBody.Serialization.cs @@ -7,6 +7,8 @@ using System.Text.Json; using Azure.Core; +using Azure.Core.Shared.Models; +using Azure.Core.Shared.Serialization; namespace Azure.Monitor.Query.Models { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/QueryRestClient.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/QueryRestClient.cs index 1e3b68611e61..4cc20e17ec3b 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/QueryRestClient.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/QueryRestClient.cs @@ -12,6 +12,7 @@ using Azure; using Azure.Core; using Azure.Core.Pipeline; +using Azure.Core.Shared.Pipeline.Diagnostics; using Azure.Monitor.Query.Models; namespace Azure.Monitor.Query diff --git a/sdk/monitor/Azure.Monitor.Query/src/LogsQueryClient.cs b/sdk/monitor/Azure.Monitor.Query/src/LogsQueryClient.cs index 19aae1aaf37e..6e846b92d2b2 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/LogsQueryClient.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/LogsQueryClient.cs @@ -11,6 +11,7 @@ using System.Threading.Tasks; using Azure.Core; using Azure.Core.Pipeline; +using Azure.Core.Shared.Pipeline.Diagnostics; using Azure.Monitor.Query.Models; namespace Azure.Monitor.Query diff --git a/sdk/monitor/Azure.Monitor.Query/src/MetricsQueryClient.cs b/sdk/monitor/Azure.Monitor.Query/src/MetricsQueryClient.cs index eb3ea5c1094b..7e89f59f5ad2 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/MetricsQueryClient.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/MetricsQueryClient.cs @@ -7,6 +7,8 @@ using System.Threading.Tasks; using Azure.Core; using Azure.Core.Pipeline; +using Azure.Core.Shared; +using Azure.Core.Shared.Pipeline.Diagnostics; using Azure.Monitor.Query.Models; namespace Azure.Monitor.Query diff --git a/sdk/monitor/Azure.Monitor.Query/src/Properties/AssemblyInfo.cs b/sdk/monitor/Azure.Monitor.Query/src/Properties/AssemblyInfo.cs index 40c34c4bb91d..cf34cb2f5931 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Properties/AssemblyInfo.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Properties/AssemblyInfo.cs @@ -6,7 +6,7 @@ [assembly: InternalsVisibleTo("Azure.Monitor.Query.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100d15ddcb29688295338af4b7686603fe614abd555e09efba8fb88ee09e1f7b1ccaeed2e8f823fa9eef3fdd60217fc012ea67d2479751a0b8c087a4185541b851bd8b16f8d91b840e51b1cb0ba6fe647997e57429265e85ef62d565db50a69ae1647d54d7bd855e4db3d8a91510e5bcbd0edfbbecaa20a7bd9ae74593daa7b11b4")] -[assembly: Azure.Core.AzureResourceProviderNamespace("Microsoft.Insights")] +[assembly: Azure.Core.Shared.Attributes.AzureResourceProviderNamespace("Microsoft.Insights")] [assembly: SuppressMessage("Usage", "AZC0012:Avoid single word type names", Justification = "", Scope = "type", Target = "~T:Azure.Monitor.Query.Models.MetricResult")] [assembly: SuppressMessage("Usage", "AZC0014:Types from System.Text.Json, Newtonsoft.Json, System.Collections.Immutable assemblies should not be exposed as part of public API surface.", Justification = "")] diff --git a/sdk/monitor/Azure.Monitor.Query/src/RowBinder.cs b/sdk/monitor/Azure.Monitor.Query/src/RowBinder.cs index 3a0e15ba2cf7..635c6377e436 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/RowBinder.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/RowBinder.cs @@ -4,6 +4,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.Core.Shared; using Azure.Monitor.Query.Models; namespace Azure.Monitor.Query @@ -96,4 +97,4 @@ protected override bool TryGet(BoundMemberInfo memberInfo, LogsTableRow sourc return true; } } -} \ No newline at end of file +} diff --git a/sdk/purview/Azure.Analytics.Purview.Scanning/Azure.Analytics.Purview.Scanning.dgml b/sdk/purview/Azure.Analytics.Purview.Scanning/Azure.Analytics.Purview.Scanning.dgml new file mode 100644 index 000000000000..c9ce2b9c413b --- /dev/null +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/Azure.Analytics.Purview.Scanning.dgml @@ -0,0 +1,387 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Azure.Analytics.Purview.Scanning.csproj b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Azure.Analytics.Purview.Scanning.csproj index e6fb5d51f630..cbab04a255a0 100644 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Azure.Analytics.Purview.Scanning.csproj +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Azure.Analytics.Purview.Scanning.csproj @@ -1,4 +1,4 @@ - + An SDK for interacting with the Azure Purview Catalog service Azure Purview Sacnning SDK @@ -7,13 +7,28 @@ $(RequiredTargetFrameworks) $(NoWarn);AZC0001;CS0169 $(DefineConstants);EXPERIMENTAL - true - + + + + + + + + + + + + + + + + + diff --git a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewClassificationRuleClient.cs b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewClassificationRuleClient.cs index 0fc6ccf7d759..93c876545b48 100644 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewClassificationRuleClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewClassificationRuleClient.cs @@ -8,9 +8,12 @@ using System; using System.Threading.Tasks; using Autorest.CSharp.Core; -using Azure; using Azure.Core; using Azure.Core.Pipeline; +using Azure.Core.Shared.Asserts; +using Azure.Core.Shared.Pipeline; +using Azure.Core.Shared.Pipeline.Diagnostics; +using Azure.Core.Shared.RequestUri; namespace Azure.Analytics.Purview.Scanning { diff --git a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewDataSourceClient.cs b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewDataSourceClient.cs index b002a3794fd6..a7fe3fcf21fa 100644 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewDataSourceClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewDataSourceClient.cs @@ -8,9 +8,12 @@ using System; using System.Threading.Tasks; using Autorest.CSharp.Core; -using Azure; using Azure.Core; using Azure.Core.Pipeline; +using Azure.Core.Shared.Asserts; +using Azure.Core.Shared.Pipeline; +using Azure.Core.Shared.Pipeline.Diagnostics; +using Azure.Core.Shared.RequestUri; namespace Azure.Analytics.Purview.Scanning { diff --git a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewScanClient.cs b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewScanClient.cs index fca871f5187a..9b0158d61bbb 100644 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewScanClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewScanClient.cs @@ -8,9 +8,12 @@ using System; using System.Threading.Tasks; using Autorest.CSharp.Core; -using Azure; using Azure.Core; using Azure.Core.Pipeline; +using Azure.Core.Shared.Asserts; +using Azure.Core.Shared.Pipeline; +using Azure.Core.Shared.Pipeline.Diagnostics; +using Azure.Core.Shared.RequestUri; namespace Azure.Analytics.Purview.Scanning { diff --git a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewScanningServiceClient.cs b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewScanningServiceClient.cs index 6b1a6e712e84..a4cff8f93ae1 100644 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewScanningServiceClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewScanningServiceClient.cs @@ -8,9 +8,12 @@ using System; using System.Threading.Tasks; using Autorest.CSharp.Core; -using Azure; using Azure.Core; using Azure.Core.Pipeline; +using Azure.Core.Shared.Asserts; +using Azure.Core.Shared.Pipeline; +using Azure.Core.Shared.Pipeline.Diagnostics; +using Azure.Core.Shared.RequestUri; namespace Azure.Analytics.Purview.Scanning { diff --git a/sdk/purview/Azure.Analytics.Purview.Scanning/src/properties/AssemblyInfo.cs b/sdk/purview/Azure.Analytics.Purview.Scanning/src/properties/AssemblyInfo.cs index d824f6bb9834..e0d9a877a596 100644 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/src/properties/AssemblyInfo.cs +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/src/properties/AssemblyInfo.cs @@ -6,4 +6,4 @@ // Replace Microsoft.Test with the correct resource provider namepace for your service and uncomment. // See https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-services-resource-providers // for the list of possible values. -[assembly: Azure.Core.AzureResourceProviderNamespace("Microsoft.Purview")] +[assembly: Azure.Core.Shared.Attributes.AzureResourceProviderNamespace("Microsoft.Purview")] diff --git a/sdk/webpubsub/Azure.Messaging.WebPubSub/Azure.Messaging.WebPubSub.dgml b/sdk/webpubsub/Azure.Messaging.WebPubSub/Azure.Messaging.WebPubSub.dgml new file mode 100644 index 000000000000..acafa7b5fa74 --- /dev/null +++ b/sdk/webpubsub/Azure.Messaging.WebPubSub/Azure.Messaging.WebPubSub.dgml @@ -0,0 +1,424 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sdk/webpubsub/Azure.Messaging.WebPubSub/src/Azure.Messaging.WebPubSub.csproj b/sdk/webpubsub/Azure.Messaging.WebPubSub/src/Azure.Messaging.WebPubSub.csproj index d326eb3323a2..53a4782392a4 100644 --- a/sdk/webpubsub/Azure.Messaging.WebPubSub/src/Azure.Messaging.WebPubSub.csproj +++ b/sdk/webpubsub/Azure.Messaging.WebPubSub/src/Azure.Messaging.WebPubSub.csproj @@ -10,7 +10,6 @@ $(NoWarn);419 true $(DefineConstants);EXPERIMENTAL - true @@ -20,8 +19,30 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sdk/webpubsub/Azure.Messaging.WebPubSub/src/Generated/HealthApiClient.cs b/sdk/webpubsub/Azure.Messaging.WebPubSub/src/Generated/HealthApiClient.cs index aafc0300af45..c043614396f2 100644 --- a/sdk/webpubsub/Azure.Messaging.WebPubSub/src/Generated/HealthApiClient.cs +++ b/sdk/webpubsub/Azure.Messaging.WebPubSub/src/Generated/HealthApiClient.cs @@ -10,6 +10,10 @@ using Azure; using Azure.Core; using Azure.Core.Pipeline; +using Azure.Core.Shared.Asserts; +using Azure.Core.Shared.Pipeline; +using Azure.Core.Shared.Pipeline.Diagnostics; +using Azure.Core.Shared.RequestUri; namespace Azure.Messaging.WebPubSub { diff --git a/sdk/webpubsub/Azure.Messaging.WebPubSub/src/Generated/WebPubSubServiceClient.cs b/sdk/webpubsub/Azure.Messaging.WebPubSub/src/Generated/WebPubSubServiceClient.cs index e463b9b2b402..e2a2ff471f46 100644 --- a/sdk/webpubsub/Azure.Messaging.WebPubSub/src/Generated/WebPubSubServiceClient.cs +++ b/sdk/webpubsub/Azure.Messaging.WebPubSub/src/Generated/WebPubSubServiceClient.cs @@ -11,6 +11,11 @@ using Azure; using Azure.Core; using Azure.Core.Pipeline; +using Azure.Core.Shared.Asserts; +using Azure.Core.Shared.Models; +using Azure.Core.Shared.Pipeline; +using Azure.Core.Shared.Pipeline.Diagnostics; +using Azure.Core.Shared.RequestUri; namespace Azure.Messaging.WebPubSub { diff --git a/sdk/webpubsub/Azure.Messaging.WebPubSub/src/WebPubSubServiceClient.cs b/sdk/webpubsub/Azure.Messaging.WebPubSub/src/WebPubSubServiceClient.cs index f7a2c52df46d..034d1f8d733d 100644 --- a/sdk/webpubsub/Azure.Messaging.WebPubSub/src/WebPubSubServiceClient.cs +++ b/sdk/webpubsub/Azure.Messaging.WebPubSub/src/WebPubSubServiceClient.cs @@ -5,6 +5,7 @@ using System.Collections.Generic; using System.Threading.Tasks; using System; +using Azure.Core.Shared.Pipeline; namespace Azure.Messaging.WebPubSub { diff --git a/sdk/webpubsub/Azure.Messaging.WebPubSub/src/WebPubSubServiceClient_extensions.cs b/sdk/webpubsub/Azure.Messaging.WebPubSub/src/WebPubSubServiceClient_extensions.cs index bc89dc5b8a36..f4b273ddec9e 100644 --- a/sdk/webpubsub/Azure.Messaging.WebPubSub/src/WebPubSubServiceClient_extensions.cs +++ b/sdk/webpubsub/Azure.Messaging.WebPubSub/src/WebPubSubServiceClient_extensions.cs @@ -6,6 +6,9 @@ using System.Threading.Tasks; using Azure.Core; using Azure.Core.Pipeline; +using Azure.Core.Shared.Asserts; +using Azure.Core.Shared.Pipeline; +using Azure.Core.Shared.Pipeline.Diagnostics; namespace Azure.Messaging.WebPubSub { diff --git a/sdk/webpubsub/Azure.Messaging.WebPubSub/src/WebPubSubServiceClient_helpers.cs b/sdk/webpubsub/Azure.Messaging.WebPubSub/src/WebPubSubServiceClient_helpers.cs index 3c7fabeaa4ec..a184733636a3 100644 --- a/sdk/webpubsub/Azure.Messaging.WebPubSub/src/WebPubSubServiceClient_helpers.cs +++ b/sdk/webpubsub/Azure.Messaging.WebPubSub/src/WebPubSubServiceClient_helpers.cs @@ -11,6 +11,8 @@ using Azure.Core; using Azure.Core.Pipeline; +using Azure.Core.Shared.Asserts; +using Azure.Core.Shared.Pipeline.Tasks; namespace Azure.Messaging.WebPubSub {